/* =====================================================================
   Архив Squadron 42 — squadron-42.ru
   Шрифты: Sofia Sans Condensed (интерфейс), Sofia Sans Extra Condensed (девиз), Source Serif 4 (текст).
   Концепция: служебный архив флота UEE. Документы, личные дела, хроника.
   ===================================================================== */

:root {
  --ink:    #0D1520;   /* фон — флотский сланец */
  --hull:   #152131;   /* приподнятые поверхности */
  --deck:   #1C2B3E;   /* наведение, рамки активных */
  --steel:  #7E92A8;   /* вторичный текст, линии */
  --bone:   #E8E4DA;   /* основной текст */
  --brass:  #C7A35A;   /* знаки различия флота: ссылки, действия */
  --brass-2:#E2C27F;
  --signal: #C2452F;   /* только для Vanduul */

  --line:   rgba(126,146,168,.22);
  --line-2: rgba(126,146,168,.38);

  --f-head: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --f-motto: "Sofia Sans Extra Condensed", "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 3.6vw, 2.75rem);
  --step-4: clamp(2.6rem, 6vw, 4.4rem);
  --step-5: clamp(3.2rem, 9.5vw, 8.2rem);

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.75,.15,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 var(--step-0)/1.7 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brass); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-2); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .01em; color: var(--bone); }
p { margin: 0 0 1em; }
.muted { color: var(--steel); font-size: var(--step--1); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brass); color: var(--ink); font-family: var(--f-head); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13,21,32,.86); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.is-home .top { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
.is-home .top.is-solid { background: rgba(13,21,32,.9); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.mark:hover { color: var(--bone); }
.mark-sigil { width: 34px; height: 34px; color: var(--brass); flex: none; }
.mark-text { display: flex; flex-direction: column; font-family: var(--f-head); line-height: 1; }
.mark-text b { font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.mark-text span { color: var(--steel); font-size: .85rem; letter-spacing: .08em; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-family: var(--f-head); font-size: 1.05rem; font-weight: 500; }
.nav a { color: var(--steel); text-decoration: none; padding: 8px 14px; position: relative; }
.nav a:hover, .nav a[aria-current] { color: var(--bone); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--brass); }
.nav .nav-cta { margin-left: 10px; color: var(--ink); background: var(--brass); font-weight: 700; padding: 8px 16px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.nav .nav-cta:hover { background: var(--brass-2); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--bone); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font: 700 1.08rem/1 var(--f-head); letter-spacing: .03em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-brass { background: var(--brass); color: var(--ink); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-brass:hover { background: var(--brass-2); color: var(--ink); }
.btn-line { color: var(--bone); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--bone); color: var(--bone); }
.btn-play::before { content: ""; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------------------------------------------------------- HERO (главная) */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: 120px 0 72px; }
.hero-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::before { /* лимб планеты Vega II */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: calc(-170vmax + 30vh); width: 170vmax; height: 170vmax; transform: translateX(-38%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0a111b 62%, transparent 62.2%);
  box-shadow: 0 -2px 0 rgba(199,163,90,.55), 0 -18px 60px rgba(199,163,90,.18), 0 -60px 160px rgba(126,146,168,.12);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,21,32,.2), rgba(13,21,32,0) 30%, rgba(13,21,32,.75) 88%, var(--ink)); pointer-events: none; }
.hero-in { width: 100%; }
.motto { margin: 0 0 40px; }
.motto-line { display: block; font: 800 var(--step-5)/.9 var(--f-motto); letter-spacing: -.01em; color: var(--bone); text-wrap: balance; }
.motto-line + .motto-line { color: rgba(126,146,168,.62); } /* без обводки: у вариативного шрифта она проявляет внутренние контуры букв */
.motto-src { display: block; margin-top: 18px; font: 500 1.05rem/1.4 var(--f-head); color: var(--steel); letter-spacing: .02em; }
.motto-src b { color: var(--brass); font-weight: 600; }
.js .motto-line { clip-path: inset(0 100% 0 0); animation: wipe 1.1s var(--ease) forwards; }
.js .motto-line + .motto-line { animation-delay: .45s; }
.js .motto-src, .js .hero-meta { opacity: 0; animation: rise .9s var(--ease) 1.2s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-meta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; border-top: 1px solid var(--line-2); padding-top: 28px; }
.hero h1 { font-size: var(--step-3); font-weight: 600; max-width: 24ch; text-wrap: balance; }
.hero-lede { color: rgba(232,228,218,.82); margin: 14px 0 0; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------------------------------------------------------- секции главной */
.band { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 48px; align-items: end; }
.band-head h2 { font-size: var(--step-4); text-wrap: balance; }
.band-head:last-child { margin-bottom: 0; }
.band-head p { color: rgba(232,228,218,.78); margin: 0; max-width: 58ch; }

/* реестр разделов */
.registry { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.reg-row a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 28px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--bone); position: relative; transition: padding .35s var(--ease), background .35s; }
.reg-row a::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--brass); transform: scaleY(0); transition: transform .35s var(--ease); }
.reg-row a:hover { padding-left: 22px; background: linear-gradient(90deg, rgba(199,163,90,.07), transparent 60%); }
.reg-row a:hover::before { transform: scaleY(1); }
.reg-title { font: 700 var(--step-2)/1.1 var(--f-head); }
.reg-desc { color: rgba(232,228,218,.72); font-size: 1rem; }
.reg-count { font: 500 .95rem/1 var(--f-head); color: var(--steel); white-space: nowrap; }

