/* АйЗбука — лендинг (/). Тёплый светлый мир героев; цвета акцента — из логотипа. */
:root {
  --paper: #fff9f2;
  --paper-2: #fdf0e6;
  --mint: #e3f5ee;
  --ink: #2c2a4a;
  --ink-2: #4a4766;
  --muted: #6d6a8a;
  --line: rgba(44, 42, 74, .10);
  --berry: #b01f73;
  --sky: #2c8fd6;
  --cyan: #22b8dd;
  --coral: #f5475c;
  --orange: #ff7a3d;
  --grad: linear-gradient(110deg, #b01f73 0%, #2c8fd6 38%, #22b8dd 55%, #f5475c 80%, #ff7a3d 100%);
  --grad-btn: linear-gradient(110deg, #f5475c 0%, #ff7a3d 100%);
  --shadow-s: 0 2px 6px rgba(44, 42, 74, .06), 0 8px 24px rgba(44, 42, 74, .08);
  --shadow-l: 0 10px 30px rgba(44, 42, 74, .10), 0 30px 80px rgba(176, 31, 115, .10);
  --r: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font: 800 17px/1 var(--body); cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-main { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px rgba(245, 71, 92, .32); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 71, 92, .40); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px rgba(44, 42, 74, .25); }
.btn svg { width: 20px; height: 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--berry);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }

/* ---------- шапка ---------- */
.top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s ease, box-shadow .3s ease;
}
.top.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(44, 42, 74, .06); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img:first-child { width: 42px; height: auto; }
.logo img:last-child { width: 132px; height: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font-weight: 800; font-size: 16px; color: var(--ink); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.top .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: calc(120px + env(safe-area-inset-top, 0px)) 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(34, 184, 221, .16), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(245, 71, 92, .12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; margin: 18px 0 22px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(18px, 3vw, 40px); margin-top: 44px; justify-content: start; }
.hero-stats b { display: block; font: 800 clamp(26px, 2.6vw, 34px)/1 var(--display); }
.hero-stats span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 12em; }

.stage { position: relative; perspective: 1200px; }
.frame {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2);
  box-shadow: var(--shadow-l); transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.chip {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-s);
  font: 800 28px/1 var(--display); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.chip.c1 { left: -22px; top: 12%; color: var(--coral); }
.chip.c2 { right: -18px; top: 38%; color: var(--sky); width: 56px; height: 56px; font-size: 24px; }
.chip.c3 { left: 14%; bottom: -24px; color: var(--berry); }
.chip.c4 { right: 12%; top: -22px; width: 52px; height: 52px; font-size: 22px; color: var(--orange); }
.bubble {
  position: absolute; z-index: 3; right: 12%; bottom: -30px; max-width: 290px;
  background: #fff; border-radius: 20px 20px 20px 6px; padding: 14px 18px; box-shadow: var(--shadow-s);
  font-weight: 700; font-size: 15px; line-height: 1.4;
}
.bubble small { display: block; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }

/* ---------- бегущая строка тем ---------- */
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 18px 11px; white-space: nowrap; font-weight: 700; color: var(--ink-2); }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- общие секции ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 16px; }
.sec-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- герои ---------- */
.heroes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.hero-card {
  position: relative; display: grid; grid-template-columns: .9fr 1fr; align-items: stretch;
  background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s);
}
.hero-card .pic { background: var(--paper-2); }
.hero-card .pic img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center 12%; }
.hero-card .txt { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.hero-card h3 { font-size: clamp(26px, 2.6vw, 34px); }
.hero-card .role { align-self: flex-start; margin: 12px 0 18px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero-card.aiza .role { color: #1d6fa8; background: #e4f2fb; }
.hero-card.buka .role { color: #a2335a; background: #fbe8ef; }
.hero-card p { color: var(--ink-2); font-size: 17px; }
.hero-card .tag { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); }
.guest { display: table; margin: 28px auto 0; padding: 12px 22px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); color: var(--ink-2); font-weight: 700; font-size: 16px; }
#heroes { padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- как проходит занятие: кадр + шаги ---------- */
.story { background: linear-gradient(180deg, var(--paper) 0%, var(--mint) 18%, var(--mint) 82%, var(--paper) 100%); }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.reel { position: sticky; top: 110px; }
.reel .frame { aspect-ratio: 16 / 11; }
.reel .frame img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.2s ease; }
.reel .frame img.on { opacity: 1; transform: scale(1); }
.reel-bar { display: flex; gap: 8px; margin-top: 20px; }
.reel-bar i { flex: 1; height: 6px; border-radius: 4px; background: rgba(44, 42, 74, .12); overflow: hidden; }
.reel-bar i.on { background: var(--grad); }
.reel-cap { margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 12vh, 160px); padding-block: 10vh 20vh; }
.step { opacity: .5; transition: opacity .4s ease; }
.step.on { opacity: 1; }
.step .num { font: 800 15px/1 var(--display); color: var(--berry); letter-spacing: .06em; }
.step h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 14px 0 14px; }
.step p { font-size: 18px; color: var(--ink-2); }
.step .inline-pic { display: none; }
.report {
  margin-top: clamp(40px, 6vw, 64px); display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 26px; padding: 30px 36px; box-shadow: var(--shadow-s);
}
.report svg { flex: none; width: 44px; height: 44px; }
.report b { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); }
.report p { color: var(--ink-2); margin-top: 6px; font-size: 17px; }

