/* ============================================================
   SMIRNOV — Duża Bańka dr Smirnova
   Stack: HTML/CSS coded
   Paleta: SSB-mother (#A0C3D5 + #CD7E17)
   Wersja: 1.0 (15.05.2026) — DRAFT
   ============================================================ */

/* ---------- TOKENS (z DESIGN.md + cherry-pick z Clay 15.05.2026) ---------- */
:root {
  /* Brand */
  --brand-primary: #A0C3D5;
  --brand-accent: #CD7E17;
  --brand-accent-hover: #DF862C;
  --brand-accent-bright: #F17D08;

  /* Tła — CREAM CANVAS (Clay-inspired warm palette) */
  --bg-white: #FAF7F0;     /* canvas cream — main page floor */
  --bg-light: #F3EFE5;     /* surface soft — alternate bands */
  --bg-cream: #EBE8E4;     /* footer cream */
  --bg-pure-white: #FFFFFF; /* używaj tylko gdy świadomie potrzebujesz czystej bieli (np. nad cards/forms) */
  --bg-dark: #202730;
  --bg-dark-deep: #0E1014;

  /* Tekst */
  --text-primary: #000000;
  --text-secondary: #4D5C70;
  --text-muted: #7990A1;
  --text-light: #ABBCC9;
  --text-on-dark: #FFFFFF;

  /* Cienie */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Skala fontów */
  --fs-display: 52px;
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 26px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-tiny: 12px;
  --fs-micro: 11px;

  /* Letter-spacing — display headlines (Clay-inspired premium tightness) */
  --ls-display: 0;
  --ls-h1: 0;
  --ls-h2: 0;
  --ls-h3: 0;

  /* Display font weight — 500 zamiast 700 (Clay zasada: rounded warmth > bombastic bold) */
  --fw-display: 500;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 80px;
  --space-xxl: 120px;
  --space-section: 96px;   /* major editorial bands (Clay rhythm) */

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;        /* was 4px */
  --radius-md: 12px;       /* was 8px (Clay buttons + inputs) */
  --radius-lg: 16px;       /* content cards */
  --radius-xl: 24px;       /* feature cards (Faza 2) */
  --radius-pill: 9999px;

  /* Fonts */
  --font-primary: 'Roboto', Arial, sans-serif;
  --font-serif: Georgia, serif;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  padding-bottom: 0;
  overflow-x: hidden;
}
body.sticky-cta-visible { padding-bottom: 92px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent); text-decoration: underline; transition: color .15s ease; }
a:hover { color: var(--brand-accent-hover); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 var(--space-sm); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 var(--space-sm); }
ol, ul { padding-left: 1.25em; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.accent { color: var(--brand-accent); }
.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-h2);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-kicker {
  display: block;
  color: var(--brand-accent);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.section--light { background: var(--bg-light); }
.section--cream { background: var(--bg-cream); }

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge--orange {
  background: var(--brand-accent);
  color: #fff;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-body);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.btn--large { padding: 18px 40px; font-size: var(--fs-body-lg); }
.btn--small { padding: 8px 18px; font-size: var(--fs-small); }
.btn--primary {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
.btn--primary:hover {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--brand-primary);
}
.btn--secondary:hover {
  background: var(--brand-primary);
  color: var(--text-primary);
  text-decoration: none;
}

/* ============================================================
   SEKCJE
   ============================================================ */

/* ---------- 1. TOP BAR ---------- */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 10px var(--space-md);
  text-align: center;
  font-size: var(--fs-small);
}
.top-bar p { margin: 0; }

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(32, 39, 48, 0.96);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .18s ease, transform .18s ease;
}
.sticky-cta[hidden] {
  display: block !important;
  visibility: hidden;
}
.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.sticky-cta__inner {
  max-width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  padding: 12px var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.sticky-cta p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.sticky-cta strong {
  color: var(--text-on-dark);
}
.sticky-cta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------- 2. HERO (jasne tło, jak wzorzec stawianiebaniek.pl) ---------- */
.hero {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero__pre {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  text-align: center;
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--space-md);
  line-height: 1.05;
  color: var(--bg-dark);
  text-align: center;
}
.hero__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-align: center;
}
.hero__cta-label {
  font-weight: 700;
  font-size: var(--fs-h4);
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--text-primary);
}
.hero__bullets {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 0 0 var(--space-lg);
}
.hero__bullets li {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-primary);
}
.hero__image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---------- QUOTE BAR ---------- */
.quote-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--fs-body);
}
.quote-bar p { margin: 0; font-style: italic; }
.quote-bar--motto { background: var(--bg-dark-deep); }
.quote-author {
  display: block;
  font-style: normal;
  color: var(--text-light);
  font-size: var(--fs-small);
  margin-top: 6px;
}