/* досье */
.dossier-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.dossier-tile a { display: flex; flex-direction: column; text-decoration: none; color: var(--bone); }
.dossier-tile .portrait { margin-bottom: 14px; transition: border-color .3s; }
.dossier-tile a:hover .portrait { border-color: var(--brass); }
.dossier-tile a:hover .dossier-name { color: var(--brass-2); }
.dossier-name { font: 700 1.25rem/1.15 var(--f-head); transition: color .2s; }
.dossier-rank { color: var(--steel); font: 500 .98rem/1.3 var(--f-head); margin-top: 4px; }
.dossier-actor { color: rgba(232,228,218,.6); font-size: .9rem; font-style: italic; margin-top: 2px; }

/* портрет / «фото засекречено» */
.portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); background: var(--hull); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.portrait--empty { display: grid; place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(126,146,168,.06) 0 2px, transparent 2px 11px),
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(126,146,168,.16), transparent 70%),
    var(--hull); }
.portrait--empty::before { /* силуэт плеч */
  content: ""; position: absolute; left: 50%; bottom: -10%; width: 78%; height: 46%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: rgba(126,146,168,.12); }
.portrait-ini { position: relative; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-head); color: rgba(232,228,218,.85); letter-spacing: .04em; margin-top: -14%; }
.portrait-tag { position: absolute; left: 10px; bottom: 10px; font: 600 .78rem/1 var(--f-head); letter-spacing: .06em; color: var(--brass); border: 1px solid rgba(199,163,90,.5); padding: 4px 7px; background: rgba(13,21,32,.75); }
.portrait--vanduul.portrait--empty .portrait-tag { color: var(--signal); border-color: rgba(194,69,47,.55); }
.portrait--vanduul { border-color: rgba(194,69,47,.45); }

/* хроника на главной (реальная последовательность — нумерация по годам) */
.chron { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.chron li { padding: 22px 18px 0 0; position: relative; }
.chron li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--ink); border: 1px solid var(--brass); transform: rotate(45deg); }
.chron li.is-vanduul::before { border-color: var(--signal); }
.chron-year { display: block; font: 800 2rem/1 var(--f-head); color: var(--bone); margin-bottom: 8px; }
.chron li.is-vanduul .chron-year { color: var(--signal); }
.chron-text { font-size: .96rem; color: rgba(232,228,218,.75); line-height: 1.55; }
.chron-text a { color: var(--bone); }

