/* ==========================================================================
   Локальные шрифты (Self-hosted WOFF2) — Устранение render-blocking (S-0005)
   ========================================================================== */

/* Golos Text (Заголовки и карточки) */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Onest (Основной текст и навигация) */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono (Моноширинный текст, таймкоды, технические сноски) */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Метрические фоллбэки для предотвращения CLS (S-0005) */
@font-face {
  font-family: "Golos Text Fallback";
  src: local("Arial"), local("Helvetica"), local("sans-serif");
  ascent-override: 98%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("Helvetica"), local("sans-serif");
  ascent-override: 97%;
  descent-override: 31%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("Consolas"), local("monospace");
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ==========================================================================
   НейроНьюс — Дизайн-система Swiss Editorial
   Высокая плотность европейской периодики, чистый контраст и ультрамарин Кляйна.
   ========================================================================== */

:root {
  /* Базовая палитра (Swiss Architectural Porcelain & Deep Ink) */
  --paper: #f8f8f7;
  --paper-surface: #f1f1ee;
  --paper-card: #ffffff;
  --ink: #0f1117;
  --ink-muted: #5e6472;
  --ink-faint: #5e6472; /* S-0022: исправлено с #9ea3b0 для WCAG AA (5.56:1 contrast) */
  --line: rgba(15, 17, 23, 0.09);
  --line-strong: rgba(15, 17, 23, 0.22);

  /* Фирменный акцент: благородный Electric Klein Blue */
  --accent: #0047ff;
  --accent-glow: rgba(0, 71, 255, 0.14);
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 71, 255, 0.08);

  /* Геометрия и сетка */
  --radius-card: 14px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --font-display: "Golos Text", "Golos Text Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Onest", "Onest Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SF Mono", monospace;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --letter-spacing-h: -0.035em;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0c10;
    --paper-surface: #12141a;
    --paper-card: #171922;
    --ink: #f0f2f5;
    --ink-muted: #8b92a2;
    --ink-faint: #9ea3b0; /* S-0022: исправлено с #565d6c для WCAG AA (6.74:1 contrast) */
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #2e68ff;
    --accent-glow: rgba(46, 104, 255, 0.22);
    --accent-ink: #ffffff;
    --accent-soft: rgba(46, 104, 255, 0.14);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Балансировка переносов текста (modern-web-guidance) */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: var(--letter-spacing-h);
}

p, blockquote, li {
  text-wrap: pretty;
}

.page {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Доступная ссылка для перехода к содержимому */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Доступный фокус-ринг */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Шапка (Header)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(14, 12, 10, 0.92); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img { width: 34px; height: 34px; display: block; }
.brand .dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
  border-radius: 4px;
}

.main-nav a:hover { color: var(--ink); }

.main-nav a[aria-current="page"],
.main-nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-surface); color: var(--ink); border-color: var(--ink); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.header-cta { padding: 8px 18px; font-size: 13.5px; }

/* Мобильная кнопка меню */
.mobile-menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 64px 0 60px; border-bottom: 1px solid var(--line); position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: var(--paper-surface);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Виджет ближайшего выпуска */
.live-slot-tracker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: beacon-pulse 2s infinite var(--ease-spring);
}

@keyframes beacon-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px transparent; }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: var(--letter-spacing-h);
  text-transform: none;
  max-width: 660px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-handles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

/* Бейдж копирования юзернейма */
.handle-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: inherit;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.handle-copy-badge:hover {
  border-color: var(--accent);
  background: var(--paper-card);
}

.handle-copy-badge code { font-family: inherit; font-size: 13px; }

.handle-copy-badge .copy-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.handle-copy-badge:hover .copy-icon { opacity: 1; color: var(--accent); }

.copy-feedback {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.handle-copy-badge.is-copied .copy-feedback {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* Карточка превью Telegram в Hero */
.hero-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.telegram-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease;
}

.telegram-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent);
}

.telegram-card:focus-within {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent);
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--paper-surface);
  border-bottom: 1px solid var(--line);
}

.tg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.tg-avatar img {
  width: 28px;
  height: 28px;
}

.tg-info {
  flex: 1;
  min-width: 0;
}

.tg-name {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.tg-name .verified-badge {
  color: var(--accent);
  display: inline-flex;
}

.tg-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

.tg-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.tg-body {
  padding: 20px 18px 16px;
}

.tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  font-weight: 600;
}

.tg-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}

.tg-card-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.tg-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
  cursor: pointer;
}

.tg-card-link:focus-visible {
  outline: none;
}

.telegram-card:hover .tg-card-link {
  color: var(--accent);
}

.tg-lead {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.tg-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tg-bullets li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}

.tg-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tg-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  padding: 6px 10px;
  background: var(--paper-surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tg-source:hover {
  background: var(--paper-card);
  border-color: var(--accent);
}

.tg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--paper-surface);
  border-top: 1px solid var(--line);
}

.tg-reactions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.tg-react-pill {
  font-size: 12px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  user-select: none;
}

