/* Нейрокадо — стиль сайта по руководству «Светлая композиция, объёмные предметные иллюстрации и точный русский текст» (v2) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBFBF4;        /* фон */
  --ink: #103D32;       /* текст */
  --ink-2: #3A6357;     /* второстепенный текст */
  --plate: #E8F0DB;     /* вывод, светло-зелёная плашка */
  --accent: #F6C638;    /* жёлтый акцент */
  --accent-hover: #EDB71F;
  --warm: #F6EEE7;      /* тёплое пятно */
  --mustard: #A97C00;   /* номера 01/02/03 */
  --line: #D6E0CB;      /* тонкие разделители */
  --leaf: #5F8D49;
  --coral: #E9806E;
  --white: #FFFFFF;

  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;

  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1180px;
  --section: clamp(64px, 11vw, 128px);

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.25rem + 2.6vw, 3rem);
  --fs-h1: clamp(2.375rem, 1.3rem + 4.6vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  /* слова не переносим по слогам — только целиком */
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }

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

[hidden] { display: none !important; }
.nw { white-space: nowrap; }

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

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

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 244, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* при открытом меню убираем размытие: иначе шапка становится контейнером для fixed-меню и оно не растягивается на экран */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 1.0625rem; }
.brand svg { width: 34px; height: 40px; flex: none; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 48px; min-height: 48px; padding: 0 12px; margin-right: -12px;
  background: none; border: 0; border-radius: 14px; cursor: pointer; color: var(--ink);
}
.menu-btn .dot { width: 9px; height: 9px; border-radius: 50%; transition: transform .25s; }
.menu-btn .dot:nth-child(1) { background: var(--ink); }
.menu-btn .dot:nth-child(2) { background: #9CC27A; }
.menu-btn .dot:nth-child(3) { background: var(--accent); }
.menu-btn[aria-expanded="true"] .dot:nth-child(1) { transform: translateX(15px) scale(1.15); }
.menu-btn[aria-expanded="true"] .dot:nth-child(3) { transform: translateX(-15px) scale(1.15); }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: fixed; inset: 68px 0 0 0; z-index: 49;
  background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto;
}
.site-nav ul { list-style: none; display: grid; gap: 4px; }
.site-nav a { display: block; padding: 14px 0; font-size: 1.375rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav .nav-cta { margin-top: 20px; border: 0; }
.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .menu-btn { display: none; }
  .site-nav, .nav-open .site-nav { display: block; position: static; padding: 0; background: none; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { padding: 10px 12px; font-size: 1rem; font-weight: 600; border: 0; border-radius: 10px; }
  .site-nav a:hover { background: var(--plate); }
  .site-nav .nav-cta { margin: 0 0 0 10px; }
  .nav-open { overflow: auto; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 10px 8px; font-size: .9375rem; }
  .site-nav .nav-cta { margin-left: 6px; }
  .site-nav .btn-small { padding: 0 14px; display: inline-flex; }
  .header-row .brand span { display: none; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--plate); }
.btn-soft { background: var(--plate); color: var(--ink); }
.btn-soft:hover { background: #DCE8C9; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.site-nav .btn { color: var(--ink); }
.site-nav .btn:hover { background: var(--accent-hover); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- общие элементы секций ---------- */
.section { padding: var(--section) 0 0; }
main { display: block; padding-bottom: var(--section); }
.h2-line::after {
  content: ""; display: block; width: 64px; height: 6px; margin-top: 18px;
  border-radius: 3px; background: var(--accent);
}
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.section-head p { margin: 0; }

.plate {
  position: relative; background: var(--plate); border-radius: var(--radius-m);
  padding: 22px 22px 22px 40px;
}
.plate::before {
  content: ""; position: absolute; left: 20px; top: 22px; bottom: 22px; width: 5px;
  border-radius: 3px; background: var(--accent);
}
.plate p:last-child { margin-bottom: 0; }

.dots { display: inline-flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--ink); }
.dots i:nth-child(2) { background: #9CC27A; }
.dots i:nth-child(3) { background: var(--accent); }

.ill { width: 100%; height: auto; }

/* ---------- первый экран ---------- */
.hero { padding: clamp(20px, 4vw, 56px) 0 0; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero-art { order: -1; width: min(78vw, 360px); margin: 0 auto -8px; }
.hero h1 .h1-kicker {
  display: block; font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem); font-weight: 600;
  letter-spacing: -0.005em; line-height: 1.35; color: var(--ink-2); margin-bottom: 14px;
}
.hero h1 .h1-main { display: block; }
.hero-text .lead { margin: 22px 0 0; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-facts {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  margin-top: 32px; border-top: 1px solid var(--line);
}
.hero-facts li { padding: 16px 12px 0 0; }
.hero-facts li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.hero-facts b { display: block; white-space: nowrap; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hero-facts li > span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 40px; }
  .hero-art { order: 0; width: 100%; max-width: 520px; margin: 0 0 0 auto; }
}

/* одно оркестрованное появление на первом экране */
@media (prefers-reduced-motion: no-preference) {
  .hero-art svg { animation: art-in .9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes art-in { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.97); } to { opacity: 1; transform: none; } }
}

/* ---------- коротко о курсе ---------- */
.about-grid { display: grid; gap: 32px; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) {
  .facts div { grid-template-columns: 15rem 1fr; gap: 24px; }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .about-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
}

/* ---------- шаги курса (последовательность) ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 3.25rem 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { grid-row: span 2; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--mustard); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.step h3 { align-self: center; }
.step p { margin: 6px 0 0; color: var(--ink-2); }
.step .note { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--ink); background: var(--plate); padding: 4px 12px; border-radius: 999px; font-size: var(--fs-small); }
.tools { margin-top: 28px; color: var(--ink-2); }
.tools b { color: var(--ink); }
@media (min-width: 1000px) {
  .steps-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .steps-grid .section-head { position: sticky; top: 100px; }
  .step { grid-template-columns: 4.5rem 1fr; padding: 28px 0; }
  .step-num { font-size: 2.25rem; }
}

/* ---------- как проходят занятия ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split-art { order: -1; width: min(72vw, 320px); margin: 0 auto -12px; }
.points { list-style: none; display: grid; gap: 0; }
.points li { padding: 16px 0 16px 30px; position: relative; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.points li > b { display: block; font-size: 1.125rem; margin-bottom: 2px; }
.points li > span { color: var(--ink-2); }
.split .plate { margin-top: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 6fr 5fr; gap: 64px; }
  .split-art { order: 0; width: 100%; max-width: 480px; margin: 0 0 0 auto; }
  .head-split { margin-bottom: clamp(24px, 4vw, 40px); }
  .head-split .section-head { margin-bottom: 0; }
  .head-split .split-art { max-width: 400px; }
}

/* ---------- проекты: карточки с иллюстрациями ---------- */
/* на телефоне — лента с прокруткой вбок (видно край следующей карточки), с 760px — сетка */
.cases {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 14px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.case { scroll-snap-align: start; scroll-margin-left: var(--gutter); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case-art { aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--warm); }
.case-art.is-plate { background: var(--plate); }
.case-art img { width: 100%; height: 100%; }
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.case-kind, .case-now { padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.case-kind { background: var(--plate); color: var(--ink); }
.case-now { background: var(--accent); color: var(--ink); }
.case-meta { color: var(--mustard); }
.case-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
.case-text { margin: 8px 0 0; color: var(--ink-2); font-size: 1rem; }
.case-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; font-weight: 700; }
.case-link svg { width: 16px; height: 16px; flex: none; }
.cases-hint { display: flex; align-items: center; gap: 6px; margin: -8px 0 14px; font-size: var(--fs-small); color: var(--ink-2); }
.cases-hint svg { width: 16px; height: 16px; }
@media (min-width: 760px) {
  .cases { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px;
           overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; }
  .case { scroll-margin-left: 0; }
  .cases-hint { display: none; }
}
@media (min-width: 1100px) {
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 32px; }
  .cases.cases-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
/* широкая карточка (главный проект автора): в сетке занимает всю строку — иллюстрация слева, текст справа */
@media (min-width: 760px) {
  .case-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
  .case-wide .case-art { flex: 0 0 calc(50% - 14px); }
  .case-wide .case-body { flex: 1 1 auto; min-width: 0; }
}

/* ---------- мини-игры: карточки ---------- */
.game-art { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.game-art img { object-fit: cover; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.game-art:hover img, .game-art:focus-visible img { transform: scale(1.035); }
.game-own .game-art img { object-fit: contain; padding: 4% 8%; }
#igry .case-body { flex: 1; display: flex; flex-direction: column; }
#igry .case-text { margin-bottom: 16px; }
.game-play { margin-top: auto; align-self: flex-start; }

/* ---------- мини-игры: окно игры ---------- */
html.gm-open, html.gm-open body { overflow: hidden; }
.gm {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: stretch; justify-content: center;
  background: var(--bg); overscroll-behavior: contain; touch-action: manipulation;
}
.gm-frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bg); }
.gm-top {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: calc(6px + env(safe-area-inset-top)) 14px 6px; min-height: 58px; border-bottom: 1px solid var(--line);
}
.gm-close {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--plate); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gm-close:hover { background: #DCE8C9; }
.gm-close svg { width: 18px; height: 18px; }
.gm-title { font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-best { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-align: right; white-space: nowrap; }
.gm-best b { color: var(--ink); font-size: 1rem; font-weight: 800; }
.gm-stage { position: relative; flex: 1; min-height: 0; margin-bottom: env(safe-area-inset-bottom); }
.gm-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.gm-screen {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(251, 251, 244, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.gm-card {
  width: min(100%, 360px); background: var(--white); border-radius: var(--radius-l); padding: 26px 22px 22px;
  text-align: center; box-shadow: 0 24px 50px -24px rgba(16, 61, 50, .45);
}
.gm-kicker { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; color: var(--mustard); }
.gm-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.gm-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.gm-card .gm-hint { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--ink); background: var(--plate); border-radius: 999px; padding: 6px 14px; }
.gm-card .btn { width: 100%; margin-top: 6px; }
.gm-card .gm-score { display: grid; gap: 2px; margin: 4px 0 6px; }
.gm-score span { font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.gm-score b { font-size: 3.5rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.gm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 14px; }
.gm-card .gm-actions .btn { margin: 0; padding: 0 12px; }
.gm-card .gm-note { font-size: .875rem; margin: 0; }
.gm-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 700px) and (min-height: 640px) {
  .gm { background: rgba(16, 61, 50, .55); align-items: center; padding: 24px; }
  .gm-frame { width: min(440px, 100%); height: min(880px, 100%); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
}

.author-projects { margin-top: clamp(40px, 6vw, 56px); }
.author-projects h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); }
.author-projects > p { margin: 8px 0 20px; color: var(--ink-2); }

/* ---------- пакеты ---------- */
.packages { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.package {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  grid-template-areas: "badge badge" "head cost" "save save" "btn btn";
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.package-head { grid-area: head; }
.package-cost { grid-area: cost; }
.package-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.015em; }
.package-count { color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; }
.package-price { text-align: right; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; white-space: nowrap; }
.package-per { text-align: right; color: var(--ink-2); font-size: var(--fs-small); white-space: nowrap; }
.package-save { grid-area: save; margin: 0; font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.package-save > span:first-child { background: var(--accent); border-radius: 999px; padding: 2px 10px; margin-right: 8px; white-space: nowrap; }
.package .btn { grid-area: btn; margin-top: 8px; }
.package.is-best { background: var(--plate); border-radius: var(--radius-m); padding: 22px 20px; border-bottom: 0; margin: 12px 0; }
.package-badge { grid-area: badge; justify-self: start; margin-bottom: 4px; font-size: .8125rem; font-weight: 700; color: var(--bg); background: var(--ink); padding: 4px 12px; border-radius: 999px; }
.included { margin-top: 22px; color: var(--ink-2); }
.included b { color: var(--ink); }

.family { display: grid; gap: 24px; align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.family-art { width: min(78vw, 360px); margin: 0 auto; }
.family h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.family p { margin: 14px 0 0; }
.family .plate { margin-top: 20px; }

@media (min-width: 700px) {
  .package { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 11rem; grid-template-areas: "badge badge btn" "head cost btn" "save save btn"; gap: 6px 28px; padding: 26px 8px; }
  .package.is-best { padding: 26px 28px; margin: 14px -20px; }
  .package-price, .package-per { text-align: left; }
  .package .btn { margin: 0; align-self: center; }
}
@media (min-width: 900px) {
  .family { grid-template-columns: 5fr 7fr; gap: 56px; }
}

/* ---------- видеолекции ---------- */
.player { display: grid; gap: 14px; }
.src-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--plate); justify-self: start; }
.src-switch button {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.src-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.player-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: var(--radius-m); background: #0E2E26;
  box-shadow: 0 18px 40px -18px rgba(16, 61, 50, .45);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-caption { display: grid; gap: 4px; }
.player-caption h3 { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); }
.player-caption p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }

.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.rail-head h3 { font-size: 1.125rem; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.rail-nav button:hover { background: var(--plate); }
.rail-nav svg { width: 20px; height: 20px; }
@media (min-width: 760px) { .rail-nav { display: flex; } }

.rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail > li { scroll-snap-align: start; scroll-margin-left: var(--gutter); display: grid; align-content: start; gap: 8px; }
.lec-card {
  display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.lec-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: var(--plate); }
.lec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lec-time { position: absolute; right: 8px; bottom: 8px; background: rgba(16, 61, 50, .88); color: #fff; font-size: .8125rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.lec-card .lec-title { font-weight: 700; line-height: 1.3; font-size: 1rem; }
.lec-card[aria-current="true"] .lec-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.lec-card[aria-current="true"] .lec-now { display: inline-block; }
.lec-now { display: none; font-size: .8125rem; font-weight: 700; color: var(--mustard); }
.lec-more { font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 760px) { .rail { grid-auto-columns: calc((100% - 28px) / 3); padding-left: 0; padding-right: 0; margin: 0; } .rail > li { scroll-margin-left: 0; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 42px) / 4); } }
.lec-all { margin-top: 12px; }
@media (min-width: 1000px) {
  .video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .video-list .rail-head { margin-top: 0; }
  .video-list .rail-nav { display: none; }
  .video-list .rail {
    grid-auto-flow: row; grid-auto-columns: auto; overflow-x: hidden; overflow-y: auto;
    max-height: 560px; scroll-snap-type: y proximity; padding: 4px 8px 4px 4px; margin: 0; gap: 18px;
  }
  .video-list .rail > li { scroll-snap-align: start; }
  .video-list .lec-card { grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .video-list .lec-card .lec-thumb { grid-row: span 3; }
  .video-list .lec-more { margin-left: 142px; }
}

/* ---------- отзывы ---------- */
.reviews { list-style: none; display: grid; gap: 16px; }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.0625rem; }
.review figcaption { margin-top: 14px; font-weight: 700; font-size: var(--fs-small); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- автор ---------- */
.author { display: grid; gap: 28px; }
.author-name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.author-role { margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }
.author-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.author-badges li { padding: 6px 14px; border-radius: 999px; background: var(--plate); font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.author-badges li:first-child { background: var(--accent); }
.creds { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--line); }
.creds li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) { .author { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--plate)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%23103D32' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- запись ---------- */
.signup { display: grid; gap: 32px; }
.signup-aside { display: grid; gap: 16px; align-content: start; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list a { font-weight: 700; }
.form { display: grid; gap: 18px; background: var(--white); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 36px); box-shadow: 0 0 0 1px var(--line) inset; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1.0625rem; line-height: 1.4;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.input::placeholder, .textarea::placeholder { color: #7B958C; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23103D32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips input + span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: var(--fs-small); color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status.is-error { color: #A3321F; }
.form-success { display: grid; gap: 12px; background: var(--plate); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.form-success h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.form-success p { margin: 0; }
@media (min-width: 900px) { .signup { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .signup-aside { position: sticky; top: 100px; } }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink); color: #E8F0DB; padding: clamp(48px, 7vw, 80px) 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer a { color: #FBFBF4; }
.site-footer a:hover { text-decoration-color: var(--accent); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 12px; max-width: 26rem; }
.footer-brand .brand { color: #FBFBF4; }
.site-footer .brand svg path:first-child { fill: #9CC27A; }
.footer-edu { font-size: .875rem; }
.footer-brand p { margin: 0; color: #C7D6C0; }
.footer-col h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; color: #FBFBF4; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col li { color: #C7D6C0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(232, 240, 219, .18); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); color: #C7D6C0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- липкая кнопка на телефоне ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 251, 244, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 50px; padding: 0 14px; }
.sticky-cta .btn-secondary { flex: 0 0 auto; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- внутренние страницы ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-small); color: var(--ink-2); padding-top: clamp(20px, 3vw, 36px); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
@media (max-width: 699px) { .crumbs li[aria-current] { display: none; } }
.page-head { display: grid; gap: 18px; padding: 18px 0 0; max-width: 52rem; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.08; }
.page-head .lead { margin: 0; }
.lec-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lec-meta li { background: var(--plate); border-radius: 999px; padding: 6px 14px; font-size: var(--fs-small); font-weight: 600; }
.lecture-layout { display: grid; gap: 40px; margin-top: 32px; }
.learn { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.learn li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.learn li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ext-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 600; }
.lec-list { list-style: none; display: grid; gap: 28px; }
.lec-item { display: grid; gap: 14px; }
.lec-item h2, .lec-item h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); }
.lec-item p { margin: 0; color: var(--ink-2); }
.lec-item .lec-thumb { max-width: 520px; }
@media (min-width: 760px) {
  .lec-item { grid-template-columns: minmax(0, 360px) 1fr; gap: 28px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .lecture-layout { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
  .lecture-side { position: sticky; top: 100px; }
}
.cta-box { display: grid; gap: 14px; background: var(--plate); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.cta-box h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-box p { margin: 0; }
.cta-box .btn { justify-self: start; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: 40px 0 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.notfound { padding: clamp(48px, 10vw, 120px) 0; display: grid; gap: 20px; max-width: 40rem; }

/* ---------- пакеты в форме ---------- */
.pkg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pkg-card { position: relative; display: block; }
.pkg-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pkg-card-body {
  display: grid; gap: 2px; height: 100%; padding: 12px 34px 12px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s, background-color .15s;
}
.pkg-card-body b { font-size: 1rem; line-height: 1.25; }
.pkg-card-body span { font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
.pkg-card-body .pkg-card-price { margin-top: 4px; font-size: 1.0625rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pkg-card:hover .pkg-card-body { border-color: #B9C8AA; }
.pkg-card input:checked + .pkg-card-body { border-color: var(--ink); background: var(--plate); }
.pkg-card input:checked + .pkg-card-body::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23103D32' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.pkg-card input:focus-visible + .pkg-card-body { outline: 3px solid var(--ink); outline-offset: 2px; }
.pkg-card-wide { grid-column: 1 / -1; }
@media (max-width: 379px) {
  .pkg-card-body { padding: 12px 10px; }
  .pkg-card-body b { font-size: .9375rem; }
  .pkg-card input:checked + .pkg-card-body::after { top: -8px; right: -8px; }
}
.package-note {
  position: relative; margin: 0 0 4px; padding: 12px 14px 12px 32px; border-radius: 14px;
  background: var(--plate); font-weight: 600; line-height: 1.4;
}
.package-note::before { content: ""; position: absolute; left: 14px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .package-note:not([hidden]) { animation: note-in .35s ease-out both; }
  @keyframes note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---------- гиды ---------- */
.guide-list { list-style: none; display: grid; gap: 14px; }
.guide-card {
  display: grid; gap: 8px; height: 100%; padding: 22px 22px 24px; border-radius: var(--radius-m);
  background: var(--plate); text-decoration: none; transition: background-color .15s;
}
.guide-card:hover { background: #DCE8C9; }
.guide-kind { font-size: var(--fs-small); font-weight: 700; color: var(--mustard); }
.guide-title { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.guide-desc { color: var(--ink-2); }
@media (min-width: 900px) { .guide-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.guide { max-width: 48rem; }
.byline { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.tldr { margin-top: 28px; }
.tldr h2 { font-size: 1.125rem; margin-bottom: 10px; }
.tldr ul { list-style: none; display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 18px; }
.tldr li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.toc { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 1rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.guide-body { margin-top: 8px; }
.guide-body > h2 { margin: 48px 0 20px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.guide-body > p { margin: 0 0 16px; }
.guide-body > .plate { margin: 20px 0; }
.guide-body > .learn, .guide-body > .num-list { margin: 8px 0 16px; }
.num-list { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 0; border-top: 1px solid var(--line); }
.num-list li { counter-increment: n; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-weight: 800; font-size: 1.125rem; color: var(--mustard); font-variant-numeric: tabular-nums; }
.table-wrap { margin: 12px 0 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: var(--fs-small); color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--ink); }
.data-table tbody th { font-weight: 700; }
@media (max-width: 699px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table th, .data-table td { padding: 2px 0; border: 0; }
  .data-table tbody th { font-size: 1.0625rem; margin-bottom: 6px; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}
.sources { padding-left: 1.3em; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.more-guides { margin-top: 40px; }
.more-guides h2 { font-size: 1.125rem; margin-bottom: 10px; }
.more-guides ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- заставка при первом заходе (≈1 с, один раз за визит) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--bg); pointer-events: none;
  animation: intro-out .35s cubic-bezier(.4, 0, .2, 1) .9s forwards;
}
.no-intro .intro { display: none; }
.intro-stage { display: grid; justify-items: center; gap: 14px; }
.intro-avo { width: 120px; height: auto; transform-origin: 50% 92%; animation: intro-pop .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.intro-eye-r { transform-box: fill-box; transform-origin: center; animation: intro-wink .5s ease .35s both; }
.intro-dots { display: flex; gap: 10px; }
.intro-dots i { width: 12px; height: 12px; border-radius: 50%; animation: intro-dot .42s ease-in-out infinite alternate; }
.intro-dots i:nth-child(1) { background: var(--ink); }
.intro-dots i:nth-child(2) { background: #9CC27A; animation-delay: .14s; }
.intro-dots i:nth-child(3) { background: var(--accent); animation-delay: .28s; }
@keyframes intro-pop {
  0% { opacity: 0; transform: translateY(24px) scale(.55) rotate(-10deg); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.07) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes intro-wink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.12); } }
@keyframes intro-dot { from { transform: translateY(0); opacity: .45; } to { transform: translateY(-9px); opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- где выступал: бегущие логотипы ---------- */
.venues { padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.venues-title { font-size: var(--fs-h3); line-height: 1.3; text-align: center; color: var(--ink-2); font-weight: 700; margin: 0 auto 26px; max-width: 30em; text-wrap: balance; }
/* без JS — обычная горизонтальная прокрутка; с JS (.is-live) лента едет сама через transform — плавно, на видеокарте */
.marquee { overflow-x: auto; overflow-y: hidden; padding: 7px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-live { overflow: hidden; touch-action: pan-y; cursor: grab; }
.marquee:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 16px; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee-inner { display: flex; gap: 14px; width: max-content; }
.marquee.is-live .marquee-inner { will-change: transform; backface-visibility: hidden; }
.marquee-track { display: flex; gap: 14px; flex: none; margin: 0; padding: 0; list-style: none; }
.venue img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.venue { display: flex; align-items: center; gap: 12px; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px; box-shadow: 0 6px 18px rgba(16,61,50,.06); }
.venue > svg, .venue-mark { width: 40px; height: 40px; flex: none; }
.venue-logo { display: flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; max-width: 132px; flex: none; }
.venue-logo img { height: 40px; width: auto; max-width: 132px; object-fit: contain; }
.venue-mark { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.0625rem; }
.venue-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.venue-text b { font-size: .9375rem; }
.venue-text > span { font-size: .8125rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  .marquee:not(.is-live) .marquee-track[aria-hidden] { display: none; }
}

/* ---------- география лекций ---------- */
.geo { display: grid; gap: 24px; }
@media (min-width: 900px) { .geo-side { display: grid; grid-template-columns: minmax(300px, 1fr) 1.4fr; gap: 36px; align-items: start; } }
.geo-art { background: var(--warm); border-radius: var(--radius-l); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.geo-map { min-width: 860px; }
.geo-notes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: -10px; }
.geo-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--ink-2); max-width: 100%; }
.geo-disclaimer svg { flex: none; margin-top: 1px; color: var(--mustard); }
.geo-hint { display: none; margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 899px) { .geo-hint { display: block; } }
@media (min-width: 900px) { .geo-map { min-width: 0; } }
.geo-map { display: block; width: 100%; height: auto; }
.geo-label { font-weight: 700; font-family: Inter, system-ui, sans-serif; fill: var(--ink); paint-order: stroke; stroke: #E8F0DB; stroke-width: 6px; stroke-linejoin: round; }
.geo-pulse { fill: rgba(233,128,110,.35); transform-origin: center; transform-box: fill-box; animation: geo-pulse 2.4s ease-out infinite; }
@keyframes geo-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .geo-pulse { animation: none; opacity: 0; } }
.geo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.geo-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.geo-stats div { background: var(--plate); border-radius: var(--radius-m); padding: 16px 18px; }
.geo-stats dt { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.geo-stats dd { margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.35; }
.geo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.geo-stats div:last-child:nth-child(odd) { grid-column: auto; }
.geo-lists p { margin: 0 0 12px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.geo-lists b { color: var(--ink); }
.geo-sub { font-family: Inter, system-ui, sans-serif; fill: var(--ink-2); font-weight: 500; }
.geo-inset .geo-label { stroke: none; }

/* ---------- побочный эффект ---------- */
.side-effect-card { display: grid; gap: 28px; align-items: center; background: var(--plate); border-radius: var(--radius-l); padding: clamp(24px, 5vw, 56px); }
@media (min-width: 860px) { .side-effect-card { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.side-effect-kicker { display: inline-block; margin: 0 0 12px; background: var(--accent); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: var(--fs-small); }
.side-effect-card h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.side-effect-card p:not(.side-effect-kicker):not(.bubble) { color: var(--ink-2); margin: 0 0 22px; max-width: 34em; }
.side-effect-chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { margin: 0; max-width: 88%; padding: 13px 18px; border-radius: 22px; font-weight: 600; line-height: 1.4; box-shadow: 0 8px 20px rgba(16,61,50,.08); }
.bubble-kid { background: var(--white); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble-parent { background: var(--accent); border-bottom-right-radius: 6px; align-self: flex-end; }

/* ---------- лично, а не франшиза ---------- */
.personal-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .personal-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.personal-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.personal-stats li { flex: 1 1 150px; background: var(--plate); border-radius: var(--radius-m); padding: 16px 18px; }
.personal-stats b { display: block; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.personal-stats li > span { display: block; margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.35; }
.personal-note { margin: 18px 0 0; padding-left: 16px; border-left: 4px solid var(--accent); color: var(--ink); font-weight: 600; max-width: 34em; }
.compare-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 6px clamp(14px, 2.4vw, 26px); box-shadow: 0 10px 28px rgba(16,61,50,.06); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.4; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-top: 18px; }
.compare thead th:last-child { color: var(--ink); }
.compare tbody th { font-weight: 700; width: 26%; }
.compare tbody td { color: var(--ink-2); }
.compare tbody td:last-child { color: var(--ink); font-weight: 600; background: linear-gradient(var(--plate), var(--plate)) padding-box; }
.compare td:last-child, .compare thead th:last-child { background: var(--plate); }
@media (max-width: 600px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { width: auto; margin-bottom: 8px; }
  .compare tbody td { padding: 8px 12px; border-radius: 12px; }
  .compare tbody td:nth-of-type(1) { margin-bottom: 6px; background: var(--bg); }
  .compare tbody td:nth-of-type(1)::before { content: "Типичная онлайн-школа: "; color: var(--ink-2); font-weight: 600; }
  .compare tbody td:nth-of-type(2)::before { content: "«Нейрокадо»: "; font-weight: 800; }
}

.geo-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -8px 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--ink-2); }
.geo-legend li { display: flex; align-items: center; gap: 8px; }
.geo-dot { width: 12px; height: 12px; border-radius: 50%; background: #E9806E; box-shadow: 0 0 0 2px #fff; }
.geo-dot-recent { background: #F6C638; box-shadow: 0 0 0 1.5px #103D32; }
.geo-pin-recent .geo-pulse { fill: rgba(246,198,56,.45); }

/* ---------- пресс-портрет (/press/) ---------- */
.press-hero { display: grid; gap: 32px; padding-top: 18px; align-items: start; }
@media (min-width: 900px) { .press-hero.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.press-eyebrow { margin: 0 0 14px; font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mustard); }
.press-hero h1 { font-size: var(--fs-h1); line-height: 1.02; }
.press-role { margin: 14px 0 0; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; max-width: 24em; text-wrap: balance; }
.press-hero .lead { margin: 18px 0 0; }
.press-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.press-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 32px 0 0; }
@media (min-width: 640px) { .press-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.press-stats div { background: var(--plate); border-radius: var(--radius-m); padding: 16px 16px 14px; }
.press-stats dt { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.press-stats dd { margin: 6px 0 0; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
.press-photo { margin: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--plate); aspect-ratio: 4 / 5; }
.press-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
@media (max-width: 899px) { .press-photo { max-width: 420px; } }

.press-toc { margin-top: 40px; }
.press-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.press-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.press-toc a:hover { background: var(--plate); }

.press-sec { margin-top: clamp(64px, 9vw, 112px); }
.intro-cards { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .intro-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .intro-card:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
.intro-card { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 28px); }
.intro-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.intro-card h3 { margin: 0; }
.intro-card header span { font-size: var(--fs-small); color: var(--ink-2); }
.intro-text p { margin: 0; }
.intro-text p + p { margin-top: .75em; }
.copy-btn { align-self: flex-start; gap: 8px; margin-top: 4px; }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.is-done { background: var(--accent); }

.press-two { display: grid; gap: 56px; }
@media (min-width: 900px) { .press-two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.press-two h2 { margin-bottom: 28px; }
.press-edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.press-edu li { display: grid; gap: 4px; background: var(--plate); border-radius: var(--radius-m); padding: 18px 20px; }
.edu-year { color: var(--mustard); font-weight: 800; }
.edu-name { font-weight: 700; line-height: 1.35; }
.edu-note { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: -5px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.tl-year { font-weight: 800; color: var(--mustard); font-size: var(--fs-small); letter-spacing: .02em; }
.timeline h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); max-width: 44em; }
@media (min-width: 760px) {
  .timeline li { grid-template-columns: 112px minmax(0, 1fr); gap: 0 44px; padding: 0 0 28px; }
  .timeline li::before { left: 133px; }
  .timeline li::after { left: 139px; }
  .tl-year { font-size: 1rem; padding-top: 1px; }
}

.press-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .press-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .press-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.press-topics li { background: var(--plate); border-radius: var(--radius-l); padding: 24px; display: grid; gap: 10px; align-content: start; }
.topic-num { font-weight: 800; color: var(--mustard); }
.press-topics p { margin: 0; color: var(--ink-2); }
.press-chips { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 900px) { .press-chips { grid-template-columns: 1fr 1fr; gap: 40px; } }
.press-chips h3 { margin: 0 0 12px; font-size: 1.125rem; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: var(--fs-small); }

.press .venues { margin-top: clamp(40px, 6vw, 72px); }
.press-more { margin: 20px 0 0; color: var(--ink-2); }
.press-geo { margin-top: 0; text-align: center; }
.press-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .press-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.press-gallery a { display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--plate); }
.press-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; transition: transform .3s ease; }
.press-gallery a:hover img { transform: scale(1.03); }
.press-gallery + .press-more { margin-top: 16px; }
.press-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.author-press { margin: 20px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.author-press a { font-weight: 700; }
.press-topics p, .intro-text p, .timeline p { text-wrap: pretty; }
.press-topics .topic-own { background: var(--white); border: 2px dashed var(--line); }
.topic-own a { font-weight: 700; justify-self: start; }
.press-sec > h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.author-aside { display: grid; gap: 0; align-content: start; }
.author-photo { margin: 0 0 8px; border-radius: var(--radius-l); overflow: hidden; background: var(--plate); aspect-ratio: 4 / 5; max-width: 340px; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
@media (min-width: 900px) { .author-photo { max-width: 400px; } }
.rider-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .rider-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.rider-card { background: var(--plate); border-radius: var(--radius-l); padding: 24px; }
.rider-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.rider-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rider-card li { position: relative; padding-left: 22px; line-height: 1.45; text-wrap: pretty; }
.rider-card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.price-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 16px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.price-table thead th { border-top: 0; font-size: var(--fs-small); color: var(--ink-2); font-weight: 600; }
.price-table tbody th { font-weight: 700; }
.price-table td:last-child { font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; gap: 2px; padding: 14px 20px; border-top: 1px solid var(--line); }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(2) { color: var(--ink-2); font-size: var(--fs-small); }
}
.guide-fig { margin: 32px 0; }
.guide-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius-l); }
.guide-fig figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-2); text-align: center; text-wrap: balance; }
.guide-fig img[src*="zapros-obyasni"] { max-width: 440px; margin: 0 auto; }