/* ---------------------------------------------------------- призывной пункт */
.enlist { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; margin: 0; padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(199,163,90,.10), transparent 55%),
    var(--hull);
  border: 1px solid rgba(199,163,90,.42);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.enlist-kicker { font: 600 1rem/1 var(--f-head); color: var(--brass); margin: 0 0 12px; letter-spacing: .04em; }
.enlist-h { font-size: var(--step-3); margin-bottom: 14px; }
.enlist-text { color: rgba(232,228,218,.82); max-width: 56ch; }
.enlist-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 10px; padding: 14px 16px; border: 1px dashed rgba(199,163,90,.55); background: rgba(13,21,32,.55); }
.enlist-code-label { flex-basis: 100%; font: 500 .95rem/1 var(--f-head); color: var(--steel); }
.enlist-code code { font: 800 clamp(1.3rem, 3vw, 1.75rem)/1 var(--f-head); letter-spacing: .08em; color: var(--brass-2); }
.btn-copy { margin-left: auto; font: 600 .95rem/1 var(--f-head); padding: 9px 14px; background: transparent; color: var(--bone); border: 1px solid var(--line-2); cursor: pointer; }
.btn-copy:hover { border-color: var(--brass); color: var(--brass-2); }
.btn-copy.is-done { border-color: #6fbf86; color: #9fdcae; }
.enlist-note { font-size: .92rem; color: var(--steel); margin: 0; }
.enlist-actions { display: flex; flex-direction: column; gap: 12px; }
.enlist-actions .btn { width: 100%; }
.enlist--compact { margin-top: 64px; grid-template-columns: 1fr; gap: 24px; }
.enlist--compact .enlist-h { font-size: var(--step-2); }
.enlist--compact .enlist-actions { flex-direction: row; flex-wrap: wrap; }
.enlist--compact .enlist-actions .btn { width: auto; }

/* ---------------------------------------------------------- внутренние страницы */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 120% at 85% 0%, rgba(126,146,168,.10), transparent 60%); }
.page--vanduul .page-head { background: radial-gradient(ellipse 80% 120% at 85% 0%, rgba(194,69,47,.14), transparent 60%); }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 .98rem/1.2 var(--f-head); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.crumbs [aria-current] { color: var(--bone); }
.page-kicker { font: 600 1.05rem/1 var(--f-head); color: var(--brass); margin: 0 0 14px; }
.page--vanduul .page-kicker { color: var(--signal); }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; text-wrap: balance; }
.page-lead { font-size: 1.2rem; line-height: 1.6; color: rgba(232,228,218,.86); max-width: 62ch; margin: 22px 0 0; }
.page-stamp { margin: 18px 0 0; font: 500 .95rem/1 var(--f-head); color: var(--steel); }