.tg-verified {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.telegram-card:hover .tg-verified {
  transform: translateX(2px);
}

/* Бегущая строка (Ticker) с мягкими масками краев */
.ticker {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  contain: paint;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

.ticker-track span { display: inline-flex; align-items: center; gap: 8px; }
.ticker-track b { color: var(--accent); font-weight: 600; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Цифры (Stats)
   ========================================================================== */

.stats-section {
  border-bottom: 1px solid var(--line);
  background: var(--paper-surface);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--ink);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Секции общие
   ========================================================================== */

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 48px; max-width: 740px; }

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-sub {
  margin-top: 14px;
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Шаги конвейера (How it works)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.steps-note {
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--ink-muted);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

/* ==========================================================================
   Сравнительная таблица (НейроНьюс vs Обычные каналы)
   ========================================================================== */

.comparison-wrapper {
  margin-top: 48px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  contain: paint;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-surface);
}

.comparison-table .th-highlight {
  color: var(--accent);
  font-weight: 700;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td strong { color: var(--ink); }

@media (max-width: 680px) {
  .comparison-wrapper {
    overflow-x: visible;
    border: none;
    background: transparent;
    border-radius: 0;
    margin-top: 28px;
    contain: none;
  }
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table th,
  .comparison-table td,
  .comparison-table tr {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tr {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
  }
  .comparison-table tr:last-child {
    border-bottom: 1px solid var(--line);
  }
  .comparison-table th[scope="row"] {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    background: transparent;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
  }
  .comparison-table td {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .comparison-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .comparison-table td::before {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .comparison-table td:nth-child(2)::before {
    content: "Канал НейроНьюс";
    color: var(--accent);
    font-weight: 700;
  }
  .comparison-table td:nth-child(3)::before {
    content: "Личный бот";
    color: var(--accent);
    font-weight: 700;
  }
  .comparison-table td:nth-child(4)::before {
    content: "Обычные Telegram-каналы";
    color: var(--ink-faint);
    font-weight: 600;
  }
}

/* ==========================================================================
   Расписание (Schedule)
   ========================================================================== */

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.slot {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease;
}

.slot:hover, .slot.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.slot-time-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slot time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}

.slot-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slot-label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--ink);
}

.slot-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.schedule-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Источники (Sources)
   ========================================================================== */

.sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.source {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.source:hover { border-color: var(--accent); }

.source b {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.source span {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  position: relative;
  transition: color 0.15s ease;
}

.faq summary:hover { color: var(--accent); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s var(--ease-spring);
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  background: var(--paper-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}

.cta h2 em { font-style: normal; color: var(--accent); }

.cta p {
  margin: 20px auto 0;
  max-width: 540px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.cta .btn { font-size: 16px; padding: 15px 32px; }

.cta-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */

.site-footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-inner .brand { font-size: 14px; }
.footer-inner .brand img { width: 28px; height: 28px; }

.footer-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  word-break: break-word;
}

.footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   Мобильное выдвижное меню (Drawer)
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.mobile-drawer:not(.is-open) .drawer-panel {
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer.is-open .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease-spring);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-links a {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
  border-radius: 6px;
}

.drawer-links a:hover,
.drawer-links a:focus-visible {
  color: var(--accent);
}

.drawer-links a[aria-current="page"],
.drawer-links a.is-active {
  color: var(--accent);
}

.drawer-cta { margin-top: auto; padding-top: 24px; }
.drawer-cta .btn { width: 100%; }

/* ==========================================================================
   Свежие выпуски на главной (Recent Issues Grid)
   ========================================================================== */

.recent-issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recent-issue-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.recent-issue-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.recent-issue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.recent-issue-source {
  color: var(--accent);
  font-weight: 600;
}

.recent-issue-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s ease;
}

.recent-issue-card:hover .recent-issue-title {
  color: var(--accent);
}

.recent-issue-teaser {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-top: auto;
}

.recent-issues-more {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   Страница 404
   ========================================================================== */

.not-found {
  padding: 80px 24px 96px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.not-found__code {
  font-family: var(--font-mono);
  font-size: clamp(64px, 14vw, 104px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.05em;
}

.not-found__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.not-found__desc {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.not-found__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Адаптивность (Responsive)
   ========================================================================== */

@media (max-width: 1080px) and (min-width: 961px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 13.5px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .telegram-card { max-width: 100%; }
  .stats, .steps, .slots, .recent-issues-grid { grid-template-columns: repeat(2, 1fr); }
  .sources { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu-btn { display: inline-flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; max-width: 100%; }
  .header-inner { gap: 12px; }
  .header-cta { padding: 6px 14px; font-size: 13px; }
  .stats, .steps, .slots, .sources, .recent-issues-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .hero { padding: 44px 0 32px; overflow: hidden; }
  .hero h1 { font-size: clamp(28px, 7vw, 42px); word-break: break-word; }
  .section { padding: 48px 0; overflow: hidden; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; max-width: 100%; }
  .footer-links { margin-left: 0; width: 100%; max-width: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; }
  .footer-links a { min-height: 44px; padding: 8px 6px; }
  .comparison-wrapper { max-width: 100%; }
  .not-found { padding: 48px 0 64px; }
  .not-found__actions { flex-direction: column; width: 100%; }
  .not-found__actions .btn { width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
  .footer-links { gap: 6px 12px; font-size: 13px; }
  .footer-links a { min-height: 44px; padding: 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  .ticker-track { animation: none; }
  .pulse-beacon { animation: none; }
}
