/* «Траектория интеллекта» v2 — слой поверх app.css.
   Каноны: типографика крупным планом, плавающая навигация-«пилюля», бенто-сетки, одна мысль на секцию,
   сильный финальный призыв, минималистичный подвал с огромным словом, живые микро-движения (60 fps). */
:root {
  --bg: #F4F3EF; --bg-2: #EAE8E2; --line: #E3E0D8;
  --radius: 24px; --radius-s: 14px;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-l: 0 24px 60px -20px rgba(26, 29, 27, .22);
}

/* ---------- Типографика ---------- */
h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -.038em; font-weight: 800; }
h3 { letter-spacing: -.02em; }
.it { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.it.ac { color: var(--accent-dark); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); }
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .6); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 160, 48, .18); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head > .muted, .sec-head > span { max-width: 36ch; }

/* ---------- Кнопки: пилюли с пружинкой ---------- */
.btn { border-radius: 999px; padding: 14px 24px; font-weight: 650; letter-spacing: -.01em;
  transition: transform .35s var(--spring), background .2s, box-shadow .3s var(--ease), filter .2s; }
.btn:hover { transform: translateY(-2px); filter: none; box-shadow: 0 10px 24px -10px rgba(26, 29, 27, .45); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .08s; box-shadow: none; }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: 999px; }
.btn-sm { padding: 10px 16px; border-radius: 999px; }
.btn-ghost, .btn-soft { background: rgba(255, 255, 255, .7); outline-color: var(--line-strong); }
.btn-ghost:hover, .btn-soft:hover { background: #fff; box-shadow: 0 10px 24px -14px rgba(26, 29, 27, .35); }
.btn .arr { width: 26px; height: 26px; margin-right: -10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16);
  transition: transform .35s var(--spring); }
.btn .arr .ic { width: 16px; height: 16px; }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn-ma .arr, .btn-white .arr, .btn-ghost .arr { background: rgba(26, 29, 27, .08); }

/* ---------- Карточки ---------- */
.card { border-radius: var(--radius); border-color: var(--line); }
a.card, .card.hover { transition: transform .45s var(--spring), box-shadow .35s var(--ease), border-color .2s; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: transparent; }

/* ---------- Плавающая навигация ---------- */
.header { top: 12px; background: transparent; backdrop-filter: none; border: 0; padding: 0 0 4px; pointer-events: none; }
.header-in { pointer-events: auto; height: 64px; padding: 0 8px 0 14px; gap: 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(26, 29, 27, .07); box-shadow: 0 10px 30px -18px rgba(26, 29, 27, .35); transition: box-shadow .3s var(--ease), background .3s; }
.header.scrolled .header-in { background: rgba(255, 255, 255, .86); box-shadow: 0 16px 40px -18px rgba(26, 29, 27, .4); }
.logo b { font-size: 15px; }
.logo small { font-size: 12px; }
.logo-svg { width: 38px; height: 38px; }
.nav { margin: 0 auto; gap: 2px; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: rgba(26, 29, 27, .06); }
.nav a.active { background: var(--ink); color: #fff; }
.header-cta .btn { padding: 11px 18px; font-size: 14.5px; }
.burger { border-radius: 999px; background: transparent; border: 0; }
@media (max-width: 1120px) {
  .header { padding: 0 10px; }
  .header.open .header-in { border-radius: 28px; padding: 14px; background: rgba(255, 255, 255, .96); }
  .header.open .nav a { font-size: 17px; padding: 12px 16px; }
}

/* ---------- Главный экран ---------- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: end; padding: clamp(36px, 6vw, 84px) 0 28px; }
.hero2 h1 { margin: 22px 0 22px; }
.hero2 .lead { max-width: 54ch; margin: 0; }
.hero2 .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero2-side { position: relative; }
.hero2-side .portrait img { aspect-ratio: 4 / 5; border-radius: 32px; }
.hchip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(26, 29, 27, .35); font-size: 13.5px; line-height: 1.25; }
.hchip b { display: block; font: 800 20px/1.05 var(--body); letter-spacing: -.03em; }
.hchip .ico { width: 38px; height: 38px; border-radius: 12px; }
.hchip.c1 { left: -28px; top: 14%; animation: bob 6s ease-in-out infinite; }
.hchip.c2 { right: -18px; top: 46%; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; } .hero2-side { max-width: 420px; } .hchip.c1 { left: -6px; } .hchip.c2 { right: -6px; } }

/* ---------- Бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.bento > * { min-width: 0; }
.b-tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--card); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.b-2 { grid-column: span 2; }
.b-tall { grid-row: span 2; }
.b-stat b { font: 800 clamp(40px, 4.4vw, 64px)/.95 var(--body); letter-spacing: -.05em; }
.b-stat span { color: var(--muted); font-size: 14.5px; }
.b-stat .mono { margin-top: auto; font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.b-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-dark .muted, .b-dark span { color: rgba(255, 255, 255, .7); }
.b-sun { background: var(--accent); border-color: var(--accent); color: #2A1800; }
.b-sun span { color: rgba(42, 24, 0, .75); }
.b-kd { background: var(--kd-soft); border-color: transparent; }
.b-ma { background: var(--ma-soft); border-color: transparent; }
.b-photo { padding: 0; min-height: 320px; color: #fff; justify-content: flex-end; }
.b-photo .photo { position: absolute; inset: 0; border-radius: 0; }
.b-photo .photo img { transition: transform 1.2s var(--ease); }
.b-photo:hover .photo img { transform: scale(1.04); }
.b-photo .b-body { position: relative; z-index: 1; padding: 26px; background: linear-gradient(0deg, rgba(20, 22, 21, .88), rgba(20, 22, 21, .5) 60%, transparent); display: flex; flex-direction: column; gap: 10px; }
.b-photo h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; color: #fff; letter-spacing: -.03em; }
.b-photo p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 15.5px; max-width: 46ch; }
.b-photo .tags .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.b-photo .photo-credit { top: 12px; bottom: auto; }
.b-tile .b-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); }
.b-tile h3 { margin: 0; font-size: 20px; }
.b-tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.b-tile .b-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.b-tile .b-link .ic { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.b-tile:hover .b-link .ic { transform: translateX(4px); }
.b-buddy { align-items: flex-start; justify-content: space-between; background: linear-gradient(160deg, #FFF6E6, var(--ma-soft)); border-color: transparent; }
.b-buddy svg { align-self: flex-end; margin: -10px -6px -16px 0; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .b-2 { grid-column: auto; } .b-tall { grid-row: auto; } }

/* ---------- Шаги ---------- */
.steps2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps2 > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.steps2 > div::before { counter-increment: s; content: "0" counter(s); font: 500 13px var(--mono); color: var(--muted); display: block; margin-bottom: 30px; }
.steps2 h3 { font-size: 22px; margin-bottom: 8px; }
.steps2 p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps2 { grid-template-columns: 1fr; } }

