/* Лендинг (задача 27, новый дизайн — задача 27b): landing.html и страница «Методика» method.html.
   Отдельные страницы: движок, engine.css и site.css не подключаются. Из темы brand.css взяты только цвета и шрифты.
   Цвета — только переменные ниже (контраст посчитан в research/REPORT-27b-landing.md).
   Основа светлая (.light / .soft), один большой чёрный блок с демо (.dark.how), чёрный финал и подвал.
   Кнопки только для этих страниц: сплошная заливка без обводки, скругление 12–14 px. Кабинеты их не используют.
   Движение: тихое появление при прокрутке (.rv, класс ставит landing.js), жёлтый маркер под словами заголовков (mark)
   и демо «один урок на двоих».
   prefers-reduced-motion: всё стоит на месте. */

@font-face {
  font-family: "Geologica"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../engine/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../engine/fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../engine/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../engine/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* светлые разделы */
  --bg: #FFFFFF;
  --bg-2: #F6F5F2;          /* второй фон: очень светлый тёплый серый */
  --ink: #171717;
  --muted: #5A5A5A;
  --line: #E7E5E0;
  --soft: #EFEEEA;          /* тихая кнопка */
  --soft-h: #E5E3DE;
  --good: #247A4B;          /* фирменный зелёный (светлая тема) */
  /* чёрные разделы (как тёмная тема урока) */
  --d-bg: #000000;
  --d-ink: #F5F5F5;
  --d-muted: #A1A1A6;
  --d-line: #2A2A2A;
  --d-win: #111111;         /* окно урока в демо */
  --d-card: #171717;        /* карточка задания */
  /* фирменный жёлтый — только заливка под чёрным текстом или знак на чёрном */
  --y: #FFE34D;
  --y-h: #F5D52E;           /* жёлтая кнопка при наведении — чуть темнее */
  --y-ink: #171717;
  /* верно / неверно — из темы brand.css (тёмный вариант, демо на чёрном) */
  --d-good: #4CC38A;
  --d-good-bg: #10291D;
  --d-bad: #FF6B6B;
  --d-bad-bg: #3A1515;

  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geologica", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.125rem;      /* 18 px; в rem — чтобы работала настройка размера шрифта в браузере */
  --gutter: 32px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 64px -12px rgba(0, 0, 0, .22);
}
@media (max-width: 56.25em) { :root { --gutter: 24px } }
@media (max-width: 40em) { :root { --fs-body: 1.0625rem; --gutter: 16px } }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em }
h3 { font-size: 1.3125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em }
p { margin: 0 }
a { color: inherit }
ul, ol { margin: 0; padding: 0; list-style: none }
@media (min-width: 40.0625em) { .nb { white-space: nowrap } }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) }
.lead { font-size: calc(var(--fs-body) + .125rem); line-height: 1.55; max-width: 36em; text-wrap: pretty }
.eyebrow { font: 700 1rem/1.2 var(--font-display); letter-spacing: -.005em; margin-bottom: 14px; color: var(--muted) }
.head { max-width: 760px }

/* жёлтый маркер под ключевыми словами заголовков (27b-2). На светлом — полоса под чёрным текстом,
   на чёрном — плашка целиком, текст на ней чёрный. Проводится слева направо, когда заголовок появился. */
mark {
  color: inherit; padding: 0 .08em; margin: 0 -.04em;
  background: linear-gradient(var(--y), var(--y)) no-repeat 0 92% / 100% .44em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dark mark { color: var(--y-ink); background-position: 0 50%; background-size: 100% 100%; padding: 0 .14em; margin: 0; border-radius: .12em }
.js .rv mark { background-size: 0 .44em; transition: background-size .8s var(--ease) .35s }
.js .rv.in mark { background-size: 100% .44em }
.js .dark .rv mark { background-size: 0 100%; color: var(--d-ink); transition: background-size .8s var(--ease) .35s, color .3s var(--ease) .55s }
.js .dark .rv.in mark { background-size: 100% 100%; color: var(--y-ink) }
.head .lead { margin-top: 20px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--y); color: var(--y-ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none }
.skip:focus { top: 12px }

/* фокус с клавиатуры виден везде: на светлом — чёрная рамка, на чёрном — жёлтая */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--y) }

