:root {
  color-scheme: light dark;
  --bg: #f5f0e8;
  --bg-soft: #fbf8f3;
  --bg-accent: #f0e5d8;
  --text: #171412;
  --muted: #6d645d;
  --muted-strong: #544a42;
  --line: rgba(23, 20, 18, 0.10);
  --line-soft: rgba(23, 20, 18, 0.06);
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 60px rgba(30, 18, 10, 0.06);
  --shadow-soft: 0 12px 30px rgba(30, 18, 10, 0.04);
  --shadow-top: 0 10px 30px rgba(0, 0, 0, 0.06);
}

:root.dark {
  --bg: #0f0d0c;
  --bg-soft: #171311;
  --bg-accent: #201916;
  --text: #f3eee6;
  --muted: #b8ada2;
  --muted-strong: #d5cbc1;
  --line: rgba(243, 238, 230, 0.12);
  --line-soft: rgba(243, 238, 230, 0.08);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.22);
  --shadow-top: 0 10px 30px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at left 18% top 22%, rgba(233, 221, 205, 0.9), transparent 28%),
    radial-gradient(circle at right 82% top 60%, rgba(244, 234, 222, 0.8), transparent 24%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03), transparent 380px);
}

:root.dark .page-bg {
  background:
    radial-gradient(circle at left 18% top 22%, rgba(35, 27, 22, 0.82), transparent 28%),
    radial-gradient(circle at right 82% top 60%, rgba(25, 20, 17, 0.74), transparent 24%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 380px);
}

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 64px;
  scroll-margin-top: 16px;
}

#home,
#nabidka,
#program,
#kontakt {
  scroll-margin-top: 116px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-top);
}

.brand-mini {
  display: flex;
  align-items: center;
  min-width: 104px;
}

.brand-mini img {
  height: 42px;
  width: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-mini .logo-light,
.brand-mini .logo-dark {
  height: 40px;
  width: auto;
}

.logo-dark,
.qr-dark {
  display: none;
}

:root.dark .logo-light,
:root.dark .qr-light {
  display: none;
}

:root.dark .logo-dark,
:root.dark .qr-dark {
  display: block;
}

:root.dark .logo-dark,
:root.dark .hero-logo.logo-dark {
  filter: invert(1) brightness(1.06);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover {
  background: var(--line-soft);
  color: var(--text);
}

.desktop-nav a.active {
  background: var(--text);
  color: var(--bg-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--line-soft);
}

.theme-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
}

.theme-switch button.is-active {
  background: var(--text);
  color: var(--bg-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
}

.mobile-nav {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 40;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
}

.mobile-nav a:hover {
  background: var(--line-soft);
  color: var(--text);
}

.cookie-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
}

.cookie-strip[hidden] {
  display: none !important;
}

.cookie-strip-text {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.25;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cookie-strip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cookie-btn {
  border: 1px solid var(--line);
  background: var(--line-soft);
  color: var(--text);
  min-height: 28px;
  padding: 0 11px;
  font-size: 0.84rem;
  border-radius: 999px;
}

.cookie-btn-yes {
  background: var(--text);
  color: var(--bg-soft);
  border-color: transparent;
}

.cookie-btn-close {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 8px;
}

.cookie-btn:hover {
  background: var(--panel);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding-top: 40px;
}

.hero-copy {
  padding: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a8077;
}

:root.dark .eyebrow {
  color: #a79a8d;
}

.hero-logo-wrap {
  margin-top: 0;
  margin-bottom: 0.5rem;
  max-width: 460px;
}

.hero-logo {
  width: 100%;
  height: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-kicker {
  margin: 14px 0 0;
  max-width: 46rem;
  font-size: 1.11rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--muted-strong);
}

.lead {
  margin: 12px 0 0;
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.88;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg-soft);
  border-color: transparent;
}

.btn-secondary {
  background: var(--line-soft);
  color: var(--text);
}

.card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.info-panel {
  padding: 26px;
}

.info-panel .eyebrow,
.qr-card .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.32em;
}

.info-block h2,
.section-heading,
.contact-card h3,
.offer-card h3 {
  margin: 0;
}