/* ---------- Финальный призыв ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 40px; background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 160, 48, .55), rgba(240, 160, 48, 0) 65%); filter: blur(10px); }
.cta-band::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-band h2 { color: #fff; font-size: clamp(38px, 6vw, 80px); max-width: 13ch; margin: 18px 0 0; }
.cta-band .it { color: var(--accent); }
.cta-band .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 44ch; margin: 18px 0 0; font-size: 17px; }
.cta-band .row-btns { margin-top: 30px; }
.cta-band .cta-buddy { align-self: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; border-radius: 30px; } .cta-band .cta-buddy { display: none; } }

/* ---------- Подвал с большим словом ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); border: 0; margin-top: clamp(40px, 6vw, 80px); padding: 64px 0 0; overflow: hidden; }
.footer h4 { color: #fff; font: 500 12px var(--mono); letter-spacing: .1em; }
.footer a:hover { color: #fff; }
.footer .logo b { color: #fff; }
.footer .logo small { color: rgba(255, 255, 255, .55); }
.footer .socials a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.footer-legal { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); font-weight: 500; }
.footer-legal .age-mark { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.footer-word { font: 800 clamp(64px, 15.5vw, 236px)/.8 var(--body); letter-spacing: -.06em; color: transparent; white-space: nowrap; margin: 40px 0 -.12em -.04em; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; }

/* ---------- Появление при прокрутке ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hchip, .btn, a.card, .b-photo .photo img { animation: none !important; transition: none !important; }
}

/* ---------- 404 ---------- */
.nf { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf-num { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); font: 800 clamp(120px, 24vw, 300px)/.85 var(--body); letter-spacing: -.07em; }
.nf-num .nf-bead { width: .78em; height: .78em; display: grid; place-items: center; }
.nf-num .nf-bead svg { width: 100%; height: 100%; }
.nf h1 { font-size: clamp(30px, 4vw, 48px); margin: 18px 0 10px; }
.nf p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- Статьи-тизеры на главной ---------- */
.posts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .posts3 { grid-template-columns: 1fr; } }
.mosaic { gap: 14px; }
.mosaic .photo { border-radius: 28px; }
.portrait figcaption { border-radius: 18px; }
.b-photo.b-tall { min-height: 520px; }
.b-photo .b-body { padding: 120px 28px 28px; background: linear-gradient(0deg, rgba(16, 18, 17, .94) 0%, rgba(16, 18, 17, .78) 45%, rgba(16, 18, 17, 0) 100%); }
@media (max-width: 600px) { .b-photo.b-tall { min-height: 480px; } }
.b-tile.b-photo h3 { font-size: clamp(28px, 2.8vw, 40px); color: #fff; letter-spacing: -.035em; }
.b-tile.b-photo p { color: rgba(255, 255, 255, .88); font-size: 16px; }
.footer .logo-svg rect { fill: #2A302D; }
html { background: var(--bg); }
/* Лендинги программ */
.hero { padding: clamp(36px, 6vw, 80px) 0 20px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.hero .hero-cta { gap: 12px; }
.feature { border-radius: 28px; padding: 26px; }
.feature .icon-bubble { border-radius: 16px; }
.hero-art .hero-photo { border-radius: 36px; }
.hero-photo-wrap .hero-photo { border-radius: 36px; }
.card .eyebrow, .b-tile .eyebrow, .app-shell .eyebrow { padding: 0; border: 0; background: none; }
.card .eyebrow::before, .b-tile .eyebrow::before, .app-shell .eyebrow::before { display: none; }
/* Кабинет: рабочие экраны — спокойные размеры заголовков */
.app-shell h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.app-shell h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.025em; }
.app-shell .eyebrow { font: 600 13px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
@media (max-width: 640px) { .plan-hero { grid-template-columns: 1fr !important; } .plan-hero .buddy { justify-self: start; } }
/* Портрет на главной: фото чистое, подпись и цифры — под ним, без перекрытия лица */
.hero2-side .portrait figcaption { position: static; margin-top: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); backdrop-filter: none; }
.hero2-side .portrait figcaption b { color: var(--ink); }
.hero2-chips { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hero2-chips .hchip { position: static; animation: none; flex: 1 1 180px; box-shadow: none; border: 1px solid var(--line); background: var(--card); }

/* ---------- Программы «Тренировка памяти» (фиолетовая) и «Для взрослых» (синяя) ---------- */
:root { --mem: #7A5BD6; --mem-dark: #5B3FB8; --mem-soft: #EEE8FB; --ad: #2F6FD0; --ad-dark: #1F56A8; --ad-soft: #E2ECFA; }
.t-mem { --c: var(--mem-dark); --c-soft: var(--mem-soft); }
.t-ad { --c: var(--ad-dark); --c-soft: var(--ad-soft); }
.btn-mem { --b: var(--mem); --bd: var(--mem-dark); }
.btn-ad { --b: var(--ad); --bd: var(--ad-dark); }
.tag-mem { background: var(--mem-soft); color: var(--mem-dark); }
.tag-ad { background: var(--ad-soft); color: var(--ad-dark); }
.prog.mem { --c: var(--mem); --cs: var(--mem-soft); --cd: var(--mem-dark); }
.prog.ad { --c: var(--ad); --cs: var(--ad-soft); --cd: var(--ad-dark); }
.side-nav a.mem { --c: var(--mem-dark); --cs: var(--mem-soft); }
.side-nav a.ad { --c: var(--ad-dark); --cs: var(--ad-soft); }
.post-cat.c-mem { background: var(--mem-soft); color: var(--mem-dark); }
.post-cat.c-ad { background: var(--ad-soft); color: var(--ad-dark); }
.post-cta.t-mem { background: var(--mem-soft); border-color: transparent; }
.post-cta.t-mem .ico { background: var(--mem); color: #fff; }
.post-cta.t-ad { background: var(--ad-soft); border-color: transparent; }
.post-cta.t-ad .ico { background: var(--ad); color: #fff; }
.b-mem { background: var(--mem-soft); border-color: transparent; }
.b-ad { background: var(--ad-soft); border-color: transparent; }

/* ---------- Переключатель программ в кабинете ---------- */
.cab-menu { position: relative; margin-bottom: 8px; }
.cab-menu > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.cab-menu > summary::-webkit-details-marker { display: none; }
.cab-menu > summary > .ic { transition: transform .25s var(--ease); }
.cab-menu[open] > summary > .ic { transform: rotate(90deg); }
.cab-drop { margin-top: 8px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-l); display: flex; flex-direction: column; gap: 2px; }
.cab-drop-label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px 4px; }
.cab-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.cab-item:hover { background: var(--bg); }
.cab-item .ico { background: var(--c); color: #fff; }
.cab-item b { display: block; font-size: 14.5px; line-height: 1.2; }
.cab-item small { display: block; font-size: 12px; color: var(--muted); }
.cab-item > .ic { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.cab-offer .ico { background: var(--c-soft); color: var(--c); }
.cab-all { padding: 8px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ---------- Тренажёры для взрослых ---------- */
.brain-stats { grid-auto-rows: minmax(120px, auto); margin-bottom: 8px; }
.brain-stats .b-stat b { font-size: clamp(32px, 3.4vw, 44px); }
.brain-stats .b-stat b small { font-size: .5em; color: var(--muted); }
.brain-h2 { font-size: 24px; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 90px; }
.brain-h2 .ic { width: 24px; height: 24px; }
.brain-note { margin-top: 18px; }
.brain-note p { margin: 8px 0 0; color: var(--ink-2); }
.tag.ev-strong { background: var(--good-soft); color: var(--good-dark); }
.tag.ev-skill { background: #DDF4F7; color: #157583; }
.tag.ev-narrow { background: var(--bg-2); color: var(--muted); }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.course-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: inherit; }
.course-list a > .ic { margin-left: auto; color: var(--muted); }
.course-list b { display: block; }
.course-list small { color: var(--muted); }
.course-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mem-soft); color: var(--mem-dark); font-weight: 800; flex: none; }
.course-list li.done .course-n { background: var(--good); color: #fff; }
.lesson-text { font-size: 18px; line-height: 1.7; max-width: 760px; }
.lesson-text p { margin: 0 0 14px; }
.brain-stage { min-height: 520px; }
.bt-center { gap: 14px; }
.bt-loci, .bt-q, .bt-span, .bt-cards, .bt-card, .bt-breath, .bt-words, .bt-recall { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.bt-place { font: 700 20px var(--body); color: var(--muted); }
.bt-plus { color: var(--muted); font-weight: 800; }
.bt-word { font: 800 clamp(34px, 6vw, 52px)/1.1 var(--body); letter-spacing: -.02em; }
.bt-face { font-size: clamp(80px, 14vw, 120px); line-height: 1; }
.bt-bar { width: min(320px, 80%); height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bt-bar i { display: block; height: 100%; background: var(--mem); transform-origin: left; animation: bt-shrink linear forwards; }
@keyframes bt-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bt-recall label { display: grid; grid-template-columns: minmax(120px, 1fr) 1.2fr; gap: 10px; align-items: center; width: min(520px, 100%); text-align: left; }
.bt-recall input, .bt-recall textarea, .bt-add input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font: inherit; }
.bt-recall textarea { width: min(560px, 100%); }
.bt-recall label.ok input { border-color: var(--good); background: var(--good-soft); }
.bt-recall label.no input { border-color: var(--bad); background: var(--bad-soft); }
.bt-words ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 18px; width: 100%; text-align: left; font: 650 18px var(--body); padding-left: 22px; margin: 0; }
.bt-digits { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font: 800 clamp(26px, 4vw, 36px) var(--body); letter-spacing: .04em; max-width: 640px; }
.bt-numin { font: 800 26px var(--body); letter-spacing: .06em; text-align: center; width: min(560px, 100%); padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); }
.bt-major { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(520px, 100%); }
.bt-major span { border-radius: 12px; background: var(--bg); padding: 6px; font-size: 14px; color: var(--ink-2); }
.bt-major b { display: block; font-size: 20px; color: var(--ink); }
.bt-opts { display: flex; flex-direction: column; gap: 10px; width: min(460px, 100%); }
.bt-opts.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.bt-good { background: var(--good-soft) !important; outline-color: var(--good) !important; }
.bt-bad { background: var(--bad-soft) !important; outline-color: var(--bad) !important; }
.bt-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: min(560px, 100%); }
.bt-boxes span { border-radius: 12px; background: var(--bg); padding: 8px 4px; font-size: 12px; color: var(--muted); }
.bt-boxes b { display: block; font-size: 22px; color: var(--ink); }
.bt-add { display: flex; flex-direction: column; gap: 8px; width: min(460px, 100%); text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
.bt-card-face { font: 750 clamp(24px, 3.4vw, 32px)/1.3 var(--body); max-width: 560px; }
.bt-card-back { font: 600 22px/1.4 var(--body); color: var(--good-dark); background: var(--good-soft); border-radius: 16px; padding: 14px 20px; max-width: 560px; }
.bt-big { font: 800 96px/1 var(--body); width: 160px; height: 160px; display: grid; place-items: center; border-radius: 28px; background: var(--mem-soft); color: var(--mem-dark); }
.bt-corsi { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1.2; margin: 0 auto; border-radius: 22px; background: var(--bg); }
.bt-blk { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 14px; border: 0; background: var(--ad); opacity: .35; cursor: pointer; transition: opacity .12s, transform .12s; }
.bt-blk.lit { opacity: 1; transform: scale(1.08); background: var(--accent); }
.bt-nb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(300px, 80%); margin: 6px auto 14px; }
.bt-nb span { aspect-ratio: 1; border-radius: 14px; background: var(--bg); }
.bt-nb span.on { background: var(--ad); }
#m.on { background: var(--good); }
.bt-flank { font: 800 clamp(44px, 8vw, 72px)/1 var(--body); letter-spacing: .08em; margin: 30px 0; text-align: center; }
.bt-sw { width: 170px; height: 170px; margin: 18px auto; border-radius: 28px; display: grid; place-items: center; font: 800 76px var(--body); color: #fff; }
.bt-sw.blue { background: var(--ad); }
.bt-sw.orange { background: var(--accent); }
.bt-sw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(420px, 100%); margin: 0 auto; }
.bt-ring { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--good-soft), var(--card)); border: 3px solid var(--good); cursor: pointer; font: 800 72px var(--body); color: var(--good-dark); user-select: none; animation: bt-breathe 8s ease-in-out infinite; }
@keyframes bt-breathe { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bt-ring { animation: none; } }
.bt-syl { background: var(--bg); border-radius: 18px; padding: 16px 22px; text-align: left; width: min(560px, 100%); font-size: 18px; }
.bt-syl p { margin: 0 0 6px; }
.bt-syl-c { font-weight: 750; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px !important; }
.bt-series { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font: 800 28px var(--body); }
.bt-series span { min-width: 64px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.bt-series .q { border: 2px dashed var(--line-strong); background: var(--card); color: var(--muted); }
.bt-series .q.ok { border-color: var(--good); color: var(--good-dark); }
.bt-series .q.no { border-color: var(--bad); color: var(--bad-dark); }
.bt-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(360px, 100%); }
.bt-matrix span { aspect-ratio: 1.4; border-radius: 14px; background: var(--bg); display: grid; place-items: center; font: 800 28px var(--body); color: var(--muted); }
.bt-crt { font: 600 19px/1.5 var(--body); max-width: 60ch; margin: 0; }
/* Выпадающее меню программ в шапке */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary .ic { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .2s; }
.nav-drop[open] > summary .ic { transform: rotate(-90deg); }
.nav-drop > summary:hover { background: rgba(26, 29, 27, .06); }
.nav-drop.active > summary { background: var(--ink); color: #fff; }
.nav-drop-menu { position: absolute; left: 0; top: calc(100% + 10px); min-width: 300px; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-l); display: flex; flex-direction: column; gap: 2px; z-index: 60; }
@media (max-width: 1120px) { .nav-drop-menu { position: static; min-width: 0; box-shadow: none; margin-top: 6px; } .nav-drop > summary { font-size: 17px; padding: 12px 16px; } }
.programs4 .b-photo { min-height: 440px; }
.hero2-side .hero-photo { aspect-ratio: 4 / 5; border-radius: 32px; }

/* ---------- Медали, лига, рейтинг ---------- */
.medal-cat { margin-bottom: 26px; }
.medal-cat h2 { font-size: 20px; margin: 0; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.medal b { color: var(--ink-2); font-size: 14.5px; line-height: 1.25; }
.medal small { font-size: 12px; line-height: 1.3; }
.medal-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
.medal-ico .ic { width: 28px; height: 28px; }
.medal.got { border-color: transparent; background: linear-gradient(160deg, #FFF6E6, var(--ma-soft)); }
.medal.got b { color: var(--ink); }
.medal.got .medal-ico { background: linear-gradient(160deg, #FFC970, var(--ma)); color: #fff; box-shadow: 0 6px 16px -6px rgba(199, 122, 14, .6); }
.league-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .league-layout { grid-template-columns: 1fr; } }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.lg-row + .lg-row { margin-top: 2px; }
.lg-row.me { background: var(--ma-soft); }
.lg-row.up .lg-place { background: var(--good); color: #fff; }
.lg-row.down .lg-place { background: var(--bad-soft); color: var(--bad-dark); }
.lg-place { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 800; flex: none; }
.lg-ava { font-size: 24px; }
.lg-xp { margin-left: auto; color: var(--muted); font-weight: 650; }
.lg-line { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--good-dark); padding: 8px 12px; border-top: 1px dashed var(--good); margin-top: 6px; }
.tier-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.tier-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.tier-list li span { width: 14px; height: 14px; border-radius: 50%; opacity: .45; }
.tier-list li.cur { color: var(--ink); font-weight: 800; }
.tier-list li.cur span, .tier-list li.past span { opacity: 1; }
.rating-bento .b-stat b small { font-size: .45em; color: var(--muted); font-weight: 600; }

/* ---------- Ментальная арифметика: домашка-цепочка, награды, мотивация ---------- */
.hw-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.hw-bar i { display: block; height: 100%; background: var(--good); border-radius: inherit; transition: width .4s; }
.hw-comment { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--bg); padding: 10px 12px; border-radius: 12px; }
.hw-comment .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.hw-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.hw-stage { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.hw-stage + .hw-stage::before { content: ""; position: absolute; left: 19px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.hw-stage.done + .hw-stage::before { background: var(--good); }
.hw-lock { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); position: relative; z-index: 1; }
.hw-lock .ic { width: 20px; height: 20px; }
.hw-stage.done .hw-lock { background: var(--good); color: #fff; }
.hw-stage.cur .hw-lock { background: var(--sun); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 25%, transparent); }
.hw-stage.chest.done .hw-lock { background: var(--sun); }
.hw-stage.lock .hw-stage-main { opacity: .55; }
.hw-stage-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hw-stage-main b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.hw-levels { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hw-levels i { width: 14px; height: 6px; border-radius: 3px; background: var(--bg-2); }
.hw-levels i.on { background: var(--good); }
.hw-levels span { margin-left: 6px; }
.res-extra { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 100%; max-width: 460px; }
.res-extra:empty { display: none; }
.hw-event, .medal-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--good-soft); text-align: left; animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.hw-event.done, .medal-toast { background: var(--sun-soft); }
.medal-toast > div { display: flex; flex-direction: column; gap: 2px; }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.res-list .again { opacity: .7; font-style: italic; }
.kpis.mot { margin-top: 0; }
.kpis.mot .kpi { text-decoration: none; color: inherit; transition: transform .15s; }
.kpis.mot .kpi:hover { transform: translateY(-2px); }
.kpis.mot .kpi b { font-size: 22px; }
.tier-dot { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; }
.tier-dot .ic { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .hw-event, .medal-toast { animation: none; } }

/* ---------- Кабинет учителя: уроки, посещаемость, графики ---------- */
.wd-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-pick label { cursor: pointer; }
.wd-pick input, .star-pick input, .att-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wd-pick span { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; }
.wd-pick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.wd-pick input:focus-visible + span, .star-pick input:focus-visible + span, .att-toggle input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-date { flex: none; width: 48px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.1; }
.lesson-date b { display: block; font-size: 22px; color: var(--ink); }
.lesson-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lesson-main b:first-letter { text-transform: uppercase; }
.att td { vertical-align: middle; }
.att-toggle { position: relative; display: inline-block; cursor: pointer; }
.att-toggle span { display: block; width: 46px; height: 26px; border-radius: 99px; background: var(--bg-2); transition: background .15s; position: relative; }
.att-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.att-toggle input:checked + span { background: var(--good); }
.att-toggle input:checked + span::after { transform: translateX(20px); }
.star-pick { display: flex; gap: 4px; }
.star-pick label { cursor: pointer; position: relative; }
.star-pick span { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 6px; border-radius: 10px; border: 2px solid var(--line); font-weight: 800; font-size: 13px; }
.star-pick input:checked + span { background: var(--sun-soft); border-color: var(--sun); }
.bonus { width: 80px; text-align: right; }
.cmp { display: flex; flex-direction: column; gap: 4px; }
.cmp-row { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > b { grid-row: span 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-bars { display: flex; flex-direction: column; gap: 3px; }
.cmp-bars i { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.cmp-bars .acc { background: var(--good); } .cmp-bars .hw { background: var(--sky); } .cmp-bars .att { background: var(--sun); }
.cmp-row > .small { grid-column: 2; }
.cmp-xp { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.cmp-xp i { display: block; height: 4px; border-radius: 2px; background: var(--ma); min-width: 2px; }
.cmp-xp span { white-space: nowrap; color: var(--muted); }
.draft.stages li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .draft.stages li { grid-template-columns: 1fr auto; } .draft.stages li .small { grid-row: 2; } }
.adder [hidden] { display: none !important; }
.lesson-row > .ic { flex: none; color: var(--muted); }

/* ---------- Кабинет администратора школы ---------- */
.kpi.lnk { text-decoration: none; color: inherit; transition: transform .15s; }
.kpi.lnk:hover { transform: translateY(-2px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form select { max-width: 180px; }
.tabs-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs-row a { padding: 7px 12px; border-radius: 99px; border: 2px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: 14px; }
.tabs-row a span { color: var(--muted); font-weight: 700; margin-left: 4px; }
.tabs-row a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabs-row a.on span { color: rgba(255,255,255,.7); }
.funnel { display: flex; flex-direction: column; gap: 4px; }
.funnel a { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr 32px; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.funnel a b { text-align: right; }
.fbar { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.fbar i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--sky); }
.funnel .fn-trial i { background: var(--sun); } .funnel .fn-won i { background: var(--good); } .funnel .fn-lost i { background: var(--bad); } .funnel .fn-contact i { background: var(--lilac); }
.st-new { background: var(--sky-2); color: var(--sky); } .st-contact { background: var(--bg-2); } .st-trial { background: var(--sun-soft); }
.st-won { background: var(--good-soft); color: var(--good-dark); } .st-lost { background: var(--bad-soft); color: var(--bad-dark); }
.stage-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-pick button { padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.stage-pick button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--line); }
.mchart { display: flex; gap: 6px; align-items: flex-end; height: 170px; }
.mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.mcol .bars { display: flex; gap: 3px; align-items: flex-end; }
.mcol .bars i { position: relative; display: block; width: 14px; min-height: 3px; border-radius: 5px 5px 2px 2px; }
.mcol .bars i span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; font-style: normal; color: var(--muted); }
.mcol .came { background: var(--good); } .mcol .left { background: var(--bad); }
.mcol .d { font-size: 12px; font-weight: 800; color: var(--muted); }
.mcol .small { font-size: 10.5px; white-space: nowrap; }
.reason { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.rbar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--bad); border-radius: inherit; }
.ava-lg { width: 60px; height: 60px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font-size: 34px; }
.field.wide { grid-column: 1 / -1; }
.err { color: var(--bad-dark); font-size: 13px; font-weight: 700; }
/* Поля без типа, числа, время и поиск — как остальные поля форм. */
.field input:not([type]), .field input[type=number], .field input[type=time], .field input[type=search], .filters input[type=search], .filters select, .inline-form select, input.bonus {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); font: 500 16px var(--body); color: var(--ink); }
.filters select, .inline-form select { width: auto; padding: 10px 12px; font-size: 15px; }
.filters input[type=search] { padding: 10px 14px; font-size: 15px; }
input.bonus { width: 90px; padding: 8px 10px; }

/* ---------- Лабиринты ---------- */
.maze { display: block; width: 100%; max-width: 980px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; touch-action: manipulation; }
.mz-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; opacity: .85; transition: stroke .2s, opacity .2s; }
.mz-line.seen { opacity: .35; }
.mz-line.ok { stroke: var(--good); stroke-width: 5; opacity: 1; }
.mz-line.bad { stroke: var(--bad); stroke-width: 5; opacity: 1; }
.mz-lab rect { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.mz-lab text { font: 800 26px var(--body); text-anchor: middle; fill: var(--ink); }
.mz-lab.num.cur rect { fill: var(--sun); stroke: var(--sun-dark); }
.mz-lab.let { cursor: pointer; }
.mz-lab.let:hover rect { fill: var(--bg-2); }
.mz-lab.let.ok rect { fill: var(--good); stroke: var(--good-dark); } .mz-lab.let.ok text { fill: #fff; }
.mz-lab.let.bad rect { fill: var(--bad); stroke: var(--bad-dark); } .mz-lab.let.bad text { fill: #fff; }

/* ---------- Лестница тем тренажёров ---------- */
.tp-level { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tp-level-name { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); font: 700 13.5px var(--body); color: var(--ink); cursor: pointer; }
.tp-chip .ic { width: 14px; height: 14px; }
.tp-chip.done { background: var(--good-soft); border-color: transparent; color: var(--good-dark); }
.tp-chip.lock { color: var(--muted); background: var(--bg); border-style: dashed; cursor: not-allowed; }
.tp-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tp-chip.open:not(.on) { border-color: var(--sun); }
.tp-path { display: flex; flex-direction: column; gap: 12px; }
.print-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .15s; }
.print-card:hover { transform: translateY(-2px); }

/* ---------- Фото-карточки раннего развития ---------- */
.pic { display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.tile { overflow: hidden; padding: 0; }
.tile .pic { width: 100%; height: 100%; border-radius: 14px; }
.tile.hidden-face .pic { visibility: hidden; }
.tile.sel .pic, .tile.good .pic, .tile.bad .pic { border-radius: 12px; }
.flash-card { overflow: hidden; padding: 14px; gap: 10px; }
.flash-card .big { font-size: 0; width: 100%; }
.flash-card .pic-big { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.pic-sm { width: 56px; height: 56px; border-radius: 12px; }
.pic-mid { width: 150px; height: 150px; border-radius: 22px; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.guess-card .pic-fill { width: 100%; height: 100%; border-radius: 20px; }
.guess-card { overflow: hidden; }

/* ---------- Раннее развитие: фото вместо иконок ---------- */
.ex-card.has-cover { --card-pad: 26px; padding-top: 0; overflow: hidden; }
.ex-card .ex-cover { display: block; width: calc(100% + 2 * var(--card-pad, 22px)); max-width: none; margin: 0 calc(-1 * var(--card-pad, 22px)) 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.ex-card.has-cover > .ico { margin-top: -34px; position: relative; box-shadow: 0 0 0 4px var(--card); }
.plan-thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.plan-hero .buddy { max-width: 260px; }
@media (max-width: 900px) { .plan-hero { grid-template-columns: 1fr !important; } .plan-hero .buddy { justify-self: start; max-width: none; } }

/* ---------- Угадайка ---------- */
.guess-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.guess-stage .big-msg { margin: 0; font-size: clamp(19px, 3.2vw, 24px) !important; max-width: 26ch; }
.guess-envelope { width: 112px; height: 112px; border-radius: 22px; display: grid; place-items: center; font: 800 46px var(--body); color: #fff;
  background: repeating-linear-gradient(45deg, var(--kd), var(--kd) 12px, #33C9AD 12px, #33C9AD 24px); box-shadow: 0 5px 0 var(--kd-dark); transition: transform .35s, background .2s; }
.guess-envelope.open { transform: rotateY(180deg) scale(1.04); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.guess-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.guess-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 12px; min-width: 104px; border-radius: 20px; border: 3px solid var(--line);
  background: var(--card); font: 800 16px var(--body); color: var(--ink); cursor: pointer; transition: transform .12s, opacity .2s, border-color .2s; }
.guess-opt:hover { transform: translateY(-3px); }
.guess-opt:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.guess-opt .sw { width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.guess-opt.right { border-color: var(--good); background: var(--good-soft); }
.guess-opt.wrong { border-color: var(--bad); }
.guess-opt.dim:not(.wrong) { opacity: .45; }
@media (max-width: 480px) { .guess-opt { min-width: 84px; } .guess-opt .sw { width: 60px; height: 60px; } }

/* ---------- Упражнения раннего развития: законченный вид ---------- */
.stage { background: linear-gradient(180deg, var(--card) 0%, var(--card) 55%, color-mix(in srgb, var(--kd-soft) 55%, var(--card)) 100%); }
.stage > .stage-top { justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: -8px -8px 18px; border-radius: 20px; background: var(--bg); }
.stage-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; min-width: 0; flex: 1; }
.stage-opts .chip:not(.on) { background: var(--card); }
.stage-tools { display: flex; gap: 6px; flex: none; }
.icon-chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.icon-chip .ic { width: 19px; height: 19px; }
.icon-chip.on { background: var(--kd); border-color: var(--kd); color: #fff; }
.icon-chip:focus-visible { outline: 3px solid var(--kd); outline-offset: 2px; }
.start-screen { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.start-screen .big-msg { margin: 0; }
.start-cover { width: min(320px, 80%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.start-screen .btn .ic, .btn .ic { width: 18px; height: 18px; }
.ex-head-photo { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.12); flex: none; }
.ex-aside { overflow: hidden; }
.ex-aside-cover { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 560px) { .stage { padding: 16px; } .stage > .stage-top { margin: -4px -4px 14px; } .start-cover { width: 100%; } }

/* =========================================================================
   Мягкие линии и живые движения (финальный слой).
   Вместо «штампованных» теней 0 5px 0 и толстых рамок — тонкие линии и мягкие глубокие тени;
   появление контента, пружинящие нажатия и плавная смена карточек. Всё отключается при «уменьшить движение».
   ========================================================================= */
:root {
  --line: #E7E4DD;
  --shadow-s: 0 1px 2px rgba(26, 29, 27, .04), 0 6px 18px -10px rgba(26, 29, 27, .16);
  --shadow-m: 0 1px 2px rgba(26, 29, 27, .04), 0 14px 34px -16px rgba(26, 29, 27, .22);
}
.card { box-shadow: var(--shadow-s); }
.card.lift, .ex-card, .tr-card, .price, .stage, .flash-screen, .colcard { box-shadow: var(--shadow-s); border-color: var(--line); }
.ex-card, .tr-card { transition: transform .45s var(--spring), box-shadow .35s var(--ease), border-color .2s; }
.ex-card:hover, .tr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: transparent; }
.stage { border-radius: 30px; }
.plan-list li a { transition: transform .35s var(--spring), box-shadow .3s var(--ease), border-color .2s; }
.plan-list li a:hover { transform: translateX(4px); box-shadow: var(--shadow-s); }
.plan-list .next a { box-shadow: 0 0 0 3px color-mix(in srgb, var(--kd) 22%, transparent), var(--shadow-s); }
.seg button, .seg a, .keypad button { box-shadow: var(--shadow-s); transition: transform .25s var(--spring), background .2s, box-shadow .2s; }
.keypad .ok { box-shadow: 0 10px 22px -12px var(--good-dark); }
.seg button:active, .keypad button:active, .chip:active, .tp-chip:active, .guess-opt:active, .tile:active { transform: scale(.95); transition-duration: .08s; }
.odd-item, .pt-opt, .fw-opt, .pair-face, .kp-out, .ni-out, .avatars span, .alert, .challenge, .ma-hero { border-width: 1px; }
.odd-item, .pt-opt, .fw-opt { box-shadow: var(--shadow-s); }
.ma-hero { box-shadow: var(--shadow-s); }
.tile { border-width: 2px; box-shadow: var(--shadow-s); transition: transform .3s var(--spring), border-color .2s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-m); }
.guess-card, .guess-envelope { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--kd-dark) 70%, transparent); }
.side-nav a { transition: background .2s, color .2s, transform .3s var(--spring); }
.side-nav a:hover { transform: translateX(3px); }
.progress i, .hw-bar i, .sess-bar i, .fbar i, .rbar i, .cmp-bars i { transition: width .9s var(--ease); }
.chip, .tp-chip, .tag { transition: background .2s, color .2s, border-color .2s, transform .25s var(--spring); }
input, select, textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); }

/* Появление: содержимое кабинета, смена экранов тренажёров и карточек. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.app-shell > section > * { animation: rise .6s var(--ease) both; }
.app-shell > section > *:nth-child(2) { animation-delay: .05s; } .app-shell > section > *:nth-child(3) { animation-delay: .1s; }
.app-shell > section > *:nth-child(4) { animation-delay: .15s; } .app-shell > section > *:nth-child(n+5) { animation-delay: .2s; }
.sidebar { animation: fade .5s var(--ease) both; }
#mental-app > *, #bt > *, .stage-body > * { animation: rise .45s var(--ease) both; }
.flash-card .pic-big, .start-cover, .guess-envelope.open, .medal-toast, .hw-event { animation: pop .45s var(--spring) both; }
.app-shell .grid > .card, .app-shell .kpis > .card, .tp-chips > *, .guess-opts > * { animation: rise .55s var(--ease) both; }
.app-shell .grid > .card:nth-child(2), .app-shell .kpis > .card:nth-child(2), .guess-opts > *:nth-child(2) { animation-delay: .06s; }
.app-shell .grid > .card:nth-child(3), .app-shell .kpis > .card:nth-child(3), .guess-opts > *:nth-child(3) { animation-delay: .12s; }
.app-shell .grid > .card:nth-child(n+4), .app-shell .kpis > .card:nth-child(n+4), .guess-opts > *:nth-child(n+4) { animation-delay: .18s; }
.tp-chips > * { animation-duration: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Видеокурсы ---------- */
.course-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; overflow: hidden; }
.course-cover { display: grid; place-items: center; width: calc(100% + 52px); max-width: none; margin: -26px -26px 4px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--c-soft, var(--bg-2)); color: var(--c, var(--ink)); }
.course-cover .ic { width: 46px; height: 46px; }
.course-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.course-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #111; box-shadow: var(--shadow-m); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg-2); text-align: center; padding: 20px; }
.player-empty p { margin: 0; }
.lesson-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lesson-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.lesson-list a:hover { background: var(--bg); }
.lesson-list a.cur { background: var(--bg-2); }
.lesson-list .ln { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font: 800 13px var(--body); }
.lesson-list .ln .ic { width: 15px; height: 15px; }
.lesson-list a.done .ln { background: var(--good); color: #fff; }
.material-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
@media (max-width: 1000px) { .course-layout { grid-template-columns: 1fr; } }

/* ---------- Для школ: лендинг, приглашения, ссылки ---------- */
.school-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.school-hero h1 { margin: 14px 0 12px; }
.school-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.school-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.school-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ma-soft); color: var(--ma-dark); font-weight: 800; }
.school-steps li span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .school-hero { grid-template-columns: 1fr; } }
.join-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 34px 26px; }
.join-card h1 { margin: 0; }
.join-children { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.child-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  transition: transform .3s var(--spring), box-shadow .25s, border-color .2s; }
.child-pick:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-s); border-color: var(--ma); }
.child-pick:disabled { opacity: .55; cursor: default; }
.child-pick .ava { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; font-size: 26px; flex: none; }
.child-pick > span:nth-child(2) { flex: 1; }
.invite-card { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 18px; background: var(--ma-soft); border-color: transparent; }
.invite-card > div:first-child { flex: 1 1 260px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; min-width: 0; }
.copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--mono); color: var(--ink-2); }
.copy-row.sm { margin-top: 8px; } .copy-row.sm input { font-size: 12px; padding: 7px 10px; }
.plan-banner { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 18px; }
.plan-banner.late { background: var(--bad-soft); border-color: transparent; }
.setup { margin-bottom: 18px; }
.setup ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.setup li.done { color: var(--muted); text-decoration: line-through; }

/* ---------- раннее развитие: выбор сценария, дыхание «подуй», истории ---------- */
.scn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
@media (max-width: 900px) { .scn-grid { grid-template-columns: 1fr; } }
.scn-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .4s var(--spring), box-shadow .3s var(--ease), border-color .2s; }
.scn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m, var(--shadow-s)); border-color: var(--kd); }
.scn-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--kd); opacity: .35; }
.scn-med::before { opacity: .65; } .scn-max::before { opacity: 1; }
.scn-card.last { box-shadow: 0 0 0 3px color-mix(in srgb, var(--kd) 25%, transparent), var(--shadow-s); }
.scn-card h2 { margin: 0; font-size: 24px; }
.scn-card p { margin: 0; }
.scn-min { font: 800 46px/1 var(--display, var(--body)); color: var(--kd-dark); display: flex; align-items: baseline; gap: 6px; }
.scn-min small { font-size: 16px; font-weight: 700; color: var(--muted); }
.scn-list { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.scn-list li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--kd-soft); color: var(--kd-dark); }
.scn-card .btn { align-self: flex-start; }
.scn-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.scn-switch .chip { text-decoration: none; }
.scn-switch .chip:not(.on) { background: var(--card); }
.step-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--kd-soft); }

