/* ==========================================================================
   ZNOHUB Junior — landing
   1. Fonts
   2. Design tokens
   3. Reset & base
   4. Utilities
   5. Section backgrounds  ← тут міняємо колір на картинку
   6. Components (buttons, badges, chips, cards…)
   7. Sections
   8. Motion
   ========================================================================== */

/* ==========================================================================
   1. FONTS  (self-hosted, variable, subset)
   ========================================================================== */
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-cyrillic-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root {
  /* brand */
  --blue-700: #0A00CC;
  --blue-600: #0C00FF;
  --blue-500: #2542F6;
  --blue-400: #3174FE;
  --blue-300: #4D9DFE;

  --sky-300:  #8FC7FF;
  --sky-200:  #B7DDFF;
  --sky-100:  #D7EBFF;
  --pale-100: #EAF1FC;

  --sand-400: #FFDA3D;
  --sand-300: #FFE66F;
  --sand-200: #FFF3B7;
  --sand-100: #FCF0B6;

  --ink:      #0A0F2E;
  --ink-70:   #464B63;
  --muted:    #5F6377;
  --muted-2:  #757A90;
  --line:     #E2E8F4;
  --white:    #FFFFFF;

  /* gradients */
  --grad-blue: linear-gradient(105deg, var(--blue-600) 0%, var(--blue-600) 34%, var(--blue-400) 78%, var(--blue-300) 100%);
  --grad-hero: linear-gradient(115deg, var(--pale-100) 0%, var(--pale-100) 48%, #DCE9FB 74%, #C5E0FC 100%);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* shadows */
  --sh-sm: 0 2px 8px rgba(10, 15, 46, .06);
  --sh-md: 0 8px 24px rgba(10, 15, 46, .08);
  --sh-lg: 0 18px 48px rgba(10, 15, 46, .12);
  --sh-blue: 0 12px 28px rgba(12, 0, 255, .28);
  --sh-sand: 0 12px 28px rgba(180, 140, 0, .22);

  /* spacing */
  --gutter: 16px;
  --section-y: clamp(56px, 7vw, 104px);

  /* layout */
  --container: 1200px;
  --header-h: 72px;

  /* motion */
  --ease:      cubic-bezier(.22, .61, .36, 1);   /* базовий, для ховерів */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);      /* «експо» — для появи */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);       /* для розгортання */
  --ease-back: cubic-bezier(.34, 1.4, .64, 1);   /* легкий перестріл */
  --dur-fast: .18s;
  --dur:      .28s;
  --dur-mid:  .45s;
  --dur-slow: .72s;
}

@media (min-width: 640px) { :root { --gutter: 20px; } }
@media (min-width: 900px) { :root { --header-h: 84px; --gutter: 28px; } }

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-bg-blue :focus-visible { outline-color: var(--sand-300); }

::selection { background: var(--blue-600); color: #fff; }

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.accent-blue { color: var(--blue-600); }
.accent-sand { color: var(--sand-300); }
.accent-underline {
  color: var(--blue-600);
  background-image: linear-gradient(var(--sand-300), var(--sand-300));
  background-repeat: no-repeat;
  background-size: 100% .18em;
  background-position: 0 88%;
}

.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* ==========================================================================
   5. SECTION BACKGROUNDS

   Базові класи задають колір — він і лишається фолбеком, поки вантажиться
   картинка. Секції, для яких є готовий фон, перекривають його нижче
   (блок «фонові зображення»). Щоб додати фон новій секції — просто
   пропишіть їй background-image, колір із базового класу нікуди не дінеться.
   ========================================================================== */
.section-bg-white { background-color: var(--white); }
.section-bg-pale  { background-color: var(--pale-100); }
.section-bg-sky   { background-color: var(--sky-200); }
.section-bg-sand  { background-color: var(--sand-100); }
.section-bg-blue  { background-color: var(--blue-600); background-image: var(--grad-blue); color: #fff; }

.section-bg-blue,
.section-bg-white,
.section-bg-pale,
.section-bg-sky,
.section-bg-sand {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── фонові зображення ─────────────────────────────────────────────────────
   Картинки — широкі банери (2.2–3.3 : 1), декор у них по краях кадру.
   Секції ж на реальних екранах завжди вищі за ці пропорції, тож `cover`
   зрізав би саме краї — тобто весь декор. Тому на десктопі фон розтягується
   (`100% 100%`): композиція лишається цілою, а спотворення непомітне —
   це мʼякі градієнти й низькоконтрастні блоки. На вузьких екранах, де
   розтяг був би вже надто сильним, повертаємось до `cover`: кадр
   обрізається до рівної середини — рівно як у мобільному макеті.
   Другим шаром лишається градієнт: його видно, поки картинка вантажиться. */
.hero {
  background-image:
    url('/assets/img/hero-bg.webp'),
    var(--grad-hero);
}
.steps {
  background-image: url('/assets/img/4step-bg.webp');
}
.pricing {
  background-image: url('/assets/img/learningformat-bg.webp');
}
.cta {
  background-image:
    url('/assets/img/prefooter-bg.webp'),
    var(--grad-blue);
}
.hero, .steps, .pricing, .cta {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1080px) {
  .hero, .steps, .pricing, .cta { background-size: 100% 100%; }
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip; /* декоративні блоки не створюють горизонтальний скрол */
}

.section__head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head > * + * { margin-top: 16px; }

.section__title {
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}
.section__title--light  { color: #fff; }
.section__title--center { text-align: center; }

.section__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
}
.section-bg-blue .section__lead { color: rgba(255,255,255,.82); }

/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--dur) var(--ease-back),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) linear;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: var(--dur-fast); }