/* ---------- кнопки: сплошная заливка, без обводки, скругление 12–14 px ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 650 1.0625rem/1.15 var(--font-display); letter-spacing: -.005em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.btn.primary { background: var(--y); color: var(--y-ink); font-weight: 700 }
.btn.primary:hover { background: var(--y-h) }
.btn.soft { background: var(--soft); color: var(--ink) }
.btn.soft:hover { background: var(--soft-h) }
.soft .btn.soft.on-soft { background: #E9E7E2 }
.soft .btn.soft.on-soft:hover { background: #DFDDD7 }
.btn.quiet { background: transparent; color: var(--ink); padding: 0 14px }
.btn.quiet:hover { background: var(--soft) }
.btn.glass { background: rgba(255, 255, 255, .12); color: var(--d-ink) }
.btn.glass:hover { background: rgba(255, 255, 255, .2) }
.btn.big { min-height: 56px; padding: 0 24px; font-size: 1.125rem; border-radius: 14px }
.btn.huge { min-height: 64px; padding: 0 34px; font-size: 1.25rem; border-radius: 14px }

/* ---------- шапка: матовое стекло ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid transparent; transition: border-color .2s }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px) }
}
.top.scrolled { border-bottom-color: rgba(0, 0, 0, .1) }
.top.on-dark { background: rgba(255, 255, 255, .94) }
.top-in { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 64px }
.brand { font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; color: inherit; padding: 11px 0 }
.nav { display: flex; gap: 2px; margin-right: auto }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 10px 11px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; color: #333 }
.nav a:hover { background: rgba(0, 0, 0, .05); color: var(--ink) }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(0, 0, 0, .05) }
.nav .nav-login { display: none }
.top-act { display: flex; align-items: center; gap: 6px }
.top-act .btn { white-space: nowrap; min-height: 44px; font-size: 0.9375rem; padding: 0 16px; border-radius: 11px }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round }
.menu-btn:hover { background: rgba(0, 0, 0, .05) }

@media (max-width: 70em) {
  .top-in { gap: 8px }
  .brand { margin-right: auto }
  .top-act .login { display: none }
  .menu-btn { display: inline-flex }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: #FFFFFF; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
  }
  .nav.open { display: flex }
  .nav a { font-size: 1.125rem; padding: 12px 8px; color: var(--ink) }
  .nav .nav-login { display: inline-flex }
}

/* ---------- разделы ---------- */
section { padding: clamp(80px, 9vw, 136px) 0 }
.light { background: var(--bg) }
.soft { background: var(--bg-2) }
.dark { background: var(--d-bg); color: var(--d-ink) }
.dark .lead, .dark .eyebrow { color: var(--d-muted) }
.light .lead, .soft .lead { color: var(--muted) }
.light + .light { padding-top: 0 }

