/* Сайт для подростка и родителя. Цвета, шрифты и формы — из брендбука (docs/2026-09-18_brendbuk_standart.md),
   те же переменные, что в app/styles.css. Раскладка — боковое меню из цветных плиток. */
:root {
  --bg: #F1F0EC;
  --ink: #121214;
  --paper: #F1F0EC;
  --line: #12121426;
  --surface: #FFFFFF;
  --white: #FFFFFF;   /* белый всегда: белые карточки и кружки и в тёмной теме (как в приложении) */
  --btn: var(--ink);        /* главная кнопка: заливка и надпись; окружение (тёмная плитка, тёмная тема) меняет роли, не кнопку (НС-108) */
  --btn-text: var(--paper);
  --on-surface: #121214;
  --panel: #FFFFFF73;
  --radius-card: 22px;   /* плитка и карточка — 22, внутри — 18 (Марина, 22.10.2026, НС-86) */
  --radius-inner: 18px;
  --radius-btn: 18px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", "Helvetica Neue", sans-serif;
  --side: 200px;
  /* Цвета типов Холланда */
  --r: #35E0A0;
  --i: #7B96FF;
  --a: #FF6B96;
  --s: #FFA04D;
  --e: #F0442C;
  --c: #FFD43B;
  /* Навыки — сиреневые, те же значения, что в app/styles.css (Марина, 21.10.2026); «примени» — чернила */
  --sk1: #DEC8FF;
  --sk2: #CFA8FF;
  --sk3: #B889F2;
  --sk4: #9D6CE6;
  --sk5: #121214;
  /* Заголовок страницы сайта: 32–60, растёт с шириной экрана (брендбук) — одна шкала для всех разделов */
  --h1: clamp(32px, 16px + 2.4vw, 60px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #242428;
    --on-surface: #F1F0EC;
    --line: #F1F0EC26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--on-surface);
  font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-weight: 800; }  /* заголовок страницы — Unbounded 800 (брендбук) */
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Боковое меню ---------- */
.side {
  position: fixed; inset: 16px auto 16px 16px; width: var(--side);
  display: flex; flex-direction: column; gap: 12px; z-index: 20;
}
.logo { font: 800 26px/1 var(--display); text-decoration: none; letter-spacing: -.02em; padding: 4px 4px 2px; }
.logo i { font-style: normal; color: var(--e); }
.tagline { font: 600 10px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 0 4px 8px; opacity: .75; }
.nav { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.nav a {
  flex: 1; min-height: 64px; max-height: 128px;
  border-radius: var(--radius-inner); padding: 12px 14px;
  color: var(--ink); text-decoration: none;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  border: 3px solid transparent;
  transition: transform .15s ease;
}
.nav a:hover { transform: translateX(3px); }
.nav a:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 2px; }
.nav .n { font: 700 14px/1 var(--display); }
.nav .arr { width: 18px; height: 18px; fill: currentColor; }
.nav .t { grid-column: 1 / -1; grid-row: 3; font: 700 14px/1.15 var(--display); }
.nav a[aria-current="page"] { border-color: var(--on-surface); }
.nav a[aria-current="page"] .arr { display: none; }
.go {
  min-height: 64px; border-radius: var(--radius-inner);
  background: var(--on-surface); color: var(--bg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 700 15px/1.15 var(--display); text-decoration: none; padding: 10px;
}
.go:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 2px; }
.t-i { background: var(--i); } .t-c { background: var(--c); } .t-s { background: var(--s); }
.t-r { background: var(--r); } .t-a { background: var(--a); } .t-e { background: var(--e); }
.t-ink { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .t-ink { background: var(--paper); color: var(--ink); } }

/* Мобильная шапка с меню (на широком экране скрыта) */
.mbar { display: none; }

/* ---------- Содержимое ---------- */
.main { margin-left: calc(var(--side) + 32px); padding: 16px 16px 0 0; }
.inner { max-width: 1240px; display: grid; gap: 16px; }

.tile {
  border-radius: var(--radius-card); padding: 32px;
  color: var(--ink); background: var(--surface);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.tile.outline { background: transparent; color: var(--on-surface); border: 2px solid var(--line); }
.tile h2 { font-size: clamp(28px, 3.4vw, 46px); }
.tile h3 { font-size: 22px; }
.lead { font-size: 18px; max-width: 46ch; }
.muted { opacity: .8; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.push { margin-top: auto; }

.pill {
  display: inline-block; align-self: flex-start; justify-self: start;
  padding: 7px 14px; border: 2px solid currentColor; border-radius: 999px;
  font: 600 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase;
}
.cap { font: 600 13px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; align-self: flex-start;
  border-radius: var(--radius-btn); border: 2px solid var(--btn);
  background: var(--btn); color: var(--btn-text);
  font: 700 16px/1 var(--display); text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); }
.t-ink { --btn: var(--paper); --btn-text: var(--ink); }  /* на тёмной плитке главная кнопка молочная (брендбук, «Кнопки») */
@media (prefers-color-scheme: dark) { .t-ink { --btn: var(--ink); --btn-text: var(--paper); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font: 700 15px/1 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.more svg { width: 18px; height: 18px; fill: currentColor; }

/* Первый экран страницы */
.head { min-height: 360px; justify-content: space-between; }
.head h1 { font-size: var(--h1); max-width: 16ch; }
.hero { grid-template-columns: 1.15fr 1fr; }
.hero .head { min-height: 560px; }
.pic { padding: 0; min-height: 320px; background: var(--ink); }
.pic > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pic .tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-inner); padding: 14px 16px; color: var(--ink);
}
.pic .tag b { font: 700 15px/1.2 var(--display); display: block; margin-bottom: 4px; }
.pic .tag span { font-size: 15px; }

/* Бегущая строка */
.ticker { border-radius: 999px; background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; padding: 16px 0; }
@media (prefers-color-scheme: dark) { .ticker { background: var(--c); color: var(--ink); } }
.ticker-track { display: inline-flex; animation: run 40s linear infinite; }
.ticker span { font: 700 16px/1 var(--display); padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker span::after { content: ""; width: 10px; height: 10px; background: var(--c); transform: rotate(45deg); }
@media (prefers-color-scheme: dark) { .ticker span::after { background: var(--ink); } }
@keyframes run { to { transform: translateX(-50%); } }

/* Шаги */
.step { min-height: 260px; justify-content: space-between; }
.num { font: 800 64px/1 var(--display); }

/* Карточки с картинкой */
.card { padding: 0; gap: 0; }
.card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.card p { font-size: 16px; }

/* Список с линиями */
.lines li { padding: 16px 0; border-top: 2px solid var(--line); display: grid; gap: 4px; }
.lines li:first-child { border-top: 0; padding-top: 0; }
.lines b { font: 700 18px/1.25 var(--display); }
.t-c .lines li, .t-r .lines li, .t-s .lines li, .t-i .lines li, .t-a .lines li, .t-e .lines li { border-color: color-mix(in srgb, var(--ink) 20%, transparent); }

.checks li { padding: 12px 0; border-bottom: 2px solid color-mix(in srgb, var(--ink) 20%, transparent); display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; fill: currentColor; }
.icon-box { width: 72px; height: 72px; border-radius: var(--radius-inner); background: var(--ink); display: grid; place-items: center; }
.icon-box svg { width: 36px; height: 36px; fill: var(--r); }

/* Типы Холланда */
.type { min-height: 220px; }
.type .letter { font: 800 44px/1 var(--display); }

/* Профессии */
.profs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.prof { padding: 0; gap: 0; }
.prof > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.prof .body { padding: 16px 20px 20px; display: grid; gap: 8px; }
.prof h3 { font-size: 18px; }
.prof p { font-size: 15px; line-height: 1.4; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--ink); font: 600 14px/1 var(--text); }

/* Ступени маршрута навыка */
.stages { counter-reset: st; }
.stage { min-height: 200px; justify-content: space-between; }
.stage .n { font: 800 40px/1 var(--display); }

/* О проекте */
.photo { padding: 0; min-height: 420px; background: var(--a); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.quote { font: 700 clamp(20px, 2.2vw, 28px)/1.3 var(--display); }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose p { font-size: 18px; }

/* Вопросы и ответы */
.faq details { border-top: 2px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 0; padding-top: 0; }
.faq summary { font: 700 19px/1.3 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 24px/1 var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; max-width: 62ch; }

/* Подвал */
.foot { padding: 32px 0 40px; font-size: 14px; opacity: .7; display: grid; gap: 8px; }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero .head { min-height: 440px; }
}
@media (max-width: 960px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 0 16px; }
  .mbar {
    display: block; position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    margin: 0 -16px 8px; padding: 12px 16px;
  }
  .mbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mbar .logo { font-size: 22px; padding: 0; }
  .mbar summary {
    list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px;
    border: 2px solid var(--on-surface); border-radius: var(--radius-btn);
    display: inline-flex; align-items: center; font: 700 14px/1 var(--display);
  }
  .mbar summary::-webkit-details-marker { display: none; }
  .mmenu[open] summary { background: var(--on-surface); color: var(--bg); }
  .mmenu .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px 16px 16px; background: var(--bg);
    max-height: calc(100dvh - 64px); overflow-y: auto;
    box-shadow: 0 16px 24px -16px color-mix(in srgb, var(--ink) 25%, transparent);
  }
  .mbar .nav a { min-height: 60px; flex: none; grid-template-rows: auto; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
  .mbar .nav .t { grid-column: 2; grid-row: 1; }
  .mbar .go { min-height: 56px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .tile { padding: 24px; }
  .card, .prof, .pic, .photo { padding: 0; }
  .head { min-height: 0; gap: 24px; }
  .hero .head { min-height: 0; }
  .btn { width: 100%; }
  .photo { min-height: 380px; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .btn, .nav a { transition: none; }
}

/* Цвета плиток — в конце, чтобы перекрывать белый фон .tile */
.tile.t-i { background: var(--tile-bg, var(--i)); } .tile.t-c { background: var(--tile-bg, var(--c)); } .tile.t-s { background: var(--tile-bg, var(--s)); }
.tile.t-r { background: var(--tile-bg, var(--r)); } .tile.t-a { background: var(--tile-bg, var(--a)); } .tile.t-e { background: var(--tile-bg, var(--e)); }
.tile.t-ink { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .tile.t-ink { background: var(--paper); color: var(--ink); } }

/* Кнопка «Попробовать» внутри мобильного меню не наследует вид плиток разделов */
.nav a.go { display: flex; color: var(--bg); background: var(--on-surface); border: 0; }
@media (max-width: 960px) {
  .btn { padding: 0 18px; font-size: 15px; white-space: nowrap; }
}

/* Картинки в новом стиле — на молочном фоне, без тёмной подложки */
.pic { background: var(--paper); }
.prof:not(:has(img)) .body { padding-top: 24px; min-height: 180px; }

/* ---------- Подросток и родитель (26.09.2026) ---------- */
/* Ссылка «Я родитель» под кнопкой «Попробовать» */
.parent-link {
  min-height: 48px; border-radius: var(--radius-btn); border: 2px solid var(--on-surface);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14px/1 var(--display); text-decoration: none; color: var(--on-surface);
}
.parent-link svg { width: 16px; height: 16px; fill: currentColor; }
.parent-link:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 2px; }
.mbar .parent-link { min-height: 52px; }
.small { font-size: 15px; opacity: .8; }

/* Кусок настоящего пробника вместо картинки на первом экране */
.mock { justify-content: center; gap: 12px; }
.mock-scene, .mock-say { background: var(--panel); border-radius: var(--radius-inner); padding: 16px 20px; display: grid; gap: 8px; }
.mock-scene p, .mock-say p { font-size: 16px; line-height: 1.4; }
.mock-say { margin-left: 24px; background: var(--surface); }
.mock-say b { font: 600 13px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.mock-q { font: 700 18px/1.25 var(--display); margin-top: 8px; }
.mock-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-acts span { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; background: var(--surface); }

/* Блок «Родителю» внутри страниц подростка */
.parent h2 { font-size: clamp(24px, 2.8vw, 36px); }
.parent .lines { max-width: 72ch; }

/* Карточки навыков */
.skill { min-height: 200px; justify-content: space-between; }
.skill h3 { font-size: 20px; }
.skill p { font-size: 16px; line-height: 1.4; }
@media (max-width: 960px) { .mock-say { margin-left: 12px; } }
/* Телефон: длинная кнопка переносит слова и не раздвигает плитку; шаги без пустоты */
@media (max-width: 960px) {
  .head > div { min-width: 0; }
  .btn { white-space: normal; text-align: center; padding: 12px 18px; }
  .step, .skill, .stage { min-height: 0; gap: 20px; }
}

/* ---------- Макет одностраничного лендинга (maket.html) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar .logo { padding: 0; }
.toplinks { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.toplinks a { font: 600 15px/1 var(--text); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.toplinks a:hover { background: var(--line); }
.topbar .go { min-height: 48px; padding: 0 22px; }
.onepage-inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px 0; }
.onepage section[id] { scroll-margin-top: 80px; }
.mk-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mk-chain span { color: var(--ink); border-radius: 999px; padding: 14px 22px; font: 700 clamp(16px, 1.8vw, 22px)/1 var(--display); }
.mk-chain i svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.mk-prof { min-height: 240px; justify-content: space-between; }
.mk-prof h3 { font-size: 24px; }
.mk-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mk-marks span { font-size: 16px; }
.mk-notes { grid-template-columns: repeat(2, 1fr); }
.mk-notes .tile { gap: 12px; min-height: 150px; justify-content: space-between; }
.mk-notes p { font: 600 18px/1.35 var(--text); }
.mk-big { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; }
.mk-next li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline; }
.mk-quotes { display: grid; gap: 8px; }
.mk-quotes span { font: 700 clamp(18px, 2vw, 24px)/1.25 var(--display); }
.mk-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-nums span { background: var(--panel); border-radius: var(--radius-inner); padding: 12px; display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.mk-nums b { font: 800 34px/1 var(--display); }
@media (max-width: 960px) {
  .toplinks { display: none; }
  .topbar { justify-content: space-between; }
  .mk-notes, .mk-nums { grid-template-columns: repeat(2, 1fr); }
  .mk-next li { grid-template-columns: 1fr; gap: 4px; }
  .mk-row .btn { width: 100%; }
}
@media (max-width: 960px) {
  .topbar { gap: 12px; }
  .topbar .logo { font-size: 22px; }
  .topbar .go { min-height: 44px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .mk-chain span { padding: 10px 16px; }
}

/* ---------- Закладки и тексты 26.09.2026 (вечер) ---------- */
/* Место для картинки, пока нет утверждённой иллюстрации */
.pic.slot {
  background: transparent; border: 2px dashed var(--line); color: var(--on-surface);
  align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 12px; min-height: 420px;
}
.pic.slot svg { width: 56px; height: 56px; fill: currentColor; opacity: .5; }
.pic.slot p { max-width: 34ch; font-size: 15px; opacity: .7; }
.mk-prof p { font-size: 15px; line-height: 1.4; }
.skill-group { gap: 16px; }
.skill-group .mock-acts span { font-size: 14px; }
.mk-prof { justify-content: flex-start; gap: 12px; min-height: 0; } .mk-prof h3 { margin-bottom: 4px; }
@media (max-width: 960px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }

/* ---------- Шапка с «Попробовать» и первый экран главной (26.09.2026) ---------- */
.top { display: flex; justify-content: flex-end; max-width: 1240px; margin-bottom: 16px; }
.top .btn { min-height: 52px; }
.mtry { display: none; }
/* первый экран главной — ровно один экран: жёлтый блок слева, справа картинка и под ней кейс */
.hero.first { min-height: calc(100dvh - 100px); }
.first-side { display: grid; grid-template-rows: minmax(200px, 1fr) auto; gap: 16px; }
.first-side .pic.slot { min-height: 200px; }
.first-side .mock { gap: 12px; padding: 24px; }
@media (max-width: 1100px) { .hero.first { min-height: 0; } }
@media (max-width: 960px) {
  .top { display: none; }
  .mtry { display: inline-flex; min-height: 44px; padding: 0 14px; font-size: 13px; width: auto; margin-left: auto; white-space: nowrap; }
  .first-side .pic.slot { min-height: 260px; }
}
@media (max-width: 960px) {
  .mbar-row { gap: 8px; }
  .mbar .logo { font-size: 19px; }
  .mtry { padding: 0 12px; font-size: 12px; min-height: 42px; }
  .mbar summary { padding: 0 12px; font-size: 13px; min-height: 42px; }
}
@media (max-width: 960px) { .mbar .logo { font-size: 17px; } .mbar-row { gap: 8px; } .mtry { padding: 0 10px; } }

/* ---------- Как в референсе: окраска страницы по закладке, волны на кнопках (26.09.2026) ---------- */
/* Закладки начинаются на одной высоте с первым блоком страницы: логотип — ровно в высоту шапки */
.side .logo { height: 52px; display: flex; align-items: center; padding: 0 4px 0 17px; }  /* слева — вровень с текстом плиток: рамка 3px + отступ 14px (Марина, 21.10.2026) */
.side .nav { margin-top: 8px; }
.nav a[aria-current="page"] .arr { display: none; }
.nav a[aria-current="page"]::after {
  content: ""; grid-column: 2; grid-row: 1; width: 12px; height: 12px; border-radius: 50%;
  background: currentColor; margin: 3px;
}

/* Страница раздела целиком в цвете закладки, блоки на ней — белые */
.t-i { --dot: var(--i); } .t-c { --dot: var(--c); } .t-s { --dot: var(--s); }
.t-r { --dot: var(--r); } .t-a { --dot: var(--a); } .t-e { --dot: var(--e); }
body.sec {
  --tile-bg: var(--surface);  /* цветные плитки в разделах — белые (их цвет — точкой у подписи) */
  --bg: var(--page); --on-surface: var(--ink); --line: color-mix(in srgb, var(--ink) 20%, transparent); --surface: var(--white);
  background: var(--page); color-scheme: light;
  transition: background-color .6s cubic-bezier(.19,1,.22,1);
}
body.sec .inner > .tile.head:first-child,
body.sec .inner > .hero:first-child > .head { background: transparent; padding-left: 8px; }
body.sec .tile.outline { border-color: var(--line); }
body.sec .mock-scene, body.sec .mk-nums span { background: var(--paper); }
body.sec .mock-say { border: 2px solid color-mix(in srgb, var(--ink) 15%, transparent); }
body.sec .legend span { box-shadow: inset 0 0 0 2px var(--ink); }
/* цвет направления у профессии остаётся — точкой у подписи */
body.sec .prof .cap::before, body.sec .mk-prof .cap::before {
  content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 2px var(--ink); margin-right: 8px; vertical-align: -1px;
}
body.sec .prof .cap, body.sec .mk-prof .cap { opacity: 1; }
body.sec .photo { background: var(--surface); }

/* Кнопка: при наведении снизу поднимаются три цветные волны, стрелка сдвигается вверх-вправо */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .5s cubic-bezier(.19,1,.22,1), border-color .5s; }
.btn:hover { transform: none; color: var(--ink); border-color: var(--ink); }
.btn .lbl { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn .lbl svg { transition: transform .4s cubic-bezier(.19,1,.22,1); }
.btn:hover .lbl svg { transform: translate3d(3px, -3px, 0); }
.btn .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.btn .fx i {
  position: absolute; left: -15%; width: 130%; height: 220%; top: 105%;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  transition: top .8s cubic-bezier(.19,1,.22,1);
}
.btn .fx i:nth-child(1) { background: var(--c); transition-delay: .1s; }
.btn .fx i:nth-child(2) { background: var(--a); transition-delay: .05s; }
.btn .fx i:nth-child(3) { background: var(--r); transition-delay: 0s; }
.btn:hover .fx i { top: -60%; }
.btn:hover .fx i:nth-child(1) { transition-delay: 0s; }
.btn:hover .fx i:nth-child(2) { transition-delay: .07s; }
.btn:hover .fx i:nth-child(3) { transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
  .btn .fx { display: none; }
  .btn:hover { color: inherit; }
  body.sec { transition: none; }
}
@media (max-width: 960px) { h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; } .tile h2 { font-size: 26px; } }

/* Логотип «на·скилле»: две части разным цветом, точка чёрная (26.09.2026).
   Коралловый читается только на молочном фоне; на цветных страницах — тоном: «на» светлее, «скилле» чёрным. */
.logo i { color: currentColor; }
.logo .lg-sk { color: var(--e); }

/* Название в тексте — тем же двуцветным написанием, что логотип (26.09.2026).
   В обычном тексте коралловый плохо читается, поэтому «на» светлее, «скилле» — цветом текста;
   на тёмных плитках — как в логотипе: «скилле» коралловым. */
.brand { white-space: nowrap; }
.brand .lg-na { opacity: .55; }
.t-ink .brand .lg-na { opacity: .7; }
.t-ink .brand .lg-sk { color: var(--e); }

/* Стрелка в закладке: в покое ↗ в правом верхнем углу; при наведении и на открытой странице —
   переезжает к левому краю по центру и смотрит прямо → */
.side .nav a { position: relative; }
.side .nav .arr {
  position: absolute; top: 14px; left: calc(100% - 32px);
  transition: left .5s cubic-bezier(.19,1,.22,1), top .5s cubic-bezier(.19,1,.22,1), transform .5s cubic-bezier(.19,1,.22,1);
}
.side .nav a:hover .arr, .side .nav a[aria-current="page"] .arr {
  display: block; left: 14px; top: calc(50% - 9px); transform: rotate(45deg);
}
.side .nav a:hover { transform: none; }
.nav a[aria-current="page"]::after { content: none; }
@media (prefers-reduced-motion: reduce) { .side .nav .arr { transition: none; } }

/* Кнопка: волны медленнее и по диагонали — из правого нижнего угла к верху по центру */
.btn .fx i {
  left: auto; top: auto; right: 0; bottom: 0; width: 240%; height: auto; aspect-ratio: 1;
  border-radius: 50%; transform: translate(50%, 50%) scale(0); transform-origin: center;
  transition: transform 1.4s cubic-bezier(.19,1,.22,1);
}
.btn:hover .fx i { top: auto; transform: translate(50%, 50%) scale(1); }
.btn .fx i:nth-child(1) { transition-delay: .2s; }
.btn .fx i:nth-child(2) { transition-delay: .1s; }
.btn .fx i:nth-child(3) { transition-delay: 0s; }
.btn:hover .fx i:nth-child(1) { transition-delay: 0s; }
.btn:hover .fx i:nth-child(2) { transition-delay: .14s; }
.btn:hover .fx i:nth-child(3) { transition-delay: .28s; }
.btn { transition: color .9s cubic-bezier(.19,1,.22,1), border-color .9s; }

/* ---------- Закладки как в референсе (26.09.2026, поздно) ---------- */
/* Закладки почти квадратные, одной высоты; первый экран главной кончается вровень с последней закладкой */
:root { --tab: min(160px, calc((100dvh - 84px - 16px - 40px) / 5)); }
.side .nav { flex: none; }
.side .nav a { flex: none; height: var(--tab); min-height: 0; max-height: none; }
/* стрелка остаётся в правом верхнем углу; при наведении и на открытой странице поворачивается прямо → */
.side .nav .arr { left: auto; right: 14px; top: 14px; transition: transform .5s cubic-bezier(.19,1,.22,1); }
.side .nav a:hover .arr, .side .nav a[aria-current="page"] .arr { left: auto; top: 14px; transform: rotate(45deg); }
/* при наведении текст закладки становится белым */
.side .nav a { transition: color .4s cubic-bezier(.19,1,.22,1); }
.side .nav a:hover { color: var(--white); }
@media (min-width: 961px) {
  .hero.first { min-height: 0; height: calc(var(--tab) * 5 + 40px); }
  .hero.first > .head { min-height: 0; }
}

/* ---------- Главная экранами (26.09.2026) ----------
   Каждый экран главной — ровно по высоте первого (вровень с закладками), блоки внутри растягиваются,
   чтобы при прокрутке экран помещался целиком, без «полутора разделов». */
:root { --side: 176px; --tab: min(176px, calc((100dvh - 84px - 16px - 40px) / 5)); --screen: calc(var(--tab) * 5 + 40px); }
@media (min-width: 961px) {
  .hero.first { height: var(--screen); }
  .screen { min-height: var(--screen); display: flex; flex-direction: column; gap: 16px; }
  .screen > * { flex: 1 1 auto; }
  .screen > .t-ink[style*="min-height:0"], .screen > .mk-row { flex: 0 0 auto; }
  .screen .head { min-height: 0; }
  .screen .step { min-height: 0; }
  .screen-last { justify-content: stretch; }
  html:has(.screen) { scroll-snap-type: y proximity; }
  .hero.first, .screen { scroll-snap-align: start; scroll-margin-top: 16px; }
}
/* Экран профессий: слева заголовок и отметки, справа четыре примера 2 × 2 */
.prof-screen { grid-template-columns: 1fr 1.3fr; }
.prof-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .prof-screen { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .prof-4 { grid-template-columns: 1fr; } }
/* Невысокие экраны ноутбуков (например, 1366 × 768): плотнее, чтобы экран главной помещался целиком */
@media (min-width: 961px) and (max-height: 820px) {
  .tile { padding: 24px; gap: 12px; }
  .tile h2 { font-size: clamp(24px, 2.6vw, 36px); }
  .lead { font-size: 16px; }
  .quote { font-size: clamp(18px, 1.8vw, 22px); }
  .num { font-size: 48px; }
  .mk-chain span { padding: 10px 18px; font-size: 18px; }
  .mk-prof p, .card p { font-size: 14px; }
  .mock-scene p, .mock-say p { font-size: 14px; }
  .mock-acts span { padding: 6px 12px; font-size: 13px; }
  .lines li { padding: 12px 0; }
  .prose p { font-size: 16px; }
  .btn { min-height: 56px; }  /* главная кнопка не ниже 56 и на невысоком экране (брендбук) */
  .mk-big { font-size: 20px; }
}
/* Шапка с «Попробовать» прилипает сверху; каждый экран встаёт ровно под ней — вровень с закладками */
@media (min-width: 961px) {
  .main { padding-top: 0; }
  .top { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 16px 0; margin-bottom: 0; max-width: none; }
  .hero.first, .screen { scroll-margin-top: 84px; }
}
@media (min-width: 961px) { .top { height: 84px; box-sizing: border-box; align-items: center; padding: 0; } .main > .top ~ main .hero.first { margin-top: 0; } }
/* Фон шапки — во всю ширину, кнопка «Попробовать» — на правой линии содержимого (1240), без ступеньки (Марина, 28.10.2026) */
@media (min-width: 961px) { .top { margin-right: max(0px, calc(100% - 1240px)); } }  /* кнопка вровень с правым краем содержимого — расчёт, не отступ шкалы (НС-142) */
@media (min-width: 961px) { .first-side { grid-template-rows: minmax(120px, 1fr) auto; } .first-side .pic.slot { min-height: 120px; } }
:root { --side: 150px; }
.side .logo { font-size: 20px; white-space: nowrap; }

/* ---------- «Сколько стоит» одним экраном (26.09.2026) ---------- */
.price-screen .price-head { flex: 0 0 auto; padding-bottom: 0; }
.price-screen .price-head h1 { font-size: var(--h1); max-width: none; }
.price-cards { flex: 1 1 auto; }
.price { justify-content: space-between; }
.price h2 { font-size: clamp(22px, 2.2vw, 30px); max-width: 20ch; }
.price-list li { padding: 12px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: baseline; }
.price-list b { font-size: 16px; }
.price-list span { font-size: 15px; }
.price .more { display: inline-flex; margin-left: 8px; font-size: 14px; }
.price-note { flex: 0 0 auto; font-size: 14px; opacity: .8; padding: 0 8px; }
@media (max-width: 960px) { .price-list li { grid-template-columns: 1fr; gap: 4px; } }
body.sec .price-head { background: transparent; padding: 8px 8px 0; } .price-screen .price-head { overflow: visible; }
.price h2 { font-size: clamp(20px, 1.9vw, 26px); } .price { gap: 12px; } .price .mk-nums b { font-size: 28px; }
/* Цифры сезона: крупная цифра, под ней подпись мелко и в одну строку */
.price .mk-nums span { padding: 12px 10px; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; align-content: start; }
@media (max-width: 1240px) { .price .mk-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Путь навыка — маленькая инфографика: четыре шага на линии, последний «в жизни» — залитый */
.track-wrap { display: grid; gap: 8px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; position: relative; }
.track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px; background: currentColor; opacity: .35; }
.track li { display: grid; justify-items: center; gap: 8px; font: 600 14px/1.1 var(--text); text-align: center; position: relative; }
.track i {
  font: 800 15px/1 var(--display); font-style: normal; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid currentColor;
}
.track .life i { background: currentColor; }
.track .life i { color: var(--white); background: var(--ink); border-color: var(--ink); }
.track-wrap .more { justify-self: start; font-size: 14px; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .price-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .price-go .btn { align-self: auto; flex: 1; } /* кнопка растёт до цены, цена не висит отдельно (Марина, 26.10.2026, НС-101) */

/* ---------- 26.09.2026 (Марина): шапка, строка «кнопка + подпись», колода профессий, подвал ---------- */
/* Кнопка «Попробовать» — верхним краем вровень с верхним краем букв логотипа в боковом меню */
@media (min-width: 961px) {
  .top { align-items: flex-start; padding-top: 37px; }
  .top .btn { min-height: 46px; }
}

.go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.go-note { font: 600 16px/1.3 var(--text); }

/* Профессии — один экран */
.prof-screen { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.prof-screen .prof-left { min-height: 0; justify-content: flex-start; gap: 20px; }
.prof-screen .prof-left h1 { font-size: var(--h1); }
.prof-screen .prof-left .lead { font-size: 17px; }
.prof-screen .go-row { margin-top: auto; }
.types-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.types-row p { margin: 0; font-size: 15px; max-width: 26ch; }
.types-row .legend span { padding: 7px 12px; font-size: 13px; }
.marks-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; }
.marks-row .mock-acts { margin: 0; }
@media (min-width: 961px) { .prof-screen { height: var(--screen); } }

.deck-wrap { display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 460px; }
.deck { position: relative; cursor: pointer; outline: none; perspective: 1400px; touch-action: pan-y; }
.deck:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: var(--radius-card); }
.card {
  position: absolute; inset: 0 18px 18px 0; background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 16px;
  overflow: hidden; transition: transform .45s cubic-bezier(.19,1,.22,1), opacity .35s;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--dot); }
.card[data-d="1"] { transform: translate(9px, 9px) rotate(1.6deg); }
.card[data-d="2"] { transform: translate(18px, 18px) rotate(3.2deg); }
.card[data-d="3"] { transform: translate(18px, 18px) rotate(3.2deg); opacity: 0; }
.card.fly { transform: translate(-115%, -30px) rotate(-14deg); opacity: 0; transition: transform .38s cubic-bezier(.55,0,.8,.3), opacity .38s; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.card-top .cap { display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.card-top .cap::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 2px var(--ink); }
.card-n { font: 600 13px/1 var(--text); opacity: .6; font-variant-numeric: tabular-nums; }
.card h3 { font: 800 clamp(26px, 2.6vw, 38px)/1.05 var(--display); margin: 0; text-wrap: balance; }
.card-hook { font-size: 18px; font-weight: 600; margin: 0; }
.card dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 15px; }
.card dt { font: 600 13px/1.6 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.card dd { margin: 0; }
.deck-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; font: 600 15px/1 var(--text); font-variant-numeric: tabular-nums; }
.deck-ctrl button {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.deck-ctrl button svg { width: 20px; height: 20px; fill: currentColor; }
#deck-prev svg { transform: rotate(180deg); }
.deck-ctrl button:hover { background: var(--ink); color: var(--paper); }
.deck-ctrl button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 960px) {
  .prof-screen { grid-template-columns: 1fr; }
  .deck-wrap { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .card, .card.fly { transition: none; } }

/* Подвал */
.foot {
  opacity: 1; margin-top: 16px; border-top: 2px solid var(--line); padding: 32px 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 24px; font-size: 14px;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col a { color: inherit; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-col small { font-size: 12px; opacity: .7; max-width: 28ch; }
.foot-col span:not(.cap):not(.brand):not(.lg-na):not(.lg-sk) { opacity: .85; }
.foot-brand .logo { padding: 0; font-size: 22px; }
.foot-brand p { margin: 0; max-width: 26ch; opacity: .85; }
.foot-legal { justify-content: flex-end; }
@media (max-width: 960px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
/* Колода: карточка по содержимому, без пустоты в середине */
.deck-wrap { align-self: center; grid-template-rows: auto auto; min-height: 0; }
.deck { height: min(430px, calc(var(--screen, 600px) - 90px)); }
.card { gap: 16px; }
.card .card-hook { font-size: 21px; line-height: 1.3; font-weight: 600; }
.card dl { margin: 8px 0 0; font-size: 16px; }
.card::after { content: "Нажми — следующая →"; margin-top: auto; font: 600 13px/1 var(--text); opacity: .5; }
.types-row p { max-width: 22ch; }
@media (max-width: 960px) { .deck { height: 440px; } }

/* ---------- 26.09.2026, вечер: название на кнопках, волны, «Навыки» одним экраном ---------- */
/* Название на кнопке — фирменными цветами: «на» цветом текста кнопки, «скилле» коралловым */
.btn .brand .lg-na { opacity: 1; color: inherit; }
.btn .brand .lg-sk { color: var(--e); }

/* Волны на кнопке: три круга из правого нижнего угла к центру, заметно по очереди */
.btn .fx i { transition: transform 1.1s cubic-bezier(.45,0,.2,1); }
.btn:hover .fx i:nth-child(1) { transition-delay: 0s; }
.btn:hover .fx i:nth-child(2) { transition-delay: .2s; }
.btn:hover .fx i:nth-child(3) { transition-delay: .4s; }
.btn .fx i:nth-child(1) { transition-delay: .3s; }
.btn .fx i:nth-child(2) { transition-delay: .15s; }
.btn .fx i:nth-child(3) { transition-delay: 0s; }

/* Навыки — один экран */
.sk-track .track li { font-size: 14px; }
.sk-wrap { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.sk-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--text); cursor: pointer;
  transition: background-color .3s, transform .3s cubic-bezier(.19,1,.22,1);
}
.sk-tab span { font: 800 13px/1 var(--display); opacity: .6; }
.sk-tab:hover { transform: translateY(-2px); }
.sk-tab[aria-pressed="true"] { background: var(--dot); }
.sk-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sk-stage { position: relative; min-height: 380px; }
.sk-panel {
  position: absolute; inset: 0; background: var(--dot); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-card);
  padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: auto;
}
.sk-head { display: flex; justify-content: space-between; align-items: baseline; }
.sk-head .cap { opacity: 1; }
.sk-head b { font: 800 clamp(48px, 5vw, 76px)/.9 var(--display); }
.sk-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.sk-panel li {
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 16px; font: 600 16px/1.2 var(--text);
}
.sk-panel.in { animation: sk-panel .5s cubic-bezier(.19,1,.22,1); }
.sk-panel.in li { animation: sk-pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.12s + var(--k) * 60ms); }
@keyframes sk-panel { from { transform: translateY(14px) rotate(-1deg); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes sk-pop { from { transform: translateY(16px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 961px) { .sk-stage { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-panel.in, .sk-panel.in li { animation: none; } }
.sk-panel[hidden] { display: none; }
.sk-wrap { align-self: center; }
.sk-stage { height: 360px; }
@media (max-width: 960px) { .sk-stage { height: 420px; } }
.sk-stage { height: 410px; }
.sk-panel { gap: 16px; padding: 20px 24px; }
.sk-head b { font-size: clamp(40px, 4vw, 60px); }
@media (max-width: 960px) { .sk-stage { height: auto; } .sk-panel { position: relative; inset: auto; min-height: 300px; } }

/* ---------- Документы (26.09.2026): ссылка под закладками, белые квадраты на коралловом фоне ---------- */
.side-docs { font: 600 14px/1.2 var(--text); color: var(--on-surface); text-decoration: none; padding: 8px 4px; opacity: .75; }
.side-docs:hover { opacity: 1; text-decoration: underline; }
.side-docs[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.mmenu .side-docs { display: block; padding: 12px 4px 4px; }

.docs-screen { display: flex; flex-direction: column; gap: 24px; padding: 8px 8px 40px; }
.docs-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.docs-head h1 { font-size: var(--h1); }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.doc-tile {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-card);
  padding: 16px; text-decoration: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
}
.doc-tile .n { font: 700 15px/1 var(--display); position: relative; z-index: 1; }
.doc-tile .arr { width: 20px; height: 20px; fill: currentColor; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.19,1,.22,1); }
.doc-tile:hover .arr { transform: rotate(45deg); }
.doc-tile .t { grid-column: 1 / -1; grid-row: 3; font: 700 clamp(15px, 1.4vw, 19px)/1.15 var(--display); position: relative; z-index: 1; text-wrap: balance; }
.doc-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* волны — как на кнопках: из правого нижнего угла к центру, жёлтый → розовый → мятный */
.doc-tile .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.doc-tile .fx i {
  position: absolute; right: 0; bottom: 0; width: 300%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(50%, 50%) scale(0); transition: transform 1.1s cubic-bezier(.45,0,.2,1);
}
.doc-tile .fx i:nth-child(1) { background: var(--c); transition-delay: .3s; }
.doc-tile .fx i:nth-child(2) { background: var(--a); transition-delay: .15s; }
.doc-tile .fx i:nth-child(3) { background: var(--r); transition-delay: 0s; }
.doc-tile:hover .fx i { transform: translate(50%, 50%) scale(1); }
.doc-tile:hover .fx i:nth-child(1) { transition-delay: 0s; }
.doc-tile:hover .fx i:nth-child(2) { transition-delay: .2s; }
.doc-tile:hover .fx i:nth-child(3) { transition-delay: .4s; }
.seller { font-size: 14px; margin: 0; }
@media (max-width: 700px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .doc-tile .fx { display: none; } }

.doc-page { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 8px 8px 40px; max-width: 760px; }
.doc-page h1 { font-size: var(--h1); text-wrap: balance; }
/* Название документа длинное: на телефоне мельче заголовка раздела, чтобы не занимать весь экран (НС-86) */
@media (max-width: 480px) { .doc-page h1 { font-size: 24px; } }
.doc-back { font: 600 15px/1 var(--text); color: var(--ink); }
.doc-text { background: var(--surface); border-radius: var(--radius-card); padding: 24px; font-size: 17px; line-height: 1.6; max-width: 68ch; width: 100%; }
.doc-text p { margin: 0 0 12px; }
/* Тексты документов (НС-31): разделы, списки и таблицы юриста. Фон и текст — из ролей, чтобы читалось и в тёмной теме */
.doc-text { background: var(--surface); color: var(--on-surface); overflow-wrap: break-word; }
.doc-text h2 { font: 700 clamp(19px, 1.8vw, 23px)/1.25 var(--display); margin: 32px 0 12px; text-wrap: balance; }
.doc-text h3 { font: 700 18px/1.3 var(--text); margin: 24px 0 8px; }
.doc-text > :first-child { margin-top: 0; }
.doc-text ul, .doc-text ol { margin: 0 0 12px; padding-left: 24px; }
.doc-text li { margin: 0 0 8px; }
.doc-text hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.doc-text a { color: inherit; overflow-wrap: anywhere; }
.doc-table { overflow-x: auto; margin: 0 0 16px; }
.doc-table table { border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 100%; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc-table th { font-weight: 700; }
.doc-field { border-bottom: 1px dashed currentColor; opacity: .7; }
.doc-others { margin: 0; font-size: 15px; }
.doc-others a { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .doc-text { padding: 20px 16px; font-size: 16px; } }
.doc-tile .t { font-size: clamp(14px, 1.25vw, 18px); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.doc-tile .t { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; font-size: clamp(14px, 1.3vw, 18px); }
.doc-grid { max-width: 960px; }
/* «Документы» в боковом меню — по центру колонки закладок */
.side .side-docs { align-self: stretch; text-align: center; }
/* Седьмой цвет — только для страниц документов (Марина, 26.09.2026): не совпадает ни с закладками, ни с логотипом */
:root { --doc: #CFA8FF; }
/* Кнопка «Попробовать» — по центру логотипа в боковом меню (центр 42px) */
@media (min-width: 961px) {
  .top { align-items: flex-start; padding-top: 16px; }
  .top .btn { min-height: 56px; }  /* главная кнопка — 56 (брендбук); центр по-прежнему вровень с логотипом */
}
/* Под закладками теперь ссылка «Документы» (~34px): логотип не сжимается, закладки чуть ниже ростом */
.side .logo, .side .side-docs { flex: none; }
:root { --tab: min(160px, calc((100dvh - 84px - 16px - 40px - 34px) / 5)); }
/* Документы: слева заголовок и пояснение, справа квадраты два на два (Марина, 26.09.2026) */
@media (min-width: 961px) {
  .docs-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: var(--screen); }
}
.docs-screen .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; width: 100%; justify-self: end; }
.docs-screen .doc-tile .t { font-size: clamp(16px, 1.5vw, 21px); }
/* Документы: заголовок и квадраты ближе друг к другу, вместе — по центру экрана */
@media (min-width: 961px) {
  .docs-screen { grid-template-columns: minmax(0, 440px) minmax(0, 520px); justify-content: center; gap: 64px; }
  .docs-screen .doc-grid { justify-self: start; max-width: 520px; }
}

/* ---------- О проекте — один экран (26.09.2026) ---------- */
.about-screen { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 340px); justify-content: center; align-items: center; gap: 64px; padding: 8px 8px 40px; }
@media (min-width: 961px) { .about-screen { min-height: var(--screen); } }
.about-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-text h1 { font-size: clamp(32px, 4vw, 56px); }
.about-text .lead { font-size: 18px; max-width: 48ch; }
.about-text .prose p { font-size: 16px; }
.about-quote { margin: 0; background: var(--ink); color: var(--paper); border-radius: var(--radius-inner); padding: 16px 20px; font: 700 clamp(16px, 1.5vw, 20px)/1.3 var(--display); max-width: 36ch; }
.about-photo { position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 452 / 639; }
.about-photo img, .about-photo .stack { position: absolute; inset: 0; border-radius: var(--radius-card); border: 2px solid var(--ink); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; background: var(--surface); transform: rotate(-2deg); transition: transform .6s cubic-bezier(.19,1,.22,1); }
.about-photo .stack { background: var(--dot); transition: transform .6s cubic-bezier(.19,1,.22,1); }
.about-photo .stack.t-c { transform: translate(18px, 14px) rotate(5deg); }
.about-photo .stack.t-i { transform: translate(9px, 7px) rotate(2deg); }
.about-photo:hover img { transform: rotate(0deg) translateY(-4px); }
.about-photo:hover .stack.t-c { transform: translate(26px, 18px) rotate(8deg); }
.about-photo:hover .stack.t-i { transform: translate(13px, 9px) rotate(4deg); }
@media (max-width: 960px) {
  .about-screen { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 260px; justify-self: center; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .about-photo img, .about-photo .stack { transition: none; } }

/* Колода профессий на телефоне: у карточки свои отступы (общее правило .card { padding: 0 } — для старых карточек) */
@media (max-width: 960px) { .deck .card { padding: 24px; } }
.about-text { gap: 16px; }
.about-text h1 { font-size: clamp(30px, 3.2vw, 46px); }
.about-screen { grid-template-columns: minmax(0, 620px) minmax(0, 300px); padding-bottom: 16px; }
.about-photo { max-width: 300px; }
@media (max-width: 960px) { .about-screen { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 240px; } }
/* О проекте — расширенный текст Марины */
.about-h2 { font: 700 clamp(18px, 1.6vw, 22px)/1.25 var(--display); margin: 0; max-width: 34ch; }
.about-text .prose { gap: 8px; }
.about-text .prose p { font-size: 15px; line-height: 1.45; margin: 0; }
.about-qs { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.about-qs li { background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 12px; font: 600 14px/1.2 var(--text); }
@media (min-width: 961px) { .about-screen { grid-template-columns: minmax(0, 700px) minmax(0, 300px); } }
.about-h2 { max-width: 44ch; }
.about-screen { padding: 0 8px 8px; }
.about-text { gap: 12px; }
.about-text .prose { gap: 8px; }
/* О проекте: с чёрной плашкой — плотнее, чтобы оставаться в один экран на ноутбуке */
@media (min-width: 961px) {
  .about-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); max-width: 1060px; margin: 0 auto; gap: 48px; }
  .about-photo { max-width: 280px; }
}
.about-text h1 { font-size: clamp(28px, 2.8vw, 40px); }
.about-text .lead { font-size: 16px; }
.about-h2 { font-size: clamp(17px, 1.4vw, 20px); }
.about-text .prose p { font-size: 14px; line-height: 1.4; }
.about-qs li { padding: 4px 12px; font-size: 13px; }
.about-quote { padding: 12px 16px; font-size: clamp(15px, 1.3vw, 18px); max-width: 44ch; }
.about-text .go-row .btn { min-height: 56px; }
.about-text { gap: 8px; }
.about-text .prose { gap: 4px; }
.about-qs { margin: 0; }
@media (min-width: 961px) { .about-screen { min-height: calc(100dvh - 84px); } }
.about-photo { margin-right: 24px; }
.main { overflow-x: clip; }
/* Название на чёрной плашке — контрастно: «на» белым, «скилле» коралловым */
.about-quote .brand .lg-na { opacity: 1; color: var(--paper); }
.about-quote .brand .lg-sk { color: var(--e); }
/* Имя и «психолог» — под фотографией */
.about-side { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.about-side .about-photo { margin-right: 0; }
.about-who { text-align: center; }
.about-who h1 { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--display); margin: 0 0 8px; }
.about-who p { margin: 0; font-size: 15px; }
.about-text .about-h2 { font-size: clamp(20px, 1.9vw, 26px); }
.about-text .prose p { font-size: 15px; line-height: 1.45; }
@media (max-width: 960px) { .about-side { order: -1; } }
.about-side { gap: 32px; }

/* Четыре шага навыка — полоса из стрелок (26.09.2026) */
.steps4 { display: grid; gap: 8px; width: 100%; }
.steps4 .cap { opacity: .75; }
.steps4 ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; filter: drop-shadow(0 0 0 var(--ink)); }
.steps4 li {
  flex: 1; min-width: 0; display: grid; place-items: center; text-align: center; min-height: 44px; padding: 0 20px 0 24px;
  background: var(--ink); color: var(--paper); font: 600 14px/1.1 var(--text); position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.steps4 li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 14px 0 0 14px; padding-left: 16px; }
.steps4 li:not(.life) { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
/* белые шаги — с тонкой чёрной обводкой по форме стрелки */
.steps4 li:not(.life)::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
}
.steps4 li:not(.life) { background: linear-gradient(var(--white), var(--white)) padding-box; }
@media (max-width: 520px) { .steps4 li { font-size: 12px; padding: 0 12px 0 20px; } }
@media (max-width: 400px) { .steps4 li { font-size: 11px; padding: 0 8px 0 16px; } }  /* полоса шагов не шире текста (Марина, 21.10.2026) */
/* Шаги — сиреневые, как в приложении (Марина, 21.10.2026): светлее → темнее, «примени» — чернила (обводка у стрелок не нужна) */
.steps4 li:not(.life) { box-shadow: none; color: var(--ink); }
.steps4 li:not(.life)::before { content: none; }
.steps4 li:nth-child(1) { background: var(--sk1); }
.steps4 li:nth-child(2) { background: var(--sk2); }
.steps4 li:nth-child(3) { background: var(--sk3); }
.steps4 li.life { background: var(--sk4); color: var(--paper); border-radius: 0 14px 14px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.steps4 ol { filter: none; }
/* Плашки с номерами разделов убраны (26.09), но место под ними оставлено — заголовки стоят где стояли */
.pill-ghost { visibility: hidden; }
/* О проекте: фото с именем слева, текст справа; подзаголовок про детей — спокойнее (Марина, 26.09.2026) */
@media (min-width: 961px) {
  .about-screen { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .about-side { order: -1; }
  .about-photo { margin-right: 0; margin-left: 0; }
}
.about-text .about-h2 { font-size: clamp(17px, 1.45vw, 21px); }

/* Кнопка на «Профессиях» и «Навыках» — сразу под текстом, без большого разрыва; левая колонка по центру по высоте */
.prof-screen .prof-left { justify-content: flex-start; }
.prof-screen .go-row { margin-top: 12px; }

/* Родителям */
.par-marks { margin: 0; }
.sk-note { margin: 0; font-size: 16px; font-weight: 500; max-width: 40ch; }
.prof-left .about-quote { max-width: 48ch; }
/* Подпись всегда рядом с кнопкой: при нехватке места переносится внутри себя, а не уходит под кнопку */
.go-row { flex-wrap: nowrap; }
.go-row .btn { flex: none; }
.go-note { min-width: 0; font-size: 15px; }
@media (max-width: 520px) {
  .go-row { flex-wrap: wrap; flex-direction: column; align-items: stretch; width: 100%; }
  .go-note { text-align: center; }  /* на телефоне кнопка во всю ширину — подпись под ней по центру (Марина, 21.10.2026) */
}

/* Профессии: блок «6 типов» — подпись одной строкой, метки под ней */
.types-row { display: grid; gap: 12px; justify-items: start; }
.types-row p { max-width: none; font-size: 15px; }

/* Навыки: пять бегущих лент по группам (26.09.2026) */
.lanes { display: grid; gap: 12px; align-self: center; }
.lane {
  display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--dot); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 8px; overflow: hidden;
}
.lane-name {
  flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 12px 16px; font: 700 14px/1 var(--display); position: relative; z-index: 1;
}
.lane-name b { font: 800 12px/1 var(--display); opacity: .6; }
.lane-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent); }
.lane-run { display: inline-flex; gap: 8px; padding-right: 8px; white-space: nowrap; animation: run var(--dur) linear infinite; }
.lane:nth-child(even) .lane-run { animation-direction: reverse; }
.lane:hover .lane-run { animation-play-state: paused; }
.lane-run span { background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font: 600 15px/1 var(--text); }
@media (prefers-reduced-motion: reduce) {
  .lane-run { animation: none; white-space: normal; flex-wrap: wrap; }
  .lane { border-radius: var(--radius-card); align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .lane-run .dup { display: none; } }
.lanes { gap: 16px; }
.lane { padding: 12px; }
.lane-name { padding: 12px 16px; font-size: 15px; }
.lane-run span { padding: 11px 16px; font-size: 16px; }
.types-row .legend { gap: 8px; } .types-row .legend span { padding: 6px 10px; font-size: 12px; }

/* Картинки (26.09.2026): сцена пробника на каждой карточке колоды и на первом экране главной */
.card { padding-top: 0; }
.card::before { content: none; }
.card-pic { display: block; width: calc(100% + 44px); margin: 0 -22px; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 45%; border-bottom: 2px solid var(--ink); background: var(--surface); }
.card-top { margin-top: 0; }
.card { gap: 12px; }
.card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.card .card-hook { font-size: 17px; }
.card dl { font-size: 14px; gap: 8px 12px; }
.card::after { font-size: 12px; }
.deck { height: min(560px, calc(100dvh - 84px - 110px)); }
@media (max-width: 960px) { .deck { height: 560px; } .card-pic { width: calc(100% + 44px); } }
.hero-pic { padding: 0; overflow: hidden; background: var(--white); border: 2px solid var(--ink); }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.card-pic { max-width: none; }
@media (min-width: 961px) and (max-height: 760px) { .card-pic { aspect-ratio: 2.5 / 1; } .card dl dd { font-size: 13px; } }
/* Высота картинки — доля высоты карточки, чтобы текст помещался на любом экране */
.card-pic, .card-pic[style] { aspect-ratio: auto; height: 42%; flex: none; }
@media (min-width: 961px) and (max-height: 760px) { .card-pic { aspect-ratio: auto; height: 36%; } }
:root { --deck-h: min(560px, calc(100dvh - 194px)); }
.deck { height: var(--deck-h); }
.card-pic, .card-pic[style] { height: calc((var(--deck-h) - 18px) * .40); }
@media (max-width: 960px) { :root { --deck-h: 560px; } }
/* Старое правило .card > img (карточки прошлого макета) перебивало размер — здесь точнее */
.deck .card > .card-pic { width: calc(100% + 44px); max-width: none; margin: 0 -22px; aspect-ratio: auto; height: calc((var(--deck-h) - 18px) * .40); flex: none; }
@media (max-width: 960px) { :root { --deck-h: 640px; } .deck .card > .card-pic { height: 170px; } }
.hero-pic { margin: 0; }
.price-list li { align-items: center; }

/* ---------- Главная (26.09.2026, вечер) ---------- */
/* Блок профессий на главной — свой класс, стили страницы «Профессии» его больше не задевают */
.home-prof { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 1100px) { .home-prof { grid-template-columns: 1fr; } }
/* Первый экран: картинка и кейс пробника — одним блоком */
.first-side { grid-template-rows: 1fr; }
.mock.with-pic { padding-top: 0; justify-content: flex-start; overflow: hidden; }
.mock.with-pic .mock-pic { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 8px; height: clamp(150px, 26vh, 260px); object-fit: cover; object-position: 50% 40%; border-bottom: 2px solid var(--ink); background: var(--white); }
/* Жёлтый блок: содержимое собрано, без огромных пустот */
.hero.first > .head { justify-content: center; gap: 32px; }
.mock.with-pic .mock-pic { object-position: 50% 20%; }
/* Первый экран: картинка и кейс — одна иллюстрированная карточка. Фон карточки = фон картинки (#F1F0EC),
   без линии между ними; акценты — синий «Исследователя», как пятно на картинке (Марина, 26.09.2026) */
.mock.with-pic { background: var(--paper); border: 2px solid var(--ink); }
.mock.with-pic .mock-pic { border-bottom: 0; margin-bottom: -6px; }
.mock.with-pic > .cap { align-self: flex-start; background: var(--i); color: var(--ink); opacity: 1; border-radius: 999px; padding: 8px 12px; }
.mock.with-pic .mock-scene { background: var(--i); }
.mock.with-pic .mock-say { background: var(--white); border: 2px solid var(--ink); }
.mock.with-pic .mock-acts span { background: var(--white); transition: background-color .3s; }
.mock.with-pic .mock-acts span:hover { background: var(--i); }

/* ================= Главная, переделка 26.09.2026 ================= */
.home-screen {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%; padding: 8px 8px 16px;
}
@media (min-width: 961px) {
  .home-screen { min-height: calc(100dvh - 84px); scroll-snap-align: start; scroll-margin-top: 84px; }
}
.home-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.home-text h2 { font: 800 clamp(30px, 3.4vw, 50px)/1.05 var(--display); margin: 0; text-wrap: balance; }
.home-text .lead { font-size: 18px; max-width: 46ch; margin: 0; }
.home-text p { margin: 0; max-width: 50ch; }
.home-text .about-quote { max-width: 40ch; }

/* 1. Первый экран */
.hero-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
@media (min-width: 961px) { .hero-screen { height: calc(100dvh - 84px - 16px); min-height: 560px; } }
.home-hero { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 40px; }
.home-hero h1 { font-size: clamp(36px, 4.4vw, 64px); max-width: 12ch; margin: 0; }
.home-hero .lead { margin: 0; font-size: 18px; max-width: 40ch; }
.case-card { padding: 0; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.case-pic { display: block; width: 100%; max-width: none; flex: 1 1 auto; min-height: 0; height: auto; object-fit: cover; object-position: 50% 30%; }
.case-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: none; }
.case-tag { align-self: flex-start; background: var(--i); border-radius: 999px; padding: 7px 14px; font: 600 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.case-say { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-inner); padding: 12px 16px; }
.case-say b { font: 600 13px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.case-say p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.case-say .kuda-prof { font-weight: 600; }
/* Подсказка к непонятному слову (Полякова 03.11.2026, НС-134, вид Б): слово подчёркнуто точками, нажатие раскрывает
   объяснение внутри карточки, цвет — направления профессии (класс .t-*), текст на цвете — чернила */
.slovo { all: unset; cursor: pointer; font: inherit; border-bottom: 2px dotted currentColor; padding-bottom: 1px; position: relative; }
.slovo::after { content: ""; position: absolute; inset: -12px -4px; }
.slovo:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.slovo-in { margin-top: 8px; color: #121214; border-radius: var(--radius-inner); padding: 12px 14px; font: 400 15px/1.4 var(--text); }
.slovo-in[hidden] { display: none; }
.case-say .slovo-in b { display: block; font: 600 15px/1.3 var(--text); margin-bottom: 4px; text-transform: none; letter-spacing: 0; opacity: 1; }
.case-q { margin: 2px 0 0; font: 700 17px/1.2 var(--display); }
.case-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.case-acts span { background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 13px; font: 600 14px/1 var(--text); transition: background-color .3s; }
.case-acts span:hover { background: var(--i); }

/* 2. Лесенка */
.stairs-wrap { display: grid; gap: 16px; justify-items: start; }
.stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.stairs li {
  justify-self: start; background: var(--dot); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 16px 24px; font: 800 clamp(20px, 2.1vw, 30px)/1 var(--display); position: relative;
  margin-left: calc(var(--n) * 12%); transition: transform .5s cubic-bezier(.19,1,.22,1);
}
.stairs li:nth-child(1) { --n: 0; } .stairs li:nth-child(2) { --n: 1; } .stairs li:nth-child(3) { --n: 2; } .stairs li:nth-child(4) { --n: 3; }
.stairs li:not(:last-child)::after {
  content: "↘"; position: absolute; right: -34px; bottom: -22px; font: 800 24px/1 var(--text); color: var(--ink);
}
.stairs-wrap:hover .stairs li { transform: translateX(8px); }
.stairs-wrap:hover .stairs li:nth-child(2) { transition-delay: .06s; } .stairs-wrap:hover .stairs li:nth-child(3) { transition-delay: .12s; } .stairs-wrap:hover .stairs li:nth-child(4) { transition-delay: .18s; }
.stairs-end { margin: 6px 0 0 calc(3 * 12%); font-size: 16px; max-width: 30ch; }

/* 3. Веер профессий */
.fan { position: relative; height: min(460px, 60dvh); }
.fan-card {
  position: absolute; left: 50%; top: 50%; width: min(300px, 62%); background: var(--white); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column;
  transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 34px)) rotate(calc((var(--k) - 1.5) * 7deg));
  transform-origin: 50% 120%; transition: transform .6s cubic-bezier(.19,1,.22,1); box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}
.fan-card img { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-bottom: 2px solid var(--ink); }
.fan-card .cap { padding: 12px 16px 0; display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.fan-card .cap::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 2px var(--ink); }
.fan-card b { padding: 4px 16px 16px; font: 800 22px/1.1 var(--display); }
.fan:hover .fan-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 120px)) rotate(calc((var(--k) - 1.5) * 10deg)); }
.fan .fan-card:hover { z-index: 5; transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 120px)) translateY(-18px) rotate(0deg); }