.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 16px 34px rgba(12,0,255,.34); }

.btn--sand { background: var(--sand-300); color: var(--ink); box-shadow: var(--sh-sand); }
.btn--sand:hover { background: var(--sand-400); }

.btn--lg { min-height: 56px; padding: 16px 40px; font-size: 17px; }
@media (max-width: 480px) { .btn--lg { padding: 16px 16px; font-size: 16px; } }
.btn--block { display: flex; width: 100%; }

/* --- Badges ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
}
.badge--sand    { background: var(--sand-300); color: var(--ink); }
.badge--outline { background: #fff; color: var(--blue-600); border: 1.5px solid var(--blue-600); }
.badge__emoji   { font-size: 16px; line-height: 1; }

/* --- Chips -------------------------------------------------------------- */
.chip-list { display: flex; flex-direction: column; gap: 10px; }

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.chip:hover { transform: translateX(6px); box-shadow: var(--sh-sm); }
.chip__emoji { flex: none; font-size: 20px; line-height: 1; }
.chip--sky   { background: var(--sky-200); }
.chip--sand  { background: var(--sand-200); }
.chip--white { background: #fff; }

/* --- Subject chips ------------------------------------------------------ */
.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease-back), box-shadow var(--dur) var(--ease);
}
.subject-chip:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.subject-chip img { flex: none; }

/* предмети в блоці «Програма»: іконка в білому квадраті + світлий підпис */
.subject {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.subject img {
  flex: none;
  width: 24px; height: 24px;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  transition: transform var(--dur) var(--ease-back);
}
.subject:hover img { transform: rotate(-6deg) scale(1.06); }

/* --- Cards -------------------------------------------------------------- */
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md); }

/* --- Carousel (mobile) -------------------------------------------------- */
.carousel { position: relative; }
.carousel__dots { display: none; }

@media (max-width: 899px) {
  .carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 85%);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > * { scroll-snap-align: start; }

  .carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .carousel__dot {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(10,15,46,.22);
    cursor: pointer;
    transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .carousel__dot[aria-selected="true"] { width: 22px; border-radius: var(--r-pill); background: var(--blue-600); }
  .section-bg-blue .carousel__dot { background: rgba(255,255,255,.35); }
  .section-bg-blue .carousel__dot[aria-selected="true"] { background: #fff; }
}

/* --- Carousel: варіант для всіх ширин ------------------------------------
   Базова карусель вище — мобільна, на десктопі вона розкладається в сітку.
   Тут слайди лишаються каруселлю завжди: у вузькій колонці два відео поруч
   не помістяться. Селектори з класом-модифікатором мають вищу вагу, тож
   перекривають мобільний блок і всередині його медіазапиту.
   ------------------------------------------------------------------------- */
.carousel--always .carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* мобільний блок додає власні відступи під край екрана — тут вони зайві */
  padding: 0;
  margin: 0;
  scroll-padding-inline: 0;
}
.carousel--always .carousel__track::-webkit-scrollbar { display: none; }
.carousel--always .carousel__track > * { scroll-snap-align: start; min-width: 0; }