/* ---------- голос ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip .split-pic { order: 2; }
.split-pic .frame img { aspect-ratio: 4 / 3; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks svg { width: 30px; height: 30px; }
.wave { display: inline-flex; gap: 4px; align-items: center; height: 26px; margin-left: 6px; vertical-align: middle; }
.wave i { width: 4px; border-radius: 4px; background: var(--grad); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 30%; animation-delay: -.9s; }
.wave i:nth-child(2) { height: 80%; animation-delay: -.6s; }
.wave i:nth-child(3) { height: 55%; animation-delay: -.3s; }
.wave i:nth-child(4) { height: 95%; }
.wave i:nth-child(5) { height: 40%; animation-delay: -.45s; }
@keyframes wave { 50% { transform: scaleY(.35); } }

/* ---------- цифры ---------- */
.numbers { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 48px); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); }
.numbers .sec-head h2 { color: #fff; }
.numbers .eyebrow { color: #ff9ab8; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 20px; overflow: hidden; }
.num-grid div { background: var(--ink); padding: 28px 24px 30px; }
.num-grid b { display: block; font: 800 clamp(40px, 5vw, 64px)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.25); }
.num-grid span { display: block; margin-top: 14px; font-weight: 800; }
.num-grid small { display: block; margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .62); line-height: 1.45; }

/* ---------- ступени ---------- */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.level { background: #fff; border-radius: 22px; padding: 26px 22px 24px; box-shadow: var(--shadow-s); position: relative; overflow: hidden; }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); background-size: 500% 100%; }
.level:nth-child(1)::before { background-position: 0 0; }
.level:nth-child(2)::before { background-position: 25% 0; }
.level:nth-child(3)::before { background-position: 50% 0; }
.level:nth-child(4)::before { background-position: 75% 0; }
.level:nth-child(5)::before { background-position: 100% 0; }
.level .lv { font: 700 11px/1 var(--display); color: var(--muted); letter-spacing: .12em; }
.level h3 { font-size: 19px; margin: 12px 0 14px; }
.level ul { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.level li::before { content: "·"; margin-right: 6px; color: var(--coral); font-weight: 800; }
.level .cnt { margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--muted); }

/* ---------- родителям ---------- */
.cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.pcard { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-s); }
.pcard svg { width: 36px; height: 36px; }
.pcard { padding: 24px; }
.pcard b { display: block; margin: 14px 0 6px; font-family: var(--display); font-size: 17px; font-weight: 700; }
.pcard p { margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- проект ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-col { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-s); }
.road-col h3 { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.road-col h3 i { width: 10px; height: 10px; border-radius: 50%; }
.road-col.done h3 i { background: #2fb872; }
.road-col.now h3 i { background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 122, 61, .2); }
.road-col.next h3 i { background: var(--sky); }
.road-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.road-col li { padding-left: 16px; position: relative; }
.road-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: rgba(44, 42, 74, .25); }

/* ---------- финал ---------- */
.final { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; border-radius: clamp(28px, 4vw, 48px); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-l); }
.final .over { padding: clamp(32px, 5vw, 64px); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.final h2 { font-size: clamp(30px, 3.8vw, 52px); }
.final p { margin-top: 14px; color: rgba(255, 255, 255, .78); font-size: 19px; }
.final .btn { align-self: flex-start; min-height: 64px; padding: 0 38px; font-size: 19px; }
.final img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 35%; }

footer { padding: 64px 0 calc(44px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; }
footer nav { justify-content: flex-end; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 700; color: var(--ink-2); }
footer nav a:hover { color: var(--ink); }
footer .copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- появление при прокрутке (без JS всё видно) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .levels { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .heroes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .final { grid-template-columns: 1fr; }
  .final img { min-height: 0; height: 360px; order: -1; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero .wrap, .split, .story-grid { grid-template-columns: 1fr; }
  .split.flip .split-pic { order: 0; }
  .hero { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .stage { margin-top: 8px; }
  .reel { display: none; }
  .steps { padding-block: 0; gap: 48px; }
  .step { opacity: 1; }
  .step .inline-pic { display: block; margin-top: 20px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-s); }
  .step .inline-pic img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
  .road { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 30px; }
  .chip.c2, .chip.c4 { display: none; }
  .bubble { position: relative; right: auto; bottom: auto; margin: 16px 0 0 auto; max-width: 290px; }
  .hero-card .pic img { min-height: 0; height: 340px; object-position: center 8%; }
  .final { grid-template-columns: 1fr; }
  .final img { min-height: 0; height: 280px; order: -1; }
  .final .btn { align-self: stretch; }
  footer .wrap { grid-template-columns: 1fr; }
  .top .wrap { height: 64px; }
  .logo img:last-child { width: 108px; }
  .top .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
  .hero-stats span { font-size: 13px; }
  .btn { width: 100%; }
  .top .btn { width: auto; }
  .chip { width: 48px; height: 48px; font-size: 20px; border-radius: 16px; }
  .chip.c1 { left: -8px; } .chip.c2 { right: -8px; }
  .hero-card { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .cards4 { grid-template-columns: 1fr; }
  .num-grid div { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .wave i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame, .chip, .reel .frame img { transition: none; }
}