.blow-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.blow-scene { position: relative; width: min(100%, 420px); height: 300px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #DDF3FF 0%, #F4FBFF 60%, #E6F7EC 100%); }
.blow-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, #CDEFD6, #B5E3C1); border-radius: 50% 50% 0 0 / 30px 30px 0 0; }
.blow-toy { position: absolute; left: calc(50% - 55px); bottom: 34px; width: 110px; height: 110px; z-index: 1; will-change: transform; }
.blow-toy svg { width: 100%; height: 100%; display: block; overflow: visible; }
.toy-butterfly .wing-l, .toy-butterfly .wing-r { transform-box: fill-box; }
.toy-butterfly .wing-l { transform-origin: right center; } .toy-butterfly .wing-r { transform-origin: left center; }
.toy-butterfly.flying .wing-l, .toy-butterfly.flying .wing-r { animation: flap .28s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.35); } }
.toy-dandelion { bottom: 30px; transform-origin: 50% 100%; }
.toy-dandelion .seed { position: absolute; left: 50%; top: 46%; width: 2px; height: 30px; background: #CFC6A8; transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(var(--a)); transition: transform 2.6s var(--ease), opacity 2.6s; }
.toy-dandelion .seed::before { content: ""; position: absolute; top: -9px; left: -8px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, rgba(255,255,255,.4) 60%, transparent 70%); }
.toy-dandelion .seed.fly { transform: translate(calc(-50% + var(--dx)), calc(-100% + var(--dy))) rotate(calc(var(--a) + 90deg)); opacity: 0; }
.blow-dots { display: flex; gap: 8px; }
.blow-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .3s, transform .4s var(--spring); }
.blow-dots i.on { background: var(--kd); transform: scale(1.25); }