.article { display: block; padding-top: 48px; padding-bottom: 32px; }
.article--box { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article--box .infobox { order: 2; position: sticky; top: 96px; }
.article--box .prose { order: 1; }

.prose { max-width: 68ch; }
.page--index .prose { max-width: none; }
.prose .dossier-grid, .prose .registry, .prose .entries { padding: 0; margin: 0; }
.prose .dossier-tile { margin: 0; }
.page--index .roster .muted, .page--index .sources { max-width: 68ch; }
.prose > * + h2 { margin-top: 2.2em; }
.prose h2 { font-size: var(--step-2); margin-bottom: .6em; padding-top: .2em; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 .5em; }
.prose p, .prose li { color: rgba(232,228,218,.9); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--brass); font-style: italic; color: var(--bone); font-size: 1.12rem; }
.prose blockquote cite { display: block; margin-top: 8px; font: normal 500 .95rem/1.3 var(--f-head); color: var(--steel); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose .note { margin: 1.6em 0; padding: 16px 18px; background: var(--hull); border-left: 2px solid var(--steel); font-size: .98rem; color: rgba(232,228,218,.82); }
.prose .note b { font-family: var(--f-head); font-weight: 600; color: var(--bone); }
.page--vanduul .prose li::marker { color: var(--signal); }
.page--vanduul .prose blockquote { border-color: var(--signal); }

.infobox code { background: none; padding: 0; font: 700 1.05rem/1.2 var(--f-head); letter-spacing: .06em; color: var(--brass-2); }
.infobox .btn { width: 100%; min-height: 44px; margin-top: 14px; font-size: 1rem; }
details.spoiler { margin: 1.6em 0; border: 1px solid rgba(194,69,47,.45); background: rgba(194,69,47,.06); }
details.spoiler summary { cursor: pointer; padding: 12px 16px; font: 600 1.05rem/1.2 var(--f-head); color: #e7a091; list-style: none; }
details.spoiler summary::-webkit-details-marker { display: none; }
details.spoiler summary::before { content: "+"; display: inline-block; width: 1.2em; }
details.spoiler[open] summary::before { content: "−"; }
details.spoiler > div { padding: 0 16px 14px; }

/* таблица-реестр */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.register { width: 100%; border-collapse: collapse; font: 400 1rem/1.35 var(--f-head); }
.register th, .register td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.register thead th { color: var(--steel); font-weight: 500; border-bottom-color: var(--line-2); }
.register tbody th { color: var(--bone); font-weight: 600; }
.register td { color: rgba(232,228,218,.78); }
.roster { margin-top: 56px; }
.roster h2 { font-size: var(--step-2); margin-bottom: 6px; }

/* инфобокс — бланк личного дела */
.infobox { border: 1px solid var(--line-2); background: var(--hull); padding: 16px; }
.infobox .portrait { margin-bottom: 14px; }
.infobox table { width: 100%; border-collapse: collapse; font: 400 .98rem/1.35 var(--f-head); }
.infobox caption { text-align: left; font: 700 1.1rem/1 var(--f-head); color: var(--brass); padding: 2px 0 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.infobox--vanduul caption { color: var(--signal); }
.infobox th, .infobox td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.infobox th { color: var(--steel); font-weight: 500; width: 42%; padding-right: 10px; }
.infobox td { color: var(--bone); }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: 0; }

/* списки статей */
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); max-width: none; }
.prose .entries { max-width: none; padding: 0; }
.entry a { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--bone); }
.entry-date { grid-row: span 2; font: 600 1.05rem/1.3 var(--f-head); color: var(--brass); padding-top: 4px; }
.entry--vanduul .entry-date { color: var(--signal); }
.entry-title { font: 700 var(--step-2)/1.1 var(--f-head); transition: color .2s; }
.entry-desc { color: rgba(232,228,218,.72); margin-top: 6px; font-size: 1rem; }
.entry a:hover .entry-title { color: var(--brass-2); }
.prose .entry::marker { content: none; }

/* связанные */
.related { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-1); margin-bottom: 16px; color: var(--steel); font-weight: 600; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.related a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related a span { font: 700 1.2rem/1.2 var(--f-head); color: var(--bone); }
.related a small { color: var(--steel); font-size: .92rem; margin-top: 4px; }
.related a:hover span { color: var(--brass-2); }

/* источники, FAQ */
.sources { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.sources h2 { font-size: var(--step-1) !important; color: var(--steel); }
.sources ol { font-size: .95rem; }
.faq-list { margin-top: 2.6em; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.2rem/1.3 var(--f-head); color: var(--bone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 18px; }

/* шаги (настоящая последовательность) */
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 1.6em 0 2em !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 64px; margin: 0 !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; display: grid; place-items: center; font: 800 1.3rem/1 var(--f-head); color: var(--brass); border: 1px solid rgba(199,163,90,.55); }
.steps > li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 6px !important; font-size: var(--step-1); }

/* ---------------------------------------------------------- подвал */
.foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); background: #0a111a; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.foot-col p { color: var(--steel); max-width: 40ch; margin: 8px 0 0; }
.foot-h { font: 600 1rem/1 var(--f-head) !important; color: var(--bone) !important; margin: 0 0 6px !important; }
.foot-col a { color: rgba(232,228,218,.75); text-decoration: none; }
.foot-col a:hover { color: var(--brass-2); }
.foot-col .mark { color: var(--bone); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 32px; }
.foot-legal p { color: var(--steel); font-size: .85rem; margin: 0; max-width: 100ch; }