.exit-popup__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  color: var(--brand-accent);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--bg-white);
}
.cta-section--final {
  background: var(--bg-light);
  padding: var(--space-xxl) 0;
}
.cta-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.cta-section__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-h1);
  margin-bottom: var(--space-sm);
}
.cta-section__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.cta-section__anchor {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cta-section__anchor s {
  color: var(--text-muted);
  font-size: 24px;
  font-weight: 700;
}
.cta-section__price {
  font-size: 56px;
  font-weight: 700;
  color: var(--brand-accent);
  margin: var(--space-sm) 0;
}
.cta-section__price-note {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  margin-bottom: var(--space-xs);
}
.cta-section__price-future {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.cta-section__fomo {
  margin-top: var(--space-md);
  font-size: var(--fs-body);
  color: var(--text-secondary);
}
.cta-section__box {
  background: var(--bg-pure-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 720px;
  margin: 0 auto;
}
.cta-section__image img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

/* ---------- TRAINERS ---------- */
.trainers {
  padding: var(--space-xl) 0;
}
.trainers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.trainer-card {
  background: var(--bg-pure-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
.trainer-card__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  object-fit: cover;
}
.trainer-card__name {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}
.trainer-card__title {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.trainer-card__bio {
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ---------- BENEFITS (4 BOXES) ---------- */
.benefits { padding: var(--space-xl) 0; }
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.benefit-box {
  padding: var(--space-md);
  text-align: center;
}
.benefit-box__icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}
.benefit-box h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}
.benefit-box p { color: var(--text-secondary); font-size: var(--fs-body); }

/* ---------- CURRICULUM ---------- */
.curriculum { padding: var(--space-xl) 0; }
.curriculum .section-title {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.curriculum__lead {
  max-width: 720px;
  margin: calc(var(--space-lg) * -0.65) auto var(--space-md);
  color: var(--text-secondary);
  text-align: center;
}
.curriculum__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: 760px;
  margin: 0 auto var(--space-md);
}
.curriculum__highlights div {
  padding: 14px 18px;
  background: var(--bg-pure-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}
.curriculum__highlights strong,
.curriculum__highlights span {
  display: block;
}
.curriculum__highlights strong {
  color: var(--brand-accent);
  font-size: var(--fs-body);
  line-height: 1.2;
}
.curriculum__highlights span {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-top: 4px;
}
.curriculum-accordion {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.curriculum-accordion__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  text-align: left;
}
.curriculum-accordion__question:hover,
.curriculum-accordion__question:focus {
  color: var(--brand-accent);
}
.curriculum-accordion__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: rgba(205, 126, 23, 0.12);
  color: var(--brand-accent);
  font-size: 24px;
  line-height: 1;
  transition: transform .18s ease;
}
.curriculum-accordion.is-open .curriculum-accordion__icon {
  transform: rotate(45deg);
}
.curriculum-accordion__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .22s ease;
}
.lesson-modules {
  display: grid;
  gap: var(--space-md);
  padding-bottom: 18px;
}
.lesson-module {
  break-inside: avoid;
}
.lesson-module h3 {
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: 1.3;
}
.lesson-list {
  columns: 1;
  margin: 0;
  padding: 0 0 18px 1.35em;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.lesson-list li {
  break-inside: avoid;
  margin-bottom: 7px;
  padding-left: 4px;
}
.lesson-list li::marker {
  color: var(--brand-accent);
  font-weight: 700;
}
.lesson-list__extra {
  list-style: none;
  margin-left: -1.35em;
}
.lesson-list__extra span {
  display: inline-block;
  width: 1.35em;
  color: var(--brand-accent);
  font-weight: 700;
}

/* ---------- GALLERY ---------- */
.gallery { padding: var(--space-xl) 0; }
.gallery .section-title {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}
.gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
  cursor: zoom-in;
  text-decoration: none;
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}
.gallery__item:hover img {
  transform: scale(1.025);
}

/* ---------- NUMBERS ---------- */
.numbers { padding: var(--space-xl) 0; text-align: center; }
.numbers__pre { color: var(--text-secondary); font-size: var(--fs-body); }
.numbers__goal {
  font-size: var(--fs-h3);
  margin: var(--space-md) 0 var(--space-lg);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.number-item { display: flex; flex-direction: column; gap: var(--space-xs); }
.number-item__big {
  font-size: 72px;
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1;
}
.number-item__label {
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.numbers__support {
  max-width: 760px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(160, 195, 213, 0.14);
  border: 1px solid rgba(160, 195, 213, 0.36);
}
.numbers__support h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}
.numbers__support p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: var(--fs-body);
}

/* ---------- AFTER COURSE ---------- */
.after-course { padding: var(--space-xl) 0; }
.after-course__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}
.after-course__icon { font-size: 48px; margin-bottom: var(--space-sm); }
.after-course__item h3 { font-size: var(--fs-h4); margin-bottom: var(--space-sm); }
.after-course__item p { color: var(--text-secondary); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: var(--space-xl) 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.testimonial {
  background: var(--bg-pure-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.testimonial p:first-child {
  font-style: italic;
  color: var(--text-primary);
}
.testimonial__author {
  font-weight: 700;
  color: var(--brand-accent);
  font-size: var(--fs-small);
  margin-top: var(--space-sm);
}

/* ---------- GUARANTEE ---------- */
.guarantee {
  padding: var(--space-xl) 0;
  background: var(--bg-light);
}
.guarantee__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.guarantee__badge {
  display: flex;
  justify-content: center;
}
.guarantee__badge-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5c145, #cc6d18);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(204, 109, 24, 0.4);
  border: 6px solid #fff;
}
.guarantee__badge-top { font-size: 18px; letter-spacing: 2px; }
.guarantee__badge-mid { font-size: 32px; line-height: 1.1; margin: 4px 0; }
.guarantee__badge-bot { font-size: 14px; letter-spacing: 2px; }
.guarantee__text h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-h2);
  margin-bottom: var(--space-md);
}
.guarantee__text p {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
}

/* ---------- FAQ ---------- */
.faq { padding: var(--space-xl) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.faq__heading h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-h2);
  color: var(--brand-accent);
  margin-bottom: var(--space-md);
}
.faq__sub {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  font-weight: 700;
}
.faq-item {
  border-bottom: 1px solid var(--text-light);
  padding: var(--space-sm) 0;
}
.faq-item summary {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--brand-accent);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--brand-accent);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin-top: var(--space-sm);
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: var(--space-xl) 0;
  background: var(--bg-cream);
  text-align: center;
}
.footer p { margin: var(--space-xs) 0; font-size: var(--fs-small); color: var(--text-secondary); }
.footer__copy a { font-weight: 700; }
.footer__credit a { color: var(--brand-accent); font-weight: 700; }
.footer__legal { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: var(--space-md); }
.footer__platform-disclaimer {
  max-width: 880px;
  margin: var(--space-md) auto 0;
  font-size: var(--fs-tiny);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner[hidden],
.exit-popup[hidden] {
  display: none !important;
}
.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
body.sticky-cta-visible .cookie-banner { bottom: 104px; }
.cookie-banner p { margin: 0; font-size: var(--fs-small); }
.cookie-banner a { color: var(--brand-primary); }
.cookie-banner__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cookie-banner .btn--secondary {
  color: var(--text-on-dark);
  border-color: var(--brand-primary);
  background: transparent;
}

/* ---------- EXIT POPUP ---------- */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity .18s ease;
}
.exit-popup.is-open {
  opacity: 1;
}
.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.72);
  backdrop-filter: blur(6px);
}
.exit-popup__panel {
  position: relative;
  width: min(100%, 640px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--bg-white);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.exit-popup.is-open .exit-popup__panel {
  transform: translateY(0) scale(1);
}
.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: 28px;
  line-height: 1;
}
.exit-popup h2 {
  max-width: 520px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-h2);
}
.exit-popup p {
  color: var(--text-secondary);
}
.exit-popup__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding: 0;
  margin: var(--space-md) 0;
  list-style: none;
}
.exit-popup__list li {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text-primary);
  font-weight: 700;
}
.exit-popup__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.exit-popup__actions .btn {
  width: 100%;
}

