/* =============================================================
   ONE1GAME — TERMINAL BUILD v6
   DNA: игровой дата-терминал × CRT-сигнал × редакционная лента
   Принципы: моношрифт, одна фосфорная тема, процедурная обработка
   изображений, лента вместо плиток, ASCII-разметка секций.
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg: #04060a;
  --bg-2: #070a10;
  --panel: #090d13;
  --panel-2: #0c1118;

  --line: rgba(125, 255, 155, 0.16);      /* фосфорная сетка */
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(125, 255, 155, 0.34);

  --ink: #d7dee6;
  --ink-dim: #8f99a6;                      /* 7.0:1 на фоне — AA для мелкого текста */
  --ink-faint: #75808d;                    /* 5.1:1 на фоне (было 2.8:1 — нечитаемо) */

  --acid: #7dff9b;                        /* основной акцент — фосфор */
  --acid-dim: rgba(125, 255, 155, 0.55);
  --acid-soft: rgba(125, 255, 155, 0.09);
  --warn: #ff5f3d;                        /* второй акцент — алярм */
  --amber: #ffc061;

  /* Легаси-алиасы: страницы статей используют var(--cyan) и т.п. */
  --cyan: var(--acid);
  --magenta: var(--warn);
  --gold: var(--amber);
  --lime: var(--acid);
  --purple: #9aa7ff;
  --coral: var(--warn);
  --bg-secondary: #090d13;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;

  --text: var(--ink);
  --text-dim: var(--ink-dim);
  --text-faint: var(--ink-faint);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: var(--line-soft);
  --border-active: var(--line-hi);
  --glow-cyan: 0 0 26px rgba(125, 255, 155, 0.18);
  --glow-magenta: 0 0 26px rgba(255, 95, 61, 0.18);
  --glow-gold: 0 0 22px rgba(255, 192, 97, 0.16);

  --r: 12px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.30);

  --nav-h: 52px;
  --dock-h: 54px;
  --pad: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --sans: var(--mono);
}

/* =============================================================
   2. BASE + CRT-СИГНАЛ
   ============================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--mono);
  font-size: 0.94rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  font-variant-ligatures: none;
}

body.has-dock { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 12px); }

/* Фон: холодная пустота + фосфорная подсветка сверху */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(125, 255, 155, 0.07), transparent 60%),
    radial-gradient(90% 50% at 10% 100%, rgba(255, 95, 61, 0.045), transparent 65%);
}

/* Мягкая виньетка вместо CRT-сканлайнов */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 58%, rgba(0, 0, 0, 0.32) 100%);
}

img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acid); color: #04060a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05080c; }
::-webkit-scrollbar-thumb { background: rgba(125, 255, 155, 0.22); border: 2px solid #05080c; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(125, 255, 155, 0.4); }

.skip-link {
  position: absolute; top: -100px; left: 10px; z-index: 9999;
  padding: 10px 14px; background: var(--acid); color: #04060a;
  font-weight: 700; font-size: 0.8rem; text-decoration: none;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   3. LAYOUT
   ============================================================= */
.container, .wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 0 var(--pad);
}
.content-row { display: block; margin-bottom: 30px; }
.content-main { min-width: 0; }
.content-sidebar { display: none; }

/* =============================================================
   4. NAV — терминальная строка
   ============================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(4, 6, 10, 0.94);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .site-nav {
    background: rgba(4, 6, 10, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-logo::before { content: '>'; color: var(--acid); font-weight: 700; }
.nav-logo span { color: var(--acid); }
.nav-logo:hover { color: var(--acid); }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.nav-links { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.icon-btn {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-dim);
  cursor: pointer; font-size: 0.9rem;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--acid); background: var(--acid-soft); border-color: var(--line); }
.icon-btn.is-on { color: var(--acid); border-color: var(--line-hi); background: var(--acid-soft); }
.icon-btn.playing { color: var(--acid); border-color: var(--line-hi); animation: caret 1s steps(1) infinite; }
.icon-btn[hidden] { display: none; }
.icon-radio { display: none; }

/* =============================================================
   5. DOCK — нижняя консоль (мобайл)
   ============================================================= */
.mobile-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: stretch;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(4, 6, 10, 0.97);
  border-top: 1px solid var(--line);
}
.dock-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; cursor: pointer; position: relative;
  color: var(--ink-faint); text-decoration: none;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  -webkit-user-select: none; user-select: none;
}
.dock-item i { font-size: 0.95rem; line-height: 1; }
.dock-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item.active { color: var(--acid); }
.dock-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 999px;
  background: var(--acid);
}
.dock-item.playing { color: var(--acid); }
.dock-item[hidden] { display: none; }
.dock-hidden { display: none !important; }