/* окно и телефон вокруг снимков платформы */
.frame { margin: 0; background: var(--d-win); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid rgba(0, 0, 0, .08) }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1A1A1A; color: #9A9A9F; font: 600 0.875rem/1 var(--font-body) }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A3C }
.frame-bar span { margin-left: 10px }
.frame img { width: 100% }
.phone { margin: 0; background: #0A0A0A; border-radius: 34px; padding: 8px; box-shadow: var(--shadow); outline: 1px solid rgba(0, 0, 0, .1) }
.phone img { border-radius: 27px; width: 100% }

/* ---------- 1. первый экран ---------- */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 128px) }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 3.5vw, 48px) }
.hero-text { padding-top: clamp(0px, 3vw, 40px) }
/* снимок урока глазами ученика + «отклеенная» карточка с ответом + плашка «Учитель в уроке» */
.hero-visual { position: relative; padding-bottom: 104px; max-width: 540px; justify-self: end; width: 100% }
.hero-shot { padding-bottom: 96px }   /* тёмное «продолжение урока» под сообщением — на него ложится карточка с ответом */
.hero-card { position: absolute; left: -64px; bottom: 0; width: 78%; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 30px 70px -14px rgba(0, 0, 0, .45); transform: rotate(-2deg) }
.hero-card img { width: 100% }
.hero-badge {
  position: absolute; right: -18px; top: 56px; display: inline-flex; align-items: center; gap: 10px;
  background: #FFFFFF; color: var(--ink); padding: 10px 16px; border-radius: 999px; font: 700 1rem/1.2 var(--font-display);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 34px -8px rgba(0, 0, 0, .3);
}
.hero-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(36, 122, 75, .18); animation: pulse 2s var(--ease) infinite }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(36, 122, 75, 0) } }
.js .hero-visual .hero-card, .js .hero-visual .hero-badge { opacity: 0; transition: opacity .6s var(--ease) .5s, transform .7s var(--ease) .5s }
.js .hero-visual .hero-card { transform: translateY(24px) rotate(-2deg) }
.js .hero-visual .hero-badge { transform: translateY(-10px); transition-delay: .8s }
.js .hero-visual.in .hero-card { opacity: 1; transform: rotate(-2deg) }
.js .hero-visual.in .hero-badge { opacity: 1; transform: none }
.hero .lead { color: var(--muted); margin-top: 4px }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.note { margin-top: 16px; font-size: 0.9375rem; color: var(--muted) }
@media (max-width: 56.25em) {
  .hero-in { grid-template-columns: 1fr }
  .hero-visual { justify-self: center }
}
@media (max-width: 72em) and (min-width: 56.3125em) { .hero-card { left: -24px } }
@media (max-width: 40em) {
  .hero-visual { padding-bottom: 0 }
  .hero-shot { padding-bottom: 72px }
  .hero-card { position: relative; left: auto; bottom: auto; width: 94%; margin: -60px 0 0 auto; border-radius: 16px }
  .hero-badge { right: -6px; top: -20px; font-size: 0.9375rem; padding: 8px 14px }
}
@media (max-width: 30em) {
  .cta .btn { width: 100%; white-space: normal; text-align: center }
}

/* ---------- 2. демо «один урок на двоих» (чёрный блок) ---------- */
.demo { margin-top: 56px }
.demo-hint { font-weight: 600; margin-bottom: 16px; color: var(--d-ink) }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center }
.demo-grid .win { align-self: stretch }
/* стрелка между окнами: ответ ученика сразу появляется у учителя */
.sync { justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--y); color: var(--y-ink); display: inline-flex; align-items: center; justify-content: center; z-index: 2 }
.sync svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
@media (max-width: 51.25em) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 12px auto }
  .sync { transform: rotate(90deg); width: 36px; height: 36px; margin: -12px 0 }
}