/* 4. Копилка опыта — листочки */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 520px; justify-self: center; width: 100%; }
.note {
  background: var(--dot); border: 2px solid var(--ink); border-radius: 6px var(--radius-card) var(--radius-card) var(--radius-card); padding: 20px 20px 24px; min-height: 150px;
  display: flex; flex-direction: column; gap: 16px; transform: rotate(calc((var(--k) - 1.5) * 2.2deg)); transition: transform .5s cubic-bezier(.19,1,.22,1);
}
.note:nth-child(2) { transform: rotate(2.5deg); } .note:nth-child(3) { transform: rotate(-2deg); }
.note:hover { transform: rotate(0) translateY(-6px); }
.note .cap { opacity: 1; font-size: 14px; }
.note i { display: block; height: 2px; background: var(--ink); opacity: .18; border-radius: 2px; }
.note i:nth-of-type(2) { width: 80%; } .note i:nth-of-type(3) { width: 55%; }

/* 5. Навыки — карточки-перевёртыши */
.flips { display: grid; gap: 16px; }
.flip { perspective: 1000px; outline: none; cursor: pointer; }
.flip-in { position: relative; min-height: 96px; transition: transform .7s cubic-bezier(.19,1,.22,1); transform-style: preserve-3d; }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.flip-front { background: var(--white); color: var(--ink); }  /* белая карточка — чернилами и в тёмной теме */
.flip-front p { margin: 0; font: 600 17px/1.3 var(--text); }
.flip-hint svg { width: 22px; height: 22px; fill: currentColor; }
.flip-back { background: var(--dot); transform: rotateX(180deg); }
.flip-back b { font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--display); }
.flip:hover .flip-in, .flip:focus-visible .flip-in, .flip.on .flip-in { transform: rotateX(180deg); }
.flips .about-quote { margin-top: 8px; }

