/* ==========================================================================
   KIDGARO — главная страница (редизайн)
   Дизайн-система: токены → база → компоненты → секции → адаптив → motion.
   Tailwind здесь не используется: tailwind.css по-прежнему обслуживает
   внутренние страницы (курсы, оплата, юр. документы).
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  color-scheme: light;

  /* палитра бренда */
  --ink: #0D0829;          /* основной тёмный: заголовки, контрастные блоки */
  --ink-2: #2B2547;        /* основной текст */
  --muted: #5B5675;        /* второстепенный текст (≥ 6:1 на светлых фонах) */
  --orange: #F1843B;       /* CTA и акценты */
  --orange-hover: #F5954F;
  --orange-ink: #B4500F;   /* оранжевый для текста на светлом (≥ 4.8:1) */
  --peach: #F4C29A;
  --peach-200: #F8D6BB;
  --peach-100: #FCE9DA;
  --lav: #8FA0D7;
  --lav-300: #C3CDEE;
  --lav-200: #D6DDF3;
  --lav-100: #E9EDF9;
  --navy: #161C42;         /* тёмно-синий фон блока «занятие» — точно как фон kangaroo-tablet.webp */
  --hero: #F9EBDF;         /* фон hero и футера — точно как фон hero-kid-kangaroo.webp */
  --cream: #FDF3E8;
  --paper: #FFFAF5;
  --white: #FFFFFF;
  --desk: #E9B993;
  --desk-top: #F6D6BF;

  --line: rgba(13, 8, 41, .09);
  --line-2: rgba(13, 8, 41, .17);

  --shadow-sm: 0 1px 0 rgba(13, 8, 41, .04), 0 14px 30px -20px rgba(13, 8, 41, .35);
  --shadow-md: 0 2px 0 rgba(13, 8, 41, .04), 0 28px 50px -26px rgba(13, 8, 41, .45);

  /* типографика */
  --font-display: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero: clamp(2.55rem, 1.2rem + 4.6vw, 4.7rem);
  --fs-h2: clamp(1.95rem, 1.3rem + 2.4vw, 3.3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-lead: clamp(1.03rem, .97rem + .3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-hand: clamp(1.45rem, 1.15rem + 1vw, 2rem);

  /* сетка и ритм */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --sheet-r: clamp(28px, 4vw, 56px);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scrollbar-gutter: stable;   /* без «прыжка» страницы, когда модалка блокирует прокрутку */
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--ink); }
[x-cloak] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.page { overflow-x: hidden; overflow-x: clip; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font: 600 .9rem var(--font-display);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.center { text-align: center; }

/* ---------- 3. Компоненты ---------- */

/* Кнопки */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 50px;
  padding: .7em 1.45em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-display);
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn__icon {
  display: grid;
  place-items: center;
  width: 2.05em;
  height: 2.05em;
  margin: -.2em -.95em -.2em 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  flex: none;
  transition: transform .3s var(--ease);
}
.btn__icon svg { width: 1.05em; height: 1.05em; }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn__lead-ico { width: 20px; height: 20px; }

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(13, 8, 41, .14), 0 12px 26px -14px rgba(201, 92, 22, .85);
}
.btn--primary:hover { --btn-bg: var(--orange-hover); }

.btn--ink .btn__icon { background: var(--orange); color: var(--ink); }
.btn--ink:hover { --btn-bg: #1d1745; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.btn--ghost-light:hover { border-color: #fff; }

.btn--lg { min-height: 58px; font-size: 1.0625rem; padding-inline: 1.65em; }
.btn--sm { min-height: 42px; font-size: .9375rem; padding: .5em 1.2em; }
.btn--block { width: 100%; }

.link-btn {
  padding: 8px 2px;
  border: 0;
  background: none;
  font: 600 .95rem var(--font-display);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: text-underline-offset .2s, color .2s;
}
.link-btn:hover { text-underline-offset: 3px; color: var(--orange-ink); }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--ink); }
.round-btn--light {
  width: 30px;
  height: 30px;
  border: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.round-btn--light svg { width: 16px; height: 16px; }
.round-btn--light:hover { background: var(--orange); color: var(--ink); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 .9rem var(--font-display);
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.pill-link svg { width: 18px; height: 18px; }
.pill-link:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-1px); }