.carousel--always .carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel--always .carousel__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10,15,46,.22);
  cursor: pointer;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.carousel--always .carousel__dot[aria-selected="true"] { width: 22px; border-radius: var(--r-pill); }
.section-bg-blue .carousel--always .carousel__dot { background: rgba(255,255,255,.35); }
.section-bg-blue .carousel--always .carousel__dot[aria-selected="true"] { background: #fff; }

/* Стрілки каруселі — додаються скриптом там, де є data-arrows.
   top зі зсувом на півблока крапок (20px відступ + 8px крапка), щоб
   кнопки стояли по центру самого відео, а не блока з крапками. */
[data-carousel][data-arrows] { position: relative; }

.carousel__arrow {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}
.carousel__arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: var(--sh-lg); }
.carousel__arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: translateY(-50%);
  box-shadow: var(--sh-sm);
}
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

/* ==========================================================================
   7. SECTIONS
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(10,15,46,.08); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.header__logo img { width: 140px; height: auto; }
@media (min-width: 900px) { .header__logo img { width: 168px; } }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 28px; }

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding-block: 6px;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue-600); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { min-height: 44px; padding: 10px 26px; font-size: 15px; }

/* burger */
.burger {
  display: none;
  position: relative;
  z-index: 96;              /* вище за панель меню, щоб лишатись кнопкою «закрити» */
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--pale-100);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.burger:hover { background: var(--sky-100); }
.burger__box { position: relative; display: block; width: 22px; height: 14px; margin: 0 auto; }
.burger__line, .burger__box::before, .burger__box::after {
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-back), opacity var(--dur-fast) var(--ease);
}
.burger__box::before { content: ''; top: 0; }
.burger__line { top: 6px; }
.burger__box::after  { content: ''; top: 12px; }

