:root {
  --bg: #ffffff;
  --text: #101018;
  --muted: rgba(255, 255, 255, 0.78);

  --brand: #0b1f8a; /* modrá z návrhu */
  --hero: #cfcfcf; /* sivý hero pás */
  --dark: #0b0b0d; /* tmavá sekcia */

  --card: #0e2aa8; /* active karta */
  --card-muted: #121216; /* ostatné karty na tmavom pozadí */

  --shadow: 0 18px 28px rgba(16, 16, 24, 0.12);

  /* Type scale */
  --fs-h1: clamp(26px, 2.8vw, 36px);
  --fs-h2: clamp(24px, 2.6vw, 34px);
  --fs-h3: clamp(22px, 2.2vw, 30px);
  --fs-h4: clamp(24px, 2.1vw, 28px);
  --fs-h5: clamp(15px, 1.4vw, 18px);
  --fs-h6: clamp(12px, 1vw, 14px);
  --fs-body-lg: clamp(14px, 1.2vw, 16px);
  --fs-body: clamp(13px, 1.1vw, 14px);
  --fs-body-sm: clamp(12px, 1vw, 13px);
  --fs-body-xs: clamp(11px, 0.95vw, 13px);
  --fs-lead: clamp(12px, 1.1vw, 14px);
  --fs-nav: clamp(14px, 1.2vw, 18px);
  --fs-btn: clamp(13px, 1.1vw, 16px);
  --fs-icon-lg: clamp(24px, 2vw, 30px);
  --fs-icon-sm: clamp(16px, 1.4vw, 18px);
  --fs-footer-title: clamp(12px, 1vw, 18px);
  --fs-footer: clamp(11px, 1vw, 16px);
  --fs-footer-copy: clamp(12px, 0.95vw, 15px);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  background-color: #eceef2;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: 56px 0 48px;
}

.site-header .container {
  width: 100%;
  margin-inline: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.headerwrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px 0;
}
.headerbrand {
  margin-left: 2rem;
}
.headerlogo {
  width: 150px;
  height: auto;
}
.headermenu {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.headermenuitem {
  font-size: var(--fs-nav);
  color: #222;
  opacity: 0.9;
  text-decoration: none;
}
.headermenuitem--mobile {
  display: none;
}
.headermenuitem:hover {
  opacity: 1;
  text-decoration: none;
}
.headertoggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.headertogglebar {
  width: 24px;
  height: 2px;
  background: #0b1f8a;
  display: block;
}
.headerkontakt {
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
  padding: 12px 24px;
  text-decoration: none;
  font-size: var(--fs-btn);
}
.headerkontakt:hover {
  background: #07186f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: var(--fs-btn);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  width: fit-content;
  align-self: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0b1f8a, #1f40d0);
  color: #fff;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(11, 31, 138, 0.34);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}
.btn-primary:hover {
  background: var(--brand-dark);
}

/* Hero */
.page-hero {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 138, 1) 0%,
      rgba(11, 31, 138, 0.2) 55%,
      rgba(255, 255, 255, 0) 80%
    ),
    #cfcfcf;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.page-title {
  margin: 0;
  color: #fff;
  letter-spacing: -0.7px;
  font-weight: 700;
  font-size: var(--fs-h1);
}

.offer-grid {
  display: grid;
  gap: 26px;
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: 90%;
  margin: auto;
}

.offer-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(11, 31, 138, 0.14);
  padding: 16px 16px 18px;
  box-shadow: 0 16px 26px rgba(16, 16, 24, 0.1);
  overflow: hidden;
  height: 100%;
  min-height: 395px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0b1f8a, #5f7dff);
  opacity: 0.18;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 31, 138, 0.28);
  box-shadow: 0 24px 36px rgba(11, 31, 138, 0.18);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-media {
  height: 190px;
  background: #d9deee;
  margin-bottom: 14px;
  overflow: hidden;
}
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-title {
  margin: 0 0 8px;
  font-size: var(--fs-card-title);
  font-weight: 900;
  color: #1a2448;
}

.offer-text {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #4b5370;
  min-height: 66px;
}

.offer-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  font-size: var(--fs-body-sm);
  color: #0b1f8a;
  letter-spacing: 0.2px;
  margin-top: auto;
}

