@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-cyrillic-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/golos-text-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }

/* Том II · «Свет лика»: тёмная основа, золото логотипа, книжный набор. Свет падает туда, где читают. */
:root {
  --bg: #0e0c0a;
  --s1: #16130f;
  --s2: #1e1a14;
  --line: #30291f;
  --line-2: #463b2d;
  --text: #f0e8db;
  --soft: #ad9f8b;
  --gold: #ffc94d;
  --gold-2: #d9a640;
  --glow: rgba(255, 201, 77, 0.15);
  --ok: #a6dcb8;
  --warn: #f2a585;
  --doc: #efe6d3;
  --doc-ink: #24190f;
  --doc-soft: #5c4b3a;
  --doc-rule: #4e321f;
  --stamp: #4a3a82;
  --serif: "Literata", "PT Serif", Georgia, serif;
  --sans: "Golos Text", "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 76rem;
  --measure: 35rem;
  --pad: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 380 1.156rem/1.72 var(--serif); font-optical-sizing: auto; font-feature-settings: "kern", "liga", "onum"; overflow-wrap: break-word; }
body > * { position: relative; z-index: 1; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #ffe08f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-feature-settings: "kern", "liga", "lnum"; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 650; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: #1c1405; padding: 8px 12px; z-index: 20; font: 600 0.9rem var(--sans); }
.skip:focus { top: 8px; color: #1c1405; }
.kicker, .label { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 10px; }

/* Свет лика: пятно идёт за курсором и возвращается к лику */
.glow { position: fixed; z-index: 0; left: 0; top: 0; width: 1100px; height: 900px; margin: -450px 0 0 -550px; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); transform: translate3d(50vw, 0, 0); will-change: transform; }

/* Шапка */
.bar { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { flex: none; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-2), 0 0 30px 4px rgba(255, 201, 77, 0.32); }
.brand b { display: block; font: 700 1.12rem/1.15 var(--serif); letter-spacing: -0.01em; }
.brand small { display: block; margin-top: 3px; font: 500 0.78rem/1.3 var(--sans); color: var(--soft); }
.topnav { margin-left: auto; display: flex; gap: 6px 22px; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.topnav a { color: var(--soft); text-decoration: none; padding: 9px 0 7px; border-bottom: 2px solid transparent; white-space: nowrap; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--soft); text-decoration: none; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--gold-2); color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: auto; padding: 0 16px 0 14px; gap: 8px; grid-auto-flow: column; border-radius: 99px; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; border-radius: 1px; }
.menu-btn[aria-expanded="true"] i { box-shadow: none; background: transparent; position: relative; }
.menu-btn[aria-expanded="true"] i::before, .menu-btn[aria-expanded="true"] i::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: rotate(-45deg); }
.is-home .bar .topnav { margin-left: 0; }
.topnav .nav-search { display: none; }
.is-home .bar .find { margin-left: auto; }

/* Заголовки страниц */
.crumbs { font: 400 0.82rem/1.4 var(--sans); color: var(--soft); margin: 0 0 18px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 7px; opacity: 0.6; }
.ahead, .phead { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--pad) 42px; border-bottom: 1px solid var(--line); display: grid; gap: 28px 64px; }
.ahead { grid-template-columns: minmax(0, 1fr) 20rem; }
.phead { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.ahead h1, .phead h1 { font: 800 clamp(2.1rem, 5.2vw, 3.6rem)/1.04 var(--serif); letter-spacing: -0.025em; margin: 0 0 12px; }
.phead h1.source-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; }
.aliases { font: italic 400 1.06rem/1.5 var(--serif); color: var(--soft); margin: 0 0 16px; }
.lede { font-size: 1.3rem; line-height: 1.55; margin: 0 0 22px; max-width: 36rem; }
.phead .lede { margin-bottom: 0; }
.count { margin: 0; text-align: right; font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--serif); color: var(--gold); text-shadow: 0 0 34px rgba(255, 201, 77, 0.38); font-feature-settings: "lnum"; }
.count small { display: block; margin-top: 6px; font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); text-shadow: none; }

