/* Умный школьник — общие стили страниц сайта (главная, заявка, тренажёры, игры, робототехника, родителям, вопросы).
   Раньше жили внутри главной; вынесены 05.11.2026, когда главная разделилась на отдельные страницы.
   После правки поднять ?v= в ссылках на этот файл: /assets/ кэшируется на неделю. */
:root {
  --bg: #EDF1F7; --card: #FFFFFF; --ink: #1F2A44; --ink-2: #53607C; --ink-3: #8390A8;
  --line: #D6DEEA; --line-2: #E6EBF3; --go: #23A866; --go-d: #1B8A53; --sun: #FFC93C; --sun-d: #D9A300;
  --blue: #3A6FE0; --red: #E5484D; --ok-bg: #E4F6EC; --info-bg: #E8F0FD; --warn-bg: #FFF4DB; --bad-bg: #FDECEC;
  --math: #3A6FE0; --russian: #E5484D; --world: #2BB673; --reading: #FF8C1A; --english: #9966FF;
  --radius: 24px; --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 10px 30px rgba(31, 42, 68, .08);
  --display: "Russo One", "Arial Black", "Segoe UI", sans-serif;
  --text: "Nunito", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --grid: rgba(58, 111, 224, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.robot { display: inline-block; flex: none; }
.robot svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- кнопки ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 17px/1.2 var(--text); text-decoration: none; cursor: pointer;
  border-radius: 16px; padding: 15px 24px; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn:focus-visible, .chip input:focus-visible + span, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(58, 111, 224, .45); outline-offset: 3px; }
.btn-go { color: #fff; background: linear-gradient(180deg, #2DC078, #1F9E5F); box-shadow: 0 4px 0 var(--go-d), 0 12px 24px rgba(35, 168, 102, .28); }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--go-d), 0 16px 28px rgba(35, 168, 102, .32); }
.btn-go:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--go-d), 0 6px 14px rgba(35, 168, 102, .25); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #b9c6da; box-shadow: 0 5px 0 #c9d4e4; }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.btn-small { font-size: 15px; padding: 9px 16px; border-radius: 12px; }
.btn-small.btn-go { box-shadow: 0 3px 0 var(--go-d); }
.btn-small.btn-ghost { box-shadow: 0 2px 0 var(--line); }
.btn .arr { font-size: 1.15em; line-height: 1; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line-2); transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 6px 24px rgba(31, 42, 68, .08); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo .robot { width: 40px; height: 42px; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 20px; display: block; line-height: 1.1; }
.logo small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 700; line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; padding: 0; }
.menu-btn i { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 4px auto; }

