/* Сайт для подростка и родителя. Цвета, шрифты и формы — из брендбука (docs/2026-09-18_brendbuk_standart.md),
   те же переменные, что в app/styles.css. Раскладка — боковое меню из цветных плиток. */
:root {
  --bg: #F1F0EC;
  --ink: #121214;
  --paper: #F1F0EC;
  --line: #12121426;
  --surface: #FFFFFF;
  --on-surface: #121214;
  --panel: #FFFFFF73;
  --radius-card: 32px;
  --radius-inner: 22px;
  --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;
  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; }
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: 10px; 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 6px; opacity: .75; }
.nav { display: flex; flex-direction: column; gap: 10px; 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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.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(--ink);
  background: var(--ink); color: var(--paper);
  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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--ink); }
.t-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (prefers-color-scheme: dark) { .t-ink .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Первый экран страницы */
.head { min-height: 360px; justify-content: space-between; }
.head h1 { font-size: clamp(32px, 4.4vw, 60px); 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: 14px 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: #12121433; }

.checks li { padding: 12px 0; border-bottom: 2px solid #12121433; display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.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: none; stroke: var(--r); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Типы Холланда */
.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: 6px; }
.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: 14px; max-width: 62ch; }
.prose p { font-size: 18px; }

/* Вопросы и ответы */
.faq details { border-top: 2px solid var(--line); padding: 18px 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: 10px; max-width: 62ch; }

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

/* ---------- Планшет и телефон ---------- */
@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: 10px 16px;
  }
  .mbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .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: 14px;
    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 #12121440;
  }
  .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(--i); } .tile.t-c { background: var(--c); } .tile.t-s { background: var(--s); }
.tile.t-r { background: var(--r); } .tile.t-a { background: var(--a); } .tile.t-e { background: 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: #F1F0EC; }
.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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.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: 14px 18px; display: grid; gap: 6px; }
.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: 6px; }
.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: 10px; }
.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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; 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: 10px; 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: 10px; }
  .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: 10px; min-height: 420px;
}
.pic.slot svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; 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: 10px; 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: 10px; 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: 6px; } .mtry { padding: 0 10px; } }

/* ---------- Как в референсе: окраска страницы по закладке, волны на кнопках (26.09.2026) ---------- */
/* Закладки начинаются на одной высоте с первым блоком страницы: логотип — ровно в высоту шапки */
.side .logo { height: 52px; display: flex; align-items: center; padding: 0 4px; }
.side .nav { margin-top: 6px; }
.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 {
  --bg: var(--page); --on-surface: #121214; --line: #12121433; --surface: #FFFFFF;
  background: var(--page); color-scheme: light;
  transition: background-color .6s cubic-bezier(.19,1,.22,1);
}
body.sec .tile.t-i, body.sec .tile.t-c, body.sec .tile.t-s,
body.sec .tile.t-r, body.sec .tile.t-a, body.sec .tile.t-e { background: #FFFFFF; }
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: #12121433; }
body.sec .mock-scene, body.sec .mk-nums span { background: #F1F0EC; }
body.sec .mock-say { border: 2px solid #12121426; }
body.sec .legend span { box-shadow: inset 0 0 0 2px #121214; }
/* цвет направления у профессии остаётся — точкой у подписи */
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 #121214; margin-right: 8px; vertical-align: -1px;
}
body.sec .prof .cap, body.sec .mk-prof .cap { opacity: 1; }
body.sec .photo { background: #FFFFFF; }

/* Кнопка: при наведении снизу поднимаются три цветные волны, стрелка сдвигается вверх-вправо */
.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; } .head h1 { font-size: 30px; } .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: #FFFFFF; }
@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); }
  .head h1 { font-size: clamp(32px, 3.8vw, 52px); }
  .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: 10px 0; }
  .prose p { font-size: 16px; }
  .btn { min-height: 48px; }
  .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; } }
@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: 22px; white-space: nowrap; }