.win { position: relative; background: var(--d-win); border: 1px solid var(--d-line); border-radius: 18px; overflow: hidden; min-width: 0 }
#winStudent { border-color: rgba(255, 227, 77, .55) }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 10px; border-bottom: 1px solid var(--d-line); min-height: 52px; background: #141414 }
/* подписи окон — главное, что нужно увидеть сразу: ученик — жёлтая плашка, учитель — белая */
.who { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 10px; font: 800 1.0625rem/1 var(--font-display); letter-spacing: -.01em }
.who svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.who.you { background: var(--y); color: var(--y-ink) }
.who.teach { background: #FFFFFF; color: var(--ink) }
.who small { font: 600 0.875rem/1 var(--font-body); margin-left: 2px; opacity: .75 }
.win-step { font-size: 0.9375rem; color: var(--d-muted) }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--d-ink) }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--d-good); box-shadow: 0 0 0 4px rgba(76, 195, 138, .18) }
.win-body { padding: 22px }
.task-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px }
.task-h h3 { font-size: 1.25rem; color: var(--d-ink) }
.t-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--y); color: var(--y-ink); display: inline-flex; align-items: center; justify-content: center }
.t-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.q { background: var(--d-card); border: 1.5px solid var(--d-line); border-radius: 16px; padding: 18px; transition: border-color .25s var(--ease) }
.q.done { border-color: var(--d-good) }
.q-text { font: 700 1.25rem/1.4 var(--font-display); color: var(--d-ink) }
.blank { display: inline-block; min-width: 2.4em; text-align: center; border-bottom: 2px solid var(--d-muted); color: var(--d-muted); padding: 0 4px }
.blank.filled { color: var(--d-good); border-bottom-color: var(--d-good) }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px }
.opt {
  min-width: 76px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid #333;
  background: #1F1F1F; color: var(--d-ink); font: 700 1.125rem/1 var(--font-display);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
button.opt { cursor: pointer }
button.opt:hover:not([aria-disabled="true"]) { border-color: #6A6A6A; background: #262626 }
button.opt:active:not([aria-disabled="true"]) { transform: scale(.97) }
.opt.wrong { border-color: var(--d-bad); background: var(--d-bad-bg); color: var(--d-bad) }
.opt.right { border-color: var(--d-good); background: var(--d-good-bg); color: var(--d-good) }
.opt.dim { opacity: .45 }
.opt[aria-disabled="true"] { cursor: default }
.opt.press { transform: scale(.95) }
.fb { margin-top: 0; max-height: 0; overflow: hidden; border-radius: 12px; font-size: 1rem; color: var(--d-ink); transition: max-height .3s var(--ease), margin-top .3s var(--ease) }
.fb.no, .fb.ok { max-height: 120px; margin-top: 14px; padding: 12px 14px }
.fb.no { background: var(--d-bad-bg) }
.fb.no b { color: var(--d-bad) }
.fb.ok { background: var(--d-good-bg) }
.fb.ok b { color: var(--d-good) }
.teacher .win-body { pointer-events: none }
.flash { animation: flash .6s var(--ease) }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 227, 77, .55) } 100% { box-shadow: 0 0 0 10px rgba(255, 227, 77, 0) } }

/* курсор с именем: в окне ученика — только при автопоказе, в окне учителя — всегда, когда Лиза что-то делает */
.cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; display: flex; align-items: flex-start; transition: transform .7s var(--ease), opacity .25s }
.cursor.on { opacity: 1 }
.cursor svg { width: 20px; height: 20px; fill: var(--y); stroke: var(--d-bg); stroke-width: 1.4; stroke-linejoin: round }
.cursor b { margin: 16px 0 0 -4px; background: var(--y); color: var(--y-ink); font: 700 0.875rem/1 var(--font-display); padding: 5px 8px; border-radius: 8px }
.cursor.click svg { animation: click .3s var(--ease) }
@keyframes click { 50% { transform: scale(.8) } }

/* телефон: оба окна целиком помещаются на один экран (~560 px), чтобы ответ и его повтор у учителя были видны вместе */
@media (max-width: 40em) {
  .demo { margin-top: 36px }
  .demo-grid { gap: 12px }
  .demo-hint { margin-bottom: 12px }
  .win { border-radius: 16px }
  .win-bar { min-height: 44px; padding: 7px 12px 7px 7px }
  .who { font-size: 1rem; padding: 7px 12px 7px 9px }
  .win-body { padding: 12px 14px 14px }
  .task-h { gap: 10px; margin-bottom: 10px }
  .task-h h3 { font-size: 1.0625rem }
  .t-ico { width: 30px; height: 30px; border-radius: 8px }
  .t-ico svg { width: 17px; height: 17px }
  .q { padding: 14px; border-radius: 14px }
  .q-text { font-size: 1.125rem }
  .opts { margin-top: 12px; gap: 8px }
  .opt { min-height: 44px; min-width: 64px; padding: 0 16px; font-size: 1.0625rem }
  .fb { font-size: 0.9375rem; line-height: 1.45 }
  .fb.no, .fb.ok { margin-top: 10px; padding: 9px 12px }
}
.demo-foot { margin-top: 20px }

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--d-line) }
.perks li { display: flex; gap: 16px; align-items: flex-start }
.perks p { color: var(--d-muted); font-size: 1.0625rem; line-height: 1.5 }
.perks b { color: var(--d-ink); font-weight: 700 }
.perk-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #171717; color: var(--y); display: inline-flex; align-items: center; justify-content: center }
.perk-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
@media (max-width: 53.75em) { .perks { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; padding-top: 32px } }