/* =============================================================
   6. SHEET + ПОИСК
   ============================================================= */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(2, 4, 6, 0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease-out);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 401;
  transform: translateY(102%);
  transition: transform 0.28s var(--ease);
  background: var(--panel);
  border-top: 1px solid var(--line-hi);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow);
  padding: 6px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 34px; height: 4px; border-radius: 999px; background: var(--line); margin: 6px auto 14px; }
.sheet-title {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin: 6px 2px 8px;
}
.sheet-links { display: grid; gap: 0; margin-bottom: 16px; border-top: 1px solid var(--line-soft); }
.sheet-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 8px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); text-decoration: none; font-size: 0.86rem;
}
.sheet-link i { width: 18px; text-align: center; color: var(--acid); font-size: 0.85rem; }
.sheet-link:active { background: var(--acid-soft); }
.sheet-link.active { color: var(--acid); }

.search-modal {
  position: fixed; inset: 0; z-index: 500;
  display: none; padding: 10px;
  background: rgba(4, 6, 10, 0.9);
}
.search-modal.open { display: block; animation: crt-in 0.16s var(--ease-out); }
@keyframes crt-in { 0% { opacity: 0; transform: scaleY(0.98); } 100% { opacity: 1; transform: none; } }
.search-panel { max-width: 640px; margin: 8vh auto 0; }
.search-field { position: relative; display: flex; align-items: center; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.search-field > i { position: absolute; left: 12px; color: var(--acid); font-size: 0.85rem; }
.search-field input {
  width: 100%; padding: 14px 46px 14px 36px;
  background: transparent; border: 0; color: var(--acid);
  font-family: var(--mono); font-size: 0.92rem; outline: none;
}
.search-field input::placeholder { color: var(--ink-faint); }
.search-close {
  position: absolute; right: 4px; width: 36px; height: 36px;
  border: 0; background: transparent; color: var(--ink-dim); cursor: pointer;
}
.search-close:hover { color: var(--acid); }
.search-results { margin-top: 10px; display: grid; gap: 0; max-height: 62vh; overflow-y: auto; border-top: 1px solid var(--line-soft); }
.search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
}
.search-result:hover { background: var(--acid-soft); }
.search-result img { width: 54px; height: 34px; object-fit: cover; flex: 0 0 54px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.search-result-txt { min-width: 0; }
.search-result-txt strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-txt span { font-size: 0.64rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.search-empty { padding: 22px 6px; color: var(--ink-faint); font-size: 0.78rem; }
.search-hint { margin-top: 10px; font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.06em; }

/* =============================================================
   7. ПРОЦЕДУРНАЯ ОБРАБОТКА ИЗОБРАЖЕНИЙ (фирменный приём)
   ============================================================= */
.fx {
  position: relative; overflow: hidden;
  background: #06080c;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.fx img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.03) brightness(0.95) contrast(1.03);
  transition: filter 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.fx::after {                        /* мягкая вуаль под подпись */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(4, 6, 10, 0.38) 100%);
}
.fx-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 4;
  padding: 2px 8px; background: rgba(4, 6, 10, 0.7); border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--acid);
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.entry:not(.entry--lead):hover .fx img, .article-card:hover .fx img { filter: saturate(1.08) brightness(1.03); transform: scale(1.05); }

/* =============================================================
   8. HERO — загрузочный лог + заголовок
   ============================================================= */
.hero {
  position: relative; overflow: visible;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(125, 255, 155, 0.04), transparent 60%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0.5; transition: opacity 1.2s var(--ease-out); }
.hero-canvas.is-behind { opacity: 0; }
.hero-space { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease-out); }
.hero-space.is-on { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.38) 0%, rgba(4, 6, 10, 0.20) 45%, rgba(4, 6, 10, 0.30) 72%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: auto; display: grid; grid-template-columns: 1fr; gap: 22px; }
.hero > h1, .hero > h2, .hero > p, .hero-copy { position: relative; z-index: 3; }
.hero > .hero-inner { padding-top: 0; }
.hero-copy { min-width: 0; }

/* Курс биткоина в шапке */
.btc-ticker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding: 3px 10px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  background: rgba(9, 13, 19, 0.72);
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.6;
  color: var(--ink-dim);
}
.btc-ticker[hidden] { display: none; }
.btc-sym { color: var(--amber); font-weight: 700; }
.btc-val { color: var(--ink); font-weight: 600; }
.btc-chg { font-weight: 700; }
.btc-chg.is-up { color: var(--acid); }
.btc-chg.is-down { color: var(--warn); }

