/* ==========================================================================
   ZNOHUB Junior — головна сторінка (v2, 2026)
   Кольори та шрифт — за брендбуком ZNOHUB Junior 2026
   ========================================================================== */

:root {
  --blue: #0C00FF;          /* Znohub Blue — основний */
  --sky: #3CA3FE;           /* sky blue — додатковий 1 */
  --yellow: #FFE66F;        /* energy yellow — додатковий 2 */
  --mist: #EAF1FD;          /* mist — додатковий 3, фони секцій */
  --ink: #0A0A0F;           /* текст */
  --ink-2: #3D4152;         /* другорядний текст */
  --muted: #5F6475;         /* підписи */
  --line: #D5E0F5;          /* рамки */
  --navy: #0A0F2E;          /* футер, як на основному сайті */
  --math-accent: #FFAD5A;   /* палітра «Математика» */
  --math-light: #E2EDFD;
  --eng-accent: #CBF450;    /* палітра «Англійська» */
  --eng-light: #E2E0FF;
  --danger: #B4232A;

  --font: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #FFFFFF; line-height: 1.5; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font-family: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #FFFFFF; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 7vw, 108px) 0; }
.section--mist { background: var(--mist); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-bottom: clamp(32px, 4vw, 44px); }
.section__cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 40px); }