/* ---------- 3. доска (27b-2) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px }
.chips li { padding: 9px 14px; border-radius: 10px; background: var(--bg-2); font: 650 1rem/1.2 var(--font-display) }
.board-shot { margin-top: 48px }
@media (max-width: 40em) { .board-shot { margin-top: 32px; border-radius: 14px } }

/* ---------- 4. словарь ---------- */
.dict-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 56px }
.points { counter-reset: p; display: flex; flex-direction: column; gap: 32px }
.points li { counter-increment: p; position: relative; padding-left: 52px }
.points li::before {
  content: counter(p); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--y); color: var(--y-ink); font: 800 1.0625rem/34px var(--font-display); text-align: center;
}
.points h3 { font-size: 1.25rem; line-height: 34px }
.points p { margin-top: 4px; color: var(--muted) }
.dict-media { position: relative; padding: 0 27% 72px 0 }
.dict-phone { position: absolute; right: 0; bottom: 0; width: 33% }
@media (max-width: 56.25em) {
  .dict-grid { grid-template-columns: 1fr; margin-top: 40px }
  .dict-media { padding: 0 0 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px }
  .dict-phone { position: static; width: min(300px, 72%); margin: 0 auto }
}

/* ---------- 4. между уроками ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px }
@media (max-width: 56.25em) { .pair { grid-template-columns: 1fr } }
.tile { background: var(--bg-2); border-radius: 24px; padding: 36px 36px 0; display: flex; flex-direction: column; overflow: hidden }
.tile-t p { margin-top: 10px; color: var(--muted) }
.tile-shot { flex: 1 0 auto; border-radius: 14px 14px 0 0; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .3); outline: 0; transform: translateY(1px) }
.tile-t { margin-bottom: 32px }
.tile.hot { background: var(--y) }
.tile.hot .tile-t p { color: #3A3A3A }
@media (max-width: 40em) { .tile { padding: 28px 20px 0; border-radius: 20px } }

/* ---------- 5. уроки по интересам ---------- */
.own-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center }
.own h2 { max-width: 16ch }
.own .lead { margin-top: 20px }
.topics { display: flex; flex-wrap: wrap; gap: 10px }
.topics { gap: 12px 10px }
.topics li { background: var(--bg); border-radius: 14px; padding: 14px 20px; font: 700 1.1875rem/1.2 var(--font-display); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 24px -10px rgba(0, 0, 0, .18); transition: transform .25s var(--ease) }
/* «наклейки»: чуть наклонены в разные стороны, при наведении выпрямляются */
.topics li:nth-child(odd) { transform: rotate(-2deg) }
.topics li:nth-child(even) { transform: rotate(1.5deg) }
.topics li:nth-child(3n) { transform: rotate(-.5deg) translateY(3px) }
.topics li:hover { transform: none }
.topics li.mine { background: var(--y); color: var(--y-ink); font-weight: 800; transform: rotate(-3deg) scale(1.06) }
@media (max-width: 56.25em) { .own-in { grid-template-columns: 1fr } }