/* 6. Финал */
.final-screen { align-items: stretch; }
.home-final { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 40px; min-height: 420px; }
.home-final h2 { font: 800 clamp(30px, 3.4vw, 50px)/1.05 var(--display); margin: 0; max-width: 16ch; }
.home-final .lead { margin: 0; }
.home-links { display: grid; gap: 16px; }
.home-link {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  background: var(--dot); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 22px 24px;
}
.home-link b { font: 800 clamp(20px, 2vw, 28px)/1.1 var(--display); position: relative; z-index: 1; }
.home-link > span:not(.fx) { grid-column: 1; font-size: 15px; position: relative; z-index: 1; }
.home-link .arr { grid-column: 2; grid-row: 1 / 3; width: 26px; height: 26px; fill: currentColor; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.19,1,.22,1); }
.home-link:hover .arr { transform: rotate(45deg); }
.home-link .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home-link .fx i { position: absolute; right: 0; bottom: 0; width: 260%; aspect-ratio: 1; border-radius: 50%; transform: translate(50%, 50%) scale(0); transition: transform 1.1s cubic-bezier(.45,0,.2,1); }
.home-link .fx i:nth-child(1) { background: var(--c); transition-delay: .3s; } .home-link .fx i:nth-child(2) { background: var(--a); transition-delay: .15s; } .home-link .fx i:nth-child(3) { background: var(--white); transition-delay: 0s; }
.home-link:hover .fx i { transform: translate(50%, 50%) scale(1); }
.home-link:hover .fx i:nth-child(1) { transition-delay: 0s; } .home-link:hover .fx i:nth-child(2) { transition-delay: .2s; } .home-link:hover .fx i:nth-child(3) { transition-delay: .4s; }