/* Метка надёжности */
.grade { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font: 400 0.86rem/1.45 var(--sans); color: var(--soft); }
.grade b { display: inline-flex; align-items: center; gap: 8px; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 12px 7px 9px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.grade-stable b { color: var(--ok); }
.grade-versions b { color: var(--gold); }
.grade-thin b { color: var(--warn); }

/* Солнце — знак света */
.sun { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, currentColor 0 3px, transparent 3.5px), repeating-conic-gradient(currentColor 0 10deg, transparent 10deg 45deg); -webkit-mask: radial-gradient(circle, #000 3.5px, transparent 4px, transparent 4.5px, #000 5px); mask: radial-gradient(circle, #000 3.5px, transparent 4px, transparent 4.5px, #000 5px); }

/* Карточка «Коротко» */
.litcard { position: relative; align-self: start; background: var(--s1); border: 1px solid var(--line); padding: 18px 20px 10px; font: 400 0.92rem/1.45 var(--sans); overflow: hidden; }
.litcard::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; background: radial-gradient(closest-side, rgba(255, 201, 77, 0.18), transparent); pointer-events: none; }
.litcard > * { position: relative; }
.litcard .label { display: flex; align-items: center; gap: 8px; }
.litcard figure { margin: 0 0 14px; }
.litcard img { display: block; width: 100%; background: var(--s2); border: 1px solid var(--line); }
.litcard figcaption { font-size: 0.78rem; line-height: 1.45; color: var(--soft); margin-top: 7px; }
.litcard figcaption a { color: var(--soft); }
.litcard dl { margin: 0; }
.litcard dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.litcard dl div:first-child { border-top: 0; }
.litcard dt { color: var(--soft); font-size: 0.8rem; }
.litcard dd { margin: 2px 0 0; font: 500 1.03rem/1.35 var(--serif); font-feature-settings: "lnum"; }

/* Тело страницы: оглавление слева и текст */
.abody { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 40px; display: grid; grid-template-columns: 13rem minmax(0, var(--measure)) minmax(0, 1fr); gap: 0 56px; }
.abody > * { grid-column: 2; min-width: 0; }
.abody > .rail { grid-column: 1; grid-row: 1 / span 4; }
.abody > .wide { grid-column: 2 / span 2; max-width: 48rem; }
.abody.solo { grid-template-columns: minmax(0, 48rem); justify-content: center; }
.abody.solo > * { grid-column: 1; }
.rail { align-self: start; position: sticky; top: 24px; font: 500 0.88rem/1.35 var(--sans); }
.rail-k { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; display: flex; justify-content: space-between; gap: 8px; }
.rail-k span { color: var(--soft); letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.rail ol { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.rail ol::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rail ol::after { content: ""; position: absolute; left: 6px; top: 8px; width: 2px; height: calc(var(--read, 0) * (100% - 16px)); background: linear-gradient(var(--gold-2), var(--gold)); box-shadow: 0 0 10px var(--gold); }
.rail li { position: relative; padding: 4px 0 11px; }
.rail li::before { content: ""; position: absolute; left: -23px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); z-index: 1; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.rail li.on::before { border-color: var(--gold-2); }
.rail li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 201, 77, 0.14), 0 0 16px var(--gold); }
.rail a { color: var(--soft); text-decoration: none; display: block; }
.rail a:hover { color: var(--text); }
.rail li.now a { color: var(--gold); }
.rail li.off { opacity: 0.3; }
.sbar { display: none; }

/* Текст */
.prose { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.prose > p:first-child { font-size: 1.24rem; }
.prose h2 { font: 700 1.7rem/1.25 var(--serif); letter-spacing: -0.01em; margin: 2.2em 0 0.55em; display: flex; align-items: center; gap: 14px; hyphens: manual; scroll-margin-top: 84px; transition: color 0.4s, text-shadow 0.4s; }
.prose h2::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--line-2) 0 4px, transparent 4.5px), repeating-conic-gradient(var(--line-2) 0 9deg, transparent 9deg 45deg); transition: background 0.4s, filter 0.4s; }
.prose h2.now { color: #fff6df; text-shadow: 0 0 24px rgba(255, 201, 77, 0.35); }
.prose h2.now::before { background: radial-gradient(circle, var(--gold) 0 4px, transparent 4.5px), repeating-conic-gradient(var(--gold) 0 9deg, transparent 9deg 45deg); filter: drop-shadow(0 0 6px rgba(255, 201, 77, 0.9)); }
.prose h3 { font: 700 1.25rem/1.3 var(--serif); margin: 1.6em 0 0.35em; hyphens: manual; scroll-margin-top: 84px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold-2); }
.prose :not(sup) > a:not(.stamp) { color: var(--text); text-decoration-color: var(--gold-2); text-decoration-thickness: 1.5px; }
.prose :not(sup) > a:not(.stamp):hover { color: var(--gold); }
sup.fn { line-height: 0; }
sup.fn { font-size: 0.68rem; vertical-align: 0.45em; }
sup.fn a { display: inline; font: 600 1em/1 var(--sans); font-variant-numeric: lining-nums; color: var(--gold); text-decoration: none; border: 1px solid rgba(255, 201, 77, 0.35); border-radius: 99px; padding: 1px 5px; margin-left: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
sup.fn a:hover, sup.fn a[aria-expanded="true"], sup.fn a:target { background: var(--gold); color: #1c1405; border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 201, 77, 0.55); }
.peek { position: absolute; z-index: 30; width: min(22rem, calc(100vw - 24px)); background: var(--s2); border: 1px solid var(--gold-2); padding: 12px 14px; font: 400 0.9rem/1.5 var(--sans); color: var(--text); box-shadow: 0 20px 40px -10px #000, 0 0 40px -10px rgba(255, 201, 77, 0.4); }
.peek .label { margin-bottom: 6px; color: var(--gold); }
.peek a { color: var(--gold); }
.peek .stamp { font-weight: 600; }

/* Врезки */
.callout { position: relative; margin: 1.6em 0; padding: 16px 18px 6px; background: var(--s1); border: 1px solid var(--line); font-size: 1.03rem; line-height: 1.6; overflow: hidden; }
.callout::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 201, 77, 0.07), transparent 45%); pointer-events: none; }
.callout > * { position: relative; }
.callout-title { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.callout p { margin-bottom: 0.7em; }
.callout-calc .callout-title { color: var(--ok); }
.callout-hypothesis, .callout-unclear { border-style: dashed; border-color: var(--line-2); }
.callout-caution .callout-title { color: var(--warn); }
.callout-note { font-style: italic; }
.callout-note .callout-title { font-style: normal; color: var(--soft); }

/* Таблицы */
.table { overflow-x: auto; margin: 1.4em 0 1.6em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font: 400 0.94rem/1.45 var(--sans); font-variant-numeric: lining-nums tabular-nums; hyphens: manual; }
th { text-align: left; font: 600 0.66rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); padding: 0 14px 8px 0; border-bottom: 1px solid var(--gold-2); vertical-align: bottom; }
td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: rgba(255, 201, 77, 0.035); }
.num { text-align: right; white-space: nowrap; }