/* Чипы-метки */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font: 600 .8125rem/1.1 var(--font-display);
  white-space: nowrap;
}
.chip--white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.chip--ink { background: var(--ink); color: #fff; }
.chip--orange { background: var(--orange); color: var(--ink); }
.chip--lav { background: var(--lav-200); color: var(--ink); }

/* Список с галочками */
.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .05em;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--tick-bg, var(--peach-200)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230D0829' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks--sm li { font-size: .875rem; }

/* Заголовки секций */
.h2 {
  font: 800 var(--fs-h2)/1.04 var(--font-display);
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: #fff; }
.h2__sparks {
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-left: .12em;
  vertical-align: top;
  color: var(--orange);
  rotate: 8deg;
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.section-lead {
  max-width: 40rem;
  margin-top: 16px;
  font-size: var(--fs-lead);
  color: var(--muted);
  text-wrap: pretty;
}
.eyebrow {
  margin-bottom: 12px;
  font: 600 .8125rem var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.hand-note {
  position: relative;
  padding-left: 46px;
  font: 700 var(--fs-hand)/1.02 var(--font-hand);
  color: var(--ink);
  rotate: -6deg;
}
.hand-note__star {
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  color: var(--orange);
}
.hand-note__star--ink { color: var(--ink); left: auto; right: -40px; top: -10px; width: 28px; height: 28px; }
.hand-note--tilt { padding-left: 0; rotate: 5deg; }
.hand-note__heart {
  display: inline-block;
  width: 30px;
  height: 27px;
  margin-left: 6px;
  color: var(--orange);
  vertical-align: middle;
}

/* Секции-«листы»: каждая следующая наезжает на предыдущую скруглённым краем */
.section { padding-block: var(--section-y); }
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--sheet-r));
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  padding-bottom: calc(var(--section-y) + var(--sheet-r));
}
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--peach { background: var(--peach-200); }
.section--lav {
  background-color: var(--lav-200);
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
}

/* ---------- 4. Бегущая строка ---------- */
.ticker {
  overflow: hidden;
  padding: 9px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  font: 500 .8125rem var(--font-display);
  letter-spacing: .01em;
  white-space: nowrap;
  user-select: none;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.ticker__track > * { margin-right: 26px; flex: none; }
.ticker__star { width: 11px; height: 11px; color: var(--orange); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 5. Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}
.site-header > .container { pointer-events: auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
  padding: 0 10px 0 22px;
  border: 1px solid rgba(13, 8, 41, .07);
  border-radius: 999px;
  background: rgba(255, 250, 245, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled .nav {
  background: rgba(255, 250, 245, .94);
  box-shadow: 0 14px 34px -20px rgba(13, 8, 41, .4);
}
.nav__logo { flex: none; border-radius: 8px; }
.nav__logo img { width: auto; height: 34px; transition: transform .3s var(--ease); }
.nav__logo:hover img { transform: rotate(-2deg) scale(1.03); }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font: 500 .95rem var(--font-display);
  color: var(--ink);
  text-decoration: none;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--peach-100);
  color: var(--ink);
  cursor: pointer;
}
.nav__burger svg { width: 22px; height: 22px; }

.site-header > .container { position: relative; }
.mobile-menu {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% + 8px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 10px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.mobile-menu ul { margin-bottom: 12px; }
.mobile-menu li + li { border-top: 1.5px dashed var(--line); }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 6px;
  font: 700 1.3rem var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a span { font: 700 1.1rem var(--font-hand); color: var(--orange-ink); width: 22px; }
.mm-enter { transition: opacity .2s ease, transform .3s var(--ease); }
.mm-leave { transition: opacity .15s ease, transform .15s ease; }
.mm-from { opacity: 0; transform: translateY(-8px); }
.mm-to { opacity: 1; transform: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  margin-top: -78px;            /* фон hero уходит под прозрачную шапку */
  padding-top: 78px;
  padding-bottom: var(--sheet-r);
  background: var(--hero);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  align-items: end;
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(24px, 3.5vw, 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero__badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--lav-200);
  color: var(--ink);
  font: 600 .875rem/1.35 var(--font-display);
  box-shadow: 4px 4px 0 var(--lav);
  rotate: -3deg;
}
.hero__title {
  margin: 26px 0 22px;
  font: 800 var(--fs-hero)/.98 var(--font-display);
  letter-spacing: -.04em;
  color: var(--ink);
}
.hero__accent { position: relative; display: inline-block; }
.hero__squiggle {
  position: absolute;
  left: 2%;
  bottom: -.14em;
  width: 92%;
  height: .2em;
  color: var(--orange);
  overflow: visible;
}
.hero__sparks {
  position: absolute;
  top: -.28em;
  right: -.52em;
  width: .5em;
  height: .5em;
  color: var(--orange);
}
.hero__lead {
  max-width: 33rem;
  font-size: var(--fs-lead);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  margin-top: 34px;
}
.play-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 1rem var(--font-display);
  color: var(--ink);
  text-decoration: none;
}
.play-link__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.play-link__icon svg { width: 18px; height: 18px; margin-left: 2px; }
.play-link:hover .play-link__icon { background: var(--orange); color: var(--ink); transform: scale(1.06); }
.play-link__arrow {
  position: absolute;
  right: -78px;
  top: -30px;
  width: 66px;
  height: 44px;
  color: var(--ink);
  opacity: .85;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin-top: 40px;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--muted);
}
.hero__facts li { max-width: 10.5rem; padding-right: 20px; }
.hero__facts li + li { padding-left: 20px; border-left: 1.5px dashed var(--line-2); }
.hero__facts b {
  display: block;
  margin-bottom: 2px;
  font: 700 1.3rem var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero__visual {
  position: relative;
  align-self: end;
  /* картинка уходит до правого края окна */
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2)));
  margin-left: clamp(-130px, -8vw, -40px);
}
.hero__img {
  width: 100%;
  /* растворяем левый и верхний край, чтобы у картинки не было видимой рамки на фоне hero */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%), linear-gradient(to bottom, transparent 0, #000 4%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 8%), linear-gradient(to bottom, transparent 0, #000 4%);
  mask-composite: intersect;
}