@media (max-width: 960px) {
  .home-screen, .hero-screen { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px; }
  .home-hero, .home-final { padding: 32px; }
  .case-pic { flex: none; aspect-ratio: 16 / 9; }
  .fan { height: 360px; }
  .stairs li { margin-left: calc(var(--n) * 6%); }
  .stairs-end { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .stairs li, .fan-card, .note, .flip-in, .home-link .fx i { transition: none; } }
.stairs li { white-space: nowrap; }
.stairs li:not(:last-child)::after { content: none; }
.stairs { gap: 12px; }
.fan-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 1.5) * 60px)) rotate(calc((var(--k) - 1.5) * 8deg)); }
/* цвет обратной стороны не просвечивает по краям */
.flip-front { transform: translateZ(1px); }
.flip-back { transform: rotateX(180deg) translateZ(1px); }
.flip { background: none; }
/* Финал — один чёрный призыв по центру (плитки-ссылки повторяли боковое меню) */
.final-screen { grid-template-columns: minmax(0, 820px); justify-content: center; }
.home-final { align-items: center; text-align: center; min-height: min(460px, 70dvh); }
.home-final h2 { max-width: 20ch; font-size: clamp(30px, 3.6vw, 54px); }
.home-final .go-row { justify-content: center; }
/* Веер: шесть карточек — по одной на каждый тип */
.fan-card { width: min(250px, 50%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 44px)) rotate(calc((var(--k) - 2.5) * 6deg)); }
.fan:hover .fan-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 82px)) rotate(calc((var(--k) - 2.5) * 8deg)); }
.fan .fan-card:hover { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 82px)) translateY(-22px) rotate(0deg); }
.fan-card b { font-size: 19px; }
@media (max-width: 960px) {
  .fan-card { width: min(200px, 52%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 24px)) rotate(calc((var(--k) - 2.5) * 5deg)); }
}
/* Название в плашке — по стандарту логотипа: строчными, «на» чернилами, «скилле» коралловым */
.pill .brand { text-transform: none; letter-spacing: 0; font: 800 14px/1 var(--display); }
.pill .brand .lg-na { opacity: 1; color: var(--ink); }
.pill .brand .lg-sk { color: var(--e); }
.fan-card b { font-size: 17px; hyphens: auto; -webkit-hyphens: auto; }