/* ---------- 6. курсы и 7. методика: сетка 3×2 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px }
@media (max-width: 56.25em) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 40em) { .grid3 { grid-template-columns: 1fr; gap: 12px } }
.card { background: var(--bg-2); border-radius: 20px; padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease) }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .22) }
.c-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--y); color: var(--y-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 20px }
.c-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }
.card.later .c-ico { background: var(--soft) }
.card p { margin-top: 10px; color: var(--muted) }
.card.later { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line) }
.tag { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 4px 9px; border-radius: 8px; background: var(--soft); font: 700 0.875rem/1.2 var(--font-body); letter-spacing: 0 }
.more { display: inline-block; padding: 12px 0; margin: -12px 0; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap }
.more:hover { text-decoration-color: var(--muted) }
.principles li { background: var(--bg); border-radius: 20px; padding: 28px }
.principles h3 { font-size: 1.25rem }
.principles p { margin-top: 8px; color: var(--muted) }
.method .grid3 + p { margin-top: 32px }

/* ---------- 8. пробный урок ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; counter-reset: s }
@media (max-width: 53.75em) { .steps { grid-template-columns: 1fr; gap: 12px } }
.steps li { border-radius: 20px; padding: 28px; background: var(--bg-2) }
.steps .n { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--y); font: 800 1.75rem/1 var(--font-display); letter-spacing: -.03em; color: var(--y-ink); margin-bottom: 20px }
.steps p { margin-top: 8px; color: var(--muted) }
.steps + p { margin-top: 36px }
@media (max-width: 30em) { .steps + p .btn { width: 100%; white-space: normal; text-align: center } }

/* ---------- 9. вопросы ---------- */
.qa { margin-top: 36px; max-width: 860px; border-top: 1px solid #D9D7D1 }
.qa details { border-bottom: 1px solid #D9D7D1 }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 14px 0; font: 700 1.25rem/1.3 var(--font-display); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none }
.qa summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg) }
.qa summary:focus-visible { outline-offset: 4px }
.qa details p { padding: 0 52px 22px 0; color: var(--muted); max-width: 36em }

/* ---------- 10. финал и подвал ---------- */
.final { text-align: center; padding: clamp(96px, 10vw, 152px) 0 }
.final h2 { max-width: 22ch; margin: 0 auto }
.final .btn { margin-top: 40px }
@media (max-width: 30em) { .final .btn { width: 100%; white-space: normal; padding: 0 20px } }
.foot { background: var(--d-bg); color: var(--d-ink); border-top: 1px solid var(--d-line) }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 88px; padding-top: 12px; padding-bottom: 12px }
.foot .brand { margin-right: auto }
.foot a { text-decoration: none; font-weight: 600; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px }
.copy { color: var(--d-muted); font-size: 0.9375rem }

/* ---------- страница «Методика» (method.html) ---------- */
.doc { padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 9vw, 128px) }
.doc h1 { font-size: clamp(2.5rem, 4.4vw + 0.75rem, 4.25rem); max-width: 16ch }
.doc .lead { margin-top: 24px; color: var(--muted) }
.doc-grid { margin-top: 56px }
.doc h2 { font-size: clamp(1.625rem, 1.2vw + 1.125rem, 2.125rem); letter-spacing: -.02em; margin: 56px 0 16px }
.doc .principles { margin-top: 24px }
.doc .principles li { background: var(--bg-2) }
.doc .text p { max-width: 38em; color: #333 }
.doc .text p + p { margin-top: 14px }
.doc .text h3 { margin-top: 32px; font-size: 1.3125rem }
.doc .text h3 + p { margin-top: 8px }
.doc .refs { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; max-width: 46em }
.doc .refs li { font-size: 0.9375rem; line-height: 1.5; color: #444; padding-left: 18px; position: relative }
.doc .refs li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: #9A9A9A }
.doc .refs i { font-style: italic }
.doc .back { margin-top: 56px }

/* ---------- тихое появление при прокрутке (класс .js ставит landing.js; без JS всё видно сразу) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.js .rv.in { opacity: 1; transform: none }

/* «Уменьшить прозрачность» — шапка сплошная; «Увеличить контраст» — вторичный текст темнее (светлее на чёрном) */
@media (prefers-reduced-transparency: reduce) {
  .top, .top.on-dark { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none }
}
@media (prefers-contrast: more) {
  :root { --muted: #3D3D3D; --d-muted: #C7C7CC }
  .nav a { color: var(--ink) }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .js .rv { opacity: 1; transform: none }
  .js .hero-visual .hero-card, .js .hero-visual .hero-badge { opacity: 1 }
  .js .hero-visual .hero-card { transform: rotate(-2deg) }
  .js .hero-visual .hero-badge { transform: none }
  .js .rv mark { background-size: 100% .44em }
  .js .dark .rv mark { background-size: 100% 100%; color: var(--y-ink) }
}