/* ---------- 7. Почему Kidgaro ---------- */
#about { z-index: 1; }
.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.perk {
  --accent: var(--orange);
  --tile: var(--peach-100);
  --tilt: -6deg;
  position: relative;
  padding: 30px 24px 30px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s;
}
.perk::before {
  content: '';
  position: absolute;
  left: 24px;
  top: -1.5px;
  width: 54px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
}
.perk:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.perk--lav { --accent: var(--lav); --tile: var(--lav-100); --tilt: 5deg; }
.perk--orange { --accent: var(--peach); --tile: #FDE3D1; --tilt: -3deg; }
.perk--cream { --accent: var(--ink); --tile: var(--cream); --tilt: 4deg; }
.perk__num {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--peach);
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: var(--tile);
  rotate: var(--tilt);
  transition: rotate .5s var(--ease);
}
.perk__icon svg { width: 54px; height: 54px; }
.perk:hover .perk__icon { rotate: 0deg; }
.perk__title {
  margin-bottom: 10px;
  font: 700 var(--fs-h3)/1.2 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink);
}
.perk__text { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 8. Курсы ---------- */
#programs { z-index: 2; }
.courses-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.paper-note {
  position: relative;
  max-width: 580px;
  padding: 28px 34px 30px 50px;
  border-radius: 6px 24px 24px 6px;
  background: var(--paper);
  box-shadow: 0 22px 40px -28px rgba(13, 8, 41, .55);
  rotate: -1.5deg;
}
.paper-note::before {               /* дырочки блокнотной пружины */
  content: '';
  position: absolute;
  left: 16px; top: 20px; bottom: 20px;
  width: 12px;
  background: radial-gradient(circle, var(--lav-300) 4.5px, transparent 5px) center top / 12px 24px repeat-y;
}
.paper-note p { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.courses-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.courses-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1.5px dashed rgba(13, 8, 41, .3);
  border-radius: 999px;
  font: 600 .875rem var(--font-display);
  color: var(--ink);
}
.courses-facts li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.course__art { position: relative; padding: 12px 12px 20px; background: var(--lav-100); }
.course__art .course__chips { margin: 0 0 0 18px; }
.course--js .course__art { background: var(--peach-100); }
.course__svg { width: 100%; height: auto; transition: transform .6s var(--ease); }
.course:hover .course__svg { transform: scale(1.025) rotate(-.5deg); }
.course__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px clamp(22px, 3vw, 34px) 30px;
}
.course__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course__title {
  margin: 16px 0 10px;
  font: 800 clamp(1.45rem, 1.15rem + 1vw, 1.95rem)/1.1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
}
.course__text { margin-bottom: 20px; color: var(--muted); }
.course--py .ticks { --tick-bg: var(--lav-200); }
.course__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: auto;
  padding-top: 26px;
}
.course .ticks { padding-bottom: 26px; border-bottom: 1.5px dashed var(--line-2); }

/* ИИ-практикум: курс в разработке, на всю ширину под двумя курсами */
.course--ai {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.course--ai .course__art {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 36px);
  background: var(--ink);
}
.course--ai .course__svg { max-width: 460px; }
.course--ai .course__title { margin-top: 16px; }
.course--ai .ticks { --tick-bg: var(--peach-200); }
.course__soon { margin: 0; font-size: .875rem; color: var(--muted); }

.unsure {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 24px;
  padding: 22px 22px 22px 32px;
  border-radius: 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .76);
}
.unsure__text { flex: 1 1 320px; font-size: var(--fs-sm); }
.unsure__text b {
  display: block;
  margin-bottom: 2px;
  font: 700 1.2rem var(--font-display);
  color: #fff;
}
.unsure__arrow { order: 2; width: 58px; height: 29px; color: var(--orange); flex: none; }
.unsure .btn { order: 3; }

/* ---------- 8a. Работа с ИИ ---------- */
#ai { z-index: 2; }
.ai {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.ai__lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 36rem; }
.ai__stance {
  max-width: 36rem;
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: var(--peach-100);
  font: 600 1.02rem/1.5 var(--font-display);
  color: var(--ink);
}
.ai__chat {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 30px;
  background: var(--lav-200);
  rotate: 1.5deg;
}
.ai-msg {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.ai-msg p { margin: 0; }
.ai-msg--kid { justify-self: end; border-bottom-right-radius: 6px; }
.ai-msg--bot { justify-self: start; border-bottom-left-radius: 6px; background: var(--ink); color: rgba(255, 255, 255, .88); }
.ai-msg__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font: 600 .75rem var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-msg--bot .ai-msg__who { color: var(--peach); }
.ai-msg__spark svg { display: block; width: 14px; height: 14px; color: var(--orange); }
.ai-msg code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--paper);
  font: 500 .8125rem var(--font-mono);
  color: var(--ink);
}
.ai-msg code b { font-weight: 400; color: var(--orange-ink); }
.ai-msg--bot code { background: rgba(255, 255, 255, .1); color: var(--peach-200); }
.ai__note {
  position: absolute;
  left: -34px;
  bottom: -46px;
  margin: 0;
  font-size: var(--fs-hand);
  line-height: 1;
  color: var(--ink);
  rotate: -7deg;
}