/* Подшитый документ: ведомость — светлый лист в темноте */
.document { position: relative; margin: 2em 0 2.8em; padding: 22px 22px 24px 56px; background: var(--doc); color: var(--doc-ink); font-family: var(--sans); transform: rotate(-0.4deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 80px -12px rgba(255, 201, 77, 0.16);
  background-image: radial-gradient(circle at 3px 3px, #b5a184 1.7px, transparent 2.3px), linear-gradient(to bottom, #9a4a2a 0 15px, transparent 15px), linear-gradient(#d8c8ad, #d8c8ad);
  background-size: 6px 26px, 2px 26px, 1px 100%; background-position: 18px 10px, 20px 13px, 42px 0; background-repeat: repeat-y, repeat-y, no-repeat; }
.document-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--doc-rule); box-shadow: 0 3px 0 -2px var(--doc-rule); }
.document-head span { font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #6b3f22; }
.document-head strong { font: 600 1.15rem/1.3 var(--serif); color: var(--doc-ink); }
.document .table { margin: 0 0 12px; }
.document th { color: var(--doc-soft); border-bottom-color: var(--doc-rule); }
.document td { border-bottom: 1px dotted var(--doc-rule); }
.document th + th, .document td + td { text-align: right; padding-left: 12px; }
.document tr:last-child td { font-weight: 700; border-top: 1px solid var(--doc-rule); border-bottom: 0; }
.document tbody tr:hover td { background: transparent; }
.document p { font: 400 0.82rem/1.5 var(--sans); color: var(--doc-soft); margin: 0; padding-right: 108px; }
.document a { color: #6b3f22; }
.document sup.fn a { color: #6b3f22; border-color: rgba(107, 63, 34, 0.45); }
.document sup.fn a:hover { background: #6b3f22; color: #f7ecd9; box-shadow: none; }
.stamp-seal { position: absolute; right: 16px; bottom: -22px; width: 100px; height: 100px; color: var(--stamp); opacity: 0.82; transform: rotate(-12deg); font-family: var(--sans); pointer-events: none; mix-blend-mode: multiply; }
.ledger dl { margin: 0 0 6px; }
.ledger dl div { display: flex; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #d8c8ad; }
.ledger dd { order: 1; margin: 0; font-size: 0.86rem; color: var(--doc-soft); }
.ledger dl div::after { content: ""; order: 2; flex: 1; min-width: 12px; margin: 0 8px; border-bottom: 1px dotted var(--doc-soft); opacity: 0.7; transform: translateY(-4px); }
.ledger dt { order: 3; font: 700 1.15rem var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* Блоки статей */
.route { list-style: none; counter-reset: step; margin: 1.5em 0; padding: 0 0 0 46px; position: relative; }
.prose .route { padding-left: 46px; }
.route::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-2), var(--line) 85%); }
.route li { counter-increment: step; position: relative; padding: 0 0 18px; margin: 0; }
.route li::before { content: counter(step); position: absolute; left: -46px; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold-2); color: var(--gold); font: 700 0.78rem/26px var(--sans); text-align: center; }
.route strong, .route span { display: block; }
.route strong { font-weight: 650; }
.route span { color: var(--soft); font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4em 0; }
.stats div { background: var(--s1); padding: 12px 14px 10px; }
.stats dt { font: 800 1.5rem/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--gold); }
.stats dd { margin: 3px 0 0; font: 400 0.8rem/1.4 var(--sans); color: var(--soft); hyphens: manual; }
.house { margin: 1.4em 0; }
.house-grid { display: inline-grid; grid-template-columns: repeat(4, 44px); gap: 6px; padding: 10px; background: var(--s1); border: 1px solid var(--line); }
.stack { display: grid; gap: 2px; }
.stack i { display: block; height: 10px; background: var(--gold-2); opacity: 0.85; }
.house figcaption { font: 400 0.82rem var(--sans); color: var(--soft); margin-top: 6px; }

/* Хронология */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 0.84rem/1 var(--sans); color: var(--soft); background: transparent; border: 1px solid var(--line-2); border-radius: 99px; padding: 0 14px; cursor: pointer; }
.legend button[aria-pressed="true"] { color: var(--text); border-color: var(--gold-2); background: rgba(255, 201, 77, 0.08); }
.legend i { width: 11px; height: 11px; border-radius: 50%; }
.i-pub { border: 2px solid var(--soft); }
.i-world { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.i-plan { border: 2px dashed var(--gold-2); }
.page-hronologiya .prose h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 1.3em 0 0.4em; }
.page-hronologiya .prose h2::before { width: 22px; height: 22px; }
.timeline { list-style: none; margin: 0 0 1.4em; padding: 0 0 0 30px; position: relative; }
.prose .timeline { padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-2), var(--line) 70%); }
.timeline li { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: 2px 18px; padding: 8px 0 14px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
.tl-pub::before { border: 2px solid var(--soft); }
.tl-world::before { background: var(--gold) !important; box-shadow: 0 0 0 5px rgba(255, 201, 77, 0.14), 0 0 16px var(--gold); }
.tl-plan::before, .tl-calc::before { border: 2px dashed var(--gold-2); }
.timeline time { font: 600 0.86rem/1.6 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.tl-kind { grid-column: 1; grid-row: 2; font: 600 0.62rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.tl-world time, .tl-world .tl-kind { color: var(--gold); }
.timeline p { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.08rem; line-height: 1.6; }
.timeline li[hidden], .prose [hidden] { display: none; }

/* Словарь */
.dfind { position: relative; margin: 0 0 22px; }
.dfind input { width: 100%; font: 400 1.05rem/1.3 var(--sans); color: var(--text); background: var(--s1); border: 1px solid var(--line-2); border-radius: 99px; padding: 14px 18px 14px 46px; min-height: 52px; }
.dfind input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.15); }
.dfind svg { position: absolute; left: 17px; top: 17px; width: 18px; height: 18px; color: var(--gold); }
.letters { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.letters a { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; font: 700 0.95rem/1 var(--serif); color: var(--text); text-decoration: none; }
.letters a:hover { border-color: var(--gold-2); color: var(--gold); }
.page-slovar .prose h2 { font-size: 2.6rem; font-weight: 800; color: var(--gold); text-shadow: 0 0 24px rgba(255, 201, 77, 0.3); margin: 1.2em 0 0.2em; }
.page-slovar .prose h2::before { display: none; }
.page-slovar .prose h3 { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 1em; }
.page-slovar .prose h3:target { color: var(--gold); }
.empty { color: var(--soft); font: 400 0.95rem/1.5 var(--sans); }

/* Связи, сноски */
.related { margin-top: 56px; }
.related h2, .backlinks h2 { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cards a { display: block; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.cards a:hover { border-color: var(--gold-2); box-shadow: 0 0 30px -12px rgba(255, 201, 77, 0.6); color: var(--text); }
.cards strong { display: block; font: 700 1.14rem/1.3 var(--serif); margin-bottom: 4px; }
.cards a:hover strong { color: var(--gold); }
.cards span { display: block; color: var(--soft); font-size: 0.98rem; line-height: 1.5; }
.cards em { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 400 0.8rem/1.35 var(--sans); color: var(--soft); font-style: normal; }
.cards em b { font: 600 0.6rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; border-radius: 99px; }
.cards em.grade-stable b { color: var(--ok); } .cards em.grade-versions b { color: var(--gold); } .cards em.grade-thin b { color: var(--warn); }
.backlinks { margin-top: 32px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font: 400 0.88rem var(--sans); }
.tags a { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--text); text-decoration: none; }
.tags a:hover { border-color: var(--gold-2); color: var(--gold); }
.notes { margin-top: 44px; border-top: 1px solid var(--line); font: 400 0.9rem/1.6 var(--sans); color: var(--soft); }
.fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.2rem; letter-spacing: 0; }
.fold[open] summary::after { content: "−"; }
.fold-count { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--soft); }
.notes-hint { font-size: 0.82rem; }
.notes ol { padding-left: 2em; margin: 0; }
.notes li { margin-bottom: 8px; scroll-margin-top: 84px; padding: 2px 4px; }
.notes li::marker { color: var(--soft); font-variant-numeric: tabular-nums; }
.notes li:target, .notes li.lit { background: rgba(255, 201, 77, 0.1); }
.notes a { color: var(--gold); }
.back a { text-decoration: none; }
.stamp { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Кнопки и поиск */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 99px; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; background: var(--gold); color: #1c1405; border: 1px solid var(--gold); cursor: pointer; }
.button:hover { color: #1c1405; box-shadow: 0 0 26px rgba(255, 201, 77, 0.45); }
.button-quiet { background: transparent; color: var(--gold); border-color: var(--gold-2); }
.button-quiet:hover { color: #ffe08f; border-color: var(--gold); }
.button .sun { width: 15px; height: 15px; }
.pill-search { display: flex; max-width: 36rem; border: 1px solid var(--line-2); border-radius: 99px; background: var(--s1); padding: 5px; }
.pill-search:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.15); }
.pill-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 400 1.06rem/1.3 var(--sans); padding: 10px 16px; }
.pill-search input:focus { outline: none; }
.pill-search input::placeholder { color: var(--soft); }
.pill-search button { flex: none; border: 0; border-radius: 99px; background: var(--gold); color: #1c1405; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 22px; cursor: pointer; }
.search-status { font: 400 0.9rem var(--sans); color: var(--soft); margin: 14px 0; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.results a { display: block; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.results a:hover { border-color: var(--gold-2); color: var(--text); }
.results strong { display: block; font: 700 1.14rem/1.3 var(--serif); color: var(--text); margin: 2px 0 4px; }
.result-kind { font: 600 0.62rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.result-text { display: block; font-size: 0.96rem; color: var(--soft); }
mark { background: rgba(255, 201, 77, 0.28); color: var(--text); padding: 0 1px; border-radius: 2px; }

/* Реестр источников */
.registry-tools { display: flex; gap: 10px 12px; flex-wrap: wrap; margin: 22px 0 10px; align-items: center; }
.registry-tools input { flex: 1 1 15rem; font: 400 0.98rem var(--sans); color: var(--text); background: var(--s1); border: 1px solid var(--line-2); border-radius: 99px; padding: 0 18px; min-height: 46px; }
.registry-tools input:focus { outline: none; border-color: var(--gold-2); }
.segmented { display: flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.segmented button { font: 600 0.8rem var(--sans); color: var(--soft); background: transparent; border: 0; padding: 0 16px; min-height: 44px; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line-2); }
.segmented button[aria-pressed="true"] { background: var(--gold); color: #1c1405; }
.stamp-cell { font-weight: 600; white-space: nowrap; }
.flag { font-size: 0.72rem; color: var(--warn); white-space: nowrap; }
#registry a { color: var(--text); text-decoration-color: var(--line-2); }
#registry a:hover { color: var(--gold); }
.source-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 22px; font: 400 0.92rem/1.45 var(--sans); }
.source-card div { background: var(--s1); padding: 12px 14px; }
.source-card dt { font-size: 0.76rem; color: var(--soft); }
.source-card dd { margin: 2px 0 0; }
.source-card code { color: var(--gold); }
.fragments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 4px 12px; font: 400 0.88rem/1.8 var(--sans); }
.section-block { margin-top: 32px; }

/* Главная */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 56px; text-align: center; }
.halo { position: relative; width: 340px; height: 340px; margin: 0 auto 6px; }
.halo::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 77, 0.34), transparent); }
.rays { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); }
.rays line { stroke: var(--gold); stroke-width: 6; stroke-linecap: round; opacity: 0.85; }
.halo img { position: absolute; left: 70px; top: 70px; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--gold), 0 0 60px 8px rgba(255, 201, 77, 0.5); }
.edition { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
.wordmark { font: 800 clamp(2.2rem, 5.4vw, 4.2rem)/1.02 var(--serif); letter-spacing: -0.03em; margin: 0 auto 14px; max-width: 22ch; hyphens: none; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--gold); text-shadow: 0 0 36px rgba(255, 201, 77, 0.4); }
.motto { font: italic 400 1.25rem/1.5 var(--serif); color: var(--soft); margin: 0 0 26px; }
.hero .pill-search { margin: 0 auto; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hero-actions.start { justify-content: flex-start; }
.hstats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin: 22px 0 0; font: 400 0.88rem/1.4 var(--sans); color: var(--soft); }
.hstats b { color: var(--text); font: 700 1rem/1 var(--serif); margin-right: 5px; }
.intro { max-width: 46rem; margin: 0 auto; padding: 0 var(--pad) 48px; font-size: 1.12rem; line-height: 1.7; color: var(--soft); text-align: center; hyphens: auto; }
.intro a { color: var(--text); text-decoration-color: var(--gold-2); }
.intro strong { color: var(--text); }
.feat { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 32px 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: start; }
.feat h2 { font: 800 clamp(1.9rem, 4vw, 2.8rem)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.feat h2 a { color: var(--text); text-decoration: none; }
.feat h2 a:hover { color: var(--gold); }
.feat .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.tally { margin: 0; }
.tally div { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tally dd { order: 1; margin: 0; flex: 1; font: 400 0.88rem/1.4 var(--sans); color: var(--soft); }
.tally dd a { color: var(--soft); text-decoration-color: var(--line-2); }
.tally dd a:hover { color: var(--gold); }
.tally dt { order: 2; font: 700 1.25rem/1.2 var(--serif); font-feature-settings: "lnum"; color: var(--gold); white-space: nowrap; }
.litcard .foot-note { margin: 10px 0 4px; font-size: 0.8rem; color: var(--soft); }
.litcard .foot-note a { color: var(--soft); }
.sections { max-width: var(--wrap); margin: 0 auto; padding: 52px var(--pad) 20px; }
.section-k { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 18px; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat { position: relative; background: var(--s1); border: 1px solid var(--line); padding: 20px 20px 12px; overflow: hidden; transition: border-color 0.2s; }
.cat::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; background: radial-gradient(closest-side, rgba(255, 201, 77, 0.12), transparent); pointer-events: none; }
.cat:hover { border-color: var(--line-2); }
.cat > * { position: relative; }
.cat h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 700 1.25rem/1.25 var(--serif); }
.cat h3 a { color: var(--text); text-decoration: none; }
.cat h3 a:hover { color: var(--gold); }
.cat h3 span { font: 800 1.5rem/1 var(--serif); color: var(--gold); }
.cat > p { margin: 0 0 12px; color: var(--soft); font-size: 0.94rem; line-height: 1.5; }
.cat ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.98rem; line-height: 1.35; }
.cat li a:hover { color: var(--gold); }
.howto { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad) 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; }
.howto h2 { display: flex; align-items: center; gap: 8px; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 8px; }
.howto h2 .sun { color: var(--gold-2); }
.howto p { margin: 0 0 8px; color: var(--soft); font-size: 1rem; line-height: 1.6; }