/* ---------- «Сколько стоит» одним экраном (26.09.2026) ---------- */
.price-screen .price-head { flex: 0 0 auto; padding-bottom: 0; }
.price-screen .price-head h1 { font-size: clamp(32px, 4vw, 56px); 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: 10px 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: 6px; 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: 2px; } }
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: 6px; 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: #FFFFFF; border: 2px solid currentColor;
}
.track .life i { background: currentColor; }
.track .life i { color: #FFFFFF; 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; }

/* ---------- 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 18px; }
.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: 18px; }
.prof-screen .prof-left h1 { font-size: clamp(30px, 3.6vw, 52px); }
.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: 10px 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 14px; 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: 28px; }
.card {
  position: absolute; inset: 0 18px 18px 0; background: #FFFFFF; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  overflow: hidden; transition: transform .45s cubic-bezier(.19,1,.22,1), opacity .35s;
  box-shadow: 0 1px 0 #12121414;
}
.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: 6px; }
.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: 10px 14px; font-size: 15px; }
.card dt { font: 600 12px/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: #FFFFFF; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.deck-ctrl button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#deck-prev svg { transform: rotate(180deg); }
.deck-ctrl button:hover { background: var(--ink); color: #FFFFFF; }
.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: 28px 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: 6px 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: #FFFFFF; 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: 28px;
  padding: 24px; display: flex; flex-direction: column; gap: 18px; 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: 10px; align-content: flex-start; }
.sk-panel li {
  background: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 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: 14px; padding: 20px 22px; }
.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(--ink); text-decoration: none; padding: 6px 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: 14px; align-items: flex-start; }
.docs-head h1 { font-size: clamp(32px, 4.4vw, 60px); }
.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: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-inner);
  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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; 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: clamp(28px, 3.6vw, 48px); }
.doc-back { font: 600 15px/1 var(--text); color: var(--ink); }
.doc-text { background: #FFFFFF; border-radius: var(--radius-inner); padding: 24px; font-size: 17px; line-height: 1.6; max-width: 68ch; width: 100%; }
.doc-text p { margin: 0 0 12px; }
.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: 52px; }
}
/* Под закладками теперь ссылка «Документы» (~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: 56px; }
  .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: 18px; 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: 28px; border: 2px solid var(--ink); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; background: #FFFFFF; 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: 22px; } }
.about-text { gap: 14px; }
.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: 6px; }
.about-qs li { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 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: 10px; }
.about-text .prose { gap: 6px; }
/* О проекте: с чёрной плашкой — плотнее, чтобы оставаться в один экран на ноутбуке */
@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 10px; 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: 48px; }
.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: 22px; }
.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 6px; }
.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: 34px; }

/* Четыре шага навыка — полоса из стрелок (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 18px 0 22px;
  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: 14px; }
.steps4 li:not(.life) { background: #FFFFFF; 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(#FFFFFF, #FFFFFF) padding-box; }
@media (max-width: 520px) { .steps4 li { font-size: 12px; padding: 0 12px 0 18px; } }
/* Шаги — цвета волн кнопки: жёлтый → розовый → мятный, «в жизни» — чёрный (обводка у стрелок не нужна) */
.steps4 li:not(.life) { box-shadow: none; color: var(--ink); }
.steps4 li:not(.life)::before { content: none; }
.steps4 li:nth-child(1) { background: var(--c); }
.steps4 li:nth-child(2) { background: var(--a); }
.steps4 li:nth-child(3) { background: var(--r); }
.steps4 li.life { background: var(--ink); 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: 10px; }

/* Родителям */
.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; } }