/* ---------- 9. Занятие онлайн (платформа) ---------- */
.lesson {
  position: relative;
  z-index: 3;
  padding-top: var(--section-y);
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
}
.lesson.sheet { padding-bottom: 0; }
.lesson__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
}
.lesson__copy { position: relative; z-index: 4; padding-bottom: clamp(48px, 6vw, 88px); }
.lesson__lead { margin-top: 20px; font-size: var(--fs-lead); color: rgba(255, 255, 255, .78); }
.lesson__points { display: grid; gap: 14px; margin: 28px 0 34px; }
.lesson__points li { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .88); }
.lesson__point-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: rgba(143, 160, 215, .18);
  color: var(--peach);
}
.lesson__point-ico svg { width: 20px; height: 20px; }

.lesson__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 300px;
}
.lesson__note {
  position: absolute;
  right: -2%;
  top: 2%;
  z-index: 4;
  font-size: var(--fs-hand);
  line-height: 1;
  color: var(--peach);
  rotate: -8deg;
}

.laptop {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 68%;
}
.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: clamp(7px, 1vw, 12px) solid #100C2C;
  border-radius: 18px 18px 6px 6px;
  background: #100C2C;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.laptop__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.laptop__screen img.is-active { opacity: 1; }
.laptop__label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 8, 41, .78);
  color: #fff;
  font: 500 .6875rem var(--font-mono);
}
.laptop__controls {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(13, 8, 41, .78);
}
.laptop__base {
  position: relative;
  height: clamp(10px, 1.3vw, 15px);
  margin: 0 -7%;
  border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px;
  background: #C8CDE6;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 10px 18px -8px rgba(0, 0, 0, .5);
}
.laptop__base::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 40%;
  border-radius: 0 0 8px 8px;
  background: #A9AFCF;
  translate: -50% 0;
}
.dots { display: flex; align-items: center; gap: 5px; padding-inline: 2px; }
.dots__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .2s;
}
.dots__dot.is-active { width: 18px; background: var(--orange); }

