/* ════════════════════════════════════════════════════════
   styles.css — общие стили hantavirus-risk
   ════════════════════════════════════════════════════════ */

/* ── CSS-переменные ── */
:root {
  --bg: #0d0f14;
  --surface: #14171f;
  --surface2: #1c2130;
  --border: #252c3e;
  --text: #e8eaf0;
  --muted: #6b7694;
  --accent: #e84545;
  --accent-soft: rgba(232, 69, 69, 0.12);
  --accent2: #f4a23a;
  --accent2-soft: rgba(244, 162, 58, 0.12);
  --green: #3adc8f;
  --green-soft: rgba(58, 220, 143, 0.1);
  --blue: #4a9eff;
  --blue-soft: rgba(74, 158, 255, 0.1);
  --radius: 12px;
}

/* ── Сброс и базовые стили ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
p { margin-bottom: 14px; color: #9099b8; }
p strong { color: var(--text); }

/* ── Контейнер ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 80px;
  position: relative;
  z-index: 1;
}

/* ── Навигация ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: var(--blue); }
.nav-gh {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
}
.nav-gh:hover { color: var(--text) !important; }
@media (max-width: 560px) {
  .nav-links .hide-mobile { display: none; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0 12px; }

  .nav-inner { height: 48px; gap: 4px; }

  .nav-logo { font-size: 12px; gap: 6px; }

  .nav-links { gap: 0; }

  .nav-links a { padding: 6px 8px; font-size: 11px; }

  /* GitHub — скрываем текст, оставляем только иконку */
  .nav-gh .gh-text { display: none; }

  /* lang-switcher компактнее, скрываем «RU» — достаточно глобуса */
  .lang-btn { padding: 4px 7px; font-size: 10px; gap: 3px; }
  .lang-current { display: none; }

  /* дропдаун не уходит за правый край */
  .lang-dropdown { right: 0; min-width: 120px; }
}

/* ── Футер ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 60px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

/* ── Заголовок страницы (внутренние страницы) ── */
.page-header { margin-bottom: 48px; animation: fadeDown 0.7s ease both; }
.page-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-tag::before { content: ''; width: 24px; height: 1px; background: var(--blue); }
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 17px; color: #9099b8; font-weight: 300; max-width: 600px; }

/* ── Секции (внутренние страницы) ── */
.section { margin-bottom: 48px; animation: fadeUp 0.7s ease both; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── GitHub Star Button ── */
.gh-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 22px;
  border-radius: 100px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 12px;
}
.gh-star-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,162,58,0.2);
}

/* ── Переключатель языка ── */
.lang-switcher { position: relative; display: flex; align-items: center; }
.lang-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.lang-btn:hover { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
.lang-btn .lang-current { color: var(--blue); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 136px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; animation: fadeUp 0.15s ease both; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.12s;
  letter-spacing: 0.04em;
}
.lang-option:hover { color: var(--text); background: var(--surface2); }
.lang-option.active { color: var(--blue); }
.lang-flag { font-size: 14px; line-height: 1; }

/* ── Анимации ── */
@keyframes fadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleUp  { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
@keyframes pulse    { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.4; transform:scale(0.7); } }
@keyframes criticalPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(232,69,69,0.3); } 50%{ box-shadow:0 0 0 12px rgba(232,69,69,0); } }
@keyframes slideIn     { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInBack { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }

/* ════════════════════════════════════════════
   Стили index.html (тест)
   ════════════════════════════════════════════ */

/* ── Шапка главной ── */
.header {
  text-align: center;
  padding: 60px 0 40px;
  animation: fadeDown 0.8s ease both;
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 69, 69, 0.3);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
.header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.header h1 em { font-style: italic; color: var(--accent); }
.header-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Warning / Instructions ── */
.warning-box {
  background: var(--accent-soft);
  border: 1px solid rgba(232,69,69,0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.warning-box .warn-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warning-box p { font-size: 14px; color: #b0b8d0; line-height: 1.6; }
.warning-box strong { color: var(--text); }
.instructions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.instructions p { font-size: 14px; color: #9099b8; line-height: 1.7; }

/* ── Выбор теста ── */
.test-selector {
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.test-selector-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}
.selector-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .selector-cards { grid-template-columns: 1fr; } }
.selector-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.selector-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,158,255,0.1);
}
.selector-card.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.selector-card-icon { font-size: 28px; margin-bottom: 10px; }
.selector-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--text);
}
.selector-card-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.selector-card-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.selector-card.active .selector-card-badge {
  background: var(--blue-soft);
  border-color: rgba(74,158,255,0.4);
  color: var(--blue);
}
.start-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, #4a9eff, #2266cc);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(74,158,255,0.25);
}
.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,158,255,0.35);
}

