/* «Сила Закона» — оформление «Кобальт».
   Почти чёрный фон, плиты со срезанным правым верхним углом, кобальтовый акцент, фотографии без людей.
   Шрифты свои (Unbounded — заголовки, Onest — текст), внешних подключений нет. */

@font-face { font-family: "Unbounded"; src: url(/assets/type/unb-cyr.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(/assets/type/unb-lat.woff2) format("woff2"); font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url(/assets/type/onest-cyr.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(/assets/type/onest-lat.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --void: #0A0B0E;        /* фон страницы */
  --slab: #12141A;        /* плита */
  --slab-2: #181B23;      /* плита выше */
  --slab-3: #1F2330;      /* тихая кнопка, поля */
  --wire: #262B38;        /* грань 1px */
  --wire-hi: #3A4256;
  --frost: #F3F5F9;       /* текст */
  --haze: #9AA2B3;        /* второстепенный текст, 7:1 к фону */
  --dust: #6B7385;        /* только декор */
  --volt: #2F5EF0;        /* заливка кнопок: белый текст 5.3:1 */
  --volt-lift: #3867F8;   /* наведение: белый текст 4.7:1 */
  --volt-text: #6189FF;   /* кобальт для текста на тёмном: 6.1:1 */
  --volt-veil: #141B31;   /* кобальтовая подложка */
  --alarm: #FF8A8F;
  --type-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --type-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --cut: 18px;
  --measure: 68ch;
  --lift-top: 96px;       /* отступ под липкую шапку для якорей */
}
@media (max-width: 559px) { :root { --gutter: 16px; } }
@media (max-width: 899px) { :root { --lift-top: 16px; } }

/* ---------- Основа ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--lift-top); }
body {
  margin: 0; background: var(--void); color: var(--frost);
  font-family: var(--type-text); font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem); line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
/* Unbounded широкий: длинные слова («освидетельствования») на узких экранах переносятся, а не вылезают за край */
h1, h2, h3, dt, legend { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--volt-text); outline-offset: 3px; }
::selection { background: var(--volt); color: #fff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 90; padding: 0.7rem 1rem; background: var(--volt); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.rig { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Грань: плита со срезанным углом и линией в 1px ---------- */

.facet {
  position: relative; isolation: isolate; background: var(--wire);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.facet::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--fill, var(--slab));
  clip-path: polygon(0 0, calc(100% - var(--cut) + 0.4px) 0, 100% calc(var(--cut) - 0.4px), 100% 100%, 0 100%);
}
a.facet, button.facet { transition: background-color 0.18s ease; }
a.facet:hover, button.facet:hover { background: var(--volt); }
a.facet:focus-visible, button.facet:focus-visible { outline: none; background: var(--volt-text); }
a.facet:focus-visible::before, button.facet:focus-visible::before { inset: 2px; }
.cutout { overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* ---------- Кнопки и подписи ---------- */

.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em; min-height: 52px;
  padding: 0.95rem 1.5rem; border: 0; background: var(--volt); color: #fff; cursor: pointer;
  font-family: var(--type-display); font-weight: 500; font-size: 0.875rem; line-height: 1.25; letter-spacing: 0.01em;
  text-align: center; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 0.18s ease;
}
.act:hover { background: var(--volt-lift); }
.act:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--volt); }
.act svg { flex: none; width: 18px; height: 18px; }
.act--calm { background: var(--slab-3); color: var(--frost); }
.act--calm:hover { background: #283043; }
.act--calm:focus-visible { box-shadow: inset 0 0 0 2px var(--volt-text); }
.act--sm { min-height: 42px; padding: 0.65rem 1.05rem; font-size: 0.75rem; }
.act[aria-disabled="true"] { background: var(--slab-3); color: var(--haze); cursor: default; }

.kick { font-family: var(--type-display); font-weight: 500; font-size: 0.6875rem; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; color: var(--volt-text); }
.chip { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; line-height: 1.4; color: var(--haze); letter-spacing: 0.02em; }
.chip i { flex: none; width: 8px; height: 8px; background: var(--volt); }

/* ---------- Шапка ---------- */

.hdr { position: relative; z-index: 40; background: rgba(10, 11, 14, 0.92); border-bottom: 1px solid var(--wire); }
.hdr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; padding-top: 0.8rem; }
.hdr-home {
  display: flex; align-items: center; gap: 0.7rem; min-height: 44px; text-decoration: none;
  font-family: var(--type-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.sigil { flex: none; width: 22px; height: 22px; }
.sigil path { fill: var(--volt); }
.sigil .sigil-in { fill: none; stroke: #fff; stroke-width: 2.5; }
.hdr-call { margin-left: auto; }
.hdr-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
.hdr-nav::-webkit-scrollbar { display: none; }
.hdr-nav ul { list-style: none; display: flex; gap: 1.4rem; }
.hdr-nav a { position: relative; display: block; padding: 0.7rem 0; white-space: nowrap; font-size: 0.9375rem; color: var(--haze); text-decoration: none; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--frost); }
.hdr-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--volt); }
@media (min-width: 900px) {
  .hdr { position: sticky; top: 0; -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
  .hdr-row { flex-wrap: nowrap; min-height: 72px; padding-top: 0; gap: 2rem; }
  .hdr-nav { order: 0; flex-basis: auto; margin-left: auto; overflow: visible; }
  .hdr-nav ul { gap: 1.75rem; }
  .hdr-nav a { padding: 1.5rem 0; }
  .hdr-call { margin-left: 0; }
}

/* ---------- Главная: мозаика первого экрана ---------- */

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; padding-top: clamp(12px, 2vw, 20px); }
.m-main { grid-column: 1 / -1; --cut: 30px; padding: clamp(1.4rem, 4vw, 3.25rem); }
.m-main h1 {
  margin: 1.15rem 0 1rem; max-width: 17ch;
  font-family: var(--type-display); font-weight: 600; font-size: clamp(1.375rem, 0.6rem + 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em;
}
.m-main h1 span { color: var(--volt-text); }
.m-lead { max-width: 58ch; color: var(--haze); font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem); }
.m-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.m-fine { margin-top: 1rem; font-size: 0.8125rem; color: var(--haze); }
.m-fine a { color: var(--volt-text); }
.m-photo { grid-column: 1 / -1; --cut: 30px; position: relative; aspect-ratio: 16 / 11; }
.m-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.m-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 14, 0) 42%, rgba(10, 11, 14, 0.9)); }
.m-photo figcaption { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; z-index: 1; font-size: 0.875rem; color: var(--frost); }
.m-photo figcaption b { display: block; margin-bottom: 0.25rem; font-family: var(--type-display); font-weight: 500; font-size: 1rem; }
.m-fact { grid-column: 1 / -1; --cut: 14px; padding: 1.15rem 1.35rem; }
.m-fact b { display: block; margin-bottom: 0.3rem; font-family: var(--type-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.m-fact span { font-size: 0.9rem; color: var(--haze); }
.m-go {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; border: 0; background: var(--volt); color: #fff; text-align: left; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: background-color 0.18s ease;
}
.m-go b { font-family: var(--type-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.m-go span { font-size: 1.6rem; line-height: 1; }
.m-go:hover { background: var(--volt-lift); }
.m-go:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
@media (min-width: 640px) {
  .m-fact { grid-column: span 4; }
}
@media (min-width: 1000px) {
  .m-main { grid-column: span 7; }
  .m-photo { grid-column: span 5; aspect-ratio: auto; min-height: 100%; }
  .m-fact, .m-go { grid-column: span 3; }
  .m-go { flex-direction: column; align-items: stretch; }
  .m-go span { align-self: flex-end; }
}

/* ---------- Разделы главной ---------- */

.sect { padding-top: clamp(3.5rem, 8vw, 6rem); }
.sect-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 1.1rem; border-bottom: 1px solid var(--wire);
}
.sect-no { font-family: var(--type-display); font-weight: 500; font-size: 0.6875rem; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt-text); }
.sect-head h2, .invite h2 {
  margin-top: 0.7rem; font-family: var(--type-display); font-weight: 600;
  font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.375rem); line-height: 1.15; letter-spacing: -0.015em;
}
.sect-more { font-size: 0.9375rem; color: var(--haze); text-decoration: none; }
.sect-more:hover { color: var(--frost); }
.sect-intro { max-width: 64ch; margin-bottom: 1.75rem; color: var(--haze); }

.units { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
.units > li { display: flex; }
.unit { --cut: 16px; display: flex; flex-direction: column; width: 100%; padding: 8px 8px 1.5rem; text-decoration: none; }
.unit > span { display: block; }
.unit-shot { aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.unit-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
a.unit:hover .unit-shot img { transform: scale(1.04); }
.unit-no { margin: 1.2rem 1rem 0.6rem; font-family: var(--type-display); font-weight: 500; font-size: 0.75rem; color: var(--volt-text); }
.unit-name { margin: 0 1rem 0.5rem; font-family: var(--type-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.unit-line { margin: 0 1rem; font-size: 0.9375rem; color: var(--haze); }
@media (min-width: 600px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .units { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rail { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.75rem 1.5rem; }
.rail li { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--wire); }
.rail li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--volt); }
.rail-no { font-family: var(--type-display); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); }
.rail h3 { margin: 0.75rem 0 0.5rem; font-family: var(--type-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.rail p { font-size: 0.9375rem; color: var(--haze); }
@media (min-width: 700px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.vista {
  --cut: 30px; position: relative; display: flex; align-items: flex-end;
  min-height: clamp(340px, 36vw, 460px);
}
.vista img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.vista::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 14, 0.94) 0, rgba(10, 11, 14, 0.62) 45%, rgba(10, 11, 14, 0.08) 82%); }
.vista-quote { position: relative; z-index: 1; max-width: 38rem; padding: clamp(1.4rem, 4vw, 3rem); }
.vista-quote p { font-family: var(--type-display); font-weight: 500; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.625rem); line-height: 1.4; }
@media (max-width: 700px) {
  .vista::after { background: linear-gradient(180deg, rgba(10, 11, 14, 0.15), rgba(10, 11, 14, 0.94) 58%); }
}

.codex { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.codex-item { --cut: 14px; padding: 1.25rem 1.35rem; }
.codex dt { font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.codex dd { margin-top: 0.5rem; font-size: 0.9rem; color: var(--haze); }
@media (min-width: 760px) { .codex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .codex { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.reads { display: grid; grid-template-columns: 1fr; gap: 12px; }
.read { --cut: 16px; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; }
.read-shot { --cut: 12px; margin: -0.6rem -0.7rem 1.1rem; aspect-ratio: 16 / 9; }
.read-shot img { width: 100%; height: 100%; object-fit: cover; }
.read h2, .read h3 { margin: 0.7rem 0 0.55rem; font-family: var(--type-display); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
.read h2 a, .read h3 a { text-decoration: none; }
.read h2 a:hover, .read h3 a:hover { color: var(--volt-text); }
.read p:last-child { font-size: 0.9375rem; color: var(--haze); }
@media (min-width: 760px) { .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ask { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ask-item { --cut: 16px; padding: 1.4rem 1.5rem; }
.ask dt { margin-bottom: 0.6rem; font-family: var(--type-display); font-weight: 500; font-size: 1rem; line-height: 1.4; }
.ask dd { font-size: 0.9375rem; color: var(--haze); }
@media (min-width: 900px) { .ask { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Полоса приглашения к бланку (фото — фоном) ---------- */

.invite { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(4rem, 9vw, 7rem); padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--wire); }
.invite-bg, .invite-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.invite-bg img { object-fit: cover; }
.invite::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 11, 14, 0.95), rgba(10, 11, 14, 0.8) 60%, rgba(10, 11, 14, 0.66)); }
.invite-grid { display: grid; gap: 2.5rem; align-items: center; }
.invite-grid > div > p { max-width: 46ch; margin: 1rem 0 1.75rem; color: var(--haze); }
.invite-sample { --cut: 26px; --fill: rgba(18, 20, 26, 0.95); display: block; width: 100%; padding: 1.75rem; border: 0; color: var(--frost); text-align: left; cursor: pointer; }
.invite-sample > span { display: block; }
.invite-meter { display: flex !important; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; font-family: var(--type-display); font-weight: 500; font-size: 0.75rem; color: var(--haze); }
.invite-meter i { position: relative; flex: 1; height: 4px; background: var(--wire); }
.invite-meter i::after { content: ""; position: absolute; inset: 0 80% 0 0; background: var(--volt); }
.invite-q { margin-bottom: 0.9rem; font-family: var(--type-display); font-weight: 500; font-size: 1.125rem; line-height: 1.35; }
.invite-opt { margin-top: 8px; padding: 0.85rem 1rem; background: var(--slab-2); font-size: 0.9375rem; color: var(--haze); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.invite-hint { margin-top: 1.1rem; font-size: 0.8125rem; color: var(--volt-text); }
.invite-sample:hover .invite-hint, .invite-sample:focus-visible .invite-hint { color: #fff; }
@media (min-width: 900px) { .invite-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ---------- Внутренние страницы ---------- */

.trail { padding: 1.25rem 0 1rem; font-size: 0.8125rem; color: var(--haze); }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.trail li + li::before { content: "/"; margin-right: 0.6rem; color: var(--dust); }
.trail a { color: var(--haze); text-decoration: none; }
.trail a:hover { color: var(--frost); }
.trail [aria-current] { color: var(--frost); }

.pagehead { --cut: 30px; padding: clamp(1.4rem, 4vw, 3rem); }
.pagehead h1 {
  max-width: 26ch; margin-top: 0.9rem; font-family: var(--type-display); font-weight: 600;
  font-size: clamp(1.4rem, 0.85rem + 2.4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em;
}
@media (max-width: 359px) {
  .pagehead { padding: 1.15rem; }
  .pagehead h1 { font-size: 1.25rem; }
}
.pagehead-deck, .story-lede { max-width: 62ch; margin-top: 1rem; color: var(--haze); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }
.pagehead-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--haze); }

.split { display: grid; gap: 2rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.side-note { --cut: 16px; padding: 1.4rem 1.5rem; font-size: 0.9375rem; }
.side-note ul { list-style: none; display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.side-note li { position: relative; padding-left: 1.1rem; color: var(--haze); }
.side-note li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--volt); }
.side-note a { color: var(--volt-text); }
.side-note p + p, .side-note ul + p { margin-top: 1rem; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
  .side-note { position: sticky; top: var(--lift-top); }
}

.prose { max-width: var(--measure); line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; font-family: var(--type-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.625rem); line-height: 1.25; scroll-margin-top: var(--lift-top); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: 0.55rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.2rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; background: var(--volt); }
.prose ol { padding-left: 1.4rem; }
.prose ol li::marker { color: var(--volt-text); font-family: var(--type-display); font-size: 0.85em; }
.prose a { color: var(--volt-text); text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 600; }

.tenets { list-style: none; counter-reset: tenet; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 1.25rem 0 2.5rem; }
.tenets li { --cut: 14px; counter-increment: tenet; padding: 1.25rem 1.35rem; }
.tenets h3 { margin-bottom: 0.45rem; font-family: var(--type-display); font-weight: 500; font-size: 1rem; line-height: 1.35; }
.tenets h3::before { content: counter(tenet, decimal-leading-zero); display: block; margin-bottom: 0.6rem; font-size: 0.75rem; color: var(--volt-text); }
.tenets p { font-size: 0.9375rem; color: var(--haze); }
.tenets a { color: var(--volt-text); }
@media (min-width: 700px) { .tenets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ledger th, .ledger td { padding: 1rem 0; border-bottom: 1px solid var(--wire); text-align: left; vertical-align: top; }
.ledger th { width: 36%; padding-right: 1.5rem; font-weight: 500; color: var(--haze); }
.ledger a { color: var(--volt-text); }
.ledger small { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--haze); }
@media (max-width: 559px) {
  .ledger th, .ledger td { display: block; width: auto; padding: 0; border: 0; }
  .ledger th { padding-top: 1rem; }
  .ledger td { padding: 0.25rem 0 1rem; border-bottom: 1px solid var(--wire); }
}

.parts-label { margin: 2.25rem 0 1rem; }
.parts-label:first-child { margin-top: 0; }
.work { --cut: 22px; padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: var(--lift-top); }
.work + .work { margin-top: 12px; }
.work h2 { font-family: var(--type-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.375rem); line-height: 1.3; }
.work-intro { margin-top: 0.6rem; color: var(--haze); }
.work-parts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 1.25rem; }
.work-parts div { padding: 1rem 1.1rem; background: var(--slab-2); }
.work-parts dt { font-family: var(--type-display); font-weight: 500; font-size: 0.6875rem; line-height: 1.35; letter-spacing: 0.1em; text-transform: uppercase; color: var(--volt-text); }
.work-parts dd { margin-top: 0.45rem; font-size: 0.9375rem; }
.topic { --cut: 22px; display: grid; scroll-margin-top: var(--lift-top); }
.topic + .topic { margin-top: 12px; }
.topic-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 8px 8px 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.topic-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-body { padding: clamp(1.25rem, 3vw, 2rem); }
.topic-body h2 { font-family: var(--type-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.375rem); line-height: 1.3; }
.topic-body p { margin-top: 0.7rem; color: var(--haze); }
.topic-body .topic-more { margin-top: 1rem; font-size: 0.9375rem; color: var(--frost); }
.topic-more a { color: var(--volt-text); }
@media (min-width: 700px) { .work-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .topic { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .topic-shot { aspect-ratio: auto; min-height: 100%; margin: 8px 0 8px 8px; }
}

/* ---------- Материал ---------- */

.story-shot { --cut: 30px; margin-top: 12px; aspect-ratio: 21 / 9; }
.story-shot img { width: 100%; height: 100%; object-fit: cover; }
.story { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.contents { --cut: 14px; padding: 1.25rem 1.35rem; }
.contents ol { list-style: none; counter-reset: toc; display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.contents li { counter-increment: toc; display: grid; grid-template-columns: 1.9rem 1fr; font-size: 0.875rem; line-height: 1.45; }
.contents li::before { content: counter(toc, decimal-leading-zero); font-family: var(--type-display); font-size: 0.6875rem; line-height: 2.1; color: var(--volt-text); }
.contents a { color: var(--haze); text-decoration: none; }
.contents a:hover { color: var(--frost); }
.brief { --cut: 16px; --fill: var(--volt-veil); max-width: var(--measure); margin-top: 2.5rem; padding: 1.4rem 1.5rem; }
.brief ul, .sources ul { list-style: none; display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.brief li, .sources li { position: relative; padding-left: 1.2rem; }
.brief li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--volt-text); }
.sources { max-width: var(--measure); margin-top: 1.75rem; font-size: 0.875rem; color: var(--haze); }
.sources li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--haze); }
.as-of { max-width: var(--measure); margin-top: 1.5rem; font-size: 0.8125rem; color: var(--haze); }
.onward { padding-top: clamp(3rem, 7vw, 5rem); }
.onward-more { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--haze); }
.onward-more a { color: var(--volt-text); }
@media (min-width: 1000px) {
  .story { grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .contents { position: sticky; top: var(--lift-top); }
}

/* ---------- Документы ---------- */

.clauses { max-width: 78ch; margin-top: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.7; }
.clauses > p:not(.clause) + * { margin-top: 1rem; }
.clauses h2 { margin: 2.25rem 0 0.9rem; padding-top: 1.1rem; border-top: 1px solid var(--wire); font-family: var(--type-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.375rem); line-height: 1.3; scroll-margin-top: var(--lift-top); }
.clauses h2:first-child { margin-top: 0; }
.clause { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.5rem; margin-top: 0.7rem; }
.clause > span:first-child { font-family: var(--type-display); font-size: 0.75rem; line-height: 2.2; color: var(--volt-text); }
.clauses a { color: var(--volt-text); text-underline-offset: 3px; }
.clauses code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; color: var(--frost); }

/* ---------- Завершающий блок страниц ---------- */

.closing { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.closing-box { --cut: 30px; --fill: var(--volt-veil); display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); background: var(--volt); }
.closing-title { font-family: var(--type-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.875rem); line-height: 1.2; }
.closing-text { max-width: 56ch; margin-top: 0.8rem; color: var(--haze); }
@media (min-width: 900px) { .closing-box { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- 404 ---------- */

.lost { padding: clamp(3rem, 10vw, 7rem) 0; }
.lost h1 { max-width: 20ch; margin: 1rem 0 1rem; font-family: var(--type-display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em; }
.lost > p:not(.kick) { max-width: 56ch; color: var(--haze); }
.lost-links { display: flex !important; flex-wrap: wrap; gap: 8px; margin-top: 1.75rem; }
.lost-links a { padding: 0.75rem 1.1rem; background: var(--slab-2); text-decoration: none; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.lost-links a:hover { background: var(--volt); }

/* ---------- Подвал ---------- */

.floor { background: var(--slab); border-top: 1px solid var(--wire); padding-top: clamp(2.5rem, 6vw, 4rem); font-size: 0.9rem; color: var(--haze); }
.floor-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.floor-name { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: var(--frost); font-family: var(--type-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.floor-col p + p { margin-top: 0.75rem; }
.floor-col .kick { margin-bottom: 0.6rem; }
.floor-col p + .kick { margin-top: 1.4rem; }
.floor a { color: var(--frost); text-decoration-color: var(--wire-hi); text-underline-offset: 3px; }
.floor a:hover { color: var(--volt-text); }
.floor-base { display: grid; gap: 0.6rem; margin-top: 2.5rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--wire); font-size: 0.8125rem; }
@media (min-width: 700px) { .floor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .floor-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; } }

/* ---------- Нижняя панель (телефоны): стоит на месте, сама не появляется ---------- */

.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 11, 14, 0.96); border-top: 1px solid var(--wire);
  }
  .dock .act { width: 100%; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  body[data-kind="legal"] { padding-bottom: 0; }
}

/* ---------- Бланк обращения (окно опроса) ---------- */

dialog:not([open]) { display: none; }
.blank {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0;
  padding: 0; border: 0; background: transparent; color: var(--frost); overflow: auto; overscroll-behavior: contain;
}
.blank::backdrop { background: rgba(4, 5, 8, 0.8); }
html:has(.blank[open]), html[data-blank-open] { overflow: hidden; }
html[data-blank-open] .dock { display: none; }
.blank[data-legacy][open] { position: fixed; inset: 0; z-index: 80; display: block; background: rgba(4, 5, 8, 0.8); }
.blank-sheet { --cut: 28px; --fill: var(--slab); display: flex; flex-direction: column; min-height: 100%; padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); }
.blank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-right: 3rem; }
.blank-title { font-family: var(--type-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.blank-title:focus { outline: none; }
.blank-frac { font-family: var(--type-display); font-weight: 500; font-size: 0.75rem; color: var(--haze); white-space: nowrap; }
.blank-hair { position: relative; height: 4px; margin: 1rem 0 1.6rem; background: var(--wire); }
.blank-hair i { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--volt); transition: width 0.3s ease; }
.blank-hair::after { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), var(--slab) calc(20% - 3px) 20%); }
.blank-form { flex: 1; }
.blank-steps { display: grid; }
.blank-step { grid-area: 1 / 1; min-width: 0; margin: 0; padding: 0; border: 0; visibility: hidden; }
.blank-step[data-live] { visibility: visible; animation: blank-wipe 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes blank-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.blank-step legend, .blank-done-title {
  display: block; width: 100%; margin-bottom: 1.1rem; padding: 0;
  font-family: var(--type-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); line-height: 1.35;
}
.blank-step legend:focus, .blank-done-title:focus { outline: none; }
.blank-rows { display: grid; gap: 8px; }
.blank-row {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; min-height: 56px; padding: 0.85rem 1.1rem;
  border: 0; background: var(--slab-2); color: var(--frost); text-align: left; font-size: 0.9375rem; line-height: 1.35; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--wire);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.blank-mark { flex: none; min-width: 1.6rem; font-family: var(--type-display); font-weight: 500; font-size: 0.75rem; color: var(--volt-text); }
.blank-row:hover { background: var(--slab-3); box-shadow: inset 0 0 0 1px var(--wire-hi); }
.blank-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--volt-text); }
.blank-row[aria-pressed="true"] { background: var(--volt-veil); box-shadow: inset 0 0 0 1px var(--volt); }
.blank-row[aria-pressed="true"]::after {
  content: ""; flex: none; width: 11px; height: 6px; margin: 0 0.2rem 0.3rem auto;
  border-left: 2px solid var(--volt-text); border-bottom: 2px solid var(--volt-text); transform: rotate(-45deg);
}
.blank-hint { margin-top: 1rem; font-size: 0.875rem; color: var(--haze); }
.blank-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--haze); }
.blank-input {
  display: block; width: 100%; min-height: 54px; padding: 0.85rem 1rem; border: 0; border-radius: 0;
  background: var(--slab-2); color: var(--frost); font-size: 1.0625rem; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--wire);
}
.blank-input::placeholder { color: var(--dust); }
.blank-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--volt); }
.blank-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--alarm); }
.blank-phone { display: grid; grid-template-columns: auto 1fr; }
.blank-code { display: grid; place-items: center; padding: 0 1rem; background: var(--slab-3); box-shadow: inset 0 0 0 1px var(--wire); font-weight: 600; }
.blank-spare { position: absolute; left: -200vw; top: 0; width: 1px; height: 1px; opacity: 0; }
.blank-who { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--volt-veil); font-size: 0.875rem; line-height: 1.55; }
.blank-consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-top: 1.1rem; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.blank-consent input {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0;
  background: var(--slab-2); box-shadow: inset 0 0 0 1px var(--wire-hi); cursor: pointer;
}
.blank-consent input:checked { background: var(--volt); box-shadow: none; }
.blank-consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(0, -1px) rotate(-45deg); }
.blank-consent input:focus-visible { outline: 2px solid var(--volt-text); outline-offset: 2px; }
.blank-papers { margin-top: 0.5rem; padding-left: calc(22px + 0.75rem); font-size: 0.8125rem; color: var(--haze); }
.blank-papers a { color: var(--volt-text); }
.blank-note { margin-top: 0.6rem; font-size: 0.875rem; color: var(--alarm); }
.blank-note a { color: var(--alarm); font-weight: 600; }
.blank-note .blank-back { color: var(--frost); }
.blank-next, .blank-send { width: 100%; margin-top: 1.25rem; }
.blank-done p { max-width: 34rem; color: var(--haze); }
.blank-done p + p { margin-top: 0.75rem; }
.blank-done .act { margin-top: 1.5rem; }
.blank-foot { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--wire); }
.blank-back { align-self: flex-start; padding: 0.4rem 0; border: 0; background: transparent; color: var(--haze); font-size: 0.875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.blank-back:hover { color: var(--frost); }
.blank-seller { font-size: 0.75rem; line-height: 1.55; color: var(--haze); }
.blank-seller a { color: inherit; }
.blank-x { position: absolute; top: 0.9rem; right: calc(var(--gutter) - 4px); display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--slab-2); color: var(--frost); cursor: pointer; }
.blank-x:hover { background: var(--slab-3); }
@media (min-width: 700px) {
  .blank { width: min(640px, 100vw - 48px); height: fit-content; max-height: calc(100dvh - 48px); margin: auto; }
  .blank-sheet { min-height: 0; padding: 1.75rem 2rem 1.5rem; }
  .blank-x { top: 1.25rem; right: 1.25rem; }
  .blank-next, .blank-send { width: auto; }
}

/* ---------- Движение, контраст, печать ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .act, .facet, .m-go, .blank-row, .blank-hair i, .unit-shot img { transition: none; }
  .blank-step[data-live] { animation: none; }
  a.unit:hover .unit-shot img { transform: none; }
}
@media (forced-colors: active) {
  .facet, .act, .m-go, .blank-row, .blank-input { border: 1px solid CanvasText; }
  .blank-row[aria-pressed="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .blank-hair i { background: Highlight; }
}
@media print {
  .hdr-nav, .hdr-call, .dock, .blank, .closing, .skip, .invite, .m-acts, .m-go { display: none !important; }
  body { padding-bottom: 0; background: #fff; color: #000; }
  .facet { background: none; clip-path: none; }
  .facet::before { display: none; }
  .pagehead-deck, .story-lede, .m-lead, .sect-intro, .work-intro, .topic-body p, .unit-line, .ask dd, .codex dd, .floor { color: #000; }
}
