:root {
  --bg: #faf9f5; --surface: #f0eee6; --line: #e3e0d5; --fg: #141413; --muted: #6b6a62;
  --btn: #141413; --btn-fg: #faf9f5; --band: #141413; --band-fg: #faf9f5; --band-muted: #a3a29b;
  --ink: #141413;
  --err: #ff9a8a; --ok: #7fd8a8;
  --violet: #7b5bcc; --yellow: #dcb44c; --green: #42a478; --blue: #588ad8;
  --teal: #39a6ae;   --pink: #b9577a;   --orange: #d8854a; --red: #d76955;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1280px; --read: 680px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #212121; --surface: #2f2f2f; --line: #3a3a3a; --fg: #ececec; --muted: #a9a9a9;
    --btn: #ececec; --btn-fg: #212121; --band: #171717; --band-fg: #ececec; --band-muted: #8f8f8f; --err: #ff9a8a; --ok: #7fd8a8;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo .l { display: none; }
  :root:not([data-theme="light"]) .logo .d { display: block; }
}
:root[data-theme="dark"] {
  --bg: #212121; --surface: #2f2f2f; --line: #3a3a3a; --fg: #ececec; --muted: #a9a9a9;
  --btn: #ececec; --btn-fg: #212121; --band: #171717; --band-fg: #ececec; --band-muted: #8f8f8f; --err: #ff9a8a; --ok: #7fd8a8;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo .l { display: none; }
:root[data-theme="dark"] .logo .d { display: block; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 500 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill:hover { border-color: var(--muted); }
.pill.solid { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.more { font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(3px); }

/* шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 16px; }
.top nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.top nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--fg); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--muted); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 6px; }
.top .right { justify-content: flex-end; }
.mode { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.mode:hover { border-color: var(--muted); }
.mode svg { width: 18px; height: 18px; display: block; }
.logo { display: block; height: 30px; }
.logo img { height: 100%; width: auto; display: block; }
.logo .d { display: none; }
.mnav { display: none; }
@media (max-width: 900px) {
  .top .wrap { grid-template-columns: auto 1fr; }
  .top .left { display: none; }
  .top .logo { order: -1; }
  .top .right { gap: 18px; }
  .top .right .opt { display: none; }
  .mnav { display: inline; }
}
@media (max-width: 360px) { .top .right { gap: 10px; } .top .wrap { gap: 8px; } }

/* плитки */
.tile { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 6px; overflow: hidden; display: block; margin: 0; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* первый экран */
.stage { position: relative; height: 930px; max-width: 1440px; margin: 0 auto; }
.stage .tile { position: absolute; width: 9.4%; left: var(--x); top: var(--y); }
.thesis { position: absolute; left: 50%; top: 330px; transform: translateX(-50%); width: min(720px, 100%); text-align: center; display: grid; gap: 22px; justify-items: center; }
.thesis h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.thesis p { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 42ch; line-height: 1.55; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
@media (max-width: 1080px) {
  .stage { height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-block: 24px 56px; }
  .stage .tile { position: relative; left: auto; top: auto; width: auto; }
  .stage .tile.b { order: 2; }
  .stage .m-hide { display: none; }
  .thesis { position: static; transform: none; grid-column: 1 / -1; order: 1; width: auto; padding-block: 40px; }
}

/* секции */
section.block { padding-block: 96px; border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.head > div { display: grid; gap: 14px; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.head > p, .head .side { color: var(--muted); font-size: 18px; max-width: 46ch; display: grid; gap: 14px; justify-items: start; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } section.block { padding-block: 64px; } }

/* пирамиды */
.pyrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pyr { background: var(--surface); border-radius: 10px; padding: 28px 24px 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
.pyr h3 { font-size: 22px; letter-spacing: -0.015em; }
.pyr .floors { display: grid; gap: 6px; justify-items: center; align-content: end; }
.fl { border-radius: 6px; padding: 10px 14px; text-align: center; font-size: 14px; line-height: 1.35; color: var(--ink); width: var(--w); min-height: 56px; display: grid; place-content: center; gap: 2px; }
.fl b { font-size: 15px; font-weight: 600; }
.fl.grey { background: var(--line); color: var(--fg); }
.pyr .res { text-align: center; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.pyr .res b { font-size: clamp(1.1rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--fg); }
.pyr .res strong { font-weight: 600; color: var(--fg); }
@media (max-width: 760px) { .pyrs { grid-template-columns: minmax(0, 1fr); } }

/* траектория */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.step { display: grid; gap: 12px; align-content: start; }
.step .tile { width: 100%; }
.step h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 600; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; } .step .tile { grid-row: span 3; } }

/* роли */
.roles { display: grid; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 56px minmax(0, 200px) minmax(0, 1fr) minmax(0, 150px); gap: 24px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.role.hd { padding-block: 12px; }
.role.hd span:first-child { grid-column: 1 / 3; }
.role .tile { width: 56px; }
.role h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.role p { font-size: 16px; }
.role small { font-size: 14px; color: var(--muted); }
.role .sk { font-size: 16px; }
@media (max-width: 900px) { .role { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; } .role .tile { grid-row: span 3; align-self: start; } .role.hd { display: none; } .role .sk { color: var(--muted); font-size: 15px; } }

/* мозаика */
.report { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.report .big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 820px) { .report { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .report .tile:nth-child(n+25) { display: none; } }

/* цифры формата */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fact { border-top: 1px solid var(--fg); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.fact b { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.person { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.person .tile { width: 240px; }
.person h3 { font-size: 24px; margin-bottom: 10px; }
.person p { font-size: 16px; line-height: 1.45; }
.person p + p { margin-top: 6px; }
@media (max-width: 520px) { .person { grid-template-columns: minmax(0, 1fr); } }

/* карточки статей */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.card .tile { aspect-ratio: 16 / 10; }
.feat .tile { aspect-ratio: 4 / 3; }
.card .tile svg { transition: transform .35s ease; }
.card:hover .tile svg { transform: scale(1.06); }
.card h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; }
.card p { font-size: 15px; color: var(--muted); }
.card .txt { display: grid; gap: 10px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; } .card { grid-template-columns: 104px minmax(0, 1fr); align-items: start; } .card .tile { aspect-ratio: 1; } }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; text-decoration: none; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.feat .tile svg { transition: transform .35s ease; }
.feat:hover .tile svg { transform: scale(1.04); }
.feat h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.feat .txt { display: grid; gap: 18px; }
.feat p { color: var(--muted); font-size: 18px; }
@media (max-width: 820px) { .feat { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.card[hidden], .feat[hidden] { display: none; }
.filters { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button { background: none; border: 0; padding: 0 0 6px; font: 500 16px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }

/* статья */
.page-top { padding-block: 72px 56px; }
.crumbs { font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.a-head { display: grid; gap: 22px; max-width: 900px; }
.a-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1.05; }
.a-meta { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.article { display: grid; grid-template-columns: 240px minmax(0, var(--read)); gap: 72px; justify-content: center; padding-block: 56px 96px; border-top: 1px solid var(--line); }
.aside { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 24px; }
.aside .tile { width: 120px; }
.toc { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { font-size: 14px; line-height: 1.4; padding: 6px 0 6px 14px; text-decoration: none; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover, .toc a.on { color: var(--fg); border-left-color: var(--fg); }
.prose { display: grid; gap: 22px; font-size: 19px; line-height: 1.65; }
.prose .lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; }
/* в колонке статьи пирамиды уже: строка под ними должна остаться одной */
.prose .pyr .res b { font-size: 18px; letter-spacing: -0.015em; }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin-top: 28px; scroll-margin-top: 96px; }
.prose ol, .prose ul { margin: 0; padding-left: 24px; display: grid; gap: 10px; }
.prose li::marker { color: var(--muted); }
.chart { margin: 0; background: var(--surface); border-radius: 10px; padding: 18px 20px; display: grid; gap: 10px; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); }
.chart figcaption a { color: var(--fg); }
.sources { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.sources h2 { margin: 0; font-size: 22px; }
.sources ol { font-size: 15px; line-height: 1.5; gap: 10px; color: var(--muted); }
.sources a { color: var(--fg); }
@media (max-width: 960px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside { position: static; }
  .aside .tile { display: none; }
}

/* система: оглавление-разделы */
.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.chapters a { background: var(--surface); border-radius: 10px; padding: 18px 20px; text-decoration: none; display: grid; gap: 6px; align-content: start; }
.chapters a:hover { background: var(--line); }
.chapters b { font-size: 17px; font-weight: 600; }
.chapters span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* «переворачиваем» не влезает в половину узкого экрана */
@media (max-width: 420px) { .chapters { grid-template-columns: minmax(0, 1fr); } }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols > div { display: grid; gap: 10px; align-content: start; }
.cols h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.cols p { font-size: 16px; color: var(--muted); }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.months { display: grid; border-top: 1px solid var(--line); }
.month { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 260px); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: start; }
.month h3 { font-size: 24px; letter-spacing: -0.02em; }
.month p { font-size: 17px; }
.month .ico { display: flex; gap: 8px; justify-content: flex-end; }
.month .ico .tile { width: 64px; }
@media (max-width: 820px) { .month { grid-template-columns: minmax(0, 1fr); gap: 12px; } .month .ico { justify-content: flex-start; } }
.then { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.then > div { border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.then .was { border: 1px solid var(--line); }
.then .now { background: var(--surface); }
.then h3 { font-size: 21px; font-weight: 600; }
.then p { font-size: 16px; }
@media (max-width: 760px) { .then { grid-template-columns: minmax(0, 1fr); } }
.miles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mile { display: grid; gap: 12px; align-content: start; }
.mile .tile { width: 72px; }
.mile h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.mile p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .miles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* «Международные» уже половины экрана только от 375 */
@media (max-width: 374px) { .miles { grid-template-columns: minmax(0, 1fr); } }

/* тёмная полоса и подвал */
.band { background: var(--band); color: var(--band-fg); padding-block: 88px 40px; }
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 72px; border-bottom: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta p { color: var(--band-muted); max-width: 46ch; }
.cta .pill { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); justify-self: start; }
/* колонок подвала столько, сколько навигаций: «Контакты» есть, только когда в site.toml заданы адреса */
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; font-size: 15px; color: var(--band-muted); }
.foot img { height: 26px; width: auto; display: block; margin-bottom: 14px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { color: var(--band-fg); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
@media (max-width: 820px) { .cta, .foot { grid-template-columns: minmax(0, 1fr); } .foot { grid-auto-flow: row; } }

/* автор работы при наведении, только в мозаике */
.cap { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 6px; background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 500; line-height: 1.35; opacity: 0; transform: translateY(4px); }
.tile:hover .cap { opacity: 1; transform: none; }
@media (hover: none) { .cap { opacity: 1; transform: none; font-size: 12px; padding: 2px 6px; left: 4px; bottom: 4px; } }

/* работы: кадры проекта сменяют друг друга */
.tile img.alt { opacity: 0; }
.tile img.on { opacity: 1; }

/* комикс → игра */
.case-tabs { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.case-tabs button { background: none; border: 0; padding: 0 0 6px; font: 500 16px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; position: relative; }
.case-tabs button:hover { color: var(--fg); }
.case-tabs button[aria-pressed="true"] { color: var(--fg); }
.case-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: var(--p, 100%); background: var(--fg); }
.case { display: flex; gap: 16px; max-width: calc(var(--sum) * 560px + 88px); }
.case figure { margin: 0; display: grid; gap: 12px; align-content: start; flex: var(--ar) 1 0; min-width: 0; }
.case .shot { aspect-ratio: var(--ar); border-radius: 10px; overflow: hidden; }
.case .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case figcaption { font-size: 15px; color: var(--muted); }
.case figcaption b { color: var(--fg); font-weight: 600; }
.case .arrow { flex: none; width: 56px; display: grid; place-items: center; font-size: 28px; color: var(--muted); }
.case-text { margin-top: 24px; font-size: 18px; }
@media (max-width: 760px) {
  .case { flex-direction: column; max-width: none; }
  .case figure { flex: none; }
  .case .shot { width: min(100%, calc(70dvh * var(--ar))); }
  .case .arrow { transform: rotate(90deg); height: 24px; width: 24px; align-self: center; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .tile img { transition: opacity .9s ease; } .cap { transition: opacity .2s, transform .2s; } }

/* --- добавлено при переносе (PLAN.md, К6, шаги 4, 5) --- */
a.tile { text-decoration: none; color: inherit; }
.sched { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.sched div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sched dt { font-size: 15px; color: var(--muted); }
.sched dd { margin: 0; font-size: 16px; }
@media (max-width: 520px) { .sched div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* карусель кадров комикса */
.case .frames { position: relative; background: var(--surface); }
.case .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.case .frames img.on { opacity: 1; }
.case .shot > a { display: block; width: 100%; height: 100%; }
/* точки поверх кадра: подписи под комиксом и игрой стоят на одном уровне */
.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1; display: flex; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--band) 60%, transparent); }
.dots button { width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--band-fg); opacity: .45; }
.dots button:hover::before { opacity: .8; }
.dots button[aria-pressed="true"]::before { opacity: 1; }

/* форма записи в тёмной полосе (шаг 8) */
.band :focus-visible { outline-color: var(--band-fg); }
.lead-form { display: grid; gap: 14px; max-width: 520px; }
.lead-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-form__fields[hidden] { display: none; }
.lead-form__fields[hidden] ~ .lead-form__consent, .lead-form__fields[hidden] ~ .lead-form__note { display: none; }
.lead-form__field { display: grid; gap: 6px; }
.lead-form__label { font-size: 14px; color: var(--band-muted); }
.lead-form__input { width: 100%; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--band-fg) 25%, transparent); background: transparent; color: var(--band-fg); font: 400 16px var(--font); }
.lead-form__input::placeholder { color: var(--band-muted); }
.lead-form__input.is-invalid { border-color: var(--err); }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--band-muted); cursor: pointer; }
.lead-form__consent-box { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--band-fg); cursor: pointer; }
.lead-form__consent a { color: var(--band-fg); }
.lead-form__consent.is-invalid, .lead-form__consent.is-invalid a { color: var(--err); }
.lead-form__submit { justify-self: start; }
.lead-form__submit:disabled { opacity: .7; cursor: default; }
.lead-form__hint { display: none; margin: 0; font-size: 14px; line-height: 1.4; color: var(--err); }
.lead-form__hint.is-visible { display: block; }
.lead-form__note { margin: 0; font-size: 14px; color: var(--band-muted); }
.lead-form__status { margin: 0; font-size: 15px; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-ok { color: var(--ok); }
.lead-form__status.is-error { color: var(--err); }
@media (max-width: 520px) { .lead-form__fields { grid-template-columns: minmax(0, 1fr); } }

/* подвал и вопросы */
.legal { padding-top: 32px; font-size: 14px; color: var(--band-muted); }
.legal a { color: var(--band-fg); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 20px; max-width: 70ch; font-size: 17px; color: var(--muted); }

/* витрина /styleguide/ */
.sg-head { display: grid; gap: 6px; margin-bottom: 28px; }
.sg-head code { font-size: 15px; font-weight: 600; }
.sg-head p { color: var(--muted); font-size: 16px; max-width: 60ch; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-row > .tile { width: 120px; }
.sg-read { max-width: var(--read); }
.sg-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 12px; }
.sg-token { display: grid; gap: 6px; font-size: 14px; }
.sg-token span { display: block; height: 56px; border-radius: 10px; border: 1px solid var(--line); }