/* ── Прогресс-бар ── */
.progress-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  margin: 0 -20px 20px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

/* ── Блок / вопрос ── */
.block { margin-bottom: 0; animation: fadeUp 0.6s ease both; }
.block-title {
  display: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
}
.block-num {
  background: var(--blue-soft);
  border: 1px solid rgba(74,158,255,0.2);
  color: var(--blue);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.question {
  display: none;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.question.active-question {
  display: block;
  animation: slideIn 0.3s ease both;
}
.question.active-question.going-back { animation: slideInBack 0.3s ease both; }
.question.answered { border-color: rgba(74,158,255,0.25); }
.question-header { display: flex; gap: 14px; margin-bottom: 16px; }
.question-num { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.question-text { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 10px; padding-left: 26px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.option:hover { border-color: var(--border); background: #1f2535; }
.option.selected { border-color: var(--blue); background: var(--blue-soft); }
.option.selected .option-letter { background: var(--blue); color: #fff; border-color: var(--blue); }
.option-letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--muted);
  flex-shrink: 0;
  transition: all 0.18s;
}
.option-text { font-size: 14px; color: #9099b8; line-height: 1.5; flex: 1; }
.option.selected .option-text { color: var(--text); }
.option-score-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tag-high  { background: rgba(232,69,69,0.15);   color: var(--accent); }
.tag-mid   { background: rgba(244,162,58,0.15);  color: var(--accent2); }
.tag-low   { background: rgba(107,118,148,0.15); color: var(--muted); }
.tag-minus { background: rgba(58,220,143,0.15);  color: var(--green); }
.alert-option { border-color: rgba(232,69,69,0.3) !important; background: rgba(232,69,69,0.05) !important; }
.alert-option.selected { border-color: var(--accent) !important; background: var(--accent-soft) !important; }

/* ── Кнопка отправки ── */
.submit-section { display: block; text-align: center; padding: 40px 0; animation: fadeUp 0.8s ease both; }
.submit-btn {
  background: linear-gradient(135deg, #e84545, #c02020);
  color: #fff;
  border: none;
  padding: 18px 48px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(232,69,69,0.25);
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,69,69,0.35); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.submit-hint { margin-top: 12px; font-size: 13px; color: var(--muted); font-family: 'DM Mono', monospace; }

/* ── Результаты ── */
.results { display: none; animation: fadeUp 0.8s ease both; }
.results.visible { display: block; }
.result-card {
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  border: 1.5px solid;
  position: relative;
  overflow: hidden;
}
.result-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.result-low    { background: var(--green-soft); border-color: rgba(58,220,143,0.3); }
.result-low::before { background: linear-gradient(90deg, var(--green), #2cb877); }
.result-medium { background: rgba(244,162,58,0.08); border-color: rgba(244,162,58,0.35); }
.result-medium::before { background: linear-gradient(90deg, var(--accent2), #d48020); }
.result-high   { background: rgba(232,69,69,0.08); border-color: rgba(232,69,69,0.4); }
.result-high::before { background: linear-gradient(90deg, var(--accent), #a01010); }
.result-critical { background: rgba(232,69,69,0.14); border-color: rgba(232,69,69,0.6); animation: criticalPulse 1.5s ease-in-out infinite; }
.result-critical::before { background: linear-gradient(90deg, #ff2020, var(--accent)); }
.result-label { font-family: 'DM Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.result-score-display { font-family: 'DM Serif Display', serif; font-size: 56px; line-height: 1; margin-bottom: 16px; }
.result-title { font-family: 'DM Serif Display', serif; font-size: 24px; margin-bottom: 12px; line-height: 1.3; }
.result-desc { font-size: 15px; line-height: 1.7; color: #9099b8; }
.result-desc strong { color: var(--text); }
.result-type-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Кнопка рестарта и дисклеймер ── */
.restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  transition: all 0.2s;
  margin-top: 24px;
}
.restart-btn:hover { border-color: var(--blue); color: var(--blue); }
.disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* ── Модальный дисклеймер ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease both;
}
.modal-box {
  background: var(--surface);
  border: 1.5px solid rgba(232,69,69,0.4);
  border-radius: 16px;
  padding: 36px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,69,69,0.1);
  animation: scaleUp 0.3s ease both;
}
.modal-icon { font-size: 36px; text-align: center; margin-bottom: 16px; }
.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.modal-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}
.modal-body {
  font-size: 14px;
  color: #9099b8;
  line-height: 1.75;
  margin-bottom: 24px;
}
.modal-body strong { color: var(--text); }
.modal-body ul { padding-left: 20px; margin: 10px 0; }
.modal-body ul li { margin-bottom: 6px; }
.modal-divider { height: 1px; background: var(--border); margin: 20px 0; }
.modal-close-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e84545, #c02020);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(232,69,69,0.25);
  position: relative;
  overflow: hidden;
}
.modal-close-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-close-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232,69,69,0.35);
}
.modal-timer {
  margin-top: 12px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}
.modal-progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}
.modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ── Сетка вопросов ── */
.q-grid-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
}
.q-grid-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.q-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.q-tile {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.q-tile:hover { border-color: var(--blue); color: var(--blue); }
.q-tile.answered {
  background: var(--green-soft);
  border-color: rgba(58,220,143,0.4);
  color: var(--green);
}
.q-tile.current {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 2px rgba(74,158,255,0.2);
}
.q-tile.current.answered {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.q-tile.skipped {
  background: rgba(244,162,58,0.1);
  border-color: rgba(244,162,58,0.35);
  color: var(--accent2);
}
.q-tile.skipped.current {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Навигация по вопросам ── */
.q-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 0 8px;
}
.q-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.q-nav-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.q-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.q-nav-btn.next-btn {
  background: linear-gradient(135deg, #4a9eff, #2266cc);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,158,255,0.25);
}
.q-nav-btn.next-btn:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(74,158,255,0.4); transform: translateY(-1px); }
.q-nav-btn.next-btn:disabled { opacity: 0.35; transform: none; }
.q-nav-btn.skip-btn {
  background: var(--surface2);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 16px;
}
.q-nav-btn.skip-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.q-counter {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

/* ── Адаптив ── */
@media (max-width: 600px) {
  .question { padding: 16px; }
  .options   { padding-left: 0; }
  .result-card { padding: 24px; }
  .result-score-display { font-size: 40px; }
  .modal-box { padding: 24px; }

  .q-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 0;
  }
  .q-nav-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 5px;
  }
  .q-nav-btn.skip-btn {
    grid-column: 2;
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .q-nav-btn.next-btn {
    justify-content: center;
  }
  .q-counter {
    display: none;
  }
}

/* ════════════════════════════════════════════
   Стили информационных страниц (статьи)
   ════════════════════════════════════════════ */

/* ── Обёртка контента статьи ── */
.article-body { }
.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.3;
}
.article-body ul {
  padding-left: 22px;
  margin-bottom: 16px;
  color: #9099b8;
}
.article-body ul li { margin-bottom: 6px; line-height: 1.6; }
.article-body strong { color: var(--text); }

/* ── Контакт-бокс (about.html) ── */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 16px;
}
.contact-box p { margin-bottom: 8px; }
.contact-box a { color: var(--blue); text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }

/* ── Лицензионный блок (LICENSE.html) ── */
.license-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 8px;
}
.license-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #9099b8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Инфо-сетка (about.html) ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s;
}
.info-card:hover { border-color: rgba(74,158,255,0.3); }
.info-card-icon { font-size: 26px; margin-bottom: 10px; }
.info-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.info-card p { font-size: 14px; margin-bottom: 0; }

/* ── Info-box (подсвеченный информационный блок) ── */
.info-box {
  background: var(--blue-soft);
  border: 1px solid rgba(74,158,255,0.2);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
}
.info-box p { font-size: 14px; color: #9099b8; margin-bottom: 0; line-height: 1.7; }
.info-box p strong { color: var(--text); }

/* ── Green-box (зелёный акцентный блок) ── */
.green-box {
  background: var(--green-soft);
  border: 1px solid rgba(58,220,143,0.2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
}
.green-box p { font-size: 14px; color: #9099b8; margin-bottom: 0; line-height: 1.7; }
.green-box p strong { color: var(--text); }

/* ── Highlight-card (выделенный блок история) ── */
.highlight-card {
  background: linear-gradient(135deg, rgba(232,69,69,0.08), rgba(74,158,255,0.06));
  border: 1px solid rgba(232,69,69,0.25);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin: 24px 0;
}
.highlight-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}
.highlight-card p { font-size: 14px; color: #9099b8; line-height: 1.75; }
.highlight-card p strong { color: var(--text); }

/* ── Стадии (stage-grid) ── */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 3px solid var(--border);
}
.stage-card.stage-1 { border-top-color: var(--blue); }
.stage-card.stage-2 { border-top-color: var(--accent2); }
.stage-card.stage-3 { border-top-color: var(--accent); }
.stage-card.stage-ok { border-top-color: var(--green); }
.stage-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stage-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 400;
}
.stage-card p { font-size: 13px; margin-bottom: 0; line-height: 1.65; }

/* ── Таблицы (compare-table, risk-table) ── */
.compare-table,
.risk-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th,
.risk-table th {
  background: var(--surface2);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table td,
.risk-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #9099b8;
  vertical-align: top;
  line-height: 1.5;
}
.compare-table tr:last-child td,
.risk-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td,
.risk-table tr:nth-child(even) td { background: rgba(28,33,48,0.4); }
.compare-table td strong,
.risk-table td strong { color: var(--text); }

/* ── Risk-pill (уровень риска в таблице) ── */
.risk-pill {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.risk-pill.risk-high { background: rgba(232,69,69,0.15); color: var(--accent); border: 1px solid rgba(232,69,69,0.3); }
.risk-pill.risk-med  { background: rgba(244,162,58,0.15); color: var(--accent2); border: 1px solid rgba(244,162,58,0.3); }
.risk-pill.risk-low  { background: rgba(58,220,143,0.12); color: var(--green); border: 1px solid rgba(58,220,143,0.25); }

/* ── Пути передачи (route-grid) ── */
.route-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.route-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}
.route-card.primary  { border-left: 3px solid var(--accent); }
.route-card.secondary { border-left: 3px solid var(--accent2); }
.route-card.rare     { border-left: 3px solid var(--green); }
.route-card.human    { border-left: 3px solid var(--blue); background: var(--blue-soft); }
.route-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.route-content { flex: 1; }
.route-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.route-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
}
.route-card p { font-size: 14px; margin-bottom: 0; line-height: 1.7; }

/* ── Сценарии профилактики (scenario-grid) ── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.scenario-card:hover { border-color: rgba(74,158,255,0.3); transform: translateY(-2px); }
.scenario-icon { font-size: 28px; margin-bottom: 10px; }
.scenario-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 400;
}
.scenario-card ul { padding-left: 18px; font-size: 13px; color: #9099b8; }
.scenario-card ul li { margin-bottom: 5px; line-height: 1.55; }

/* ── Чеклист (что делать) ── */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--green-soft);
  border: 1px solid rgba(58,220,143,0.2);
  border-radius: 8px;
  padding: 14px 16px;
}
.check-icon {
  color: var(--green);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.check-text { font-size: 14px; color: #9099b8; line-height: 1.6; }
.check-text strong { color: var(--text); }

/* ── Список запретов (dont-list) ── */
.dont-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.dont-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(232,69,69,0.2);
  border-radius: 8px;
  padding: 14px 16px;
}
.dont-icon {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.dont-text { font-size: 14px; color: #9099b8; line-height: 1.6; }
.dont-text strong { color: var(--text); }

/* ── Методы диагностики (method-grid) ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 3px solid var(--border);
  transition: border-color 0.2s;
}
.method-card.orange { border-top-color: var(--accent2); }
.method-card.green  { border-top-color: var(--green); }
.method-card.red    { border-top-color: var(--accent); }
.method-card:not(.orange):not(.green):not(.red) { border-top-color: var(--blue); }
.method-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.method-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.3;
}
.method-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-gold  { background: rgba(244,162,58,0.15); color: var(--accent2); border: 1px solid rgba(244,162,58,0.3); }
.badge-green { background: rgba(58,220,143,0.12); color: var(--green);   border: 1px solid rgba(58,220,143,0.25); }
.badge-blue  { background: var(--blue-soft);      color: var(--blue);    border: 1px solid rgba(74,158,255,0.3); }
.method-card > p { font-size: 13px; color: #9099b8; line-height: 1.7; margin-bottom: 14px; }
.method-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.method-meta-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  min-width: 80px;
}
.method-meta-item strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ── Алгоритм действий (algo-steps) ── */
.algo-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
  position: relative;
}
.algo-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 24px;
}
.algo-step:last-child { padding-bottom: 0; }
.algo-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border), transparent);
}
.algo-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  counter-increment: algo-counter;
}
.algo-steps { counter-reset: algo-counter; }
.algo-num::before { content: counter(algo-counter); }
.algo-content { flex: 1; padding-top: 6px; }
.algo-content h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}
.algo-content p { font-size: 14px; color: #9099b8; line-height: 1.65; margin-bottom: 0; }

/* ── Временная шкала (история) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  position: relative;
}
.tl-item {
  display: grid;
  grid-template-columns: 90px 20px 1fr;
  gap: 0 16px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.tl-item.red    .tl-dot { border-color: var(--accent);  background: rgba(232,69,69,0.2); }
.tl-item.orange .tl-dot { border-color: var(--accent2); background: rgba(244,162,58,0.2); }
.tl-item.green  .tl-dot { border-color: var(--green);   background: rgba(58,220,143,0.15); }
.tl-item:not(:last-child) .tl-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 14px);
  background: var(--border);
  z-index: 0;
}
.tl-title {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 400;
  line-height: 1.3;
}
.tl-text { font-size: 13px; color: #9099b8; line-height: 1.7; }
.tl-text strong { color: var(--text); }

/* ── Статистика (stat-row / stat-box) ── */
.stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.stat-box {
  flex: 1;
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item:hover { background: rgba(255,255,255,0.02); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.faq-icon {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-divider { display: none; }
.faq-a {
  display: none;
  padding: 0 0 20px;
}
.faq-a p { font-size: 14px; color: #9099b8; line-height: 1.75; margin-bottom: 0; }
.faq-a p strong { color: var(--text); }
.faq-item.open .faq-a { display: block; animation: fadeUp 0.2s ease both; }

/* ── Связанные статьи (related-grid) ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,158,255,0.1); }
.related-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 8px;
}
.related-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }

/* ── CTA-блок ── */
.cta-block {
  background: linear-gradient(135deg, rgba(232,69,69,0.1), rgba(74,158,255,0.08));
  border: 1px solid rgba(232,69,69,0.25);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  margin: 32px 0;
}
.cta-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 400;
}
.cta-block p { font-size: 15px; color: #9099b8; margin-bottom: 20px; }
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #e84545, #c02020);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(232,69,69,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(232,69,69,0.35); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ── Адаптив для статей ── */
@media (max-width: 600px) {
  .stage-grid      { grid-template-columns: 1fr; }
  .method-grid     { grid-template-columns: 1fr; }
  .related-grid    { grid-template-columns: 1fr; }
  .scenario-grid   { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 72px 16px 1fr; gap: 0 10px; }
  .tl-year { font-size: 11px; }
  .compare-table, .risk-table { font-size: 12px; }
  .compare-table th, .risk-table th,
  .compare-table td, .risk-table td { padding: 9px 10px; }
  .route-card { flex-direction: column; gap: 10px; }
  .cta-block { padding: 22px 18px; }
  .stat-row { gap: 10px; }
}

/* ── Сетка статей на главной (index.html) ── */
.index-articles {
  margin-top: 48px;
  animation: fadeUp 0.7s 0.5s ease both;
}
.index-articles-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.index-articles-title::before,
.index-articles-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.index-articles-title::after {
  background: linear-gradient(90deg, var(--border), transparent);
}
.index-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .index-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .index-articles-grid { grid-template-columns: 1fr; } }
.index-article-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.index-article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.index-article-card:hover {
  border-color: rgba(74,158,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,158,255,0.08);
}
.index-article-card:hover::before { opacity: 1; }
.index-article-icon { font-size: 22px; margin-bottom: 6px; }
.index-article-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 4px;
}
.index-article-title {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 6px;
}
.index-article-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