/* ---------- первый экран ---------- */
.hero { padding: 26px 0 0; }
.hero-card { position: relative; background-color: #fff; border-radius: 32px; box-shadow: var(--shadow); overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.hero-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 2px; background: rgba(229, 72, 77, .35); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 56px 44px 48px 78px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--info-bg); color: var(--blue); }
.tag.y { background: var(--warn-bg); color: #9a6b00; }
.tag.g { background: var(--ok-bg); color: var(--go-d); }
.hero h1 { font-size: 47px; }
.mark { background: linear-gradient(transparent 62%, rgba(255, 201, 60, .75) 62%, rgba(255, 201, 60, .75) 92%, transparent 92%); padding: 0 .06em; }
.lead { font-size: 20px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.fact { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15.5px; color: var(--ink-2); }
.fact img { width: 30px; height: 30px; }

.hero-art { position: relative; min-height: 480px; }
.phone { position: absolute; right: 24px; top: 0; width: 272px; padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: 0 30px 60px rgba(31, 42, 68, .25); transform: rotate(2.5deg); }
.phone img { border-radius: 31px; width: 100%; }
.float { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 26px rgba(31, 42, 68, .14); white-space: nowrap; }
.float img { width: 30px; height: 30px; }
.float-stars { left: 0; top: 46px; color: var(--go-d); }
.float-stars .st { color: var(--sun); font-size: 19px; letter-spacing: 1px; }
.float-topic { right: -12px; top: 268px; }
.float-topic small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 800; line-height: 1.1; }
.hero-vintik { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero-vintik .robot { width: 132px; height: 140px; }
.bubble { position: relative; margin: 0 0 6px 34px; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 15.5px; line-height: 1.25; padding: 10px 14px; border-radius: 16px 16px 16px 4px; max-width: 150px; box-shadow: 0 8px 18px rgba(217, 163, 0, .25); }
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 5.5s ease-in-out infinite; }
  .bob.b2 { animation-duration: 6.5s; animation-delay: -2s; }
  .bob.b3 { animation-duration: 7s; animation-delay: -4s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.stat > span { grid-column: 1 / -1; }
.stat img { width: 40px; height: 40px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; color: var(--c, var(--ink)); white-space: nowrap; }
.stat span { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }

/* ---------- бегущая строка ---------- */
.ticker { margin-top: 30px; background: var(--sun); overflow: hidden; border-top: 2px solid var(--sun-d); border-bottom: 2px solid var(--sun-d); }
.ticker-track { display: flex; width: max-content; }
.ticker-list { display: flex; flex: none; gap: 0; padding: 0; margin: 0; list-style: none; }
.ticker-list li { white-space: nowrap; padding: 13px 0; }
.ticker-list a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16.5px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; }
.ticker-list a:hover { text-decoration: underline; }
.ticker-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 70s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .ticker-track > .ticker-list[aria-hidden] { display: none; } .ticker-track { width: auto; } .ticker-list { flex-wrap: wrap; } }

/* ---------- секции ---------- */
section.block { padding: 84px 0 0; }
.kicker { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.block h2 { font-size: 40px; max-width: 20em; }
.sub { font-size: 19px; color: var(--ink-2); margin-top: 12px; max-width: 40em; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* как это работает */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; counter-reset: st; }
.step { position: relative; padding: 24px 22px 22px; }
.step::after { content: ""; position: absolute; top: 56px; right: -19px; width: 20px; border-top: 3px dashed #b9c6da; }
.step:last-child::after { display: none; }
.step-n { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 16px; color: #fff; background: var(--c); }
.step img { width: 64px; height: 64px; margin-bottom: 14px; }
.step h3 { font-family: var(--text); font-weight: 900; font-size: 20px; line-height: 1.25; }
.step p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.quote { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 14.5px; color: var(--ink); background: var(--warn-bg); border-radius: 10px; padding: 5px 10px; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.steps-cta p { color: var(--ink-2); font-weight: 700; }

/* заявка */
.ask { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 34px; align-items: start; }
.form-card { padding: 34px 34px 30px; position: relative; overflow: hidden; }
.form-card h3 { font-size: 26px; }
.form-card .hint { color: var(--ink-2); margin-top: 6px; }
.field { margin-top: 22px; }
.field > label, .field > .lbl { display: block; font-weight: 900; font-size: 16px; margin-bottom: 9px; }
.field .opt { color: var(--ink-3); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 15.5px; color: var(--ink-2); background: #fff; transition: border-color .15s, background-color .15s, color .15s; }
.chip span img { width: 24px; height: 24px; }
.chip:hover span { border-color: #b9c6da; color: var(--ink); }
.chip input:checked + span { border-color: var(--blue); background: var(--info-bg); color: var(--blue); }
textarea, input[type=text], input[type=email] { width: 100%; font: 600 17px/1.45 var(--text); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 128px; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(58, 111, 224, .14); }
.bad textarea, .bad input { border-color: var(--red); }
.err { color: var(--red); font-weight: 800; font-size: 14.5px; margin-top: 6px; display: none; }
.bad .err { display: block; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.examples button { font: 700 14px/1.2 var(--text); color: var(--ink-2); background: var(--bg); border: 1.5px dashed #b9c6da; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.examples button:hover { color: var(--ink); border-color: var(--blue); background: var(--info-bg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.two .field { margin-top: 22px; }
.who { margin-top: 22px; background: var(--ok-bg); color: var(--go-d); font-weight: 800; border-radius: 14px; padding: 12px 14px; display: none; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.send .btn { min-width: 230px; }
.consent { font-size: 13.5px; color: var(--ink-3); max-width: 30em; line-height: 1.4; }
.form-msg { margin-top: 14px; font-weight: 800; color: var(--red); min-height: 1px; }
.done { display: none; text-align: center; padding: 26px 6px 10px; }
.done img { width: 92px; height: 92px; margin: 0 auto 12px; }
.done h3 { font-size: 28px; }
.done p { color: var(--ink-2); margin: 10px auto 0; max-width: 28em; }
.done .cta { justify-content: center; }
.sent .form-body { display: none; }
.sent .done { display: block; }
.aside { padding: 28px 26px; background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.aside-head { display: flex; align-items: center; gap: 12px; }
.aside-head .robot { width: 70px; height: 74px; }
.aside-head b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.tips { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(31, 42, 68, .06); font-size: 16px; color: var(--ink-2); }
.tips li img { width: 34px; height: 34px; flex: none; }
.tips li b { color: var(--ink); display: block; font-size: 16px; }
.aside-note { margin-top: 16px; font-size: 15px; color: var(--ink-2); font-weight: 700; }

/* «Доп» */
.story-h { font-size: 24px; margin-top: 44px; }
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: center; margin-top: 30px; padding: 26px; }
.story + .story { margin-top: 20px; }
.story.flip { grid-template-columns: 1.1fr .9fr; }
.story.flip .story-text { order: 2; }
.req { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); border-radius: 18px 18px 18px 6px; padding: 14px 16px; }
.req img { width: 38px; height: 38px; flex: none; }
.req small { display: block; font-weight: 900; font-size: 13px; color: #9a6b00; text-transform: uppercase; letter-spacing: .05em; }
.req b { font-size: 18px; line-height: 1.35; display: block; }
.made { margin-top: 18px; }
.made > small { display: block; font-weight: 900; font-size: 13px; color: var(--go-d); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.made ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.made li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 16.5px; }
.made li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.go-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 900; color: var(--blue); text-decoration: none; font-size: 16.5px; }
.go-link:hover { text-decoration: underline; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 36px rgba(31, 42, 68, .12); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F4F6FA; border-bottom: 1px solid var(--line-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D6DEEA; }
.shot-bar i:nth-child(1) { background: #F2A5A7; } .shot-bar i:nth-child(2) { background: #F8D98A; } .shot-bar i:nth-child(3) { background: #9FDBBB; }
.shot-bar span { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dop-all { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.dop-all a { text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 9px 14px; font-weight: 800; font-size: 15.5px; box-shadow: 0 2px 0 var(--line); }
.dop-all a small { color: var(--ink-3); font-weight: 700; }
.dop-all a:hover { border-color: var(--blue); }


/* тренажёры по программе */
.school { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; margin-top: 34px; padding: 30px; align-items: start; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.grades button { font: 900 16px/1 var(--text); color: var(--ink-2); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 11px 18px; cursor: pointer; }
.grades button b { font-family: var(--display); font-weight: 400; font-size: 20px; margin-right: 4px; color: var(--ink); }
.grades button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.grades button[aria-selected="true"] b { color: var(--sun); }
.subj-list { display: grid; gap: 10px; margin-top: 18px; }
.subj { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: #F7F9FC; border-left: 5px solid var(--c); }
.subj > img { width: 44px; height: 44px; flex: none; }
.subj-name { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 900; font-size: 18px; color: var(--ink); text-decoration: none; }
.subj-name span { font-weight: 800; font-size: 14.5px; color: var(--c); }
.subj-name:hover { text-decoration: underline; }
.subj-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.subj-topics a { font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 9px; }
.subj-topics a:hover { color: var(--ink); border-color: var(--c); }
.school-art { position: relative; padding-top: 6px; }
.school-art .phone { position: relative; right: auto; top: auto; margin: 0 auto; width: 250px; transform: rotate(-2deg); }
.school-art .float { position: absolute; }
.school-art .f1 { left: -6px; top: 70px; }
.school-art .f2 { right: -4px; bottom: 60px; }
.school-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* робототехника */
.robo { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: center; margin-top: 34px; padding: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { font-weight: 800; font-size: 15px; padding: 7px 12px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.pill b { font-family: var(--display); font-weight: 400; margin-right: 3px; color: var(--blue); }
.free { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 900; color: var(--go-d); background: var(--ok-bg); border-radius: 12px; padding: 8px 12px; }
.free img { width: 26px; height: 26px; }

/* плитки */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.tile { padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.tile img { width: 52px; height: 52px; flex: none; }
.tile h3 { font-family: var(--text); font-weight: 900; font-size: 18.5px; line-height: 1.3; }
.tile p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.parents-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* вопросы */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 900; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); }

/* финал */
.final { margin: 84px 0 0; padding: 44px 44px 44px 48px; background: var(--sun); border-radius: 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; box-shadow: 0 16px 40px rgba(217, 163, 0, .22); }
.final .robot { width: 120px; height: 128px; }
.final h2 { font-size: 34px; }
.final p { margin-top: 8px; font-size: 18px; font-weight: 700; color: #4a3d12; }
.final .cta { margin-top: 0; flex-direction: column; align-items: stretch; }
.final .btn-ghost { border-color: #e2b02d; box-shadow: 0 3px 0 #d9a300; }

/* подвал */
.foot { margin-top: 84px; background: var(--ink); color: #c5cde0; padding: 40px 0 34px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
.foot .logo { color: #fff; }
.foot .logo small { color: #9aa6c2; }
.foot h4 { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 900; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: #c5cde0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-note { margin-top: 14px; line-height: 1.5; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #c5cde0; border-radius: 50%; font-weight: 900; font-size: 13px; margin-right: 8px; vertical-align: middle; }

/* появление при прокрутке — мягко и только со скриптом */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-r].in { opacity: 1; transform: none; }
}

/* ---------- планшет ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: grid; position: absolute; top: 70px; left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line-2); padding: 8px 16px 14px; box-shadow: 0 14px 24px rgba(31, 42, 68, .1); }
  .nav.open a { padding: 12px 10px; font-size: 17px; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 36px 32px 72px; }
  .hero h1 { font-size: 46px; }
  .hero-art { min-height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .ask { grid-template-columns: 1fr; }
  .story, .story.flip { grid-template-columns: 1fr; }
  .story.flip .story-text { order: 0; }
  .school { grid-template-columns: 1fr; }
  .school-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .robo { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .final { grid-template-columns: auto 1fr; }
  .final .cta { grid-column: 1 / -1; flex-direction: row; }
}
/* ---------- телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 62px; gap: 10px; }
  .nav.open { top: 62px; }
  .logo .robot { width: 34px; height: 36px; }
  .logo b { font-size: 17.5px; }
  .logo small { font-size: 11.5px; }
  .top-right .btn-go { display: none; }
  .top-right .btn-ghost { padding: 8px 12px; }
  .hero { padding-top: 14px; }
  .hero-card { border-radius: 24px; }
  .hero-card::before { left: 22px; }
  .hero-grid { padding: 30px 18px 18px 38px; gap: 8px; }
  .hero h1 { font-size: 31px; }
  .tags { gap: 6px; margin-bottom: 14px; }
  .tag { font-size: 12.5px; padding: 4px 9px; }
  .lead { font-size: 17.5px; margin-top: 14px; }
  .cta { margin-top: 22px; gap: 10px; }
  .cta .btn { width: 100%; }
  .facts { gap: 8px 16px; margin-top: 20px; }
  .fact { font-size: 14.5px; }
  .hero-art { min-height: 372px; }
  .phone { width: 206px; right: 0; border-radius: 32px; padding: 8px; }
  .phone img { border-radius: 25px; }
  .float { font-size: 13.5px; padding: 8px 11px; }
  .float img { width: 24px; height: 24px; }
  .float-stars { left: -6px; top: 30px; }
  .float-topic { right: -8px; top: 214px; }
  .hero-vintik { left: -8px; bottom: 0; }
  .hero-vintik .robot { width: 96px; height: 102px; }
  .bubble { font-size: 13px; margin: 0 0 4px 14px; max-width: 100px; padding: 7px 9px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 12px; gap: 4px 8px; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat img { width: 32px; height: 32px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 13.5px; }
  .ticker-list a { font-size: 15px; padding: 0 16px; }
  section.block { padding-top: 60px; }
  .block h2 { font-size: 28px; }
  .sub { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .step::after { display: none; }
  .step { padding: 18px 18px 18px; display: grid; grid-template-columns: 54px 1fr; gap: 0 14px; }
  .step img { width: 54px; height: 54px; margin: 0; grid-row: span 3; }
  .step h3 { font-size: 18px; padding-right: 34px; }
  .step p { font-size: 15.5px; margin-top: 4px; }
  .step-n { width: 28px; height: 28px; font-size: 14px; top: 14px; right: 14px; }
  .steps-cta .btn { width: 100%; }
  .form-card { padding: 24px 18px 22px; }
  .form-card h3 { font-size: 23px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .chip span { padding: 7px 12px; font-size: 15px; }
  .send .btn { width: 100%; }
  .aside { padding: 22px 18px; }
  .story { padding: 18px; gap: 18px; }
  .req b { font-size: 16.5px; }
  .made li { font-size: 15.5px; }
  .school, .robo { padding: 20px 16px; }
  .grades button { padding: 10px 13px; font-size: 15px; }
  .subj { padding: 12px; gap: 10px; }
  .subj > img { width: 36px; height: 36px; }
  .subj-name { font-size: 16.5px; }
  .school-art .phone { width: 210px; }
  .school-cta .btn, .parents-cta .btn { width: 100%; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { padding: 16px; }
  .tile img { width: 44px; height: 44px; }
  .faq summary { font-size: 16.5px; padding: 16px 50px 16px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .final { margin-top: 60px; padding: 26px 18px; grid-template-columns: 1fr; gap: 14px; text-align: center; border-radius: 24px; }
  .final .robot { width: 92px; height: 98px; margin: 0 auto; }
  .final h2 { font-size: 26px; }
  .final .cta { flex-direction: column; }
  .foot { margin-top: 60px; }
  .foot .wrap { grid-template-columns: 1fr; gap: 22px; }
}
.z-try { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.z-try a { color: var(--blue); font-weight: 800; }

/* ---------- отдельные страницы (с 05.11.2026) ---------- */
.nav a[aria-current="page"] { color: var(--blue); background: var(--info-bg); }
.nav a.nav-cta { display: none; }
section.block.page-top { padding-top: 46px; }
.block h1 { font-size: 40px; max-width: 20em; }

/* главная: разделы сайта */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.hub-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 22px 22px; transition: box-shadow .15s; }
.hub-card:hover { box-shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 16px 36px rgba(31, 42, 68, .14); }
.hub-card > img { width: 64px; height: 64px; margin-bottom: 14px; }
.hub-card h3 { font-family: var(--text); font-weight: 900; font-size: 20px; line-height: 1.25; }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.hub-card h3 a:focus-visible { outline: none; }
.hub-card:has(a:focus-visible) { outline: 3px solid rgba(58, 111, 224, .45); outline-offset: 3px; }
.hub-card p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.hub-card .go-link { margin-top: auto; padding-top: 16px; }
.hub-card:hover .go-link { text-decoration: underline; }

/* игры */
.game h2 { font-size: 32px; max-width: none; }
.game .tags { margin-bottom: 12px; }
.game-lead { color: var(--ink-2); font-size: 17.5px; margin-top: 10px; }
.game .made { margin-top: 16px; }
.game .cta { margin-top: 22px; }
.games-facts { margin-top: 20px; }

@media (max-width: 1100px) {
  .hub { grid-template-columns: 1fr 1fr; }
  .game .shot { order: -1; }
}
@media (max-width: 640px) {
  section.block.page-top { padding-top: 28px; }
  .block h1 { font-size: 29px; }
  .nav.open a.nav-cta { display: flex; justify-content: center; margin-top: 8px; padding: 14px 20px; border-radius: 14px; font-size: 17px;
    color: #fff; background: linear-gradient(180deg, #2DC078, #1F9E5F); box-shadow: 0 3px 0 var(--go-d); }
  .hub { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hub-card { display: grid; grid-template-columns: 54px 1fr; gap: 0 14px; padding: 18px; }
  .hub-card > img { width: 54px; height: 54px; margin: 0; grid-row: span 3; }
  .hub-card h3 { font-size: 18px; }
  .hub-card p { font-size: 15.5px; margin-top: 4px; }
  .hub-card .go-link { margin-top: 0; padding-top: 8px; font-size: 15.5px; }
  .game h2 { font-size: 27px; }
  .game-lead { font-size: 16.5px; }
  .game .cta .btn { width: 100%; }
}