.burger[aria-expanded="true"] .burger__box::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line { opacity: 0; }
.burger[aria-expanded="true"] .burger__box::after { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,15,46,.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

@media (max-width: 899px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: #fff;
    box-shadow: -12px 0 40px rgba(10,15,46,.16);
    transform: translateX(105%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 24px; width: 100%; }

  /* пункти виїжджають услід за панеллю */
  .nav__list li,
  .nav__cta {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }
  .nav.is-open .nav__list li,
  .nav.is-open .nav__cta {
    opacity: 1;
    transform: none;
    transition-delay: calc(80ms + var(--i, 0) * 55ms);
  }
}

/* На десктопі шапка — сітка з трьох колонок: логотип | посилання | CTA.
   Бічні колонки рівні (1fr), тож центральна стоїть рівно по центру шапки
   незалежно від ширини логотипа й кнопки. `display: contents` розкриває
   <nav> у сітку, лишаючи його дочірні елементи самостійними комірками
   (сам landmark при цьому зберігається). */
@media (min-width: 900px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }
  .header__logo { justify-self: start; }
  .nav          { display: contents; }
  .nav__list    { justify-self: center; }
  .nav__cta     { justify-self: end; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding-top: clamp(32px, 5vw, 64px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
}

.hero__badge { margin-bottom: 20px; }

.hero__title {
  font-size: clamp(28px, 7.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
/* розмір підібрано так, щоб заголовок завжди лягав у 2 рядки */
@media (min-width: 900px) { .hero__title { font-size: clamp(36px, calc(4.6vw - 5px), 53px); } }

.hero__text {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted);
  max-width: 520px;
}
.hero__text strong { color: var(--ink); font-weight: 700; }

.hero__cta { margin-top: 28px; }
@media (max-width: 639px) { .hero__cta { width: 100%; } }

/* мобільний порядок: заголовок → текст → фото → таймер → CTA → бейдж */
@media (max-width: 899px) {
  .hero__inner { display: flex; flex-direction: column; gap: 22px; }
  .hero__content { display: contents; }
  .hero__title { order: 1; }
  .hero__text  { order: 2; margin-top: 0; max-width: 62ch; }
  .hero__media { order: 3; }
  .countdown   { order: 4; margin-top: 0; }
  .hero__cta   { order: 5; margin-top: 0; width: 100%; }
  .hero__badge {
    order: 6;
    width: 100%;
    margin-bottom: 0;
    justify-content: center;
    min-height: 54px;
    font-size: 16px;
  }
}

/* countdown */
.countdown { margin-top: 28px; }
.countdown__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.countdown__row { display: flex; align-items: flex-start; gap: 6px; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; }
.countdown__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 52px;
  border: 2px solid var(--blue-600);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-600);
}
.countdown__unit { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.countdown__num.is-ticking { animation: tick var(--dur-mid) var(--ease-out); }

@keyframes tick {
  0%   { transform: translateY(-22%); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.countdown__sep { font-size: 22px; font-weight: 700; color: var(--blue-600); line-height: 52px; }

@media (max-width: 899px) {
  .countdown { text-align: center; }
  .countdown__row { justify-content: center; }
  .countdown__label { font-size: 15px; text-transform: none; letter-spacing: 0; }
  .countdown__cell, .countdown__num { width: 64px; }
  .countdown__num { height: 58px; font-size: 24px; }
  .countdown__sep { line-height: 58px; }
}

/* hero media */
.hero__media { position: relative; }
.hero__media > picture img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

/* права колонка виходить за межі контейнера, як у макеті */
@media (min-width: 1200px) {
  .hero__media { margin-right: calc(-1 * clamp(0px, (100vw - 1200px) / 2 - 68px, 292px)); }
}
.hero__chips {
  position: absolute;
  display: flex;
  gap: 10px;
  left: 12px; right: 12px; bottom: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 899px) {
  .hero__chips .subject-chip {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 10px 8px;
    font-size: 15px;
    gap: 8px;
  }
  .hero__chips .subject-chip img { width: 20px; height: 20px; }
}
@media (min-width: 900px) {
  .hero__chips { left: auto; bottom: auto; top: 20px; right: 20px; justify-content: flex-end; }
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  padding-block: clamp(32px, 4vw, 44px);
  background-image: linear-gradient(93deg, #0C00FF 0%, #2A1CFF 100%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }

.stats__item { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.28); }
.stats__num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.stats__num--partner { display: flex; align-items: center; gap: 10px; }
.stats__label { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.82); }

.dia-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

/* --- Steps -------------------------------------------------------------- */
.steps__grid {
  position: relative;
  display: grid;
  gap: 24px;
}
.steps__wrap { position: relative; }
.steps__link { display: none; }
@media (min-width: 640px)  { .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.step-card {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.step-card--sand { background: var(--sand-200); }
.step-card--sand-strong { background: var(--sand-300); }
.step-card--sky  { background: var(--sky-200); }
.step-card--blue { background: var(--blue-600); background-image: var(--grad-blue); color: #fff; }

.step-card__shot {
  position: relative;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.step-card__shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-slow) var(--ease-out);
}
.step-card:hover .step-card__shot img { transform: scale(1.04); }
.step-card__num {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.step-card--blue .step-card__num { background: #fff; color: var(--blue-600); }

.step-card__title { font-size: 19px; margin-bottom: 8px; }
.step-card__text  { font-size: 15px; color: var(--ink-70); }
.step-card--blue .step-card__text { color: rgba(255,255,255,.88); }

/* пунктирні звʼязки між картками — мобільна S-крива */
@media (max-width: 639px) {
  .steps__grid { gap: 44px; }
  .step-card:not(:last-child)::before,
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    height: 22px;
    border: 2px dashed var(--blue-600);
    z-index: 0;
  }
  .step-card:not(:last-child)::after {
    bottom: -22px; left: 28%; width: 22%;
    border-top: 0; border-right: 0;
    border-radius: 0 0 0 22px;
  }
  .step-card:not(:last-child)::before {
    bottom: -44px; left: 50%; width: 22%;
    border-bottom: 0; border-left: 0;
    border-radius: 0 22px 0 0;
  }
}

/* пунктирні звʼязки — тільки на широких екранах.
   Це окремі елементи, а не псевдоелементи, щоб вони проявлялися
   разом із картками, а не висіли на порожній секції. */
@media (min-width: 1080px) {
  .steps__link {
    display: block;
    position: absolute;
    height: 30px;
    border: 2px dashed var(--blue-600);
    z-index: 0;
  }
  .steps__link--1,
  .steps__link--2 {
    top: -30px;
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
  }
  .steps__link--1 { left: 12.5%; right: 62.5%; }
  .steps__link--2 { left: 62.5%; right: 12.5%; }
  .steps__link--3 {
    bottom: -30px; left: 37.5%; right: 37.5%;
    border-top: 0;
    border-radius: 0 0 30px 30px;
  }
}

.steps__cta { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* --- Parents 180 -------------------------------------------------------- */
.parents180__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .parents180__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }

.parents180 .chip-list { margin-top: 28px; max-width: 460px; }

.video { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
/* 16:9 — рідний формат привітань, кадр не обрізається з боків */
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; display: block; background: #000; }

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12,0,255,.4);
  transition: transform var(--dur) var(--ease-back), background-color var(--dur) var(--ease);
}
.video__play::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  opacity: 0;
  animation: play-pulse 2.6s var(--ease-out) infinite;
}
.video__play:hover { transform: scale(1.09); background: var(--blue-500); }
.video__play:active { transform: scale(.97); }
.video img { transition: transform var(--dur-slow) var(--ease-out); }
.video:hover img { transform: scale(1.03); }

@keyframes play-pulse {
  0%   { transform: scale(.9);  opacity: 0; }
  35%  { opacity: .75; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Benefits ----------------------------------------------------------- */
.benefits .section__title { margin-bottom: clamp(32px, 4vw, 48px); }

.benefits__grid { display: grid; gap: 20px; }
@media (min-width: 900px)  { .benefits__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .benefits__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }

.benefit-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.benefit-card img {
  width: 100%;
  max-width: 190px;
  margin: 0 auto 14px;
  transition: transform var(--dur-slow) var(--ease-back);
}
.benefit-card:hover img { transform: scale(1.06) rotate(-1.5deg); }
.benefit-card__title { font-size: 16px; font-weight: 700; line-height: 1.32; text-align: center; }

/* --- Program ------------------------------------------------------------ */
.program__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .program__inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); } }

.program__note { margin-top: 16px; font-size: 16px; color: rgba(255,255,255,.82); }
.subjects { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 22px 0 28px; }
@media (max-width: 639px) {
  .subject { font-size: 15px; gap: 10px; }
  .subject img { width: 22px; height: 22px; padding: 7px; border-radius: 11px; }
  .subjects { gap: 12px 16px; }
}
@media (max-width: 639px) { .program .btn { width: 100%; } }

/* --- Pricing ------------------------------------------------------------ */
.pricing__grid {
  display: grid;
  gap: 24px;
  max-width: 790px;
  margin-inline: auto;
  padding-top: 16px;
}
@media (min-width: 760px) { .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.plan--featured:hover { box-shadow: 0 26px 60px rgba(12, 0, 255, .38); }
.plan__mark { transition: transform var(--dur-slow) var(--ease-out); }
.plan:hover .plan__mark { transform: scale(1.1) rotate(6deg); }

.plan--featured {
  background: var(--blue-600);
  background-image: var(--grad-blue);
  color: #fff;
  box-shadow: 0 18px 44px rgba(12,0,255,.3);
}

.plan__mark {
  position: absolute;
  top: 18px; right: 18px;
  width: 72px; height: 72px;
  pointer-events: none;   /* прозорість (15%) зашита в самих SVG */
}
.plan__mark--sparkle { width: 84px; height: 84px; top: 12px; right: 10px; }

.plan__badge {
  position: absolute;
  top: -16px; right: 18px;
  z-index: 2;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
@media (max-width: 759px) {
  /* бейдж заходить усередину картки, в один рядок із назвою тарифу */
  .plan__badge {
    top: 22px; right: 16px;
    padding: 7px 14px;
    font-size: 13px;
  }
  .plan--featured .plan__name { padding-right: 130px; }
  .pricing__grid { padding-top: 0; }
}

.plan__name { font-size: 17px; font-weight: 700; color: var(--blue-600); margin-bottom: 8px; padding-right: 90px; }
@media (max-width: 759px) { .plan__name { font-size: 15px; } }
.plan--featured .plan__name { color: var(--sand-300); }

.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.plan__amount { font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.plan__old { font-size: 15px; color: var(--muted-2); }
.plan--featured .plan__old { color: rgba(255,255,255,.55); }

.plan__desc { margin-top: 6px; font-size: 15px; color: var(--ink-70); }
.plan--featured .plan__desc { color: rgba(255,255,255,.85); }

.plan__features { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 26px; }
.plan__features li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.4;
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan--featured .plan__features li::before {
  background-color: rgba(255,255,255,.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C00FF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.plan .btn { margin-top: auto; }

/* --- Reviews ------------------------------------------------------------ */
.reviews .section__title { margin-bottom: clamp(32px, 4vw, 48px); }

.reviews__grid { display: grid; gap: 20px; }
@media (min-width: 760px)  { .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .reviews__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.review {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  color: var(--ink);
  box-shadow: var(--sh-md);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.review--sand  { background: var(--sand-200); }
.review--sky   { background: var(--sky-200); }
.review--white { background: #fff; }

.review__stars { color: var(--blue-600); font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.review__text { font-size: 14px; line-height: 1.55; color: var(--ink-70); }
.review__text p + p { margin-top: 12px; }

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
}
.review__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }

/* --- FAQ ---------------------------------------------------------------- */
.faq .section__title { margin-bottom: clamp(32px, 4vw, 48px); }

.accordion { display: flex; flex-direction: column; gap: 12px; max-width: 830px; margin-inline: auto; }

.accordion__item {
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.accordion__item:hover { box-shadow: var(--sh-md); }
.accordion__item.is-open { box-shadow: var(--sh-md); }

.accordion__heading { margin: 0; font-size: inherit; }

.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.accordion__btn:hover { color: var(--blue-600); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2.2px;
  border-radius: 2px;
  background: var(--blue-600);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-mid) var(--ease-soft);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__body { overflow: hidden; }
.accordion__body p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease) 0s, transform var(--dur) var(--ease) 0s;
}
.accordion__item.is-open .accordion__body p {
  opacity: 1;
  transform: none;
  transition-delay: .12s;
}

/* --- CTA / form --------------------------------------------------------- */
.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); } }

.cta__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.14);
  font-size: 28px;
  line-height: 1;
}
.cta__title {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.14;
}
.cta__text { margin-top: 20px; font-size: 16px; color: rgba(255,255,255,.86); max-width: 460px; }

.cta__card { background: #fff; border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); box-shadow: var(--sh-lg); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--pale-100);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:hover  { background: #E3ECFB; }
.field__input:focus  { outline: none; border-color: var(--blue-600); background: #fff; }
.field__input:focus-visible { outline: none; }
.field__input.is-invalid { border-color: #E5484D; background: #FDF0F0; }

.field__input--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  color: var(--muted-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='11' viewBox='0 0 19 11' fill='none'%3E%3Cpath d='M1 1L9.5 9.5L18 1' stroke='%23727272' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 15px;
  cursor: pointer;
}
.field__input--select:valid { color: var(--ink); }

.field__error {
  font-size: 13px;
  color: #C62A2E;
  padding-left: 4px;
}
.field__error:not([hidden]) { animation: field-in .24s var(--ease-out); }

@keyframes field-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* коротке «здригання» поля, коли форму відправили з помилкою */
.field__input.is-shaking { animation: shake .38s var(--ease-soft); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  45%      { transform: translateX(4px); }
  70%      { transform: translateX(-2px); }
}

.form__note { font-size: 12px; color: var(--muted-2); text-align: center; line-height: 1.45; }
.form__status { font-size: 15px; font-weight: 600; text-align: center; }
.form__status:not(:empty) { animation: field-in .32s var(--ease-out); }
.form__status.is-ok    { color: #0F7B3D; }
.form__status.is-error { color: #C62A2E; }

/* --- Thanks (сторінка подяки) ------------------------------------------- */
/* Той самий фон, що й у передфутерній CTA: декор поверх синього градієнта */
.thanks {
  background-image:
    url('/assets/img/prefooter-bg.webp'),
    var(--grad-blue);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* тримає секцію на всю висоту вікна за вирахуванням шапки й футера */
  min-height: calc(100svh - var(--header-h) - 79px);
  display: flex;
  align-items: center;
  /* вужче за типову секцію: у макеті блок вміщується в перший екран 1080p */
  padding-block: clamp(32px, 4vw, 40px);
}
@media (min-width: 1080px) { .thanks { background-size: 100% 100%; } }

.thanks__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.thanks__check {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sand-300);
}
.thanks__check img { width: 43px; height: 43px; }

.thanks__title {
  margin-top: 22px;
  max-width: 1250px;
  font-size: clamp(28px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;   /* -2.1px на 60px */
  color: var(--white);
}

/* Картка з подарунком */
.gift {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(804px, 100%);
  margin-top: 27px;
  /* висоту картки (253px) задає саме зображення: 235 + 9 + 9 */
  padding: 9px 9px 9px 45px;
  border-radius: 18px;
  background: var(--white);
  text-align: left;
}
.gift__body { flex: 1 1 auto; }
.gift__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--blue-600);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-600);
}
.gift__text {
  margin-top: 18px;
  max-width: 441px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
}
.gift__img { flex: 0 0 auto; width: 287px; height: auto; }

.thanks__note {
  margin-top: 27px;
  font-size: clamp(15px, 1.7vw, 18.5px);
  font-weight: 600;
  line-height: 1.82;
  letter-spacing: -.027em;
  color: var(--white);
}
.thanks__label {
  margin-top: 9px;
  font-size: clamp(15px, 1.7vw, 18.5px);
  font-weight: 600;
  line-height: 1.82;
  letter-spacing: .052em;
  color: rgba(255,255,255,.7);
}

.thanks__timer {
  margin-top: 22px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.25);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.37;
  letter-spacing: -.026em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.thanks__back {
  margin-top: 22px;
  font-size: clamp(15px, 1.7vw, 18.5px);
  font-weight: 600;
  line-height: 1.82;
  letter-spacing: .052em;
  color: rgba(255,255,255,.7);
  transition: color var(--dur) var(--ease);
}
.thanks__back:hover { color: var(--white); }

/* На вузьких екранах картка стає колонкою, зображення — під текстом */
@media (max-width: 759px) {
  .gift { flex-direction: column; align-items: center; padding: 24px; text-align: center; }
  .gift__img { width: min(287px, 100%); }
  .gift__text { margin-inline: auto; }
}

/* --- Footer ------------------------------------------------------------- */
/* Смуга 79px за макетом: 24 + 30.88 (висота лого) + 24. */
.footer { background: var(--ink); color: var(--white); padding-block: 24px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
/* Три блоки в рядок розходяться лише з 900px: нижче вони стикаються впритул */
@media (min-width: 900px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__logo { display: block; }
.footer__logo img { width: 187px; height: auto; }
.footer__copy { font-size: 13px; line-height: 1; color: rgba(255,255,255,.5); }

.footer__legal { display: flex; align-items: center; gap: 24px; }
.footer__link {
  font-size: 13px;
  line-height: 1;
  color: var(--white);
  transition: opacity var(--dur) var(--ease);
}
.footer__link:hover { opacity: .7; }
/* синій контур обведення на темній смузі не видно — як у .section-bg-blue */
.footer :focus-visible { outline-color: var(--sand-300); }

/* ==========================================================================
   8. MOTION
   ========================================================================== */

/* Поява при скролі.
   --d — затримка, її проставляє JS відносно позиції елемента в його групі,
   тому картки в ряду зʼявляються каскадом, а не всі разом. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.99);
  transition:
    opacity   var(--dur-slow) var(--ease-out) var(--d, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* знімаємо шар композитора після завершення, щоб не тримати памʼять */
.reveal.is-settled { transition: none; will-change: auto; }

/* Заголовки та текст «підпливають» трохи інакше — коротший шлях */
.section__head .reveal,
.section__title.reveal {
  transform: translate3d(0, 14px, 0);
}

/* Вхідна анімація hero.
   Заголовок, абзац і фото навмисно НЕ анімуються — це кандидати на LCP,
   і фейд із opacity:0 відсунув би метрику. Рухаються лише другорядні блоки. */
@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}
.hero__badge,
.countdown,
.hero__cta,
.hero__chips {
  animation: hero-in .6s var(--ease-out) backwards;
}
.hero__badge  { animation-delay: .05s; }
.hero__chips  { animation-delay: .30s; }
.countdown    { animation-delay: .18s; }
.hero__cta    { animation-delay: .26s; }

/* Плавний скрол для якорів — з урахуванням висоти шапки */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .video__play::before { animation: none; }
}

/* печать */
@media print {
  .header, .burger, .nav, .video__play, .carousel__dots { display: none !important; }
  body { color: #000; }
  .section-bg-blue { background: none !important; color: #000 !important; }
}