.story-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0; border-radius: 24px; transition: background .8s var(--ease), color .8s; }
.story-wrap > * { position: relative; z-index: 1; }
.story-sky { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; opacity: 0; transition: opacity 1s; border-radius: 24px; overflow: hidden; }
.story-sky i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.6); animation: twinkle 3s ease-in-out infinite; }
.story-sky i:nth-child(1) { left: 12%; top: 18%; } .story-sky i:nth-child(2) { left: 80%; top: 14%; animation-delay: .6s; }
.story-sky i:nth-child(3) { left: 28%; top: 70%; animation-delay: 1.2s; } .story-sky i:nth-child(4) { left: 66%; top: 62%; animation-delay: 1.8s; }
.story-sky i:nth-child(5) { left: 48%; top: 8%; animation-delay: 2.4s; } .story-sky i:nth-child(6) { left: 90%; top: 80%; animation-delay: .9s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6); } }
.story-wrap.playing { background: radial-gradient(ellipse at 50% 0%, #3B3470 0%, #1D1A33 75%); color: #EEEAFF; padding: 28px 16px; }
.story-wrap.playing .story-sky { opacity: 1; }
.story-wrap.playing .muted, .story-wrap.playing .eyebrow { color: rgba(238, 234, 255, .7) !important; }
.story-hint { font-size: clamp(20px, 3vw, 26px) !important; opacity: .85; }
.story-wrap.playing .story-hint { animation: breathe-txt 6s ease-in-out infinite; }
@keyframes breathe-txt { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .story-sky i, .story-wrap.playing .story-hint, .toy-butterfly.flying .wing-l, .toy-butterfly.flying .wing-r { animation: none; } }

/* Клетки памяти */
.mem-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.mem-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; width: min(100%, calc(var(--n) * 112px)); }
.mem-cell { aspect-ratio: 1; border-radius: 16px; background: var(--kd-soft); border: 2px solid transparent; padding: 0; overflow: hidden; display: grid; place-items: center; transition: border-color .2s, transform .3s var(--spring); }
.mem-cell .pic { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
button.mem-cell.empty { cursor: pointer; border: 2px dashed color-mix(in srgb, var(--kd) 45%, transparent); background: var(--card); }
button.mem-cell.empty:hover { transform: scale(1.04); }
.mem-cell.good { border-color: var(--good); } .mem-cell.bad { border-color: var(--coral, #F47C62); opacity: .75; }
.mem-cell.hint { box-shadow: 0 0 0 4px var(--good); }
.mem-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 80px; }
.mem-pick { width: 78px; height: 78px; padding: 0; border-radius: 14px; overflow: hidden; border: 3px solid transparent; background: var(--card); cursor: pointer; transition: transform .3s var(--spring), border-color .2s; }
.mem-pick .pic { width: 100%; height: 100%; object-fit: cover; }
.mem-pick.sel { border-color: var(--kd); transform: translateY(-4px); }

/* Угадайка: солнышко за облаком */
.sun-sky { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 18px; border-radius: 24px; background: linear-gradient(180deg, #CFEAFF, #EEF8FF); }
.sun-cloud { position: relative; width: 124px; height: 100px; border: 0; background: none; cursor: pointer; padding: 0; }
.sun-cloud .sun { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; background: radial-gradient(circle, #FFE16B 55%, #FFC83D); box-shadow: 0 0 30px 8px rgba(255, 210, 60, .6); opacity: 0; transition: opacity .4s, transform .6s var(--spring); }
.sun-cloud .cloud { position: absolute; inset: 18px 0 0; border-radius: 60px; background: #fff; box-shadow: 0 8px 20px rgba(60, 110, 160, .15); transition: transform .7s var(--ease); }
.sun-cloud .cloud::before, .sun-cloud .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.sun-cloud .cloud::before { width: 58px; height: 58px; left: 18px; top: -28px; } .sun-cloud .cloud::after { width: 44px; height: 44px; right: 18px; top: -18px; }
.sun-cloud:hover .cloud { transform: translateY(-3px); }
.sun-cloud.found .sun { opacity: 1; transform: translateY(-34px) scale(1.1); }
.sun-cloud.found .cloud { transform: translateX(26px); }