/* ---------- GALLERY LIGHTBOX ---------- */
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity .18s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 16, 20, 0.78);
  backdrop-filter: blur(8px);
}
.gallery-lightbox__panel {
  position: relative;
  width: min(100%, 1120px);
  max-height: min(86vh, 820px);
  display: grid;
  place-items: center;
}
.gallery-lightbox__panel img {
  width: 100%;
  max-height: min(82vh, 780px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}
.gallery-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-pure-white);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 30px;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE — TABLET (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .cta-section__grid { grid-template-columns: 1fr 1fr; }
  .exit-popup__list { grid-template-columns: repeat(2, 1fr); }
  .exit-popup__actions { flex-direction: row; }
  .trainers__grid { grid-template-columns: 1fr 1fr; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .curriculum__highlights { grid-template-columns: repeat(3, 1fr); }
  .lesson-list { columns: 2; column-gap: var(--space-lg); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide {
    grid-column: span 2;
    grid-row: span 2;
  }
  .numbers__grid { grid-template-columns: repeat(4, 1fr); }
  .after-course__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .guarantee__grid { grid-template-columns: 280px 1fr; gap: var(--space-xl); }
  .faq__grid { grid-template-columns: 280px 1fr; }
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    bottom: var(--space-lg);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 720px;
    width: calc(100% - var(--space-lg) * 2);
  }
  .cookie-banner p { flex: 1; }
  body.sticky-cta-visible .cookie-banner { bottom: 104px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(4, 1fr); }
  .hero__title { font-size: 64px; }
  .hero { padding: var(--space-xxl) 0 var(--space-xxl); }
}

/* ============================================================
   RESPONSIVE — MOBILE / NARROW VIEWPORT TWEAKS (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --fs-display: 36px;
    --fs-h1: 32px;
    --fs-h2: 26px;
    --fs-h3: 22px;
  }
  .cta-section__price { font-size: 44px; }
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    padding-top: 56px;
  }
  .hero__title {
    font-size: 34px;
    line-height: 1.12;
    overflow-wrap: break-word;
  }
  .hero__subtitle,
  .hero__bullets li {
    font-size: var(--fs-body);
  }
  .hero .btn,
  .cta-section .btn {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }
  .btn--large {
    padding: 16px 22px;
    font-size: var(--fs-body);
  }
  .cta-section__box {
    padding: var(--space-md);
  }
  .number-item__big { font-size: 56px; }
  .guarantee__badge-inner { width: 180px; height: 180px; }
  .guarantee__badge-mid { font-size: 26px; }
  body { padding-bottom: 0; }
  body.sticky-cta-visible { padding-bottom: 122px; }
  .sticky-cta__inner {
    min-height: 108px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .sticky-cta .btn {
    width: 100%;
  }
  body.sticky-cta-visible .cookie-banner {
    bottom: 138px;
  }
  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
  }
}