/* Профессии: блок «6 типов» — подпись одной строкой, метки под ней */
.types-row { display: grid; gap: 10px; 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: 10px; 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: 10px 14px; 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, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 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: #FFFFFF; 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: 28px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .lane-run .dup { display: none; } }
.lanes { gap: 14px; }
.lane { padding: 10px; }
.lane-name { padding: 12px 16px; font-size: 15px; }
.lane-run span { padding: 11px 16px; font-size: 16px; }
.types-row .legend { gap: 6px; } .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: #FFFFFF; }
.card-top { margin-top: 0; }
.card { gap: 10px; }
.card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.card .card-hook { font-size: 17px; }
.card dl { font-size: 14px; gap: 6px 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: #FFFFFF; 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 6px; height: clamp(150px, 26vh, 260px); object-fit: cover; object-position: 50% 40%; border-bottom: 2px solid var(--ink); background: #FFFFFF; }
/* Жёлтый блок: содержимое собрано, без огромных пустот */
.hero.first > .head { justify-content: center; gap: 28px; }
.mock.with-pic .mock-pic { object-position: 50% 20%; }
/* Первый экран: картинка и кейс — одна иллюстрированная карточка. Фон карточки = фон картинки (#F1F0EC),
   без линии между ними; акценты — синий «Исследователя», как пятно на картинке (Марина, 26.09.2026) */
.mock.with-pic { background: #F1F0EC; 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: 6px 12px; }
.mock.with-pic .mock-scene { background: var(--i); }
.mock.with-pic .mock-say { background: #FFFFFF; border: 2px solid var(--ink); }
.mock.with-pic .mock-acts span { background: #FFFFFF; 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: 22px; 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: #F1F0EC; 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 22px 22px; display: flex; flex-direction: column; gap: 10px; 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: #FFFFFF; border: 2px solid var(--ink); border-radius: var(--radius-inner); padding: 12px 16px; }
.case-say b { font: 600 12px/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-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: #FFFFFF; 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: 14px; 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 26px; 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: #FFFFFF; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 22px; 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 #12121414;
}
.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: 18px; max-width: 520px; justify-self: center; width: 100%; }
.note {
  background: var(--dot); border: 2px solid var(--ink); border-radius: 6px 22px 22px 22px; padding: 18px 18px 22px; min-height: 150px;
  display: flex; flex-direction: column; gap: 14px; 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: 14px; }
.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: 22px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.flip-front { background: #FFFFFF; }
.flip-front p { margin: 0; font: 600 17px/1.3 var(--text); }
.flip-hint svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.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: 6px; }

/* 6. Финал */
.final-screen { align-items: stretch; }
.home-final { display: flex; flex-direction: column; justify-content: center; gap: 22px; 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: 14px; }
.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-inner); 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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; 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: #FFFFFF; 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: 28px; padding-block: 24px; }
  .home-hero, .home-final { padding: 28px; }
  .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: 10px; }
.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: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: var(--radius-inner); padding: 16px 18px; font-size: 14px; max-width: 460px; }
.seller-card dt { font: 600 12px/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: 22px; }
  .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: 14px;
  }
  .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; }
  .docs-stairs .docs-head h1 { font-size: clamp(30px, 3.4vw, 50px); }
}

/* Главная, финал: чёрный блок — от верха первой закладки до низа последней */
@media (min-width: 961px) {
  .final-screen { min-height: 0; padding: 0 8px; align-items: start; margin-bottom: 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 { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.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 22px; gap: 10px; 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 13px; }
/* «О чём поговорить» — облачками реплик */
#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: 22px; 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: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); border-radius: 30px;
  padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 28px #1212141f;
  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 #12121422; }
.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: 14px; padding: 10px 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: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.phone-note { margin: auto 0 0; font-size: 12px; opacity: .7; }
.talk { display: grid; gap: 8px; justify-items: center; width: 100%; max-width: 520px; margin-top: 18px; }
.talk .cap { opacity: .75; }
.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: #FFFFFF; }
.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: 30px; 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) */
.brand .lg-na, .t-ink .brand .lg-na { opacity: 1; color: inherit; }
.brand .lg-sk { color: var(--e); }

/* Установка приложения (27.09.2026) */
.install-note { margin: 0; font-size: 15px; opacity: .85; }
.install-note a { font-weight: 600; text-underline-offset: 3px; }
.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; }