.code-card {
  position: absolute;
  left: 36%;
  top: 0;
  z-index: 3;
  width: 47%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .75);
  rotate: 2.5deg;
}
.code-card__bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-card__dots { display: inline-flex; gap: 5px; margin: 0 8px 12px 2px; }
.code-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.code-card__dots i:nth-child(2) { background: var(--peach); }
.code-card__dots i:nth-child(3) { background: var(--lav); }
.code-card__bar button {
  padding: 7px 11px;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  font: 500 .72rem var(--font-mono);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.code-card__bar button:hover { color: rgba(255, 255, 255, .8); }
.code-card__bar button.is-active { background: #1B1640; color: #fff; }
.code-card__body {
  min-height: 136px;
  padding: 14px 16px;
  overflow-x: auto;
  background: #1B1640;
  color: rgba(255, 255, 255, .92);
  font: 400 clamp(10px, .88vw, 12.5px)/1.75 var(--font-mono);
}
.code-line { white-space: pre; }
.code-line--in { padding-left: 2ch; }
.t-kw { color: #B9A6FF; }
.t-fn { color: #8FD3FF; }
.t-var { color: var(--peach); }
.t-str { color: #FFC98E; }
.t-com { color: rgba(255, 255, 255, .42); }
.t-ok { color: #7EE2A8; }
.tab-active .code-line { animation: codeIn .5s var(--ease) both; }
.tab-active .code-line:nth-child(2) { animation-delay: .07s; }
.tab-active .code-line:nth-child(3) { animation-delay: .14s; }
.tab-active .code-line:nth-child(4) { animation-delay: .21s; }
.tab-active .code-line:nth-child(5) { animation-delay: .28s; }
@keyframes codeIn { from { opacity: 0; transform: translateY(6px); } }
.code-card__term {
  padding: 9px 16px;
  color: rgba(255, 255, 255, .55);
  font: 400 .72rem var(--font-mono);
}
.blink-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: rgba(255, 255, 255, .55);
}

.lesson__roo {
  position: absolute;
  left: 63%;
  bottom: 0;
  z-index: 1;
  width: 66%;
  max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
}
.lesson__desk {
  position: relative;
  z-index: 2;
  height: calc(22px + var(--sheet-r));
  background: var(--desk);
  box-shadow: inset 0 4px 0 var(--desk-top);
}
.lesson__doodle { position: absolute; z-index: 1; color: var(--orange); }
.lesson__doodle--star { right: 5%; top: 9%; width: 46px; height: 46px; rotate: 12deg; }
.lesson__doodle--sparks { left: 44%; top: 12%; width: 34px; height: 34px; color: var(--peach); rotate: -20deg; }

/* ---------- 10. Преподаватели ---------- */
#teachers { z-index: 4; }
.teachers-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: 32px 56px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.diff-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  font: 400 .8rem/1.5 var(--font-mono);
  box-shadow: var(--shadow-md);
  rotate: 1.5deg;
}
.diff-card__bar {
  display: flex;
  align-items: center;
  padding: 12px 16px 0;
  color: rgba(255, 255, 255, .45);
  font-size: .72rem;
}
.diff-card__bar .code-card__dots { margin-bottom: 0; }
.diff-card ul { padding: 12px 0 14px; }
.diff-card li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 4px 0;
  padding: 7px 16px;
  border-left: 3px solid var(--orange);
  background: rgba(241, 132, 59, .07);
}
.diff-card code { font: inherit; color: var(--peach-200); }
.diff-card__plus { color: var(--orange); font-weight: 700; }
.diff-card__com { flex-basis: 100%; padding-left: 20px; color: rgba(255, 255, 255, .45); }

.teachers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
}
.teacher {
  --tilt: -2deg;
  padding: 14px 14px 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(13, 8, 41, .04), 0 24px 44px -28px rgba(13, 8, 41, .5);
  rotate: var(--tilt);
  transition: rotate .5s var(--ease), transform .5s var(--ease);
}
.teacher--b { --tilt: 1.6deg; margin-top: 40px; }
.teacher--c { --tilt: -1deg; margin-top: 12px; }
.teacher:hover { rotate: 0deg; transform: translateY(-6px); }
.teacher__photo { position: relative; aspect-ratio: 1 / 1.05; }
.teacher__photo img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 22%;
  background: var(--peach-100);
}
.teacher__tape {
  position: absolute;
  left: 50%;
  top: -24px;
  z-index: 2;
  width: 104px;
  height: 30px;
  background: rgba(244, 194, 154, .78);
  translate: -50% 0;
  rotate: -4deg;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px));
  mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px));
}
.teacher--b .teacher__tape { background: rgba(143, 160, 215, .7); rotate: 5deg; }
.teacher__tag { position: absolute; left: 12px; bottom: 12px; }
.teacher__name {
  margin: 20px 8px 0;
  font: 700 1.3rem/1.2 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ink);
}
.teacher__exp { margin: 2px 8px 14px; font: 700 1.3rem var(--font-hand); color: var(--orange-ink); }
.teacher__quote {
  margin: 0 8px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- 11. Как проходит обучение ---------- */
#process { z-index: 5; }
.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px;
  margin: 40px 0 clamp(48px, 6vw, 72px);
}
.route__step {
  position: relative;
  padding: 0 24px 28px;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: #fff;
}
.route__step:nth-child(even) { margin-top: 36px; }
.route__step:not(:last-child)::after {      /* рукописная стрелка к следующему шагу */
  content: '';
  position: absolute;
  right: -50px;
  top: 46px;
  width: 42px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M3 18c14-6 30-9 50-6M44 4.5 54 12l-10.5 7' fill='none' stroke='%230D0829' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.route__step:nth-child(even):not(:last-child)::after { top: 10px; rotate: -14deg; }
.route__step:nth-child(odd):not(:last-child)::after { top: 64px; rotate: 14deg; }
.route__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 18px;
  border-radius: 50%;
  font: 800 1.5rem var(--font-display);
  box-shadow: 0 0 0 7px var(--paper);
}
.route__num--orange { background: var(--orange); color: var(--ink); }
.route__num--lav { background: var(--lav); color: var(--ink); }
.route__num--ink { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 7px var(--paper); }
.route__title {
  margin-bottom: 10px;
  font: 700 1.12rem/1.3 var(--font-display);
  color: var(--ink);
}
.route__text { font-size: var(--fs-sm); color: var(--muted); }
.route__step--goal { border-color: transparent; background: var(--ink); }
.route__step--goal .route__title { color: #fff; }
.route__step--goal .route__text { color: rgba(255, 255, 255, .72); }
.route__roo {
  position: absolute;
  right: 14px;
  top: -86px;
  width: 84px;
  height: auto;
}

/* ---------- 12. Отзывы ---------- */
#testimonials { z-index: 6; }
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.reviews-nav { display: flex; gap: 10px; }
.reviews-viewport {
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.reviews {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 30px var(--gutter) 30px 0;
  margin-top: -30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline-offset: -3px; }
.review {
  position: relative;
  display: flex;
  flex: 0 0 clamp(280px, 80vw, 400px);
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}
.review:nth-child(even) { margin-top: 26px; }
.review::before {
  content: '“';
  position: absolute;
  right: 22px;
  top: 4px;
  font: 900 5rem/1 var(--font-display);
  color: var(--peach);
}
.review--lav { background: var(--lav-100); }
.review--lav::before { color: var(--lav-300); }
.review--ink { background: var(--ink); }
.review--ink::before { color: rgba(244, 194, 154, .35); }
.review--ink .review__text { color: rgba(255, 255, 255, .85); }
.review--ink .review__who b { color: #fff; }
.review--ink .review__who small { color: rgba(255, 255, 255, .6); }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who img, .review__mono {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach-100);
}
.review__mono {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  font: 800 1rem var(--font-display);
}
.review__who b { display: block; font: 700 1.02rem var(--font-display); color: var(--ink); }
.review__who small { font-size: var(--fs-xs); color: var(--muted); }
.review__stars { display: flex; gap: 2px; color: var(--orange); }
.review__stars svg { width: 18px; height: 18px; }
.review__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
}
.review__text.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.review__more {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  font: 600 .875rem var(--font-display);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.reviews-progress {
  max-width: 220px;
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(13, 8, 41, .12);
}
.reviews-progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: 4px;
  background: var(--ink);
  transition: transform .2s linear;
}

/* ---------- 13. Цены ---------- */
#pricing { z-index: 7; }
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.plan {
  --notch: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan__name { font: 600 .9rem var(--font-display); color: var(--muted); }
.plan__count { margin: 4px 0 18px; font: 800 1.35rem/1.2 var(--font-display); color: var(--ink); }
.plan__price {
  margin-bottom: 6px;
  font: 800 clamp(2rem, 1.6rem + 1vw, 2.55rem)/1 var(--font-display);
  letter-spacing: -.035em;
  color: var(--ink);
}
.plan__per, .plan__desc { font-size: .875rem; color: var(--muted); }
.plan__cut {               /* линия отрыва «билета» с вырезами по краям */
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 2px dashed var(--line-2);
}
.plan__cut::before, .plan__cut::after {
  content: '';
  position: absolute;
  bottom: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--notch);
}
.plan__cut::before { left: -37px; }
.plan__cut::after { right: -37px; }
.plan .ticks { flex: 1; margin-bottom: 26px; }
.plan--featured {
  background: var(--ink);
  transform: translateY(-14px);
}
.plan--featured:hover { transform: translateY(-20px); }
.plan--featured .plan__name, .plan--featured .plan__per { color: rgba(255, 255, 255, .62); }
.plan--featured .plan__count, .plan--featured .plan__price { color: #fff; }
.plan--featured .plan__cut { border-color: rgba(255, 255, 255, .18); }
.plan--featured .ticks li { color: rgba(255, 255, 255, .85); }
.plan--featured .ticks { --tick-bg: var(--orange); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 700 .78rem var(--font-display);
  rotate: -3deg;
}
.plan--custom { background: var(--lav-200); box-shadow: none; }
.plan--custom .ticks { --tick-bg: #fff; }
.plan--custom .plan__desc { color: var(--ink-2); }

/* ---------- 13a. Запись на занятие (сам блок — в lead-block.css) ---------- */
#signup { z-index: 8; }
.section--signup { background: var(--lav-200); }

/* ---------- 14. FAQ ---------- */
#faq { z-index: 9; }
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}
.faq__aside { position: sticky; top: 110px; }
.ask-card {
  margin-top: 30px;
  padding: 24px;
  border-radius: 24px;
  background: var(--peach-100);
  rotate: -1.5deg;
}
.ask-card__title { font: 700 1.15rem var(--font-display); color: var(--ink); }
.ask-card__text { margin: 6px 0 16px; font-size: var(--fs-sm); color: var(--muted); }
.ask-card__links { display: flex; flex-wrap: wrap; gap: 10px; }

.qa { border-bottom: 1.5px solid var(--line-2); }
.qa:first-child { border-top: 1.5px solid var(--line-2); }
.qa h3 { margin: 0; font-size: inherit; }
.qa__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  font: 600 clamp(1rem, .95rem + .3vw, 1.15rem)/1.35 var(--font-display);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.qa__n { flex: none; width: 30px; font: 700 1.3rem var(--font-hand); color: var(--orange-ink); }
.qa__label { flex: 1; }
.qa__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--peach-100);
  transition: transform .4s var(--ease), background-color .2s;
}
.qa__ico svg { width: 18px; height: 18px; }
.qa__q:hover .qa__ico { background: var(--peach-200); }
.qa.is-open .qa__ico { background: var(--orange); transform: rotate(135deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.acc-body.open { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 58px 24px 46px; color: var(--muted); }

/* ---------- 15. Финальный CTA ---------- */
.final { position: relative; z-index: 10; padding-bottom: var(--section-y); }
.final__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: clamp(30px, 4vw, 48px);
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
.final__copy { position: relative; z-index: 2; }
.final__title { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem); }
.final__text { max-width: 33rem; margin: 18px 0 32px; font-size: var(--fs-lead); }
.final__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.final__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.final__blob {
  position: absolute;
  width: min(330px, 90%);
  aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: var(--lav);
  rotate: -12deg;
}
.final__roo {
  position: relative;
  width: min(280px, 78%);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .3));
}
.final__note {
  position: absolute;
  left: -16%;
  top: -6%;
  z-index: 2;
  font-size: var(--fs-hand);
  line-height: 1;
  color: var(--peach);
  rotate: -9deg;
}
.final__arrow {
  position: absolute;
  left: -12%;
  top: 20%;
  z-index: 2;
  width: 70px;
  height: 46px;
  color: var(--peach);
  transform: scaleX(-1) rotate(28deg);
}
.final__doodle { position: absolute; color: var(--orange); }
.final__doodle--star { left: 3.5%; top: 9%; width: 30px; height: 30px; rotate: -12deg; }
.final__doodle--plane { right: 6%; top: 8%; width: 46px; height: 40px; color: var(--peach); rotate: 8deg; }