.hero-side { position: relative; z-index: 290; min-width: 0; }
.hero-side #today-in-history { margin: 0; }
.hero-side .gh-card {
  background: rgba(9, 13, 19, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Тень гарантирует читаемость поверх анимированной 3D-сцены */
.hero h1, .hero-sub, .hero-stats, .hero-hint { text-shadow: 0 1px 12px rgba(4, 6, 10, 0.92); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 8px; margin-bottom: 14px;
  border: 1px solid var(--line); color: var(--acid);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-dot { width: 5px; height: 5px; background: var(--acid); animation: caret 1.4s steps(1) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 6.4vw, 2.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 10px; text-transform: uppercase;
  max-width: 24ch;
}
.hero h1 .highlight { color: var(--acid); }
.hero-sub {
  font-size: 0.8rem; color: var(--ink-dim); max-width: 62ch;
  margin: 0 0 18px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 16px; padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-stats b { color: var(--acid); font-weight: 700; }

.hero-hint {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; font-size: 0.62rem; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.hero-hint i { color: var(--acid); }

.hero--compact { padding: 22px 0 24px; }

/* =============================================================
   9. КНОПКИ — терминальные
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 16px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-family: var(--mono); font-size: 0.74rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.16s, background 0.16s, border-color 0.16s, transform 0.16s;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { color: var(--acid); border-color: var(--line-hi); background: var(--acid-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acid); border-color: var(--acid); color: #04060a; font-weight: 700; }
.btn-primary:hover { background: #a8ffbc; color: #04060a; }
.btn-outline { border-color: var(--line-hi); color: var(--acid); }
.btn-ghost { min-height: 32px; padding: 6px 12px; font-size: 0.66rem; color: var(--ink-dim); border-color: var(--line-soft); }

/* =============================================================
   10. РЕЛЬС КАТЕГОРИЙ — моно-чипы
   ============================================================= */
.cat-rail {
  position: sticky; top: var(--nav-h); z-index: 250;
  margin: 0 0 14px;
  background: rgba(4, 6, 10, 0.97);
  border-bottom: 1px solid var(--line);
}
.categories-row {
  display: flex; gap: 6px; padding: 8px var(--pad);
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1180px; margin: 0 auto;
}
.categories-row::-webkit-scrollbar { display: none; }
.categories-row .cat-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-dim);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.categories-row .cat-pill:hover { color: var(--acid); background: var(--acid-soft); border-color: var(--line-hi); }
.categories-row .cat-pill i { display: none; }
.categories-row .cat-count {
  min-width: 18px; padding: 1px 6px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  font-size: 0.6rem; color: var(--ink-faint); text-align: center;
}

/* Цвета категорий: только текстовый акцент, без «радуги» */
.cat-tech, .cat-guides, .cat-consoles, .cat-analytics, .cat-trends,
.cat-dev, .cat-opinion, .cat-movies, .cat-play, .cat-rpg, .cat-reviews { color: var(--acid); }
.cat-consoles, .cat-opinion { color: var(--amber); }
.cat-dev { color: var(--warn); }
.cat-tech .cat-count, .cat-guides .cat-count, .cat-consoles .cat-count,
.cat-analytics .cat-count, .cat-trends .cat-count, .cat-dev .cat-count,
.cat-opinion .cat-count, .cat-movies .cat-count, .cat-play .cat-count { color: inherit; border-color: currentColor; }

/* Рельс «Во что поиграть» — отдельная система игровых обзоров */
.play-rail { margin: 18px 0 4px; }
.play-rail[hidden] { display: none; }
.play-list {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 12px 0 2px;
}
.play-list::-webkit-scrollbar { display: none; }
.play-card {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 0;
  min-width: 190px; max-width: 230px;
  padding: 0 0 9px;
  overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.play-card:hover { border-color: var(--line-hi); background: var(--acid-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.play-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-2); border: 0;
}
.play-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-card:hover .play-thumb img { filter: grayscale(0) contrast(1.05) brightness(1) saturate(1.1); }
.play-name {
  padding: 8px 12px 0;
  font-size: 0.78rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.15s;
}
.play-card:hover .play-name { color: var(--acid); }
.play-meta {
  padding: 2px 12px 0;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.play-card--more { justify-content: center; border-color: var(--line-hi); }
.play-card--more .play-name { color: var(--acid); }

/* Призыв раздела мини-игр /go/ (под рельсом «Во что поиграть») */
.go-cta {
  display: block; margin: 16px 0 0; padding: 14px 16px;
  background: var(--panel); border: 1px solid rgba(125, 255, 155, 0.3); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.go-cta:hover { border-color: var(--line-hi); background: var(--acid-soft); box-shadow: var(--shadow); }
.go-cta-title { display: block; font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.go-cta-desc { display: block; font-size: 0.78rem; color: var(--ink-dim); line-height: 1.5; margin-bottom: 10px; }
.go-cta-btn {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--acid); color: #04140a;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* =============================================================
   11. ЗАГОЛОВКИ СЕКЦИЙ — ASCII-разметка
   ============================================================= */
.section-header, .sec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 20px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.section-title, .sec-title {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
}
.section-badge, .sec-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: 2px 9px;
}

/* =============================================================
   12. ЛЕНТА ЗАПИСЕЙ (главный приём вместо плиток)
   ============================================================= */
.feed { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }

.entry {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  position: relative;
}
.entry::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--acid); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.entry:hover::after { transform: scaleX(1); }
.entry-no {
  flex: 0 0 28px; padding-top: 1px; order: 0;
  font-size: 0.64rem; color: var(--ink-faint); letter-spacing: 0.04em;
}
.entry-main { flex: 1; min-width: 0; order: 1; }
.entry-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-bottom: 4px;
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.entry-cat { color: var(--acid); font-weight: 700; }
.entry-meta { color: var(--ink-faint); }
.entry-title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 5px;
  font-size: 0.94rem; font-weight: 700; line-height: 1.32; color: var(--ink);
  transition: color 0.15s;
}
.entry:hover .entry-title { color: var(--acid); }
.entry-excerpt {
  font-size: 0.76rem; color: var(--ink-dim); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-thumb { flex: 0 0 92px; width: 92px; height: 58px; order: 2; }

/* Ведущая запись — «В фокусе» */
.entry--lead {
  display: block; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.entry--lead:hover { border-color: var(--line-hi); box-shadow: var(--shadow); }
.entry--lead::after { display: none; }
.entry--lead .entry-no { display: none; }
.entry--lead .entry-thumb {
  width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0;
  border: 0; border-radius: 0;
}
.entry--lead .entry-main { padding: 14px 16px 16px; }
.entry--lead .entry-title {
  font-size: clamp(1.15rem, 5vw, 1.6rem); line-height: 1.2;
  letter-spacing: -0.02em; -webkit-line-clamp: 4;
}
.entry--lead .entry-excerpt { -webkit-line-clamp: 3; font-size: 0.8rem; }
.entry-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 6px 12px; border: 1px solid var(--line-hi); border-radius: var(--radius-pill);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--acid);
  transition: background 0.15s, border-color 0.15s;
}
.entry--lead:hover .entry-open { background: var(--acid-soft); }

/* =============================================================
   13. РЕКЛАМА — как спонсорский блок терминала
   ============================================================= */
.ad-slot { margin: 16px 0; }
.ad-label {
  display: block; margin-bottom: 5px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.ad-banner-wrap { position: relative; margin: 0; }
.ad-banner-wrap::before {
  content: 'sponsored';
  display: block; margin-bottom: 5px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.ad-slot .ad-banner-wrap::before { display: none; }
.ad-banner-wrap a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ad-banner-wrap a:hover { border-color: var(--line-hi); box-shadow: var(--shadow); }
.ad-banner-wrap img { width: 100%; height: auto; display: block; filter: brightness(0.96) saturate(1.02); transition: filter 0.3s; }
.ad-banner-wrap a:hover img { filter: brightness(1.03); }

.ad-vps-wrap { margin: 0 0 10px; }
.feed .ad-vps-wrap, .articles-grid .ad-vps-wrap { display: block; margin: 0; }
.ad-vps-card {
  display: block; padding: 14px; text-decoration: none; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ad-vps-card::after {
  content: 'sponsored'; position: absolute; top: 10px; right: 12px;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}
.ad-vps-card:hover { border-color: var(--line-hi); background: var(--acid-soft); box-shadow: var(--shadow); }
.ad-vps-header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ad-vps-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 192, 97, 0.35); border-radius: var(--radius-pill); padding: 2px 8px;
}
.ad-vps-title { font-size: 0.92rem; font-weight: 700; color: #fff; }
.ad-vps-desc { font-size: 0.76rem; color: var(--ink-dim); line-height: 1.55; margin-bottom: 8px; }
.ad-vps-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ad-vps-tag { font-size: 0.62rem; color: var(--ink-faint); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: 2px 8px; }
.ad-vps-cta {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--amber); color: #1a1200;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* =============================================================
   14. ЗАКРЕПЛЁННЫЙ ПРОЕКТ
   ============================================================= */
.featured-banner { margin: 16px 0 0; }
.featured-link { display: block; text-decoration: none; color: inherit; }
.featured-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.featured-card:hover { border-color: var(--line-hi); box-shadow: var(--shadow); }
.featured-image { aspect-ratio: 16 / 9; }
.featured-info { padding: 12px 14px 14px; }
.featured-badge {
  display: inline-block; margin-bottom: 8px; padding: 2px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--amber);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.featured-title { font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: #fff; margin-bottom: 6px; }
.featured-desc { font-size: 0.76rem; color: var(--ink-dim); line-height: 1.55; margin-bottom: 10px; }
.featured-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--acid); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* =============================================================
   15. ИСТОРИЯ ДНЯ — карточка события
   ============================================================= */
#today-in-history { margin: 0 0 18px; }
.gh-card {
  position: relative; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: visible;
}
.gh-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--acid), rgba(125, 255, 155, 0));
}
.gh-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 9px;
}
.gh-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acid); }
.gh-date { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.gh-body { display: flex; gap: 14px; align-items: center; }
.gh-year-block { flex: 0 0 auto; min-width: 54px; display: flex; flex-direction: column; }
.gh-year { font-size: 1.5rem; font-weight: 700; line-height: 1; color: #fff; }
.gh-ago { margin-top: 3px; font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.gh-main { flex: 1; min-width: 0; }
.gh-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.gh-desc { font-size: 0.75rem; color: var(--ink-dim); line-height: 1.5; }
/* Раскрывающиеся подробности */
.gh-details { margin-top: 10px; }
.gh-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border: 1px solid var(--line-hi); border-radius: var(--radius-pill);
  background: transparent; color: var(--acid); cursor: pointer;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.gh-toggle:hover { background: var(--acid-soft); }
.gh-toggle-caret {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.gh-toggle[aria-expanded="true"] .gh-toggle-caret { margin-top: 3px; transform: rotate(-135deg); }
.gh-extras {
  position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); z-index: 10;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.gh-extras.is-open { opacity: 1; transform: none; pointer-events: auto; }
.gh-thumb {
  flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-2);
}
.gh-extract { font-size: 0.72rem; color: var(--ink-dim); line-height: 1.55; margin: 0; }
.gh-thumb[hidden] { display: none; }
@media (max-width: 560px) {
  .gh-body { flex-direction: column; gap: 10px; align-items: flex-start; }
  .gh-year-block { flex-direction: row; align-items: baseline; gap: 10px; }
  .gh-ago { margin-top: 0; }
}

/* =============================================================
   16. СОЦИАЛЬНОЕ / РАДИО
   ============================================================= */
.social-section { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 620px; margin: 18px auto 24px; border-top: 1px solid var(--line-soft); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-dim); text-decoration: none; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.social-btn:hover { color: var(--acid); background: var(--acid-soft); }

.radio-section { display: flex; justify-content: center; align-items: center; margin: 0 auto 16px; }
.radio-toggle {
  width: 46px; height: 46px; border-radius: var(--radius-pill); border: 1px solid var(--line-hi); cursor: pointer;
  background: transparent; color: var(--acid); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.radio-toggle:hover { background: var(--acid-soft); }
.radio-toggle.playing { background: var(--acid); color: #04060a; animation: blink 1.2s steps(1) infinite; }
@keyframes radio-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* =============================================================
   17. СКЕЛЕТОН
   ============================================================= */
.skeleton-card {
  height: 74px; margin: 0; padding: 0;
  background: var(--panel); border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.skeleton-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(125, 255, 155, 0.07), transparent);
  animation: skeleton-shimmer 1.6s linear infinite;
}
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes skeleton-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =============================================================
   18. АРХИВ
   ============================================================= */
.search-bar { position: relative; margin-bottom: 12px; }
.search-bar input {
  width: 100%; min-height: 44px; padding: 11px 14px 11px 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--acid); font-family: var(--mono);
  font-size: 0.84rem; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar input:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px var(--acid-soft); }
.search-bar input::placeholder { color: var(--ink-faint); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--acid); font-size: 0.8rem; pointer-events: none; }

.category-filters { display: flex; gap: 6px; margin-bottom: 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filters .cat-pill {
  flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-dim); cursor: pointer;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.category-filters .cat-pill:hover { color: var(--acid); border-color: var(--line-hi); }
.category-filters .cat-pill.active { color: #04060a; background: var(--acid); border-color: var(--acid); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 30px; }
.page-btn {
  min-width: 36px; height: 34px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink-dim);
  font-family: var(--mono); font-size: 0.72rem; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.page-btn:hover { color: var(--acid); border-color: var(--line-hi); }
.page-btn.active { background: var(--acid); border-color: var(--acid); color: #04060a; font-weight: 700; }

/* =============================================================
   19. СТРАНИЦА СТАТЬИ
   ============================================================= */
.article-page { max-width: 780px; margin: 0 auto; padding: 18px 0 30px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-dim); text-decoration: none; font-size: 0.72rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.article-back:hover { color: var(--acid); }
.article-header { text-align: left; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-header .article-category {
  display: inline-block; padding: 2px 9px; margin-bottom: 12px;
  border: 1px solid var(--line-hi); border-radius: var(--radius-pill); color: var(--acid); background: transparent;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.article-header h1 {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: #fff; margin-bottom: 10px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.article-hero { margin: 0 0 20px; }

.article-body { font-size: 0.92rem; line-height: 1.85; color: var(--ink); max-width: 72ch; margin: 0 auto; }
.article-body > p:first-of-type { color: #fff; }
.article-body h2 {
  font-size: 1.06rem; font-weight: 700; color: #fff;
  margin: 32px 0 12px; padding-left: 0; text-transform: uppercase; letter-spacing: 0.02em;
  border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.article-body h3 { font-size: 0.96rem; font-weight: 700; color: var(--acid); margin: 22px 0 8px; }
.article-body h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin: 18px 0 6px; }
.article-body p { margin-bottom: 16px; }
.article-body strong { color: #fff; font-weight: 700; }
.article-body blockquote {
  margin: 20px 0; padding: 14px 16px;
  background: var(--panel); border-left: 2px solid var(--acid); border-radius: var(--radius-sm);
  color: var(--ink-dim);
}
.article-body ul, .article-body ol { margin: 12px 0 16px 20px; }
.article-body li { margin-bottom: 7px; }
.article-body li::marker { color: var(--acid); }
.article-body a { color: var(--acid); text-decoration: none; border-bottom: 1px solid var(--line-hi); }
.article-body a:hover { background: var(--acid-soft); }
.article-body img { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-body table.article-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.78rem; }
.article-body table.article-table thead th {
  background: var(--panel); color: var(--acid); text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.article-body table.article-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.article-body table.article-table tbody tr:hover td { background: var(--acid-soft); }

.share-section { margin: 26px 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.share-section h4 { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acid); margin-bottom: 5px; }
.share-hint { font-size: 0.68rem; color: var(--ink-faint); margin-bottom: 10px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn { padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-dim); text-decoration: none; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.share-btn:hover { color: var(--acid); border-color: var(--line-hi); }

.related-section { margin: 22px 0 28px; }
.related-section h4 { font-size: 0.72rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-soft); }
.related-card { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.related-card:hover strong { color: var(--acid); }
.related-card strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.related-card span { display: block; margin-top: 4px; font-size: 0.62rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.related-img { display: none; }
.related-info .related-cat { display: inline-block; margin-bottom: 5px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.related-info h5 { font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* =============================================================
   20. СТАТИЧЕСКИЕ СТРАНИЦЫ / 404 / ПУСТЫЕ СОСТОЯНИЯ
   ============================================================= */
.page-content { max-width: 760px; margin: 0 auto; padding: 20px 0 34px; }
.page-content h1 { font-size: clamp(1.2rem, 5vw, 1.7rem); font-weight: 700; color: #fff; margin-bottom: 10px; text-transform: uppercase; }
.page-content h2 { font-size: 0.98rem; color: var(--acid); margin: 26px 0 8px; }
.page-content h3 { font-size: 0.9rem; color: #fff; margin: 18px 0 6px; }
.page-content p { color: var(--ink-dim); margin-bottom: 12px; line-height: 1.75; }
.page-content ul, .page-content ol { margin: 10px 0 14px 20px; color: var(--ink-dim); }
.page-content li::marker { color: var(--acid); }
.page-content a { color: var(--acid); }
.page-content .last-updated { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 24px; }

.error-page { padding: 50px 8px 70px; }
.error-code { font-size: clamp(3.4rem, 20vw, 8rem); font-weight: 700; line-height: 1; color: var(--acid); letter-spacing: -0.04em; }
.error-page h2 { font-size: 1rem; color: #fff; margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.error-page p { color: var(--ink-dim); margin-bottom: 20px; font-size: 0.8rem; }
.empty-state { padding: 36px 10px; color: var(--ink-faint); }
.empty-state h3 { color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 4px; }
.empty-icon { display: none; }

/* =============================================================
   21. ПОДПИСКА / КОММЕНТАРИИ / COOKIES
   ============================================================= */
.newsletter-box { margin: 22px 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); border-left: 2px solid var(--acid); box-shadow: var(--shadow-sm); }
.newsletter-box h4 { margin: 0 0 6px; font-size: 0.82rem; color: #fff; }
.newsletter-box p { margin: 0 0 10px; font-size: 0.74rem; color: var(--ink-dim); }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  flex: 1; min-width: 0; min-height: 40px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--acid); font-family: var(--mono); font-size: 0.8rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--line-hi); }
.newsletter-form input.error { border-color: var(--warn); }
.newsletter-form button { min-height: 40px; padding: 10px 16px; border: 1px solid var(--acid); border-radius: var(--radius-sm); background: var(--acid); color: #04060a; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.newsletter-form button:hover { background: #a8ffbc; }
.newsletter-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.newsletter-msg { margin-top: 8px; padding: 8px 11px; font-size: 0.72rem; display: none; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.newsletter-msg.success { display: block; color: var(--acid); border-color: var(--line-hi); }
.newsletter-msg.error { display: block; color: var(--warn); border-color: rgba(255, 95, 61, 0.4); }

.comments-section { margin: 28px auto 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.comments-section h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 0.78rem; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; }
.comments-section h4 i { color: var(--acid); }
.comments-container { max-width: 720px; margin: 0 auto; overflow: hidden; }

.cookie-banner {
  position: fixed; left: 8px; right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 5000; display: none;
  background: var(--panel); border: 1px solid var(--line-hi); border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
body.has-dock .cookie-banner { bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 8px); }
.cookie-banner.show { display: block; animation: cookie-slide-in 0.2s ease-out; }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; }
.cookie-banner p { margin: 0; color: var(--ink-dim); font-size: 0.72rem; line-height: 1.5; }
.cookie-banner a { color: var(--acid); }
.cookie-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-btn { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.cookie-accept { background: var(--acid); border-color: var(--acid); color: #04060a; font-weight: 700; }
@keyframes cookie-slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================
   22. ФУТЕР — системная строка
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px; margin-top: 24px;
}
.footer-content {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.66rem; color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.footer-brand { color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-brand span { color: var(--acid); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-links a { color: var(--ink-dim); text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: var(--acid); }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-dim); text-decoration: none; }
.footer-socials a:hover { color: var(--acid); border-color: var(--line-hi); }

/* =============================================================
   23. ДВИЖЕНИЕ
   ============================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js-anim .reveal.in { animation: fadeInUp 0.42s var(--ease-out) both; }

/* =============================================================
   24. ДЕСКТОП
   ============================================================= */
@media (min-width: 600px) {
  :root { --pad: 18px; }
  .social-section { grid-template-columns: repeat(3, 1fr); }
  .newsletter-form { flex-direction: row; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .entry-thumb { flex: 0 0 132px; width: 132px; height: 82px; }
}

@media (min-width: 900px) {
  :root { --pad: 26px; --nav-h: 56px; }
  body { font-size: 0.96rem; }

  .nav-links { display: flex; align-items: center; gap: 0; margin-left: 16px; }
  .nav-link {
    padding: 8px 12px; color: var(--ink-dim); text-decoration: none;
    font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    white-space: nowrap; border-radius: var(--radius-pill);
    transition: color 0.15s, background 0.15s;
  }
  .nav-link:hover { color: var(--acid); background: var(--acid-soft); }
  .nav-link.active { color: var(--acid); background: var(--acid-soft); }
  .nav-social { display: none; }
  .icon-radio { display: inline-flex; }

  .mobile-dock { display: none; }
  body.has-dock { padding-bottom: 0; }

  .hero { padding: 34px 0 30px; }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 32px; align-items: center; }
  .hero-copy { max-width: 640px; }
  .hero-side { width: 100%; max-width: 480px; margin-left: auto; }
  .hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 24ch; }
  .hero-sub { font-size: 0.85rem; max-width: 52ch; }

  /* Лента: номер | картинка | текст */
  .entry { display: grid; grid-template-columns: 30px 168px 1fr; gap: 14px; align-items: start; padding: 13px 0; }
  .entry-no { flex: none; padding-top: 2px; font-size: 0.66rem; order: 0; }
  .entry-thumb { flex: none; width: 168px; height: 95px; order: 1; }
  .entry-main { order: 2; }
  .entry-title { font-size: 0.98rem; -webkit-line-clamp: 2; }
  .entry-excerpt { font-size: 0.79rem; }
  .entry--lead {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .entry--lead .entry-thumb { aspect-ratio: auto; min-height: 300px; }
  .entry--lead .entry-thumb img { height: 100%; }
  .entry--lead .entry-main {
    display: flex; flex-direction: column; justify-content: center;
    padding: 26px 28px;
  }
  .entry--lead .entry-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

  .section-header, .sec { margin-top: 26px; }
  .section-title, .sec-title { font-size: 0.84rem; }

  .featured-card { flex-direction: row; align-items: stretch; }
  .featured-image { flex: 0 0 38%; aspect-ratio: auto; min-height: 180px; }
  .featured-image img { height: 100%; object-fit: cover; }
  .featured-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; }
  .featured-title { font-size: 1.1rem; }

  .article-page { padding: 26px 0 36px; }
  .article-body { font-size: 0.98rem; }
  .gh-card { padding: 16px; }
  .gh-year { font-size: 2rem; }
  .footer-content { flex-direction: row; align-items: center; justify-content: space-between; }
  .ad-vps-card { padding: 18px; }
}

/* Ссылки в шапке не помещаются в узком десктопе:
   до 1060px навигацию берут на себя док и шторка */
@media (min-width: 900px) and (max-width: 1059px) {
  .nav-links { display: none; }
}

@media (min-width: 1100px) {
  .entry:hover { background: linear-gradient(90deg, var(--acid-soft), transparent 60%); }
}

/* =============================================================
   25. УТИЛИТЫ + ЛЕГАСИ-ФОЛБЭК
   ============================================================= */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }

/* Фолбэк для старых страниц, где ещё могут оставаться плитки */
.articles-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.article-card {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
}
.article-card h3 { font-size: 0.94rem; font-weight: 700; color: var(--ink); line-height: 1.32; margin: 5px 0; }
.article-card:hover h3 { color: var(--acid); }
.card-image { flex: 0 0 92px; width: 92px; height: 58px; margin: 0 0 0 10px; float: right; }
.card-category { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acid); }
.card-excerpt { font-size: 0.76rem; color: var(--ink-dim); line-height: 1.55; }
.card-meta { margin-top: 6px; font-size: 0.62rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; display: flex; gap: 10px; }

/* =============================================================
   26. ПРИЁМЫ ИЗ ТОПА: scroll-driven, телеметрия, kinetic type
   ============================================================= */

/* 26.1 Прогресс чтения — чистый CSS scroll-driven, без JS */
.scroll-line {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  z-index: 600; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--acid), var(--amber));
}
@supports (animation-timeline: scroll()) {
  .scroll-line { animation: sl-grow linear both; animation-timeline: scroll(root block); }
}
@keyframes sl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 26.2 (монтажные метки удалены) */

/* 26.3 (HUD-телеметрия удалена) */

/* 26.4 Нумерация секций удалена — заголовки чище без счётчиков */

/* 26.5 Kinetic typography: разрядка при наведении + крупный кегль */
.entry-title, .featured-title, .related-card strong {
  transition: color 0.15s;
}
.entry--lead .entry-title { font-size: clamp(1.15rem, 5.4vw, 2.2rem); }
.hero h1 { text-wrap: balance; }

/* 26.6 Монтажный курсор для клавиатурной навигации */
.entry.is-cursor, .article-card.is-cursor, .related-card.is-cursor {
  background: linear-gradient(90deg, var(--acid-soft), transparent 62%);
  box-shadow: inset 2px 0 0 var(--acid);
}

/* 26.7 Подсказка по клавишам */
.keys-modal {
  position: fixed; inset: 0; z-index: 520;
  display: none; padding: 10px;
  background: rgba(4, 6, 10, 0.9);
}
.keys-modal.open { display: block; animation: crt-in 0.16s var(--ease-out); }
.keys-panel {
  max-width: 420px; margin: 12vh auto 0;
  background: var(--panel); border: 1px solid var(--line-hi);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.keys-panel h3 {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acid); margin-bottom: 10px;
}
.keys-panel dl { display: grid; grid-template-columns: 84px 1fr; gap: 6px 10px; font-size: 0.72rem; }
.keys-panel dt { color: var(--acid); }
.keys-panel dd { color: var(--ink-dim); }
.keys-panel .keys-close {
  margin-top: 12px; width: 100%; padding: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.keys-panel .keys-close:hover { color: var(--acid); border-color: var(--line-hi); }

/* 26.8 Переходы между страницами — View Transitions API (CRT-вспышка) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.26s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; filter: brightness(1.8) contrast(1.15); } }
@keyframes vt-in { from { opacity: 0; filter: brightness(2.2) contrast(1.2); } }

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; transform: scaleX(0); }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