.h2 { font-size: clamp(28px, 3.06vw, 44px); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.accent { color: var(--blue); }
.hl { background: var(--yellow); color: var(--ink); padding: 0 0.12em; border-radius: 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  max-width: 100%; min-height: 52px; padding: 16px 28px; border: 0; border-radius: var(--radius);
  font: 700 17px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--blue); color: #FFFFFF; box-shadow: 0 12px 28px rgba(12, 0, 255, .22); }
.btn--primary:hover { background: #0A00D6; transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFDE45; }
.btn--white { background: #FFFFFF; color: var(--blue); }
.btn--white:hover { background: var(--mist); }
.btn--lg { font-size: 18px; padding: 18px 30px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.chip7 { background: var(--yellow); color: var(--ink); border-radius: 10px; padding: 3px 9px; white-space: nowrap; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.header__logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.header__cabinet { min-height: 44px; padding: 11px 20px; font-size: 15px; border-radius: 14px; box-shadow: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--mist); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 4px 20px 20px; font-size: 17px; font-weight: 600; border-top: 1px solid var(--line); }
.mobile-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.mobile-nav .mobile-nav__cabinet { color: var(--blue); }
.mobile-nav.is-open { display: flex; }

@media (max-width: 1080px) {
  .nav, .header__cabinet { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { background: var(--mist); }
.hero__inner { padding: clamp(32px, 5vw, 72px) 20px clamp(36px, 4.5vw, 60px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.hero__cta { align-self: flex-start; }
.hero__visual { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.teacher { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.teacher__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher__photo--math { background: var(--math-light); }
.teacher__photo--math img { object-position: center 20%; }
.teacher__photo--eng { background: var(--eng-light); }
.teacher__photo--eng img { object-position: center 30%; }
.teacher__name { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.badge { background: #FFFFFF; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(10, 10, 15, .12); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.badge__icon { flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.badge__text { display: flex; flex-direction: column; min-width: 0; }
.badge__title { font-size: 14px; line-height: 1.3; font-weight: 700; }
.badge__sub { font-size: 12px; line-height: 1.4; color: var(--muted); }

.advantages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.advantage { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.advantage__icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; }
.advantage__title { display: block; font-size: 16px; line-height: 1.3; font-weight: 700; margin-bottom: 4px; }
.advantage__text { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.stats { background: var(--blue); color: #FFFFFF; }
.stats__grid { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 4px 22px; border-left: 1px solid rgba(255, 255, 255, .28); }
.stat__value { display: flex; align-items: center; gap: 10px; font-size: clamp(30px, 2.6vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.stat__value img { width: 40px; height: 40px; }
.stat__label { font-size: 15px; line-height: 1.4; color: #DCE3FF; }

@media (max-width: 1080px) { .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .hero__cta { align-self: stretch; }
  .advantages { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .stat { padding-left: 14px; }
  .stat__value img { width: 32px; height: 32px; }
  .badge { padding: 10px; gap: 10px; }
  .badge__icon { flex-basis: 30px; height: 30px; }
}

/* ---------- Викладачі ---------- */
.experts__grid { display: flex; flex-direction: column; gap: 24px; }
.expert { border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; }
.expert--math { background: var(--math-light); }
.expert--eng { background: var(--eng-light); }
.expert > *:not(video) { margin-left: 28px; margin-right: 28px; }
.expert video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); object-fit: cover; }
.tag { justify-self: start; align-self: start; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tag--math { background: var(--math-accent); }
.tag--eng { background: var(--eng-accent); }
.tag--yellow { background: var(--yellow); }
.expert .tag { margin-top: 10px; }
.expert__name { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.expert__offer { font-size: 19px; line-height: 1.4; font-weight: 600; }
.expert__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.expert__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: start; }
.expert__stat { background: #FFFFFF; border-radius: var(--radius); padding: 14px; }
.expert__stat dt { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; color: var(--blue); line-height: 1.2; }
.expert__stat dd { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.more__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.more__toggle svg { transition: transform .2s ease; }
.more__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.more__panel { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.expert__link { justify-self: start; align-self: start; min-height: 48px; padding: 14px 22px; font-size: 15px; border-radius: 14px; box-shadow: none; }

@media (min-width: 900px) {
  .experts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    .expert { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 14px; }
  }
}
@media (max-width: 767px) {
  .expert > *:not(video) { margin-left: 20px; margin-right: 20px; }
  .expert__stats { grid-template-columns: 1fr; }
  .expert__stat { display: flex; align-items: baseline; gap: 12px; }
  .expert__stat dt { flex: 0 0 108px; }
  .expert__stat dd { margin-top: 0; }
  .expert__link { align-self: stretch; }
}

/* ---------- Як навчаємо ---------- */
.steps-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.steps-flow__item { background: var(--blue); color: #FFFFFF; border-radius: 999px; padding: 9px 16px; }
.steps-flow__item--final { background: var(--yellow); color: var(--ink); }
.steps-flow__arrow { color: var(--blue); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 26px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.tile--accent { background: var(--yellow); border-color: var(--yellow); }
.tile__top { display: flex; justify-content: space-between; align-items: center; }
.tile__icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--blue); display: flex; align-items: center; justify-content: center; }
.tile__num { font-size: 36px; font-weight: 700; line-height: 1; color: var(--line); }
.tile--accent .tile__num { color: rgba(10, 10, 15, .16); }
.tile__title { margin-top: 4px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tile--accent p { color: var(--ink); }
.band { margin-top: 36px; background: var(--blue); color: #FFFFFF; border-radius: var(--radius-lg); padding: clamp(30px, 3.5vw, 44px) clamp(22px, 3vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.band__text { font-size: clamp(21px, 2vw, 28px); line-height: 1.3; font-weight: 700; max-width: 820px; }

@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tiles { grid-template-columns: 1fr; } .band .btn { width: 100%; } }

/* ---------- Програми і тарифи ---------- */
.plans { display: flex; flex-direction: column; gap: 20px; }
.plan { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.plan--featured { background: var(--blue); color: #FFFFFF; border-color: var(--blue); box-shadow: 0 30px 60px rgba(12, 0, 255, .25); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; }
.plan__badge { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.plan__title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.plan__offer { font-size: 16px; line-height: 1.45; font-weight: 500; }
.plan__chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.plan__chips li { font-size: 13px; font-weight: 600; border-radius: 10px; padding: 6px 10px; background: var(--mist); color: var(--ink-2); }
.plan--featured .plan__chips li { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.plan__divider { height: 1px; align-self: center; width: 100%; background: var(--line); }
.plan--featured .plan__divider { background: rgba(255, 255, 255, .25); }
.plan__price { display: flex; flex-direction: column; gap: 8px; }
.plan__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.plan__amount { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.plan__period { font-size: 15px; font-weight: 600; }
.plan__old { font-size: 15px; opacity: .65; }
.plan__per { align-self: flex-start; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 5px 10px; background: var(--yellow); color: var(--ink); }
.plan--featured .plan__per { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.plan__list { display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.45; }
.plan__list li { display: flex; gap: 10px; }
.plan__list svg { flex: 0 0 18px; margin-top: 2px; }
.plan__cta { align-self: start; width: 100%; font-size: 16px; padding: 16px 18px; border-radius: 14px; box-shadow: none; }
.plan__link { align-self: start; text-align: center; font-size: 14px; font-weight: 700; padding: 4px 0; color: var(--blue); }
.plan--featured .plan__link { color: #FFFFFF; }

@media (min-width: 900px) {
  .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    .plan { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 16px; }
  }
}

/* ---------- Платформа ---------- */
.platform__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.platform__shot { flex: 3 1 520px; min-width: 0; background: #FFFFFF; border-radius: 24px; padding: 12px; box-shadow: 0 30px 60px rgba(12, 0, 255, .12); }
.platform__shot img { width: 100%; height: auto; border-radius: 14px; }
.features { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 14px; }
.feature__icon { flex: 0 0 42px; height: 42px; border-radius: var(--radius-sm); background: var(--blue); display: flex; align-items: center; justify-content: center; }
.feature__title { margin-bottom: 4px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 7 днів ---------- */
.trial { padding: clamp(56px, 6vw, 96px) 0; }
.trial__card { background: var(--yellow); border-radius: 40px; padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.trial__kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.trial__title { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; max-width: 980px; }
.trial__text { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 760px; }
.trial__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trial__chips li { background: #FFFFFF; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 15px; font-weight: 700; }
.trial__note { font-size: 14px; line-height: 1.5; }
@media (max-width: 767px) { .trial__card .btn { width: 100%; } }

/* ---------- Було / стало ---------- */
.section--tight-top { padding-top: clamp(24px, 3vw, 40px); }
.ba__labels { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ba__labels span { padding: 0 24px; color: var(--muted); }
.ba__labels span + span { color: var(--blue); }
.ba { display: flex; flex-direction: column; gap: 12px; }
.ba__row { display: grid; grid-template-columns: 1fr 1fr; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ba__cell { padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.ba__cell--after { background: var(--mist); }
.ba__mark { flex: 0 0 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ba__mark--before { background: #F1F2F6; color: #8A8FA0; }
.ba__mark--after { background: var(--blue); color: #FFFFFF; }
.ba__before { font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.ba__after { font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (max-width: 767px) {
  .ba__labels { display: none; }
  .ba__row { grid-template-columns: 1fr; }
}

/* ---------- Куратор і кабінет ---------- */
.parents__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.parents__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.psteps { display: flex; flex-direction: column; gap: 12px; }
.pstep { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; gap: 16px; }
.pstep__num { flex: 0 0 30px; font-size: 16px; font-weight: 700; color: var(--blue); }
.pstep__title { margin-bottom: 4px; font-size: 18px; font-weight: 700; }
.pstep p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.parents__card { flex: 1 1 360px; min-width: 0; background: #FFFFFF; border-radius: 32px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.parents__card img { width: min(100%, 300px); aspect-ratio: 1 / 1; object-fit: contain; }
.parents__card p { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; font-weight: 700; }

/* ---------- Відгуки ---------- */
.reviews { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mist); }
.review__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.review__name { font-size: 16px; font-weight: 700; }
.review__role { font-size: 14px; color: var(--muted); }
.review__stars { color: #F5B300; font-size: 17px; letter-spacing: 3px; line-height: 1; }
.review blockquote { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; min-height: 58px; font-size: 16px; font-weight: 600; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: 0 0 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--blue); font-size: 22px; line-height: 1; }
.faq__icon::before { content: '+'; }
.faq__item[open] .faq__icon { background: var(--blue); color: #FFFFFF; }
.faq__item[open] .faq__icon::before { content: '−'; }
.faq__item p { padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Фінальна форма ---------- */
.lead-section { background: var(--blue); color: #FFFFFF; }
.lead-section__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lead-section__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lead-section__emoji { font-size: 44px; line-height: 1; }
.lead-section__title { font-size: clamp(34px, 4vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.lead-section__title span { color: var(--yellow); }
.lead-section__text p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: #DCE3FF; max-width: 520px; }
.form-card { flex: 1 1 420px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px rgba(7, 0, 120, .35); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__plan { background: var(--mist); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--blue); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__input { width: 100%; min-height: 56px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #FFFFFF; color: var(--ink); font: 400 16px/1.3 var(--font); }
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 0, 255, .15); }
.field__input--select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A0A0F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field__input--select:invalid { color: var(--muted); }
.field__input.is-invalid { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); }
.form__warn { font-size: 13px; line-height: 1.5; color: #5A4A00; background: #FFF6C2; border-radius: 10px; padding: 8px 12px; }
.form__submit { margin-top: 4px; min-height: 58px; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.form__status { font-size: 14px; line-height: 1.5; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #12703A; }
.form__status.is-error { color: var(--danger); }
.is-shaking { animation: shake .35s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Футер (як на основному сайті) ---------- */
.footer { background: var(--navy); color: #FFFFFF; border-top: 2px solid var(--blue); }
.footer__inner { max-width: 1200px; margin: 0 auto; padding: 56px 20px 24px; display: flex; flex-direction: column; gap: 36px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 300px; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { font-size: 14px; line-height: 1.5; }
.footer__social { display: flex; gap: 18px; align-items: center; margin-top: 12px; color: rgba(255, 255, 255, .6); }
.footer__social a { color: inherit; display: flex; padding: 4px; }
.footer__social a:hover { color: #FFFFFF; }
.footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__links a { color: #FFFFFF; text-decoration: none; }
.footer__links a:first-child { text-decoration: underline; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { margin: 0 auto; max-width: 680px; text-align: center; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ---------- Липка кнопка на мобільному ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; font-size: 16px; padding: 14px 16px; min-height: 50px; border-radius: 14px; box-shadow: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 767px) { .footer__inner { padding-bottom: 96px; } }

/* ---------- Сторінка «Дякую» ---------- */
.thanks { background: var(--mist); }
.thanks__inner { max-width: 920px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) 20px clamp(56px, 7vw, 100px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.thanks__check { width: 76px; height: 76px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 36px rgba(12, 0, 255, .28); }
.thanks__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.thanks__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.thanks__block { width: 100%; display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.thanks__h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
.thanks__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thanks__step { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.thanks__step span { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--blue); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.thanks__step h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.thanks__step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.thanks__bonus { width: 100%; background: var(--yellow); border-radius: 22px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.thanks__bonus b { background: var(--blue); color: #FFFFFF; border-radius: 10px; padding: 5px 11px; font-size: 15px; }
.thanks__bonus p { font-size: 16px; line-height: 1.5; font-weight: 600; }
.thanks__social { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.thanks__social p { font-size: 16px; font-weight: 600; }
.thanks__social div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.thanks__social a { display: inline-flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 14px; }
.thanks__social a svg { color: var(--blue); }
.thanks__back { font-size: 15px; font-weight: 700; color: var(--blue); padding: 10px 0; }
@media (max-width: 767px) { .thanks__steps { grid-template-columns: 1fr; } .thanks .footer__inner, .footer--plain .footer__inner { padding-bottom: 24px; } }