/* ---------- 16. Футер ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--hero);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1.5px solid var(--line-2);
}
.footer__logo { display: inline-block; border-radius: 8px; }
.footer__logo img { width: auto; height: 40px; }
.footer__brand p { max-width: 300px; margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.footer__title {
  margin-bottom: 16px;
  font: 700 .78rem var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 4px; }
.socials a { display: inline-flex; align-items: center; gap: 12px; }
.socials__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color .2s, box-shadow .2s;
}
.socials__ico svg { width: 18px; height: 18px; }
.socials__ico--vk { font: 800 .78rem var(--font-display); letter-spacing: -.02em; }
.socials a:hover .socials__ico { background: var(--orange); box-shadow: none; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 0;
  font-size: .875rem;
  color: var(--muted);
}
.footer__hand { font-size: 1.45rem; color: var(--orange-ink); }
.footer__giant {
  margin: 8px 0 0;
  font: 900 clamp(5rem, 23vw, 21rem)/.78 var(--font-display);
  letter-spacing: -.065em;
  text-align: center;
  color: var(--peach-200);
  user-select: none;
  translate: 0 14%;
}

/* ---------- 17. Плашка записи ---------- */
.enroll-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: rgba(255, 255, 255, .88);
  font: 500 .875rem var(--font-display);
  box-shadow: 0 20px 40px -16px rgba(13, 8, 41, .65);
  translate: -50% 0;
  transition: transform .5s var(--ease), opacity .3s ease;
}
body:not(.past-hero) .enroll-bar { transform: translateY(170%); opacity: 0; pointer-events: none; }
.enroll-bar__status { display: inline-flex; align-items: center; gap: 9px; margin-right: 8px; white-space: nowrap; }
.enroll-bar__extra { color: rgba(255, 255, 255, .55); }
.enroll-bar__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7EE2A8;
  box-shadow: 0 0 0 4px rgba(126, 226, 168, .18);
}
.enroll-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font: 700 .9rem var(--font-display);
  cursor: pointer;
  transition: background-color .2s;
}
.enroll-bar__cta:hover { background: var(--orange-hover); }
.enroll-bar__cta svg { width: 16px; height: 16px; }
.enroll-bar__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.enroll-bar__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.enroll-bar__close svg { width: 16px; height: 16px; }