.info-block p,
.body-copy,
.contact-card p,
.offer-card p,
.program-note,
.qr-text {
  color: var(--muted);
  line-height: 1.8;
}

.info-block p,
.contact-card p,
.offer-card p {
  margin: 10px 0 0;
}

.muted-note {
  margin: 10px 0 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.hours {
  margin: 16px 0 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
}

.hours dd {
  margin: 0;
  color: var(--text);
}

.hours dt {
  margin: 0;
}

.home-section {
  margin-top: 56px;
}

.section-intro {
  max-width: 1100px;
}

.section-heading {
  margin-top: 18px;
  max-width: 1100px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.prep-section {
  padding: 28px 30px;
}

.prep-section-head {
  max-width: 860px;
}

.prep-title {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.prep-list article,
.offer-card,
.program-levels article {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.prep-list-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prep-list-compact article {
  min-height: 112px;
  padding: 18px 18px 16px;
  border-radius: 22px;
}

.prep-list-compact article p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.level-name {
  display: block;
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.section-copy {
  padding: 18px 0;
}

.body-copy {
  margin-top: 16px;
}

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

.offer-card {
  padding: 22px;
}

.offer-card h3 {
  font-size: 1.05rem;
}

.program-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  padding: 30px;
}

.program-copy {
  min-width: 0;
}

.program-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.program-levels article {
  padding: 20px;
  display: grid;
  gap: 6px;
  align-content: start;
  background: var(--panel-strong);
  border-radius: 24px;
}

.program-levels p,
.level-tagline,
.level-threshold {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.45;
  font-size: clamp(0.95rem, 1.02vw, 1.04rem);
}

.level-cashback {
  margin: 2px 0 0;
  line-height: 1.2;
}

.level-cashback strong {
  color: var(--text);
  font-weight: 800;
  font-size: clamp(1.32rem, 1.42vw, 1.55rem);
}

.level-threshold {
  color: var(--muted);
}

.program-note {
  margin-top: 18px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.qr-wrap {
  margin-top: 24px;
  padding: 14px;
  background: #fff;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}

:root.dark .qr-wrap {
  background: #f3eee6;
}

.qr-wrap img {
  width: min(196px, 100%);
  height: auto;
  margin: 0 auto;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.qr-action-primary,
.qr-action-secondary {
  width: 100%;
}

.contact-intro {
  margin-bottom: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 24px;
}

.contact-card h3 {
  font-size: 1rem;
}

.map-card {
  margin-top: 20px;
  padding: 24px;
}

.map-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.map-card-head h3 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.map-link {
  white-space: nowrap;
}

.map-embed-wrap {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  filter: grayscale(1) contrast(1.05) brightness(0.98);
}

.company-note {
  margin: 16px 2px 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

:root.dark .map-embed-wrap iframe {
  filter: grayscale(1) contrast(1.08) brightness(0.82);
}

.mail-link {
  color: var(--text);
}

.mail-link:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .prep-list,
  .prep-list-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .desktop-nav,
  .theme-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .split-section,
  .program-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .qr-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    border-radius: 28px;
  }

  .brand-mini img {
    height: 36px;
  }

  .brand-mini .logo-light,
  .brand-mini .logo-dark {
    height: 32px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-logo-wrap {
    max-width: min(100%, 460px);
  }

  .hero-kicker {
    font-size: 1.06rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.78;
  }

  .section-heading {
    font-size: 2rem;
    text-wrap: pretty;
  }

  .info-panel,
  .program-section,
  .prep-section,
  .contact-card,
  .offer-card,
  .prep-list article {
    padding: 22px;
  }

  .prep-title {
    font-size: 1.35rem;
  }

  .prep-list,
  .prep-list-compact,
  .offer-grid,
  .program-levels,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-link {
    width: 100%;
  }

  .qr-wrap img {
    width: min(180px, 100%);
  }

  .map-embed-wrap iframe {
    min-height: 340px;
  }

  .cookie-strip {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 6px 8px;
  }

  .cookie-strip-text {
    font-size: 0.74rem;
  }

  .level-name {
    font-size: clamp(1.3rem, 6.2vw, 1.6rem);
  }

  .level-tagline,
  .level-threshold {
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .level-cashback strong {
    font-size: 1.25rem;
  }
}