/* Подвал */
.site-footer { max-width: var(--wrap); margin: 24px auto 0; padding: 40px var(--pad) 56px; border-top: 1px solid var(--line); text-align: center; font: 400 0.84rem/1.6 var(--sans); color: var(--soft); }
.site-footer img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: block; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-2), 0 0 26px 2px rgba(255, 201, 77, 0.28); }
.site-footer .motto-foot { font: 700 1.1rem/1.4 var(--serif); color: var(--gold); margin: 0 auto 6px; }
.site-footer b { display: block; font: 700 1rem/1.3 var(--serif); color: var(--text); margin-bottom: 2px; }
.site-footer p { max-width: 44rem; margin: 0 auto 0.6em; }
.site-footer a { color: var(--soft); }

/* Адаптив */
@media (max-width: 66rem) {
  .abody { grid-template-columns: 12rem minmax(0, var(--measure)); gap: 0 40px; }
  .abody > .wide { grid-column: 2; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { gap: 6px 16px; }
}
@media (max-width: 60rem) {
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .brand { flex: 1 1 0; }
  .js .menu-btn { display: inline-grid; }
  .topnav { display: flex; order: 3; width: 100%; margin: 0; flex-direction: column; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--line); font-size: 0.86rem; }
  .topnav a { display: flex; align-items: center; min-height: 50px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .topnav a[aria-current="page"] { border-bottom-color: var(--line); }
  .topnav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); margin-right: 12px; }
  .js .topnav { display: none; }
  .js .bar.open .topnav { display: flex; }
  .js .bar.open .topnav .nav-search { display: flex; margin: 8px 0 6px; max-width: none; }
  .nav-search input { font-size: 1rem; letter-spacing: 0; text-transform: none; }
  .is-home .bar .find { margin-left: auto; }
  .ahead, .phead, .feat { grid-template-columns: 1fr; }
  .count { text-align: left; }
  .abody, .abody.solo { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .abody > *, .abody > .wide { grid-column: 1; }
  .rail { display: none; }
  .letters { display: flex; }
  .sbar { display: flex; position: sticky; top: 0; z-index: 15; align-items: center; gap: 10px; padding: 11px var(--pad); background: rgba(14, 12, 10, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
  .sbar::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--read, 0) * 100%); background: var(--gold); box-shadow: 0 0 8px var(--gold); }
  .sbar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .sbar span { margin-left: auto; color: var(--soft); flex: none; }
  .cgrid, .howto { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  :root { --pad: 18px; }
  body { font-size: 1.09rem; line-height: 1.68; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 1rem; }
  .brand small { font-size: 0.74rem; }
  .brand small { display: none; }
  .is-inner .bar .find { display: none; }
  .lede { font-size: 1.16rem; }
  .prose > p:first-child { font-size: 1.14rem; }
  .halo { width: 240px; height: 240px; }
  .halo img { left: 49px; top: 49px; width: 142px; height: 142px; }
  .timeline li { grid-template-columns: 1fr; }
  .tl-kind { grid-row: auto; }
  .timeline p { grid-column: 1; grid-row: auto; margin-top: 4px; }
  .document { padding: 16px 14px 20px 42px; transform: none; background-position: 13px 10px, 15px 13px, 31px 0; }
  .document p { padding-right: 84px; }
  .stamp-seal { width: 82px; height: 82px; right: 8px; bottom: -18px; }
  .document table { font-size: 0.8rem; }
  .document th + th, .document td + td { padding-left: 8px; }
  .pill-search button { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rays { transform: none !important; }
  .glow { display: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .glow, .bar, .site-footer, .rail, .sbar, .pill-search { display: none; }
  a { color: #000; }
}
.intro .salute{font-weight:700;font-size:1.15em;margin:0 0 .4em}