/* Главная, профессии: заголовок и кнопка сверху, веер под ними */
.home-prof-screen { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 24px; align-content: center; }
.home-prof-screen .home-text { align-items: center; }
.home-prof-screen .home-text .lead { max-width: 56ch; }
.home-prof-screen .fan { width: 100%; max-width: 900px; height: min(360px, 46dvh); }
.home-prof-screen .fan-card { width: min(240px, 30%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 96px)) rotate(calc((var(--k) - 2.5) * 5deg)); transform-origin: 50% 140%; }
.home-prof-screen .fan:hover .fan-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 150px)) rotate(calc((var(--k) - 2.5) * 3deg)); }
.home-prof-screen .fan .fan-card:hover { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 150px)) translateY(-22px) rotate(0deg); }
@media (max-width: 960px) {
  .home-prof-screen .fan-card { width: min(170px, 44%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 34px)) rotate(calc((var(--k) - 2.5) * 5deg)); }
}

/* Колода «Профессий»: без подсказки «Нажми — следующая» в карточке; картинка крупнее */
.card::after { content: none; }
.deck .card > .card-pic { height: calc((var(--deck-h) - 18px) * .52); }
@media (max-width: 960px) { .deck .card > .card-pic { height: 210px; } }

/* Документы: реквизиты на виду — нужны покупателю и платёжному сервису */
.seller-card { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 16px 20px; font-size: 14px; max-width: 460px; }
.seller-card dt { font: 600 13px/1.5 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.seller-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.seller-card .brand .lg-na { opacity: 1; color: var(--ink); }
.seller-card .brand .lg-sk { color: var(--e); }
.seller-card dt .brand { text-transform: none; letter-spacing: 0; }
/* Картинка в карточке колоды занимает всё место, что осталось после текста */
.deck .card > .card-pic { height: auto; flex: 1 1 0; min-height: 34%; }
@media (max-width: 960px) { .deck .card > .card-pic { height: auto; min-height: 180px; } }
@media (min-width: 961px) {
  .home-prof-screen .fan-card { width: min(220px, 26%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 128px)) rotate(calc((var(--k) - 2.5) * 4deg)); }
  .home-prof-screen .fan:hover .fan-card { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 150px)) rotate(calc((var(--k) - 2.5) * 2deg)); }
  .home-prof-screen .fan .fan-card:hover { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 150px)) translateY(-22px) rotate(0deg); }
}