/* ---------------------------------------------------------- трейлер */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5,9,14,.92); padding: 4vmin; }
.modal[hidden] { display: none; }
.modal-in { position: relative; width: min(1400px, 100%); }
.modal video { width: 100%; max-height: 86vh; background: #000; border: 1px solid var(--line-2); }
.modal-x { position: absolute; right: 0; top: -48px; width: 40px; height: 40px; font-size: 1.8rem; line-height: 1; color: var(--bone); background: none; border: 1px solid var(--line-2); cursor: pointer; }
.modal-x:hover { border-color: var(--bone); }
.modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; border: 1px solid var(--line-2); }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-cap { margin: 12px 0 0; font: 500 .98rem/1.4 var(--f-head); color: var(--steel); }
.modal-cap a { color: var(--brass-2); }

/* ---------------------------------------------------------- 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gut) 40px; }
.lost-code { font: 800 clamp(6rem, 22vw, 14rem)/.85 var(--f-motto); color: rgba(126,146,168,.28); }
.lost h1 { font-size: var(--step-3); margin: 12px 0; }
.lost p { color: rgba(232,228,218,.78); }

/* ---------------------------------------------------------- обращение о локализации */
.btn-bone { background: var(--bone); color: var(--ink); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-bone:hover { background: #fff; color: var(--ink); }
.appeal { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 44px; padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(232,228,218,.07), transparent 60%), var(--hull);
  border: 1px solid var(--line-2); border-top: 3px solid var(--bone); }
.appeal-kicker { font: 600 1rem/1 var(--f-head); color: var(--bone); opacity: .7; margin: 0 0 12px; letter-spacing: .04em; }
.appeal-h { font: 700 var(--step-3)/1.08 var(--f-head); margin: 0 0 14px; text-wrap: balance; }
.appeal-text { color: rgba(232,228,218,.85); max-width: 58ch; }
.appeal-steps { margin: 18px 0 0; padding-left: 1.3em; color: rgba(232,228,218,.85); }
.appeal-steps li { margin-bottom: .4em; }
.appeal-steps a { color: var(--brass-2); text-underline-offset: .2em; }
.appeal-steps li::marker { color: var(--bone); font-family: var(--f-head); font-weight: 700; }
.appeal-side { display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.appeal-side .btn { width: 100%; }
.appeal-stats { margin: 0 0 10px; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.appeal-stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.appeal-stats dt { font: 800 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--f-head); color: var(--bone); }
.appeal-stats dd { margin: 6px 0 0; color: var(--steel); font-size: .95rem; line-height: 1.45; }
.appeal--compact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 56px; padding: 22px 26px; grid-template-columns: none; }
.appeal--compact .appeal-kicker { flex-basis: 100%; margin: 0; }
.appeal--compact .appeal-h { flex: 1 1 380px; font-size: var(--step-1); margin: 0; }
.appeal--compact .appeal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.appeal--compact + .enlist--compact { margin-top: 24px; }
.appeal-msg { margin: 1.4em 0; border: 1px dashed var(--line-2); background: rgba(13,21,32,.6); }
.appeal-msg blockquote { margin: 0 !important; padding: 18px 20px !important; border: 0 !important; font: italic 400 1.05rem/1.6 var(--f-text) !important; color: var(--bone); }
.appeal-msg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px dashed var(--line-2); font: 500 .95rem/1.2 var(--f-head); color: var(--steel); }
.appeal-msg-bar .btn-copy { margin-left: 0; }
.stat-table td.num { font: 700 1.15rem/1.2 var(--f-head); color: var(--bone); white-space: nowrap; }
@media (max-width: 860px) {
  .appeal { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .appeal--compact .appeal-actions, .appeal--compact .appeal-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------- адаптив */
@media (max-width: 1020px) {
  .article--box { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
  .chron { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .band-head { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 80px var(--gut) 40px; background: rgba(13,21,32,.98); font-size: 1.8rem; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current]::after { display: none; }
  .nav .nav-cta { margin: 24px 0 0; text-align: center; padding: 16px; }
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions { justify-content: flex-start; }
  .enlist { grid-template-columns: 1fr; gap: 24px; }
  .article--box { grid-template-columns: 1fr; }
  .article--box .infobox { order: 0; position: static; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
  .article--box .infobox .portrait { margin: 0; }
  .infobox:not(:has(.portrait)) { display: block !important; }
  .reg-row a { grid-template-columns: 1fr; gap: 6px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .chron { grid-template-columns: 1fr 1fr; }
  .entry a { grid-template-columns: 1fr; }
  .entry-date { grid-row: auto; padding: 0 0 4px; }
  .article--box .infobox { grid-template-columns: 1fr; }
  .article--box .infobox .portrait { max-width: 200px; }
  .dossier-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .enlist-code { gap: 10px; }
  .btn-copy { margin-left: 0; }
  .enlist--compact .enlist-actions .btn, .hero-actions .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .motto-line { clip-path: none; }
  .js .motto-src, .js .hero-meta { opacity: 1; }
}

/* =====================================================================
   v2 — читаемость и характер
   Иерархия: заголовки — светлые и крупные, текст — на ступень тише,
   рубрики — латунь. Панели — с «HUD-уголками», как на экранах флота.
   ===================================================================== */
:root {
  --hull:  #16233a;
  --deck:  #1e3049;
  --text-2: rgba(232,228,218,.78);   /* основной текст абзацев */
  --line:  rgba(126,146,168,.26);
  --line-2: rgba(126,146,168,.45);
  --hud: linear-gradient(var(--brass), var(--brass));
}

/* --- HUD-уголки: латунные скобки по четырём углам панели --- */
.infobox, .appeal, .table-wrap, .faq-list, .appeal-msg, .related, .lost > div {
  --c: 16px;
  background-image:
    var(--hud), var(--hud), var(--hud), var(--hud),
    var(--hud), var(--hud), var(--hud), var(--hud);
  background-size:
    var(--c) 2px, 2px var(--c),
    var(--c) 2px, 2px var(--c),
    var(--c) 2px, 2px var(--c),
    var(--c) 2px, 2px var(--c);
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
.infobox { background-color: var(--hull); border-color: var(--line-2); padding: 18px; }
.infobox--vanduul { --hud: linear-gradient(var(--signal), var(--signal)); }
.appeal { background-color: var(--hull); border-top-width: 1px; border-color: var(--line-2); }
.table-wrap { padding: 6px 16px; border: 1px solid var(--line); background-color: rgba(22,35,58,.55); }
.related { padding: 22px 22px 8px; border: 1px solid var(--line); background-color: rgba(22,35,58,.4); }
.faq-list { padding: 4px 22px 10px; border: 1px solid var(--line); background-color: rgba(22,35,58,.4); }
.faq-list > h2 { margin-top: 18px !important; }
.faq:first-of-type { border-top: 0; }
.faq:last-of-type { border-bottom: 0; }

/* --- текст статей: заголовки громче, абзацы тише --- */
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--bone); }
.prose > h2, .prose section > h2 {
  position: relative; font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.1;
  padding-top: 26px; margin-top: 2.4em; margin-bottom: .55em; color: var(--bone);
}
.prose > h2::before, .prose section > h2::before {
  content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 3px; background: var(--brass);
}
.prose > h2:first-child { margin-top: 0; }
.page--vanduul .prose > h2::before { background: var(--signal); }
.prose h3 { color: var(--brass-2); font-size: 1.3rem; }
.prose ul > li::marker { content: "■  "; font-size: .7em; color: var(--brass); }
.prose a { text-decoration-color: rgba(199,163,90,.5); }
.prose a:hover { text-decoration-color: var(--brass-2); }
.prose .note { background: var(--hull); border-left: 3px solid var(--brass); color: var(--text-2); }
.sources h2::before, .faq-list h2::before, .roster h2::before, .related h2::before { display: none; }

/* --- шапка страницы: заметная рубрика, крупный заголовок, лид --- */
.page-kicker, .enlist-kicker, .appeal-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; letter-spacing: .06em;
}
.page-kicker::before, .enlist-kicker::before, .appeal-kicker::before {
  content: ""; width: 22px; height: 2px; background: currentColor;
}
.appeal-kicker { color: var(--brass-2); opacity: 1; }
.page-head { border-bottom: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(22,35,58,.0), rgba(22,35,58,.55)),
    radial-gradient(ellipse 70% 120% at 90% 0%, rgba(199,163,90,.10), transparent 60%); }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: 0; }
.page-lead { color: var(--bone); opacity: .88; }

/* --- главная: чередование фонов и заметные заголовки разделов --- */
.band:nth-of-type(even) { background: linear-gradient(180deg, rgba(22,35,58,.55), rgba(22,35,58,.15)); }
.band-head h2 { position: relative; padding-top: 22px; }
.band-head h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--brass); }
.band-head p { color: var(--text-2); }
.hero-mark {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-58%); z-index: -1; pointer-events: none;
  font: 800 clamp(16rem, 42vw, 40rem)/.8 var(--f-motto); color: rgba(199,163,90,.07); letter-spacing: -.04em;
}

