/* МАПА · 2326 · v2 — институциональная страница в стилистике
   архивов и НИИ 1970-1990-х. Сухость = концепция. */

@import url('terminal-vector.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Палитра подобрана под бумагу каталога МАПА-К-2326-01 (cover stock #000080),
     основной фон слегка осветлён к внутренним полосам каталога. */
  /* VOLKOV COMMANDER · VGA-палитра терминала (бежевый каталог → синий системный) */
  --bg:    #0000aa;
  --bg-2:  #000080;
  --bg-3:  #000060;
  --ink:   #ffffff;
  --ink-2: #cfd8e0;
  --muted: #aaaaaa;
  --line:  #00aaaa;
  --accent:#ffff55;
  --green: #55ff55;

  --mono:  'Terminal Vector', 'Px437 IBM VGA', 'Courier New', monospace;
  --body:  'Terminal Vector', 'Px437 IBM VGA', 'Courier New', monospace;

  --pad:   clamp(16px, 4vw, 64px);

  /* DOS-курсор: пиксельная стрелка (белая с чёрным контуром, остриё 0,0) */
  --dos-cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath d='M1 1 L1 14 L4 11 L6 16 L8 15 L6 10 L10 10 L10 9 L9 9 L9 8 L8 8 L8 7 L7 7 L7 6 L6 6 L6 5 L5 5 L5 4 L4 4 L4 3 L3 3 L3 2 L2 2 L2 1 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1.8' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 2;
}
/* fallback font for glyphs missing in Terminal Vector (∞, →, ←, etc.) */
.glyph { font-family: 'JetBrains Mono','Courier New', monospace; font-feature-settings: normal; }

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: clip; }
img { display: block; max-width: 100%; }
code { white-space: normal; overflow-wrap: anywhere; }
section[id], [id].rubric, [id].section { scroll-margin-top: 64px; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ────────── System bar (sticky top) ────────── */
.sysbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  padding: 8px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2);
}
.sysbar .l { font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.sysbar .r { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.sysbar .visa { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.dot.closed { background: var(--muted); }

/* ────────── Marquee strip ────────── */
.marquee {
  background: var(--ink); color: var(--bg);
  padding: 11px var(--pad);
  font-family: var(--mono);
  font-style: italic; font-size: 14px; letter-spacing: 0.02em;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.marquee .visa { font-style: normal; color: rgba(200,220,255,0.55); font-size: 11px; font-family: var(--mono); letter-spacing: 0.05em; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.marquee .m-text { min-width: 0; overflow-wrap: anywhere; }

/* ────────── Header / nav ────────── */
.header {
  display: grid; grid-template-columns: minmax(380px, 460px) 1fr;
  gap: 32px; padding: 26px var(--pad) 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header .brand { display: flex; align-items: center; gap: var(--pad); text-decoration: none; color: inherit; min-width: 0; }
.header .brand-logo {
  width: 108px; height: 108px; flex: none;
  filter: brightness(0) invert(1) opacity(0.92);   /* БЕЛЫЙ логотип на синем фоне терминала */
  transition: filter 0.15s ease;
}
.header .brand:hover .brand-logo { filter: brightness(0) invert(1); }
.header .brand .brand-text { display: block; min-width: 0; }
.header .brand .bn { display: block; font-size: 22px; font-weight: 700; line-height: 1.12; margin: 0 0 8px; letter-spacing: 0.035em; text-transform: uppercase; }
.header .brand:hover .bn { text-decoration: underline; text-underline-offset: 3px; }
.header .brand .sub { display: block; color: var(--ink-2); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; }
.header .brand .id { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0; }

.nav-list {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 0 14px; justify-content: flex-end; text-align: right;
  font-size: 11.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-2);
  align-self: end;
}
.nav-list a { color: var(--ink); padding-bottom: 1px; border-bottom: 1px solid transparent; transition: border-color 0.1s; }
.nav-list a:hover, .nav-list a.active { border-bottom-color: var(--ink); }
/* переключатель языка в навигации — как обычный пункт меню (перебивает чип-стили из museum-2326-i18n.js) */
.nav-list .mapa-langbtn { font: inherit; font-size: 11.5px; letter-spacing: 0.10em; padding: 0 0 1px; margin: 0;
  border: 0; border-bottom: 1px solid transparent; border-radius: 0; opacity: 1; background: none; color: var(--ink); }
.nav-list .mapa-langbtn:hover { background: none; color: var(--ink); border-bottom-color: var(--ink); }
.nav-list a.disabled { color: var(--muted); pointer-events: none; }
.nav-list .sep { color: var(--muted); }

/* ────────── Hero ────────── */
.hero {
  display: grid; grid-template-columns: 1fr 360px; gap: 64px;
  padding: 56px var(--pad) 48px;
  border-bottom: 1px solid var(--line);
}
.hero-text .pretitle {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.hero-text h1 {
  font-family: var(--mono);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.96; letter-spacing: 0.01em;
  font-weight: 400; margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-text .lead {
  font-family: var(--mono);
  font-size: 17px; line-height: 1.55; max-width: 52ch;
  color: var(--ink); margin: 0 0 36px;
}
.hero-meta { display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.hero-meta .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.hero-meta .row .v { color: var(--ink); }

/* Stratigraphic schema (hero side) */
.strat {
  font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.06em;
  display: flex; flex-direction: column;
}
.strat .caption {
  display: flex; justify-content: space-between;
  font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.strat .axis {
  display: grid; grid-template-columns: 30px 1fr 96px;
  gap: 0; border: 1px solid var(--ink); flex: 1; min-height: 360px;
}
.strat .axis .scale {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2px 0; border-right: 1px solid var(--ink);
  font-size: 9px; letter-spacing: 0.04em; color: var(--muted);
  align-items: center;
}
.strat .axis .scale span { writing-mode: vertical-rl; transform: rotate(180deg); }
.strat .axis .core {
  display: grid; grid-template-rows: 1.4fr 0.9fr 1.7fr 0.4fr;
  position: relative;
}
.strat .axis .core .layer {
  border-bottom: 1px solid var(--ink); padding: 8px 10px; position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.strat .axis .core .layer:last-child { border-bottom: 0; }
.strat .axis .core .h-id { font-size: 10px; letter-spacing: 0.18em; color: var(--ink); }
.strat .axis .core .h-name { font-size: 10.5px; color: var(--ink); }
.strat .axis .core .h-date { font-size: 9.5px; color: var(--muted); margin-top: auto; }
.strat .axis .core .l-i  { background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 2px, var(--bg) 2px, var(--bg) 6px); }
.strat .axis .core .l-ii { background:
  repeating-linear-gradient(90deg, var(--bg-3), var(--bg-3) 1px, transparent 1px, transparent 7px),
  var(--bg-2); }
.strat .axis .core .l-iii { background:
  radial-gradient(circle at 20% 30%, var(--bg-3) 0 2px, transparent 3px),
  radial-gradient(circle at 70% 60%, var(--bg-3) 0 2px, transparent 3px),
  radial-gradient(circle at 40% 80%, var(--bg-3) 0 2px, transparent 3px),
  var(--bg-2); background-size: 14px 14px; }
.strat .axis .core .l-base { background: var(--ink); color: var(--bg); padding: 4px 10px; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; }
.strat .axis .meta {
  display: flex; flex-direction: column; align-items: stretch;
  border-left: 1px solid var(--ink); padding: 8px;
  font-size: 9px; letter-spacing: 0.04em; color: var(--ink-2);
  background: var(--bg);
}
.strat .axis .meta span { display: block; padding: 6px 0; border-bottom: 1px dotted var(--line); text-align: right; overflow-wrap: anywhere; line-height: 1.3; }
.strat .axis .meta span:last-child { border-bottom: 0; }
.strat .axis .meta b { color: var(--muted); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; display: block; font-size: 8.5px; margin-bottom: 2px; }
.strat .legend {
  display: flex; gap: 14px; padding: 8px 0 0; font-size: 9.5px;
  color: var(--muted); letter-spacing: 0.06em;
  border-top: 0;
}

/* ══════════ Стратиграфия · ЖИВЫЕ ГОРИЗОНТЫ (hover/focus) ══════════
   Каждый горизонт оживает при наведении собственной тематической
   анимацией: I — поток данных (раннецифровой слой), II — потеря
   сигнала (коллапс), III — осадконакопление (постколлапс),
   МАТЕРИК — рассеянный свет по стерильной породе.
   Анимации работают ТОЛЬКО при наведении/фокусе и используют лишь
   transform / opacity / background-position (дёшево для GPU).         */

.strat .axis .core .layer {
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: box-shadow .4s ease, filter .4s ease;
}
.strat .axis .core .layer > span { position: relative; z-index: 3; }
.strat .axis .core .layer::before,
.strat .axis .core .layer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  will-change: transform, opacity, background-position;
}
.strat .axis .core .layer::before { z-index: 1; transition: opacity .55s ease; }
.strat .axis .core .layer::after  { z-index: 2; }
.strat .axis .core .layer:is(:hover, :focus-visible) {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(168, 58, 31, .55);
}
.strat .axis .core .layer:is(:hover, :focus-visible)::before { opacity: 1; }

/* ── ГОРИЗОНТ I · растущие трассы микросхем ─────────────────────────
   PCB-дорожки прорисовываются (stroke-dashoffset), на концах
   проступают контактные площадки, затем по трассам бежит сигнал.   */
.strat .axis .core .l-i .circuit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.strat .axis .core .l-i:is(:hover, :focus-visible) .circuit { opacity: 1; }
.strat .axis .core .l-i .circuit .traces path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .traces path {
  animation: strat-i-grow 1.05s ease forwards;
}
.strat .axis .core .l-i .circuit .traces path:nth-child(2) { animation-delay: .09s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(3) { animation-delay: .18s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(4) { animation-delay: .27s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(5) { animation-delay: .36s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(6) { animation-delay: .45s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(7) { animation-delay: .54s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(8) { animation-delay: .63s; }
.strat .axis .core .l-i .circuit .traces path:nth-child(9) { animation-delay: .72s; }
.strat .axis .core .l-i .circuit .pads > * { opacity: 0; transform-box: fill-box; transform-origin: center; }
.strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .pads > * {
  animation: strat-i-pad .45s ease forwards; animation-delay: 1.05s;
}
.strat .axis .core .l-i .circuit .pulse { opacity: 0; }
.strat .axis .core .l-i .circuit .pulse path { stroke-dasharray: 7 80; stroke-dashoffset: 87; }
.strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .pulse {
  animation: strat-i-pulseon .01s linear 1.5s forwards;
}
.strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .pulse path {
  animation: strat-i-flow 2.4s linear 1.5s infinite;
}
@keyframes strat-i-grow    { to { stroke-dashoffset: 0; } }
@keyframes strat-i-pad     { 0%{opacity:0; transform:scale(.3)} 100%{opacity:1; transform:scale(1)} }
@keyframes strat-i-pulseon { to { opacity: .9; } }
@keyframes strat-i-flow    { to { stroke-dashoffset: 0; } }

/* ── ГОРИЗОНТ II · белый шум ────────────────────────────────────────
   ТВ-«снег»: два слоя зернистой turbulence-текстуры — тёмные крупинки
   (multiply) и светлые (screen) перетасовываются шагами + мерцание.   */
.strat .axis .core .l-ii::before {        /* тёмные крупинки (alpha-шум) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0.7 0.7 0.7 0 -0.32'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.strat .axis .core .l-ii::after {         /* светлые крупинки (alpha-шум) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='138' height='138'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.96' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.7 0.7 0.7 0 -0.36'/%3E%3C/filter%3E%3Crect width='138' height='138' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 138px 138px;
}
.strat .axis .core .l-ii:is(:hover, :focus-visible)::before {
  animation: strat-ii-snowA .45s steps(9) infinite, strat-ii-flick .9s steps(5) infinite;
}
.strat .axis .core .l-ii:is(:hover, :focus-visible)::after {
  opacity: 1; animation: strat-ii-snowB .38s steps(8) infinite;
}
@keyframes strat-ii-snowA { to { background-position: -1290px 870px; } }
@keyframes strat-ii-snowB { to { background-position: 940px -1130px; } }
@keyframes strat-ii-flick { 0%,100%{opacity:.62} 40%{opacity:.4} 70%{opacity:.74} }

/* ── ГОРИЗОНТ III · осаждающиеся частицы (3 плана глубины) ──────────
   Дальний план — мелкий, размытый, медленный; средний — основной;
   ближний — крупные редкие крупицы, быстрее и резче (параллакс).    */
.strat .axis .core .l-iii .motes {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .55s ease;
}
.strat .axis .core .l-iii:is(:hover, :focus-visible) .motes { opacity: 1; }
.strat .axis .core .l-iii .motes::before {        /* дальний план */
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(10,10,10,.14) 0 1px, transparent 1.8px);
  background-size: 9px 9px; filter: blur(.7px);
}
.strat .axis .core .l-iii:is(:hover, :focus-visible) .motes::before {
  animation: strat-iii-far 16s linear infinite;
}
.strat .axis .core .l-iii::before {               /* средний план */
  background: radial-gradient(circle at 50% 50%, rgba(10,10,10,.2) 0 1.4px, transparent 2.2px);
  background-size: 13px 13px;
}
.strat .axis .core .l-iii:is(:hover, :focus-visible)::before {
  animation: strat-iii-mid 9s linear infinite, strat-iii-breathe 3.6s ease-in-out infinite;
}
.strat .axis .core .l-iii::after {                /* ближний план */
  background:
    radial-gradient(circle at 18% 22%, rgba(168,58,31,.55) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 62% 48%, rgba(10,10,10,.5)  0 1.9px, transparent 2.9px),
    radial-gradient(circle at 86% 30%, rgba(10,10,10,.42) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 40% 74%, rgba(168,58,31,.4) 0 1.7px, transparent 2.7px);
  background-size: 120px 120px, 152px 152px, 98px 98px, 172px 172px;
}
.strat .axis .core .l-iii:is(:hover, :focus-visible)::after {
  opacity: 1; animation: strat-iii-near 5.5s linear infinite;
}
@keyframes strat-iii-far     { to { background-position: 0 200px; } }
@keyframes strat-iii-mid     { to { background-position: 0 300px; } }
@keyframes strat-iii-near {
  to { background-position: 14px 520px, -10px 520px, 8px 520px, -14px 520px; }
}
@keyframes strat-iii-breathe { 0%,100%{opacity:.55} 50%{opacity:.9} }

/* ── МАТЕРИК · рассеянный свет по стерильной породе ─────────────── */
.strat .axis .core .l-base::after {
  background: linear-gradient(100deg,
    transparent 30%,
    rgba(120,160,220,.10) 47%,
    rgba(120,160,220,.20) 50%,
    rgba(120,160,220,.10) 53%,
    transparent 70%);
}
.strat .axis .core .l-base:is(:hover, :focus-visible)::after {
  opacity: 1; animation: strat-base-rake 2.8s ease-in-out infinite;
}
@keyframes strat-base-rake { 0%{transform:translateX(-55%)} 100%{transform:translateX(55%)} }

@media (prefers-reduced-motion: reduce) {
  .strat .axis .core .layer::before,
  .strat .axis .core .layer::after,
  .strat .axis .core .l-iii .motes::before,
  .strat .axis .core .l-i .circuit .traces path,
  .strat .axis .core .l-i .circuit .pulse,
  .strat .axis .core .l-i .circuit .pulse path,
  .strat .axis .core .l-i .circuit .pads > * { animation: none !important; }
  .strat .axis .core .layer:is(:hover, :focus-visible)::after { opacity: .5; }
  /* статичный показ без движения: трассы прорисованы, площадки видны */
  .strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .traces path { stroke-dashoffset: 0; }
  .strat .axis .core .l-i:is(:hover, :focus-visible) .circuit .pads > * { opacity: 1; }
}

/* ────────── Stats strip ────────── */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}
.stats .cell {
  padding: 22px var(--pad); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stats .cell:last-child { border-right: 0; }
.stats .cell .k { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.stats .cell .v { font-size: 26px; letter-spacing: 0.01em; color: var(--ink); }
.stats .cell .v small { font-size: 12px; color: var(--ink-2); letter-spacing: 0.06em; }

/* ────────── Section heads ────────── */
.section {
  padding: 56px var(--pad);
  border-bottom: 1px solid var(--line);
}
.section.alt { background: var(--bg-2); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px; margin-bottom: 28px;
  align-items: end;
}
.section-head h1,
.section-head h2 {
  font-family: var(--mono);
  font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0; font-weight: 400;
}
.section-head .lbl { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
.section-head .visa { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: none; text-align: right; }
.section-head .visa b { color: var(--ink-2); font-weight: 400; }
.section-intro { font-family: var(--mono); font-size: 14px; line-height: 1.6; max-width: 78ch; margin: 0 0 28px; color: var(--ink); }

.header .brand .bn,
.header .brand .sub,
.header .brand .id,
.sysbar .l,
.sysbar .r,
.marquee .m-text,
.marquee .visa,
.section-head,
.hero-meta .row,
.doc-card .meta h3,
.fund-card h3,
.recon-card h3,
.access-cell .v,
.contact-cell .v {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ────────── Council schema (ascii tree) ────────── */
.council pre {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  margin: 0; white-space: pre; overflow-x: auto;
  color: var(--ink);
}
.council pre .role { color: var(--muted); }
.council .footnote {
  display: flex; gap: 18px; align-items: baseline; justify-content: space-between;
  margin-top: 24px; padding-top: 12px; border-top: 1px dotted var(--line);
  font-size: 11px; color: var(--ink-2); letter-spacing: 0.06em;
}
.council .footnote a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ────────── Funds grid ────────── */
.funds-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.fund-card {
  position: relative;
  padding: 18px 18px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.1s;
  cursor: pointer;
  min-height: 168px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background-color 0.12s ease;
}
.fund-card:hover { background: var(--bg-3); }
.fund-card .id { font-size: 12px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.fund-card h3 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }
.fund-card .count { margin-top: auto; font-size: 13px; color: var(--ink); }
.fund-card .mat { font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; }
.fund-card .arrow {
  position: absolute; right: 18px; bottom: 18px; font-size: 16px;
  color: var(--ink); transition: transform 0.12s;
}
.fund-card:hover .arrow { transform: translateX(4px); }

/* ── превью фонда: пиксельная материализация фрагмента в свободной ячейке ── */
.fund-preview {
  position: relative; overflow: hidden;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); min-height: 168px;
}
.fund-preview canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .4s ease; image-rendering: auto;
}
.fund-preview.on canvas { opacity: 1; }
@media (hover: none) { .fund-preview { display: none; } }

/* ── заглавная: широкий пиксельный баннер с линзой-проявителем ──── */
.frag-band {
  position: relative; overflow: hidden; cursor: crosshair;
  height: clamp(230px, 28vw, 360px);
  background: #0000aa; border-bottom: 1px solid var(--line);
}
.frag-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frag-band .fb-cap {
  position: absolute; left: var(--pad); bottom: 12px; z-index: 2;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #55ff55;
  background: rgba(0,0,40,0.72); padding: 3px 8px; pointer-events: none; max-width: calc(100% - 2 * var(--pad));
}
.frag-band .fb-cap b { color: var(--accent); font-weight: 400; }
@media (hover: none) { .frag-band { cursor: default; } }

/* ────────── Docs cards ────────── */
.docs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.doc-card {
  position: relative;
  background: var(--bg); border: 1px solid var(--line);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  min-height: 340px;
}
.doc-card.draft { opacity: 0.45; cursor: default; pointer-events: none; }
.doc-card .doc-cover {
  position: relative; aspect-ratio: 17 / 22; background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.doc-card .doc-cover canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.doc-card .doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.doc-card .doc-cover .placeholder { color: var(--muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.doc-card .stamp-overlay {
  position: absolute; right: -12px; bottom: -10px;
  width: 110px; height: 110px;
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.85; transform: rotate(-8deg); pointer-events: none;
  mix-blend-mode: multiply;
}
.doc-card .meta { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.doc-card .meta .no { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.doc-card .meta h3 { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
.doc-card .meta .rows { font-size: 11px; color: var(--ink-2); margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.doc-card .meta .rows .r { display: grid; grid-template-columns: 86px 1fr; gap: 8px; }
.doc-card .meta .rows .r .k { color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; }
.doc-card .meta .open { margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ────────── Reference (terminal) block ────────── */
.ref-block {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: start;
}
.ref-block .desc { font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--ink); }
.ref-block .desc p { margin: 0 0 10px; }
.ref-block .actions { display: flex; flex-direction: column; gap: 8px; }
.ref-block .actions a { display: block; padding: 14px 18px; border: 1px solid var(--ink); background: var(--bg); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.ref-block .actions a:hover { background: var(--ink); color: var(--bg); }
.ref-block .actions .note { font-size: 10.5px; color: var(--muted); padding: 0; border: 0; background: transparent; text-align: left; cursor: default; }
.ref-block .actions .note:hover { background: transparent; color: var(--muted); }

/* ────────── Footer ────────── */
.foot {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; padding: 36px var(--pad) 28px;
  background: var(--bg);
  border-top: 1px solid var(--ink);
  font-size: 11px; line-height: 1.6; color: var(--ink-2);
}
.foot .col h4 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
.foot .col p { margin: 0 0 6px; }
.foot .col p strong { color: var(--ink); font-weight: 400; }
.foot .stamp-img { position: relative; height: 80px; margin-top: 8px; }
.foot .stamp-img img { height: 100%; width: auto; opacity: 0.65; transform: rotate(6deg); mix-blend-mode: multiply; }
.foot .ver { color: var(--ink); }
.foot .ver-lang { display: inline-block; margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--line); }
.foot .ver-lang a { border-bottom: 1px solid var(--ink); }

/* ────────── Exhibitions ────────── */
.expo-list {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.expo-row {
  display: grid; grid-template-columns: 200px 1fr 200px;
  gap: 32px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.expo-row .when {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.expo-row .when .state {
  display: inline-block; align-self: flex-start;
  font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--green); color: var(--green);
  background: var(--bg);
}
.expo-row .when .state.past { border-color: var(--muted); color: var(--muted); }
.expo-row .when .state.plan { border-color: var(--accent); color: var(--accent); }
.expo-row .when .dates {
  font-size: 11px; letter-spacing: 0.10em; color: var(--ink-2);
  font-family: var(--mono); text-transform: uppercase; padding-top: 2px;
}
.expo-row .body h3 {
  margin: 0 0 4px; font-family: var(--mono);
  font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase;
  font-weight: 400; line-height: 1.2;
}
.expo-row .body .sub {
  font-family: var(--mono); font-style: italic;
  font-size: 13px; color: var(--ink-2); margin: 0 0 10px;
}
.expo-row .body .desc {
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  color: var(--ink); margin: 0 0 12px; max-width: 64ch;
}
.expo-row .body .meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-2);
  padding-top: 4px; border-top: 1px dotted var(--line);
}
.expo-row .body .meta span { display: inline-flex; gap: 6px; }
.expo-row .body .meta b {
  color: var(--muted); font-weight: 400;
  font-size: 9.5px; letter-spacing: 0.20em; text-transform: uppercase;
}
.expo-row .open {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); align-self: start; padding-top: 6px;
  border-bottom: 1px solid var(--accent); justify-self: end;
}
.expo-row.planned { opacity: 0.78; }

/* ────────── Reconstructions ────────── */
.recon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.recon-card {
  background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.recon-card .img {
  position: relative; aspect-ratio: 4 / 3; background: #ffffff;
  border-bottom: 1px solid var(--line); overflow: hidden;
  box-shadow: inset 0 0 38px rgba(0,0,0,0.5), inset 0 0 90px rgba(30,90,50,0.12);
}
.recon-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.96) contrast(1.04) brightness(0.97); }
/* CRT-дисплей: тонкие скан-линии + кривизна-виньетка — как экран терминала */
.recon-card .img::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.17) 3px);
}
.recon-card .img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 56%, rgba(0,0,0,0.45) 100%);
}
.recon-card .img .tag {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 8px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
}
.recon-card h3 {
  font-family: var(--mono); font-weight: 400;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  margin: 14px 16px 6px; line-height: 1.3;
}
.recon-card .meta {
  font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2);
  margin: 0 16px 8px; padding-bottom: 8px; border-bottom: 1px dotted var(--line);
}
.recon-card .notes {
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
  color: var(--ink); margin: 0 16px 16px; flex: 1;
}
.recon-foot {
  display: flex; gap: 18px; align-items: baseline; justify-content: space-between;
  margin-top: 22px; padding-top: 12px; border-top: 1px dotted var(--line);
  font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em;
}
.recon-foot a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ────────── Access ────────── */
.access-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.access-cell {
  padding: 18px 20px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 130px;
}
.access-cell .k {
  font-size: 10px; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase;
}
.access-cell .v {
  font-family: var(--mono); font-size: 16px; color: var(--ink);
  letter-spacing: 0.02em; line-height: 1.25;
}
.access-cell .n {
  font-family: var(--mono); font-size: 12px; line-height: 1.45;
  color: var(--ink-2); margin-top: auto;
}

/* ────────── Contacts ────────── */
.contacts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.contact-cell {
  padding: 18px 20px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); transition: background 0.1s;
  min-height: 130px;
}
a.contact-cell { cursor: pointer; }
a.contact-cell:hover { background: var(--bg-2); }
.contact-cell .k {
  font-size: 10px; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase;
}
.contact-cell .v {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  letter-spacing: 0.02em; line-height: 1.3; word-break: break-word;
}
a.contact-cell .v {
  color: var(--accent); border-bottom: 0;
}
.contact-cell .n {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45;
  color: var(--ink-2); margin-top: auto;
}
.contacts-topics {
  margin-top: 24px; padding-top: 14px; border-top: 1px dotted var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
}
.contacts-topics .k {
  font-size: 10px; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase; margin-right: 6px;
}
.contacts-topics .t {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  padding: 4px 10px; border: 1px solid var(--line); background: var(--bg);
}

/* ────────── Responsive (added blocks) ────────── */
@media (max-width: 1100px) {
  .expo-row { grid-template-columns: 160px 1fr; }
  .expo-row .open { grid-column: 2; justify-self: start; }
  .recon-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .expo-row { grid-template-columns: 1fr; gap: 10px; }
  .recon-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .strat { max-width: 480px; }
  .funds-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .cell { border-bottom: 1px solid var(--line); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sysbar { font-size: 10.5px; }
  .header { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; padding-bottom: 18px; }
  .header .brand { gap: 16px; align-items: flex-start; }
  .header .brand-logo { width: 82px; height: 82px; }
  .header .brand .bn { font-size: 18px; line-height: 1.14; }
  .header .brand .sub { font-size: 10.5px; }
  .header .brand .id { font-size: 9.5px; letter-spacing: 0.12em; }
  .nav-list { justify-content: flex-start; text-align: left; font-size: 11px; }
  .hero { padding: 40px var(--pad) 34px; gap: 32px; }
  .hero-text h1 { font-size: clamp(34px, 12vw, 48px); margin-bottom: 20px; }
  .hero-text .lead { font-size: 16px; margin-bottom: 28px; }
  .hero-meta .row { grid-template-columns: 1fr; gap: 2px; }
  .strat { max-width: none; }
  .strat .axis { grid-template-columns: 24px 1fr 78px; min-height: 320px; }
  .strat .legend { flex-wrap: wrap; gap: 6px 12px; }
  .section { padding: 40px var(--pad); }
  .section-head { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .section-head .visa { text-align: left; }
  .section-head h1,
  .section-head h2 { font-size: 18px; line-height: 1.25; }
  .funds-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr !important; max-width: none !important; }
  .ref-block { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .council .footnote,
  .recon-foot { display: block; }
  .council .footnote a,
  .recon-foot a { display: inline-block; margin-top: 8px; }
}
@media (max-width: 600px) {
  .sysbar { position: relative; grid-template-columns: 1fr; gap: 4px; padding-top: 7px; padding-bottom: 7px; }
  .sysbar .l,
  .sysbar .r {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .sysbar .r { flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
  .marquee { grid-template-columns: 1fr; gap: 4px; font-size: 13px; }
  .marquee .visa { font-size: 10px; }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    letter-spacing: 0.08em;
  }
  .nav-list .sep { display: none; }
  .nav-list a {
    display: block;
    padding: 5px 0 6px;
    border-bottom: 1px solid var(--line);
  }
  .ref-block { padding: 18px; }
  .ref-block .actions a { padding: 12px 14px; line-height: 1.35; }
  .doc-card .meta .rows .r { grid-template-columns: 1fr; gap: 0; }
  .contacts-topics { gap: 6px 8px; }
  .contacts-topics .k { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .header .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header .brand-logo { width: 78px; height: 78px; }
  .header .brand .bn { max-width: 100%; }
}
@media (max-width: 420px) {
  .funds-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .header .brand-logo { width: 66px; height: 66px; }
  .header .brand .bn { font-size: 16px; }
  .hero { padding-top: 32px; }
  .strat .axis { grid-template-columns: 22px 1fr; min-height: 300px; }
  .strat .axis .meta { display: none; }
  .stats .cell { padding-top: 18px; padding-bottom: 18px; }
}

/* ══════════════════════════════════════════════════════════════════
   ACCESS GATE · установление временного доступа к архиву
   Не интро и не заставка — технический процесс получения доступа.
   Та же бумага, те же чернила, что и у архива. Без неона и «хакера».
   ══════════════════════════════════════════════════════════════════ */
.access-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto;
  font-family: var(--mono); color: var(--ink);
  cursor: default;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* faint paper texture, same family as the strat layers */
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(0,170,170,0.05) 27px, rgba(0,170,170,0.05) 28px);
}
.access-gate.lifted {
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
html.gate-active, body.gate-active { overflow: hidden; }

/* top masthead — mirrors the .sysbar */
.access-gate .ag-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2);
}
.access-gate .ag-bar .skip { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: 11px; }

/* centre column */
.access-gate .ag-body {
  align-self: center; justify-self: center;
  width: min(680px, calc(100% - 2 * var(--pad)));
  padding: 32px 0;
}
.access-gate .ag-head { margin-bottom: 26px; }
.access-gate .ag-head .k { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 10px; }
.access-gate .ag-head h2 {
  margin: 0; font-weight: 400; font-family: var(--mono);
  font-size: clamp(22px, 3vw, 30px); line-height: 1.05;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.access-gate .ag-head .node {
  margin-top: 12px; font-size: 11px; letter-spacing: 0.10em; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 18px;
}
.access-gate .ag-head .node b { color: var(--muted); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }

/* log rows */
.access-gate .ag-log { border-top: 1px solid var(--ink); }
.access-gate .ag-row {
  display: grid; grid-template-columns: 30px 1fr auto;
  gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
  font-size: 12.5px; letter-spacing: 0.02em;
  animation: ag-in 0.2s ease;
}
@keyframes ag-in { from { opacity: 0; transform: translateY(2px); } }
.access-gate .ag-row .seq { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.access-gate .ag-row .lbl { color: var(--ink); }
.access-gate .ag-row .lbl .sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; letter-spacing: 0.02em; }
.access-gate .ag-row .st {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap; color: var(--muted);
}
.access-gate .ag-row .st.ok   { color: var(--green); }
.access-gate .ag-row .st.fail { color: var(--accent); }
.access-gate .ag-row .st.done { color: var(--ink); }
.access-gate .ag-row.is-fail { background: rgba(168,58,31,0.05); }
.access-gate .ag-row .st .wk { display: inline-block; animation: ag-blink 0.9s steps(2) infinite; }
@keyframes ag-blink { 50% { opacity: 0.25; } }

/* progress meter — segmented ticks, archival not flashy */
.access-gate .ag-meter {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.access-gate .ag-ticks { display: flex; gap: 3px; height: 14px; }
.access-gate .ag-ticks i {
  flex: 1; background: var(--bg-3); border: 1px solid var(--line);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.access-gate .ag-ticks i.on { background: var(--ink); border-color: var(--ink); }
.access-gate .ag-ticks i.warn { background: var(--accent); border-color: var(--accent); }
.access-gate .ag-pct {
  font-size: 13px; letter-spacing: 0.10em; color: var(--ink);
  min-width: 4ch; text-align: right;
}

/* bottom strip */
.access-gate .ag-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 10px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted);
  text-transform: uppercase;
}
.access-gate .ag-foot .cursor { color: var(--ink); }
.access-gate .ag-foot .cursor::after { content: '▮'; animation: ag-blink 1s steps(2) infinite; margin-left: 2px; }

@media (max-width: 760px) {
  .access-gate { grid-template-rows: auto auto auto; }
  .access-gate .ag-bar { align-items: flex-start; flex-wrap: wrap; gap: 4px 16px; font-size: 10.5px; }
  .access-gate .ag-body { align-self: start; padding: 24px 0; width: min(680px, calc(100% - 2 * var(--pad))); }
  .access-gate .ag-head { margin-bottom: 20px; }
  .access-gate .ag-head h2 { font-size: clamp(20px, 7vw, 26px); }
  .access-gate .ag-row { grid-template-columns: 24px 1fr; }
  .access-gate .ag-row { font-size: 11.5px; gap: 8px; padding: 8px 0; }
  .access-gate .ag-row .st { grid-column: 2; }
  .access-gate .ag-meter { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .access-gate .ag-pct { text-align: left; }
  .access-gate .ag-foot { font-size: 9.5px; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
}

/* ══════════════════════════════════════════════════════════════════
   Мобильный полиш · тач-эргономика (добавочный блок)
   Структура уже адаптивна; здесь — удобство касания и поведение прокрутки.
   ══════════════════════════════════════════════════════════════════ */
/* не давать мобильным браузерам самовольно раздувать шрифт в ландшафте */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 600px) {
  /* навигация — комфортные тач-цели (≈42px вместо ~28px) */
  .nav-list a { min-height: 42px; display: flex; align-items: center; }
  /* широкие ASCII-схемы (совет / оргструктура) — намеренная техническая
     диаграмма; даём плавную инерционную прокрутку по горизонтали */
  .council pre {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
  }
}

/* плавная инерционная прокрутка горизонтальных блоков на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
  .council pre { -webkit-overflow-scrolling: touch; }
}

/* ═════════════════ DOS-КУРСОР ДЛЯ ВСЕГО САЙТА ═════════════════════
   Пиксельная стрелка вместо системного курсора. Блок в конце файла,
   чтобы перекрыть ранее заданные cursor:pointer/crosshair.            */
html, body, * { cursor: var(--dos-cur), auto; }
a, a *, button, button *, summary, label,
.nav-list a, .mapa-langbtn, [role="button"],
.fund-card, .fund-card *, .doc-card, .doc-card *,
.recon-card .img, [data-gallery-open], [data-gallery-open] *,
.strat .axis .core .layer, .frag-band,
.arrow, .open, a.contact-cell { cursor: var(--dos-cur), pointer; }
input, textarea, select, [contenteditable="true"] { cursor: text; }
@media (hover: none) { html, body, * { cursor: auto; } }

/* ═════════════════ CRT · ПИКСЕЛЬНАЯ СЕТКА НА ВЕСЬ САЙТ ════════════════
   Скан-линии + вертикальная сетка пикселей (как лоудер/терминал).
   z-index ниже загрузчика (он перекрывает), поверх контента, не кликается. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(18,26,20,.17), rgba(18,26,20,.17) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(18,26,20,.08), rgba(18,26,20,.08) 1px, transparent 1px, transparent 3px);
  background-size: 100% 3px, 3px 100%;
  animation: crt-flick 4.5s steps(1) infinite;
  mix-blend-mode: multiply;
}
@keyframes crt-flick { 0%,100% { opacity: .92 } 48% { opacity: 1 } 50% { opacity: .82 } 52% { opacity: 1 } }
@media (hover: none) { body::after { background-image:
  repeating-linear-gradient(0deg, rgba(18,26,20,.14), rgba(18,26,20,.14) 1px, transparent 1px, transparent 4px); } }