/* Документы: заголовок сверху, пять квадратов лесенкой (Марина, 26.09.2026) */
@media (min-width: 961px) {
  .docs-stairs { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 32px; max-width: 1100px; margin: 0 auto; }
  .docs-stairs .doc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; justify-self: auto; padding-bottom: calc(4 * 26px); }
  .docs-stairs .doc-tile { transform: translateY(calc(var(--k) * 26px)); transition: transform .5s cubic-bezier(.19,1,.22,1); }
  .docs-stairs .doc-tile:hover { transform: translateY(calc(var(--k) * 26px - 6px)); }
}
.docs-stairs .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 961px) { .docs-stairs .doc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.docs-stairs .doc-tile .t { font-size: clamp(14px, 1.2vw, 17px); }
.doc-seller { background: var(--ink); color: var(--paper); border-color: var(--ink); aspect-ratio: auto; min-height: 100%; }
.doc-seller .t { display: grid; gap: 4px; align-self: end; }
.doc-seller .t b { font: 700 clamp(14px, 1.2vw, 17px)/1.15 var(--display); margin-bottom: 4px; }
.doc-seller .t span { font: 500 12px/1.3 var(--text); opacity: .9; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.doc-seller a { color: inherit; }
@media (max-width: 960px) { .doc-seller { grid-column: 1 / -1; aspect-ratio: auto; } }
@media (min-width: 961px) and (max-width: 1150px) { .docs-stairs .doc-tile .t { font-size: 13px; } .docs-stairs .doc-tile { padding: 12px; } }

/* Документы — пирамида: текст сверху по центру, под ним два квадрата, внизу три (Марина, 26.09.2026) */
.docs-stairs .doc-tile, .docs-stairs .doc-tile:hover { transform: none; }
.docs-stairs .doc-tile:hover { transform: translateY(-6px); }
@media (min-width: 961px) {
  .docs-stairs { align-items: center; gap: 24px; }
  .docs-stairs .docs-head { align-items: center; text-align: center; }
  .docs-stairs .docs-head .pill-ghost { display: none; }
  .docs-stairs .doc-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(640px, 100%); padding-bottom: 0; gap: 16px;
  }
  .docs-stairs .doc-grid > :nth-child(1) { grid-column: 2 / span 2; }
  .docs-stairs .doc-grid > :nth-child(2) { grid-column: 4 / span 2; }
  .docs-stairs .doc-grid > :nth-child(3) { grid-column: 1 / span 2; }
  .docs-stairs .doc-grid > :nth-child(4) { grid-column: 3 / span 2; }
  .docs-stairs .doc-grid > :nth-child(5) { grid-column: 5 / span 2; aspect-ratio: 1; min-height: 0; }
}

/* Главная, финал: чёрный блок — от верха первой закладки до низа последней */
@media (min-width: 961px) {
  /* запас прокрутки под финалом — расчёт от высоты окна, а не отступ шкалы: невидимой подпоркой, а не полем (НС-142) */
  .final-screen { min-height: 0; padding: 0 8px; align-items: start; position: relative; }
  .final-screen::after { content: ""; position: absolute; left: 0; top: 100%; width: 1px; height: calc(100dvh - 84px - var(--screen)); }
  .home-final { min-height: 0; height: var(--screen); }
}
/* Финал главной — жёлтый, как первый экран: страница начинается и заканчивается одним цветом (Марина: чёрный — «похоронно») */
.home-final.t-c { background: var(--c); color: var(--ink); }
.home-final.t-c { --btn: var(--ink); --btn-text: var(--paper); }
.home-final.t-c .brand .lg-na { opacity: 1; color: currentColor; }
.home-final.t-c .brand .lg-sk { color: var(--e); }
/* Телефон в реквизитах — без подчёркивания, но по нажатию на телефоне сразу звонит */
.doc-seller a { text-decoration: none; }

/* Родителям: переключатель компактнее — высота по самому длинному содержимому, без пустоты (Марина, 26.09.2026) */
#parents { gap: 12px; }
#parents .sk-stage { height: auto; display: grid; }
#parents .sk-panel { position: relative; inset: auto; grid-area: 1 / 1; padding: 20px 24px; gap: 12px; overflow: visible; }
#parents .sk-panel[hidden] { display: flex !important; visibility: hidden; }
#parents .sk-head { display: none; }
#parents .sk-note { font-size: 15px; }
#parents .sk-panel li { font-size: 14px; padding: 8px 12px; }
/* «О чём поговорить» — облачками реплик */
#parents .sk-panel.t-a ul { flex-direction: column; align-items: flex-start; gap: 8px; }
#parents .sk-panel.t-a li { border-radius: 18px 18px 18px 4px; font-size: 15px; }
#parents .sk-panel.t-a li:nth-child(even) { align-self: flex-end; border-radius: 18px 18px 4px 18px; }
@media (min-width: 961px) { #parents { align-self: center; } }
#parents .sk-panel.t-a ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#parents .sk-panel.t-a li:nth-child(even) { align-self: start; justify-self: stretch; }
@media (max-width: 520px) { #parents .sk-panel.t-a ul { grid-template-columns: 1fr; } }

/* Родителям: два телефона — что видит родитель и что остаётся у ребёнка, под ними облачка разговора (26.09.2026) */
.par-side { display: grid; gap: 24px; align-self: center; justify-items: center; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.phone {
  width: 230px; min-height: 330px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 30px;
  padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 14px 28px color-mix(in srgb, var(--ink) 12%, transparent);
  transition: transform .6s cubic-bezier(.19,1,.22,1);
}
.phone-parent { transform: rotate(-4deg) translateX(14px); z-index: 1; }
.phone-teen { transform: rotate(4deg) translate(-14px, 26px); z-index: 2; }
.phones:hover .phone-parent { transform: rotate(-2deg) translateX(-6px); }
.phones:hover .phone-teen { transform: rotate(2deg) translate(6px, 26px); }
.phone-bar { display: flex; justify-content: center; padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--ink) 13.3%, transparent); }
.phone-bar::before { content: ""; position: absolute; }
.phone-bar .cap { opacity: .7; font-size: 11px; }
.phone-title { margin: 0; font: 800 18px/1.15 var(--display); background: var(--dot); border-radius: var(--radius-inner); padding: 12px 12px; }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font: 500 14px/1.3 var(--text); }
.phone li svg { width: 18px; height: 18px; fill: currentColor; margin-top: 1px; }
.phone-note { margin: auto 0 0; font-size: 12px; opacity: .7; }
.talk-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.talk-row span {
  background: var(--a); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; padding: 8px 14px; font: 600 14px/1.2 var(--text);
  transform: translateY(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.talk-row span:nth-child(even) { border-radius: 18px 18px 4px 18px; background: var(--surface); }
.talk-row span:hover { transform: translateY(-4px); }
@media (max-width: 960px) {
  .phones { flex-direction: column; align-items: center; gap: 0; }
  .phone-parent { transform: rotate(-2deg); } .phone-teen { transform: rotate(2deg) translateY(-20px); }
}
@media (prefers-reduced-motion: reduce) { .phone, .talk-row span { transition: none; } }
@media (min-width: 961px) {
  .phones { gap: 0; }
  .phone { width: 240px; }
  .phone-parent { transform: rotate(-4deg) translateX(10px); }
  .phone-teen { transform: rotate(4deg) translate(0, 30px); margin-left: -8px; }
  .phones:hover .phone-parent { transform: rotate(-2deg) translateX(-10px); }
  .phones:hover .phone-teen { transform: rotate(2deg) translate(14px, 30px); }
}
@media (min-width: 961px) {
  .phone-parent { transform: rotate(-4deg); }
  .phone-teen { margin-left: 32px; transform: rotate(4deg) translateY(30px); }
  .phones:hover .phone-parent { transform: rotate(-2deg) translateX(-8px); }
  .phones:hover .phone-teen { transform: rotate(2deg) translate(8px, 30px); }
}
/* Цена на «Сколько стоит» (Марина, 27.09.2026: вывешиваем 1 490 ₽) */
.price-tag { display: grid; gap: 2px; font: 500 14px/1.2 var(--text); }
.price-tag b { font: 800 clamp(22px, 2vw, 28px)/1 var(--display); }
/* Название в тексте — везде по стандарту логотипа: «на» цветом текста, «скилле» коралловым (Марина, 27.09.2026); жирным, шрифтом логотипа — брендбук, Марина 18.10.2026 */
.brand { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.brand .lg-na, .t-ink .brand .lg-na { opacity: 1; color: inherit; }
.brand .lg-sk { color: var(--e); }

/* Установка приложения (27.09.2026) */
.mbar .nav a.m-install { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; border: 2px solid var(--on-surface); border-radius: 18px; font: 700 15px/1.2 var(--display); color: var(--on-surface); background: transparent; text-decoration: none; }

/* ---------- Родителям: памятка блоками (НС-26, 13.10.2026; решение Марины 11.10.2026) ----------
   Ниже первого экрана — белые плитки на цвете страницы; внутри плашки 22, цвет — только акцентом. */
.rp a:focus-visible, .rp-more summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.rp {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-card); padding: 32px;
  display: grid; gap: 24px; scroll-margin-top: 100px; min-width: 0;
}
.rp p { margin: 0; font-size: 16px; line-height: 1.45; }
.rp a { color: inherit; text-underline-offset: 3px; }
.rp-h, .rp-col { display: grid; gap: 16px; align-content: start; justify-items: start; min-width: 0; }
.rp-col > *:not(.cap), .rp-h > .rp-card, .rp-h > .rp-more { width: 100%; }
.rp-h h2 { font: 800 clamp(24px, 2.8vw, 40px)/1.08 var(--display); margin: 0; max-width: 22ch; text-wrap: balance; }
.rp-h .lead { margin: 0; font-size: 18px; max-width: 46ch; }
.rp-h .cap, .rp-col > .cap { opacity: 1; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 12px; font-size: 12px; }
.rp-h3 { font: 800 clamp(18px, 1.7vw, 24px)/1.15 var(--display); margin: 0; }
.rp .about-quote { max-width: 44ch; }
.rp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
.rp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rp-cards { display: grid; gap: 12px; }
.rp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-card { background: var(--paper); border-radius: var(--radius-inner); padding: 20px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.rp-card h3 { font: 800 17px/1.2 var(--display); margin: 0; }
.rp-card p { font-size: 15px; line-height: 1.4; }
.rp-card.c-c { background: var(--c); } .rp-card.c-i { background: var(--i); } .rp-card.c-s { background: var(--s); }
.rp-card.c-a { background: var(--a); } .rp-card.c-r { background: var(--r); }
.rp-card.c-ink { background: var(--ink); color: var(--paper); padding: 24px; }
.rp-card.c-ink h3 { font-size: clamp(18px, 1.8vw, 24px); }
.rp-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.rp-big { font: 800 clamp(26px, 2.8vw, 40px)/1 var(--display); display: block; }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rp-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; }
.rp-list svg { width: 20px; height: 20px; fill: currentColor; margin-top: 1px; }
.rp-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-locks li { background: var(--paper); border-radius: var(--radius-inner); padding: 12px 16px; font-weight: 600; font-size: 15px; }
.rp-note { border: 2px solid var(--ink); border-radius: var(--radius-inner); padding: 16px 20px; }
.rp-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; width: 100%; }
.rp-nums span { background: var(--paper); border-radius: var(--radius-inner); padding: 14px; display: grid; gap: 6px; align-content: start; font-size: 14px; font-weight: 600; line-height: 1.25; }
.rp-nums b { font: 800 clamp(24px, 2.4vw, 34px)/1 var(--display); }
.rp-card .rp-nums span { background: var(--panel); }
.rp-pay { background: var(--surface); border: 2px solid var(--ink); padding: 24px; gap: 16px; }
.rp-pay h3 { font-size: clamp(18px, 1.7vw, 22px); }
.rp-pay h3 .rp-big { display: inline; } /* «от 990 ₽ в месяц» одной строкой (Марина, 26.10.2026, НС-101) */
.rp-pay .rp-nums span { background: var(--paper); }
.rp-pay .rp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Цепочка шагов: карточки со стрелкой между ними */
.rp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.rp-flow li { position: relative; background: var(--paper); border-radius: var(--radius-inner); padding: 20px 20px; display: grid; gap: 8px; align-content: start; }
.rp-flow li:nth-child(1) { background: var(--c); } .rp-flow li:nth-child(2) { background: var(--i); }
.rp-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -23px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: rotate(45deg);
}
.rp-flow h3 { font: 800 17px/1.2 var(--display); margin: 0; }
.rp-flow p { font-size: 15px; line-height: 1.4; }
.rp-flow .mock-acts span { padding: 6px 10px; font-size: 13px; }
.rp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-pair img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-inner); border: 2px solid var(--ink); display: block; background: var(--surface); }
/* Нумерованные шаги в строку */
.rp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rp; }
.rp-steps li { counter-increment: rp; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font: 600 16px/1.3 var(--text); }
.rp-steps li::before { content: counter(rp); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 15px/1 var(--display); }
/* Возраст: четыре ступени */
.rp-ages { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 12px; align-items: start; }
.rp-age { font: 800 clamp(18px, 1.8vw, 24px)/1 var(--display); }
/* Ось времени подписки */
.rp-time { list-style: none; margin: 0; padding: 0 0 0 24px; display: grid; gap: 16px; border-left: 3px solid var(--ink); }
.rp-time li { position: relative; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.rp-time li::before { content: ""; position: absolute; left: -32px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 3px solid var(--ink); }
.rp-time b { font: 800 15px/1.2 var(--display); }
/* Раскрывающиеся подробности */
.rp-more { border-top: 2px solid var(--line); padding-top: 12px; }
.rp-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--text); }
.rp-more summary::-webkit-details-marker { display: none; }
.rp-more summary::before { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 16px/1 var(--text); }
.rp-more[open] summary::before { content: "−"; background: var(--ink); color: var(--paper); }
.rp-more > div { display: grid; gap: 12px; padding: 12px 0 2px 40px; }
.rp-more > div p { font-size: 15px; }
/* Пример письма */
.rp-letter { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 0 20px 20px; display: grid; gap: 12px; box-shadow: 8px 8px 0 var(--a); transform: rotate(-1.5deg); align-self: center; }
.rp-letter-top { margin: 0 -20px; padding: 12px 20px; border-bottom: 2px solid var(--ink); background: var(--a); border-radius: 20px 20px 0 0; }
.rp-letter-top .cap { opacity: 1; }
.rp-letter + .rp-list { margin-top: 20px; }
.rp-split.rp-mid { align-items: center; }
.rp-two.rp-even { align-items: stretch; }
.rp-card.rp-lg { padding: 24px; }
.rp-card.rp-lg h3 { font-size: clamp(18px, 1.8vw, 24px); }
.rp-flow .mk-marks { flex-wrap: nowrap; gap: 4px; }
.rp-flow .mk-marks span { padding: 5px 7px; font-size: 12px; white-space: nowrap; }
/* Отметки в одну строку (Марина, 21.10.2026): последняя карточка, с отметками, чуть шире; на узких экранах — две в ряд */
@media (min-width: 1400px) { .rp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); } }
@media (max-width: 400px) { .rp-flow li { padding: 16px 16px; } }
@media (max-width: 359px) { .rp-flow .mk-marks { flex-wrap: wrap; } }
@media (max-width: 1399px) {
  .rp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-flow li:nth-child(2)::after { content: none; }
}
.rp-hidden { border-top: 2px solid var(--line); padding-top: 24px; }
.rp-ask { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; background: var(--ink); color: var(--paper); align-items: center; }
.rp-ask .rp-h .cap { background: var(--paper); color: var(--ink); }
.rp-ask h2 { max-width: none; overflow-wrap: anywhere; }
.rp-ask h2 a { text-decoration: none; }
@media (max-width: 1100px) {
  .rp-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-flow li:nth-child(2)::after { content: none; }
}
@media (max-width: 960px) {
  .rp { padding: 24px; gap: 20px; scroll-margin-top: 72px; }
  .rp-split, .rp-two, .rp-ask { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rp-letter { transform: none; }
}
@media (max-width: 600px) {
  .rp-2, .rp-3, .rp-4, .rp-ages, .rp-locks { grid-template-columns: minmax(0, 1fr); }
  .rp-flow { grid-template-columns: minmax(0, 1fr); }
  .rp-flow li:not(:last-child)::after { content: ""; right: auto; left: 50%; top: auto; bottom: -21px; margin: 0 0 0 -7px; transform: rotate(135deg); }
  .rp-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 600px) { .rp-nums b { font-size: 21px; overflow-wrap: anywhere; } .rp-nums span { padding: 12px; } }

/* ---------- Телефон (НС-60, Марина 21.10.2026) ---------- */
/* Невидимая плашка над заголовком выравнивает экраны на компьютере; на телефоне она давала лишние ~50px под шапкой */
@media (max-width: 960px) { .pill-ghost { display: none; } }
/* «Документы» — последней строкой внутри меню, под «Установить на телефон», а не отдельной строкой под кнопками */
.mbar .nav a.m-docs { display: block; flex: none; min-height: 0; padding: 8px 18px 4px; border: 0; font: 600 15px/1.3 var(--text); color: var(--on-surface); opacity: .8; text-decoration: underline; text-underline-offset: 4px; }
.mbar .nav a.m-docs[aria-current="page"] { opacity: 1; }
.mbar .nav a.m-docs::after { content: none; }
/* Один отступ от шапки до заголовка на всех разделах — 32px; заголовок цены не прилипает к карточке */
@media (max-width: 960px) {
  body.sec .price-head { padding: 24px 8px 16px; }
  .docs-screen.docs-stairs { padding-top: 24px; }
}
/* «Документы» в боковом меню компьютера — тем же шрифтом и размером, что названия закладок, без рамки; слева вровень с их текстом (Марина, 21.10.2026) */
.side .side-docs { font: 700 14px/1.15 var(--display); opacity: 1; text-align: left; padding: 6px 17px; }
.side .side-docs:hover, .side .side-docs[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Телефон (Марина, 21.10.2026): первый экран разделов — поля одинаковые слева и справа, ленты навыков вровень с текстом и кнопкой
   (мельче текст кнопки на узком телефоне — заменено 22.10, НС-86: у всех кнопок телефона Unbounded 700, 14; правило убрано в НС-108) */
@media (max-width: 960px) {
  body.sec .inner > .hero:first-child > .head { padding-inline: 8px; }
  .prof-screen .lanes { margin-inline: 8px; }
}

/* ---------- Проверка стиля НС-86 (21.10.2026) ---------- */
/* Название — всегда строчными, и в подписях заглавными тоже (брендбук, «Название и логотип») */
.brand { text-transform: none; letter-spacing: 0; }

/* Колонка содержимого не шире экрана: сетка не растягивается под широкую таблицу или длинное слово */
.inner { grid-template-columns: minmax(0, 1fr); }
.inner > *, .doc-page > *, .doc-text { min-width: 0; max-width: 100%; }
.doc-page { min-width: 0; }
.doc-text { max-width: min(68ch, 100%); }
.doc-table { max-width: 100%; }
.doc-table table { min-width: 100%; width: max-content; max-width: none; }
.doc-table th, .doc-table td { min-width: 9em; }
/* Длинные слова переносятся с дефисом и только целыми слогами — короткие слова не трогаем */
.doc-page h1, .doc-text h2, .doc-text h3, .doc-tile .t, .docs-stairs .doc-tile .t, .deck .card h3, .price h2, .fan-card b {
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;
}
@media (max-width: 960px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word; }
}

/* Тёмная тема главной: на тёмном фоне главная кнопка, цитата и «примени» — молочные, белые карточки — чернилами.
   Разделы (body.sec) всегда светлые — их не трогаем */
@media (prefers-color-scheme: dark) {
  body:not(.sec) { --btn: var(--on-surface); --btn-text: var(--bg); }
  body:not(.sec) .tile:is(.t-c, .t-i, .t-s, .t-r, .t-a, .t-e) { --btn: var(--ink); --btn-text: var(--paper); }
  body:not(.sec) .about-quote { background: var(--paper); color: var(--ink); }
  body:not(.sec) .about-quote .brand .lg-na { color: var(--ink); }
  body:not(.sec) .steps4 li.zk { background: var(--paper); color: var(--ink); }
}

/* Шапка телефона: «Попробовать» целиком и не ниже 44, «Меню» и логотип — тоже не ниже 44 */
@media (max-width: 960px) {
  .mbar-row { gap: 8px; }
  .mbar .logo { min-height: 44px; display: inline-flex; align-items: center; flex: none; }
  .mtry { flex: none; min-height: 44px; padding: 0 12px; }
  .mbar summary { min-height: 44px; flex: none; }
}
@media (max-width: 360px) {
  .mbar .logo { font-size: 16px; }
  .mtry { padding: 0 9px; font-size: 11px; }
  .mbar summary { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 340px) {
  .mbar { padding-inline: 12px; margin-inline: -16px; }
  .mbar-row { gap: 4px; }
  .mbar .logo { font-size: 15px; }
}

/* Лесенка на главной: последняя плашка не уходит за край колонки — шаг меньше, длинная плашка переносится */
.stairs li { white-space: normal; margin-left: calc(var(--n) * 8%); max-width: calc(100% - var(--n) * 8%); }
.stairs-end { margin-left: calc(3 * 8%); }
@media (max-width: 960px) { .stairs-end { margin-left: 0; } }
/* Колода «Профессий» на телефоне: карточки позади повёрнуты меньше и не выходят за край экрана */
@media (max-width: 960px) {
  .card[data-d="1"] { transform: translate(6px, 6px) rotate(1deg); }
  .card[data-d="2"], .card[data-d="3"] { transform: translate(12px, 12px) rotate(2deg); }
}
/* Первый и последний экраны главной на узком телефоне: «что твоё?» помещается в строку, кнопка — целиком */
@media (max-width: 400px) {
  .home-hero, .home-final { padding: 24px 20px; }
  .home-hero h1 { font-size: 32px; }
  .go-row .btn .lbl { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}
/* Главная на узком телефоне: лесенка без обрезки, веер внутри экрана, названия профессий целыми словами */
@media (max-width: 600px) {
  .stairs li { white-space: normal; font-size: clamp(16px, 5vw, 20px); padding: 12px 20px; margin-left: calc(var(--n) * 5%); max-width: calc(100% - var(--n) * 5%); }
  .home-prof-screen .fan { height: 300px; }
  .home-prof-screen .fan-card { width: min(160px, 52%); transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 18px)) rotate(calc((var(--k) - 2.5) * 4deg)); }
  .home-prof-screen .fan:hover .fan-card, .home-prof-screen .fan .fan-card:hover { transform: translate(-50%, -50%) translateX(calc((var(--k) - 2.5) * 18px)) rotate(calc((var(--k) - 2.5) * 4deg)); }
  .fan-card .cap { padding: 12px 12px 0; font-size: 11px; letter-spacing: .03em; }
  .fan-card .cap { padding: 12px 12px 0; }
  .fan-card b { padding: 4px 10px 12px; font-size: 14px; hyphenate-limit-chars: 12 5 5; }  /* целыми словами; по слогам — только очень длинные («кибербезопасности») */
  .note { padding: 16px 16px 20px; }
  .note .cap { font-size: 12px; letter-spacing: .03em; }
}

/* «Сколько стоит» на телефоне: подписи под цифрами переносятся, полоса ступеней — два на два */
.price .mk-nums span { white-space: normal; }  /* подпись под цифрой переносится, а не вылезает из карточки */
@media (max-width: 480px) {
  .steps4 ol { flex-wrap: wrap; row-gap: 4px; }
  .steps4 li { flex: 1 1 calc(50% - 2px); font-size: 14px; padding: 0 16px 0 24px; }
  .steps4 li:nth-child(3) { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 14px 0 0 14px; padding-left: 16px; }
}

/* Навыки: ленты групп — сиреневые оттенки по очереди, как навыки в приложении */
.lane.sk1 { --dot: var(--sk1); } .lane.sk2 { --dot: var(--sk2); } .lane.sk3 { --dot: var(--sk3); }

/* Документы на узком телефоне: названия в плитках переносятся по слогам, а не вылезают */
@media (max-width: 400px) {
  .docs-stairs .doc-tile { padding: 12px; }
  .docs-stairs .doc-tile .t { font-size: 13px; }
}

/* Зоны нажатия не меньше 44 — вид текста тот же */
.mbar .nav a.m-docs { display: flex; align-items: center; min-height: 44px; padding: 0 18px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-block: -14px; }
.doc-back svg { width: 18px; height: 18px; flex: none; }
.rp-more summary { min-height: 44px; }
.doc-seller a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }
/* Узкий телефон: длинный вопрос на перевёртыше не упирается в рамку; «обязательно» в финале — целым словом */
@media (max-width: 400px) {
  .flip-in { min-height: 128px; }
  .home-final h2 { font-size: 26px; }
}
/* Листочки Копилки на главной — текст на цвете всегда чернилами (брендбук), в тёмной теме тоже */
.note { color: var(--ink); }
/* Плитки документов узкие — там слогами переносятся и слова покороче («поль-зования») */
.doc-tile .t, .docs-stairs .doc-tile .t { hyphenate-limit-chars: 8 4 4; }
/* Подзаголовки цен: слогами — только очень длинные слова, чтобы не было дефиса в каждой строке */
.price h2 { hyphenate-limit-chars: 13 5 5; }