/* ---------- 18. Модалка записи ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 41, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 32px 28px;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(13, 8, 41, .6);
  outline: none;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--peach-100);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s;
}
.modal__close:hover { background: var(--peach-200); }
.modal__close svg { width: 18px; height: 18px; }
.modal__roo { position: absolute; top: 18px; right: 70px; width: 52px; height: auto; }
.modal__eyebrow { font: 700 1.35rem var(--font-hand); color: var(--orange-ink); }
.modal__title {
  margin: 2px 0 8px;
  padding-right: 96px;
  font: 800 1.75rem/1.1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal__done .modal__title { padding-right: 0; }
.modal__sub { margin-bottom: 22px; font-size: var(--fs-sm); color: var(--muted); }

.form { display: grid; gap: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font: 600 .8125rem var(--font-display);
  color: var(--ink-2);
}
.field input, .field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid rgba(13, 8, 41, .16);
  border-radius: 14px;
  background: #fff;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230D0829' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input::placeholder { color: #9A95AE; }
.field input:hover, .field select:hover { border-color: rgba(13, 8, 41, .3); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(241, 132, 59, .3);
}
.field input:user-invalid { border-color: #C2410C; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
.form a, .cookie a { color: var(--orange-ink); text-underline-offset: 3px; }
.form__error { font-size: .875rem; text-align: center; color: #B42318; }
.form__legal { font-size: .75rem; text-align: center; color: var(--muted); }
.modal__bots {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line-2);
  text-align: center;
}
.modal__bots p { margin-bottom: 12px; font-size: .8125rem; color: var(--muted); }
.modal__bots-links { display: flex; justify-content: center; gap: 10px; }
.modal__done { display: grid; gap: 10px; padding-top: 18px; text-align: center; }
.modal__done .modal__sub { margin-bottom: 14px; }
.modal__done-ico {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
}
.modal__done-ico svg { width: 34px; height: 34px; }
.modal-enter { transition: opacity .25s ease; }
.modal-enter .modal__card { transition: transform .45s var(--ease); }
.modal-leave { transition: opacity .18s ease; }
.modal-from { opacity: 0; }
.modal-from .modal__card { transform: translateY(28px) scale(.98); }
.modal-to { opacity: 1; }

/* ---------- 19. Cookie-баннер ---------- */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  box-shadow: 0 24px 50px -20px rgba(13, 8, 41, .6);
}
.cookie__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cookie__text { flex: 1 1 360px; font-size: .8125rem; }
.cookie__title { margin-bottom: 2px; font: 700 .95rem var(--font-display); color: #fff; }
.cookie a { color: var(--peach); }
.cookie__actions { display: flex; gap: 10px; }

/* ---------- 20. Появление и движение ---------- */
[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * .09s + .05s); }
.rise--fade { animation-name: riseFade; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes riseFade { from { opacity: 0; translate: 24px 0; } }

[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- 21. Адаптив ---------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
  .hero__facts li { max-width: 9.5rem; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }
  .route__step:nth-child(even) { margin-top: 0; }
  .route__step:nth-child(2)::after { display: none; }
  .route__step:nth-child(odd):not(:last-child)::after { top: 46px; rotate: 0deg; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .lesson__grid { grid-template-columns: minmax(0, 1fr); }
  .lesson__copy { max-width: 640px; padding-bottom: 0; }
  .lesson__stage { margin-top: 24px; margin-right: 6%; }
  .lesson__note { right: -6%; }
}

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  /* на узких экранах иллюстрация встаёт сразу после кнопок, факты — под ней */
  .hero__copy { display: contents; }
  .hero__badge { justify-self: start; margin-top: clamp(20px, 4vw, 40px); }
  .hero__title, .hero__lead, .hero__actions { max-width: 680px; }
  .hero__visual { order: 5; margin-top: 8px; }
  .hero__facts { order: 6; margin: 4px 0 8px; }
  .hero__visual {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .hero__img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  }
  .play-link__arrow { display: none; }
  .teachers-head { grid-template-columns: minmax(0, 1fr); }
  .diff-card { max-width: 560px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__aside { position: static; }
  .final__card { grid-template-columns: minmax(0, 1fr); }
  .final__art { min-height: 260px; margin-top: 8px; }
  .final__note { left: 4%; top: -2%; }
  .final__arrow { left: 8%; top: 26%; }
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
}
@media (min-width: 921px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 860px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .course--ai { grid-template-columns: minmax(0, 1fr); }
  .ai__chat { margin-bottom: 40px; }
  .ai__note { left: 8px; }
  .courses { grid-template-columns: minmax(0, 1fr); }
  .teachers {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 72%);
    margin-inline: calc(-1 * var(--gutter));
    padding: 34px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .teachers::-webkit-scrollbar { display: none; }
  .teacher { scroll-snap-align: center; }
  .teacher--b { margin-top: 18px; }
  .teacher--c { margin-top: 6px; }
}

@media (max-width: 720px) {
  .hero__img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 44% 100%; }
  .hero__facts li { max-width: none; flex: 1 1 0; padding-right: 12px; }
  .hero__facts li + li { padding-left: 12px; }
  .hero__facts b { font-size: 1.1rem; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .paper-note { padding: 24px 22px 26px 44px; }
  .route { grid-template-columns: minmax(0, 1fr); row-gap: 60px; max-width: 520px; }
  .route .route__step:not(:last-child)::after,
  .route .route__step:nth-child(2)::after {
    display: block;
    right: auto;
    left: 40px;
    top: auto;
    bottom: -48px;
    rotate: 90deg;
  }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .acc-inner p { padding: 0 8px 22px 46px; }

  /* сцена «занятие»: вертикальная раскладка */
  .lesson__stage {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 0;
    margin-right: 0;
  }
  .lesson__note { display: none; }
  .code-card { position: relative; left: auto; top: auto; width: 94%; rotate: -1.5deg; align-self: flex-start; }
  .code-card__body { font-size: clamp(10px, 2.9vw, 12.5px); }
  .laptop { position: relative; width: 100%; margin-top: 22px; }
  .lesson__roo {
    position: relative;
    left: auto;
    width: 112%;
    margin: -6% calc(-1 * var(--gutter)) 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 12%);
    mask-composite: intersect;
  }
  .lesson__desk { height: calc(16px + var(--sheet-r)); }
  .lesson__doodle--sparks { display: none; }
  .lesson__doodle--star { top: 22px; right: 22px; width: 34px; height: 34px; }

  .enroll-bar { left: 12px; right: 12px; translate: none; justify-content: space-between; }
  .enroll-bar__extra { display: none; }
}

@media (max-width: 480px) {
  .btn--lg { font-size: 1rem; padding-inline: 1.25em; }
  .nav { padding-left: 16px; height: 60px; }
  .nav__logo img { height: 30px; }
  .hero { margin-top: -72px; padding-top: 72px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 12px 0; }
  .hero__facts li { font-size: .8125rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .modal { align-items: flex-end; padding: 0; }
  .modal__card {
    max-height: 92dvh;
    padding: 28px 20px 24px;
    border-radius: 28px 28px 0 0;
  }
  .modal__roo { right: 66px; width: 44px; }
  .modal-from .modal__card { transform: translateY(100%); }
  .unsure { padding: 22px; }
  .unsure__arrow { display: none; }
  .unsure .btn { width: 100%; }
  .final__actions .btn { width: 100%; }
  .reviews-nav .round-btn { width: 46px; height: 46px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; }
}

@media (max-width: 359px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .nav__cta { display: none; }
  .hero__facts { flex-direction: column; }
  .hero__facts li, .hero__facts li + li { padding: 0; border: 0; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker__track { animation: none; }
  [data-reveal] { opacity: 1 !important; translate: none !important; }
  [data-parallax] { transform: none !important; }
}