/* --- реестр разделов и списки --- */
.reg-row a { padding-left: 14px; padding-right: 14px; }
.reg-title { color: var(--bone); }
.reg-count { color: var(--brass); }
.entry a { padding-left: 12px; padding-right: 12px; transition: background .25s; }
.entry a:hover { background: rgba(22,35,58,.6); }
.entry-desc, .reg-desc { color: var(--text-2); }

/* --- досье: рамка-видоискатель на портретах --- */
.dossier-tile .portrait::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  background-image: var(--hud), var(--hud), var(--hud), var(--hud), var(--hud), var(--hud), var(--hud), var(--hud);
  background-size: 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat; opacity: .0; transition: opacity .3s;
}
.dossier-tile a:hover .portrait::after, .dossier-tile a:focus-visible .portrait::after { opacity: .9; }
.dossier-name { font-size: 1.3rem; }

/* --- блок обращения: читаемые цифры --- */
.appeal-stats dt { color: var(--brass-2); }
.appeal-steps li { color: var(--text-2); }

/* --- подвал --- */
.foot { background: linear-gradient(180deg, #0b1320, #08101a); }

/* --- телефоны --- */
@media (max-width: 560px) {
  body { font-size: 1rem; line-height: 1.65; }
  .band { padding: 56px 0; }
  .band-head { margin-bottom: 28px; }
  .band-head h2 { font-size: 2.1rem; }
  .page-head { padding: 34px 0 26px; }
  .page-head h1 { font-size: 2.25rem; }
  .page-lead { font-size: 1.05rem; }
  .crumbs ol { margin-bottom: 18px; }
  .article { padding-top: 28px; }
  .prose > h2, .prose section > h2 { font-size: 1.5rem; margin-top: 2em; padding-top: 20px; }
  .appeal { padding: 24px 18px; gap: 18px; }
  .appeal-h { font-size: 1.75rem; }
  .appeal-steps { padding-left: 1.1em; }
  .appeal-stats div { padding: 12px 0; }
  .appeal-stats dt { font-size: 1.9rem; }
  .appeal--compact { padding: 20px 18px; }
  .infobox { padding: 14px; }
  .table-wrap { padding: 4px 12px; }
  .faq-list, .related { padding-left: 16px; padding-right: 16px; }
  .reg-row a { padding: 20px 10px; }
  .hero-mark { font-size: 22rem; right: -14vw; top: 30%; }
  .article--box .infobox .portrait { margin: 0 auto 14px; max-width: 240px; }
}