/* ---------- Телефон, правки Марины 22.10.2026 (НС-86) ---------- */
.btn .lbl .tx { display: contents; }
/* Меню — значок Phosphor list без рамки, открытое — x; зона нажатия 44×44 */
@media (max-width: 960px) {
  .mbar .mmenu > summary {
    width: 44px; height: 44px; min-height: 44px; padding: 0; margin-right: -8px;
    border: 0; border-radius: 12px; background: transparent; color: inherit;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .mbar .mmenu[open] > summary { background: transparent; color: inherit; }
  .mbar .mmenu > summary svg { width: 28px; height: 28px; fill: currentColor; }
  .mbar .mmenu:not([open]) .i-x, .mbar .mmenu[open] .i-list { display: none; }
  .mbar .mmenu > summary:focus-visible { outline: 3px solid currentColor; outline-offset: 0; }
  /* «Сколько стоит»: кнопка во всю ширину, цена — строкой во всю ширину прямо под ней (Марина, 22.10.2026 вечер) */
  .price-go { flex-direction: column; align-items: stretch; gap: 12px; }
  .price-go .price-tag { display: none; } /* на телефоне цены — в списке подписок над кнопкой (Марина, 26.10.2026, НС-101) */
}
@media (max-width: 480px) {
  /* Заголовки — целыми словами, без переноса с дефисом; три размера на весь сайт.
     Подобраны по самому длинному слову, чтобы оно стояло в строке на 320:
     h1 — «разобраться» («Родителям»), h2 — адрес почты и «обязательно»,
     заголовок карточки — «кибербезопасности» (колода «Профессий») */
  body .main :is(h1, h2, h3), body .main .inner .deck :is(h1, h2, h3) { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
  .main .inner h1 { font-size: clamp(30px, 18px + 3.75vw, 36px); line-height: 1.08; }
  .main .inner h2 { font-size: clamp(22px, 10px + 3.75vw, 28px); line-height: 1.1; }
  .main .inner :is(h3, .price h2, .doc-text h2, h2.about-h2) { font-size: clamp(16px, 4px + 3.75vw, 22px); line-height: 1.15; }
  .main .inner .doc-text h3 { font-size: 16px; }
  .deck .card .card-hook { font-size: 15px; }  /* подзаголовок карточки профессии не крупнее её названия */
  .rp-ask h2 { overflow-wrap: anywhere; }  /* адрес почты — не слово: если не влезет, переносится без дефиса */
  /* Название документа — мельче, чтобы длинное название занимало 3–4 строки, а не полэкрана */
  .main .inner .doc-page h1 { font-size: 18px; line-height: 1.2; letter-spacing: -.03em; }
  /* Кнопки — один размер: Unbounded 700, 14 */
  .btn, .home-install { font-family: var(--display); font-weight: 700; font-size: 14px; }
  /* Кнопка в блоке — во всю ширину, надпись в одну строку; где на 320 не влезает — переносится словами, стрелка остаётся справа */
  .main .inner .btn:not(.mtry) { width: 100%; padding-inline: 8px; }
  .main .btn .lbl { gap: 8px; flex-wrap: nowrap; justify-content: center; text-align: center; line-height: 1.2; }
  .main .btn .lbl .tx { display: block; min-width: 0; }
  .main .btn .lbl svg { flex: none; }
}

/* Меню на телефоне (Марина, 22.10.2026 вечер): «Документы» — тем же шрифтом и размером, что названия разделов;
   установки в меню нет — это не раздел, плашка «Установить на телефон» стоит на главной в первом экране */
.mbar .nav a.m-docs { padding: 0 17px; font: 700 14px/1.15 var(--display); opacity: 1; text-decoration: none; }
.mbar .nav a.m-docs[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.home-install { display: none; }
.home-install svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 960px) {
  .home-install {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 56px; padding: 0 20px; border: 2px solid currentColor; border-radius: 18px;
    font: 700 14px/1.2 var(--display); color: inherit; text-decoration: none;
  }
  .home-install:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
}

/* ---------- Страницы-ответы (НС-102): текст документа + схема-путь с развилками + вопросы */
.art-page { max-width: 820px; }
.art-meta { font-size: 14px; opacity: .7; }
.art-lead { font-size: 19px; line-height: 1.55; max-width: 62ch; font-weight: 500; }
.art-page .doc-text a, .art-page .faq a { font-weight: 600; }
.art-faq { width: 100%; max-width: 68ch; background: var(--surface); border-radius: var(--radius-card); padding: 24px; }
.art-faq h2 { font: 700 clamp(19px, 1.8vw, 23px)/1.25 var(--display); margin: 0 0 20px; }
.art-note { border: 2px solid var(--on-surface); border-radius: var(--radius-inner); padding: 20px 20px; margin: 24px 0 0; display: grid; gap: 12px; }
.art-note p { margin: 0; }
.art-links { margin-top: 48px; display: grid; gap: 20px; }
.art-links h2 { font: 800 clamp(26px, 3vw, 40px)/1.1 var(--display); }
@media (min-width: 961px) { .art-links .home-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Схема-путь: шаги сверху вниз, между ними линия; развилка — белая плашка с «да» и «нет» */
.path { margin: 8px 0; width: 100%; display: grid; gap: 16px; }
.path ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.path-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: center; position: relative; padding-bottom: 24px; }
.path-step:last-child { padding-bottom: 0; }
/* линия пути: от карточки к следующей */
.path-step:not(:last-child)::after { content: ""; position: absolute; left: 32px; bottom: 0; height: 26px; border-left: 3px solid var(--on-surface); }
.ps-card { grid-column: 1; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 20px 20px; color: var(--ink); }
.ps-card .n { grid-row: 1 / 3; width: 26px; font: 800 26px/1 var(--display); }
.ps-card h3 { font: 700 18px/1.2 var(--display); }
.ps-card p { font-size: 15px; line-height: 1.4; }
.path-fork { grid-column: 2; display: grid; gap: 8px; background: var(--surface); border: 2px solid var(--on-surface); border-radius: var(--radius-inner); padding: 16px 16px; font-size: 15px; line-height: 1.35; position: relative; }
/* стрелка от карточки к развилке */
.path-fork::before { content: ""; position: absolute; right: 100%; top: 50%; width: 18px; border-top: 3px solid var(--on-surface); }
.path-fork > b { font: 700 16px/1.25 var(--display); }
.pf-yes, .pf-no { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.pf-yes svg, .pf-no svg { width: 20px; height: 20px; fill: currentColor; margin-top: 1px; }
.path figcaption { font-size: 14px; opacity: .7; }
@media (max-width: 700px) {
  .path-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* одна линия пути по левому краю (x = 20): от карточки вниз, ответвление вправо к развилке, дальше к следующей карточке */
  .path-step:not(:last-child)::after { left: 20px; }
  .path-fork { grid-column: 1; margin-left: 40px; }
  .path-fork::before { right: auto; left: -22px; top: -12px; width: 0; height: calc(100% + 12px); border-top: 0; border-left: 3px solid var(--on-surface); }
  .path-fork::after { content: ""; position: absolute; left: -22px; top: 50%; width: 20px; border-top: 3px solid var(--on-surface); }
}
/* Таблица статьи — во всю ширину, текст переносится; списки с маркерами (НС-102) */
.art-page .doc-table table { width: 100%; table-layout: fixed; }
.art-page .doc-table th, .art-page .doc-table td { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.art-page .doc-text ul { list-style: disc; }
.art-page .doc-text ol { list-style: decimal; }
.art-page .doc-text li::marker { font-weight: 700; }
/* Таблица сравнения на телефоне: каждая строка — карточка, у клетки подпись столбца (НС-102) */
@media (max-width: 700px) {
  .art-page .doc-table.wide thead { display: none; }
  .art-page .doc-table.wide table, .art-page .doc-table.wide tbody, .art-page .doc-table.wide tr, .art-page .doc-table.wide td { display: block; width: 100%; }
  .art-page .doc-table.wide tr { border: 1px solid var(--line); border-radius: var(--radius-inner); padding: 4px 0; margin: 0 0 12px; }
  .art-page .doc-table.wide td { border: 0; padding: 8px 12px; hyphens: manual; }
  .art-page .doc-table.wide td:first-child { font: 700 16px/1.3 var(--display); padding-top: 12px; }
  .art-page .doc-table.wide td:not(:first-child)::before { content: attr(data-h); display: block; font-size: 13px; font-weight: 700; opacity: .65; }
}

/* Страницы-ответы: колонка текста и справа карточка-разговор с оглавлением (НС-110, 28.10.2026) */
/* Правая колонка доходит до правого края — по одной линии с кнопкой «Попробовать» в шапке (Марина, 28.10.2026) */
.art-page { max-width: none; padding-right: 0; display: grid; grid-template-columns: minmax(0, 820px) clamp(320px, 30vw, 480px); justify-content: space-between; column-gap: 40px; row-gap: 16px; align-items: start; }
.art-head, .art-body { grid-column: 1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.art-side { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.talk-card { margin: 0; }
.talk-card .case-pic { aspect-ratio: 16 / 9; flex: none; }
.talk-card .case-body p { margin: 0; font: 500 15px/1.4 var(--text); }
.talk-dialog { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; }
.talk-dialog span.say-teen { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--paper); color: var(--ink); }
.talk-dialog span.say-parent { border-radius: 18px 18px 18px 4px; background: var(--a); }
.talk-dialog span { max-width: 90%; }
.art-toc { display: grid; gap: 4px; }
.art-toc .cap { opacity: .7; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.art-toc a { display: block; padding: 3px 0; font: 600 14px/1.3 var(--text); text-decoration: underline; text-underline-offset: 3px; }
.art-body h2[id], .art-faq { scroll-margin-top: 100px; }
.rp-col > .talk-card { max-width: 520px; }
/* В правой колонке карточка компактнее, чтобы вся колонка помещалась в экран и ехала со страницей (Марина, 28.10.2026) */
.art-side .case-pic { aspect-ratio: 16 / 5; object-position: 50% 35%; }
.art-side .case-body { gap: 8px; padding: 4px 20px 20px; }
.art-side .talk-dialog { gap: 8px; }
.art-side .talk-dialog span { font-size: 13.5px; padding: 6px 12px; }
.art-side .case-body p { font-size: 14px; }
/* Низкий экран: вся колонка не помещается — карточка уезжает, оглавление едет со страницей */
@media (max-height: 760px) {
  .art-side { position: static; align-self: stretch; }
  .art-toc { position: sticky; top: 96px; }
}
@media (max-width: 1180px) {
  .art-page { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .art-side { grid-column: 1; grid-row: auto; position: static; max-width: 520px; width: 100%; }
  .art-toc { display: none; }
}
/* Метка первого экрана главной на телефоне — без названия: оно в шапке, метка в одну строку (НС-110) */
@media (max-width: 480px) { .home-hero .pill-brand, .home-hero .pill-dlya { display: none; } }  /* на телефоне плашка в одну строку: «12+ · приложение» (Полякова 06.11, НС-142) */
/* Карточка первого экрана главной — до той же правой линии, что кнопка «Попробовать» (Марина, 28.10.2026) */
@media (min-width: 961px) { .home-screen.hero-screen { padding-right: 0; } }

/* ===== НС-134 (Полякова 01.11.2026, «да» на третий показ): пять ступеней, как в приложении — одной строкой и на телефоне.
   «примени» — четвёртая сиреневая (--sk4, чернила), «закрепи» — чёрная (--sk5, молочный; в тёмной теме — молочная).
   Стрелки заходят остриём в вырез соседней, ширина по подписи, подпись по центру видимой части. */
.steps4 ol { container-type: inline-size; flex-wrap: nowrap; gap: 0; }
.steps4 li { --v: 14px; --p: 6px; flex: 1 1 auto; min-width: 0; margin-left: calc(2px - var(--v)); padding: 0 calc(var(--v) + var(--p)); white-space: nowrap; font-size: 14px;
  clip-path: polygon(0 0, calc(100% - var(--v)) 0, 100% 50%, calc(100% - var(--v)) 100%, 0 100%, var(--v) 50%); border-radius: 0; }
.steps4 li:first-child { margin-left: 0; padding-left: max(var(--p), 6px); border-radius: 14px 0 0 14px; clip-path: polygon(0 0, calc(100% - var(--v)) 0, 100% 50%, calc(100% - var(--v)) 100%, 0 100%); }
.steps4 li:nth-child(3) { clip-path: polygon(0 0, calc(100% - var(--v)) 0, 100% 50%, calc(100% - var(--v)) 100%, 0 100%, var(--v) 50%); border-radius: 0; padding-left: calc(var(--v) + var(--p)); }
.steps4 li.life { background: var(--sk4); color: var(--ink); border-radius: 0; clip-path: polygon(0 0, calc(100% - var(--v)) 0, 100% 50%, calc(100% - var(--v)) 100%, 0 100%, var(--v) 50%); }
.steps4 li.zk { background: var(--sk5); color: var(--paper); border-radius: 0 14px 14px 0; padding-right: max(var(--p), 6px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--v) 50%); }
@container (max-width: 480px) { .steps4 li { --v: 10px; --p: 2px; font-size: 12px; } }
@container (max-width: 400px) { .steps4 li { --v: 9px; --p: 1px; font-size: 11px; } }
@container (max-width: 360px) { .steps4 li { --v: 8px; --p: 0px; font-size: 11px; } }
/* Мельче 11 не ставим (брендбук, порог шрифта). Полоса уже 340: пять ступеней шрифтом 11 в одну строку
   встают вплотную — две строки, 3 + 2 (НС-145, Полякова 10.11.2026, «а») */
.steps4 { container-type: inline-size; }
@container (max-width: 339px) {
  .steps4 ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
  .steps4 li, .steps4 li:first-child { --v: 10px; --p: 2px; font-size: 11px; grid-column: span 2; margin-left: -8px; }
  .steps4 li:first-child, .steps4 li:nth-child(4) { margin-left: 0; }
  .steps4 li:nth-child(4), .steps4 li:nth-child(5) { grid-column: span 3; }
}

/* ================= Главная, «Куда поступать?» (НС-134, Полякова 02.11.2026) =================
   Карточка пробника (.case-card) с данными «Куда после школы» из приложения: метка — цвет направления профессии,
   переключатель «После 9 / После 11» — те же таблетки, что варианты ответа в карточке пробника; выбранная залита цветом текста.
   ЕГЭ — как в приложении: обязательный предмет — залитая метка, «на выбор вуза» — пунктир. */
.case-tag:is(.t-r, .t-i, .t-a, .t-s, .t-e, .t-c) { color: var(--ink); }
.case-tag.t-r { background: var(--r); } .case-tag.t-i { background: var(--i); } .case-tag.t-a { background: var(--a); }
.case-tag.t-s { background: var(--s); } .case-tag.t-e { background: var(--e); } .case-tag.t-c { background: var(--c); }
.kuda-klass button { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0 14px; min-height: 44px;
  font: 600 14px/1 var(--text); cursor: pointer; transition: background-color .3s, color .3s; }
.kuda-klass button:hover { background: var(--r); }
.kuda-klass button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.kuda-klass button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.kuda-rows { display: flex; flex-direction: column; gap: 8px; }
.kuda-rows[hidden] { display: none; }
.kuda-card .case-body { gap: 12px; padding-top: 20px; }
.kuda-card .case-pic { aspect-ratio: 16 / 7; flex: none; object-position: 50% 35%; }
.ege-ts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; } /* каждый экзамен — своей строкой (НС-139) */
.ege-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ege-v { all: unset; cursor: pointer; position: relative; max-width: 100%; } /* «один из» — метка-кнопка, подсказка под строкой (НС-139) */
.ege-v::after { content: ""; position: absolute; inset: -10px -4px; }
.ege-v .ege-t { display: inline-block; line-height: 1.25; padding-block: calc(5px - .125em); border-radius: 16px; } /* размер и отступ — как у залитой метки, перенос на вторую строку разрешён (арт-директор, НС-139) */
.ege-v:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.slovo-in.u-metki { margin: 0 0 6px; font-size: 14px; } .slovo-in.u-metki:last-child { margin-bottom: 0; } /* разновидность подсказки у метки ЕГЭ (каталог, НС-147, Полякова 10.11.2026): шрифт 14, ближе к своей метке, чем к следующей */
@media (hover: hover) { .ege-r:has(> .ege-v:hover) + .slovo-in[hidden] { display: block; } }
.ege-t { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 11px; font: 600 14px/1 var(--text); background: var(--ink); color: var(--white); }
.ege-t.or { background: transparent; color: var(--ink); border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .kuda-klass button { transition: none; } }
@media (max-width: 400px) { .kuda-klass .kl { display: none; } .kuda-klass { flex-wrap: nowrap; } .kuda-klass button { flex: 1; } }
.case-acts.kuda-klass .kl { background: none; border: 0; padding: 0; border-radius: 0; font: inherit; color: inherit; transition: none; }

/* Подпись автора в подвале каждой страницы сайта (Полякова 15.11.2026, ПС-7; НС-164): тихая строка по центру, как «Политика» под формой в приложении */
.made-by { margin: 0; padding: 0 8px 16px; text-align: center; font-size: 14px; opacity: .7; }
.made-by a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 6px; }