.offer-link span {
  transition: transform 0.2s ease;
}

.offer-card:hover .offer-link span {
  transform: translateX(2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0b1f8a 80%, #1f40d0 100%);
  color: #fff;
  padding: 54px 0 22px;
  font-family: inherit;
  box-shadow: 0 -8px 32px rgba(11, 31, 138, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  background-color: #fff;
  padding: 5px;
}

.footer-text {
  margin: 0 0 18px;
  text-align: center;
  font-size: var(--fs-footer);
  line-height: 1.7;
  opacity: 0.92;
  max-width: 48ch;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin: auto;
}
.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: var(--fs-icon-sm);
  color: #fff;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  box-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
}
.social-btn:hover {
  background: #fff;
  color: #0b1f8a;
  border-color: #fff;
}

.footer-col,
.footer-split-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-split {
  display: contents;
}

.footer-split-col {
  width: auto;
}

.footer-title {
  margin: 0 0 14px;
  font-size: var(--fs-footer-title);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(11, 31, 138, 0.08);
}

.footer-link {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-footer);
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.16s,
    color 0.16s,
    opacity 0.16s;
}
.footer-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe600;
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-footer);
  opacity: 0.97;
  color: #fff;
}
.footer-meta a {
  color: #fff !important;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-meta a:hover {
  color: #ffe600 !important;
}
.footer-contact-address {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.meta-row,
.working-hours-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.footer-address-col .footer-meta {
  margin-top: 10px;
}

.working-hours-status {
  font-weight: 800;
}

.working-hours-status.is-open {
  color: #8ef7b2;
}

.working-hours-status.is-closed {
  color: #ffd0d0;
}

.footer-bottom {
  margin-top: 28px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.footer-sep {
  height: 1.5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  margin: 18px 0 12px;
}

.footer-copy {
  display: block;
  text-align: center;
  font-size: var(--fs-footer-copy);
  opacity: 0.95;
  color: #fff;
  letter-spacing: 0.2px;
}

@media (max-width: 1440px) {
  .offer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-text {
    min-height: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    justify-content: center;
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    margin-bottom: 18px;
    align-items: center;
  }
  .footer-meta {
    align-items: center;
  }
  .meta-row,
  .working-hours-status {
    justify-content: center;
  }
  .working-hours-status {
    margin: auto;
  }
}

@media (max-width: 720px) {
  .headerkontakt {
    display: none;
  }

  .headermenu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .headermenu.open {
    display: flex;
  }

  .headertoggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 101;
  }

  .headerwrap {
    position: relative;
    flex-direction: row;
    padding: 15px 0;
  }

  .headerbrand {
    margin-left: 0;
  }

  .headermenuitem {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
  }
  .headermenuitem--mobile {
    display: inline-flex;
  }

  .container {
    padding: 30px 0;
  }

  .page-hero-inner {
    padding: 30px 16px;
    min-height: 90px;
  }

  .offer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 0 8px;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-text,
  .footer-meta,
  .footer-link {
    text-align: center;
  }
  .footer-col,
  .footer-split-col {
    align-items: center;
  }
  .footer-links-split {
    display: flex;
    width: 100%;
    gap: 12px;
  }
  .footer-split-col {
    width: 50%;
    align-items: center;
  }
  .footer-split-col .footer-title,
  .footer-split-col .footer-link {
    text-align: left;
  }
  .footer-split-col .footer-meta {
    text-align: left;
    align-items: flex-start;
  }
  .footer-split-col .meta-row,
  .footer-split-col .working-hours-status {
    justify-content: flex-start;
  }

  .footer-links-split:last-of-type {
    align-items: flex-start;
  }
  .footer-links-split:last-of-type .footer-split-col {
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    width: 100%;
  }
  .footer-links-split:last-of-type .footer-contact-col,
  .footer-links-split:last-of-type .footer-address-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links-split:last-of-type .footer-address-col .footer-meta {
    margin-top: 0;
  }
  .footer-links-split:last-of-type .footer-contact-col .footer-title,
  .footer-links-split:last-of-type .footer-address-col .footer-title {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 28px 0 12px;
  }
  .footer-bottom {
    margin-top: 18px;
    padding: 0 4px;
  }
  .footer-logo {
    width: 140px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 20px);
  }
  .offer-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
