/*
Theme Name: N₂OAtlas
Theme URI: https://n2oatlas.ru
Author: N₂OAtlas
Description: Атлас закиси азота — каталожный журнал о N₂O: научные открытия, производство, транспорт, экология, право, история и медицина. Каждая публикация оформлена как карточка атласа с индексом, символом рубрики и каталожным номером.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: n2oatlas
Tags: magazine, light, teal, catalog-layout, translation-ready
*/

/* ==========================================================================
   0. ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
  /* Фоны */
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface2: #eaf2f0;
  --border: #dbe6e2;

  /* Акцент */
  --accent: #0f766e;
  --accent-dark: #0b5b54;
  --accent-light: #e3f3f0;

  /* Текст */
  --ink: #10211e;
  --ink-mid: #4c6360;
  --ink-ghost: #8ba19d;

  /* Цвета 8 рубрик */
  --c-discovery: #1d4ed8;
  --c-production: #166534;
  --c-health: #6d28d9;
  --c-transport: #b91c1c;
  --c-ecology: #065f46;
  --c-law: #c2410c;
  --c-history: #92400e;
  --c-interview: #9d174d;

  /* Шрифты */
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-disp: 'Syne', 'Arial Black', sans-serif;

  /* Сетка */
  --container: 1280px;
  --sidebar-w: 260px;
  --r: 6px; --r-md: 10px; --r-lg: 14px;

  /* Анимация */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .2s;
  --t: all var(--dur) var(--ease);
}

/* ==========================================================================
   1. СБРОС И БАЗА
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ==========================================================================
   2. ПОЛОСА ПРОГРЕССА ЧТЕНИЯ
   ========================================================================== */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 9999; transition: width .08s linear;
}

/* ==========================================================================
   3. ТИКЕР
   ========================================================================== */
.ticker {
  background: var(--ink); color: #fff;
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: .76rem;
}
.ticker-badge {
  flex: 0 0 auto; background: var(--accent); color: #fff;
  font-weight: 700; letter-spacing: .08em; padding: 7px 14px;
}
.ticker-wrap { flex: 1 1 auto; overflow: hidden; padding: 7px 0; }
.ticker-text { display: inline-flex; gap: 32px; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker-text:hover { animation-play-state: paused; }
.ticker-text span a { color: #cfe9e5; }
.ticker-text span a:hover { color: #fff; }
.ticker-text span::before { content: '◆'; color: var(--accent); margin-right: 10px; font-size: .6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 500;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.site-logo img { max-height: 42px; width: auto; }
.site-logo .logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r); background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
}
.site-logo .logo-text span { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 26px; }
.nav-list li { list-style: none; }
.nav-list li a {
  font-size: .92rem; font-weight: 600; color: var(--ink-mid);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: var(--t);
}
.nav-list li a:hover, .nav-list li.current-menu-item > a {
  color: var(--accent); border-bottom-color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-mid); transition: var(--t);
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface);
}
.btn-hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: var(--t); }
.btn-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.active span:nth-child(2) { opacity: 0; }
.btn-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильная навигация */
.mobile-nav {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: var(--surface); z-index: 1100; padding: 90px 28px 28px;
  box-shadow: -8px 0 32px rgba(0,0,0,.12); transition: right .3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav .nav-list { flex-direction: column; gap: 4px; }
.mobile-nav .nav-list li a { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }

.site-overlay {
  position: fixed; inset: 0; background: rgba(10,25,22,.55); z-index: 1050;
  opacity: 0; visibility: hidden; transition: var(--t);
}
.site-overlay.open { opacity: 1; visibility: visible; }

/* Поиск-оверлей */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(10,25,22,.92);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--t); padding-top: 14vh;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay form { width: 100%; max-width: 640px; padding: 0 24px; position: relative; }
.search-overlay input[type="search"] {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--accent);
  color: #fff; font-family: var(--font-serif); font-size: 2rem; padding: 14px 0; outline: none;
}
.search-overlay input::placeholder { color: rgba(255,255,255,.4); }
.search-close {
  position: absolute; top: 28px; right: 28px; color: #fff; background: none; border: none;
  font-size: 1.8rem; line-height: 1;
}

/* ==========================================================================
   5. МАКЕТ
   ========================================================================== */
.site-body { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: 40px; padding: 40px 24px; max-width: var(--container); margin: 0 auto; align-items: start; }
main[role="main"] { min-width: 0; }

/* ==========================================================================
   6. HERO ("ЭКСПОНАТ АТЛАСА")
   ========================================================================== */
.atlas-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 36px; position: relative;
}
.atlas-hero-media { position: relative; min-height: 340px; background: var(--surface2); overflow: hidden; }
.atlas-hero-media img, .atlas-hero-media .img-placeholder { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.atlas-hero-code {
  position: absolute; top: 16px; left: 16px; background: rgba(16,33,30,.78); color: #fff;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; padding: 6px 10px; border-radius: 4px;
}
.atlas-hero-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.atlas-hero-body h1, .atlas-hero-body h2.hero-title {
  font-family: var(--font-disp); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 14px 0 12px;
}
.atlas-hero-excerpt { color: var(--ink-mid); font-family: var(--font-serif); font-size: 1.02rem; margin: 0 0 18px; }
.atlas-hero-meta { display: flex; gap: 16px; align-items: center; font-size: .8rem; color: var(--ink-ghost); font-family: var(--font-mono); }
.atlas-hero-link {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--accent); color: #fff; padding: 11px 20px; border-radius: var(--r); font-weight: 700; font-size: .88rem;
  transition: var(--t);
}
.atlas-hero-link:hover { background: var(--accent-dark); }

/* ==========================================================================
   7. ЛЕНТА / СЕКЦИЯ-ЗАГОЛОВОК
   ========================================================================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-head h2 {
  font-family: var(--font-disp); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.section-head h2::before { content: ''; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; display: inline-block; }
.section-head .count { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-ghost); }

/* ==========================================================================
   8. СЕТКА АТЛАСА (карточки-образцы)
   ========================================================================== */
.atlas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.specimen-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.specimen-card.revealed { opacity: 1; transform: translateY(0); }
.specimen-card:hover { border-color: var(--accent); box-shadow: 0 12px 28px -14px rgba(15,118,110,.35); }

.specimen-top { position: relative; height: 4px; }
.specimen-media { position: relative; height: 150px; background: var(--surface2); overflow: hidden; }
.specimen-media img, .specimen-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

.specimen-symbol {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.6); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: var(--font-mono); line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.specimen-symbol .sym { font-size: .95rem; font-weight: 800; }
.specimen-symbol .num { font-size: .5rem; color: var(--ink-ghost); }

.specimen-index {
  position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: .62rem;
  background: rgba(16,33,30,.72); color: #fff; padding: 3px 7px; border-radius: 4px; letter-spacing: .05em;
}

.specimen-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.specimen-body h3 { font-family: var(--font-disp); font-size: 1rem; line-height: 1.3; margin: 0; }
.specimen-body h3 a:hover { color: var(--accent); }
.specimen-excerpt { font-size: .84rem; color: var(--ink-mid); margin: 0; flex: 1; }
.specimen-meta {
  display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono);
  font-size: .68rem; color: var(--ink-ghost); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 4px;
}

/* ==========================================================================
   9. БЕЙДЖИ РУБРИК
   ========================================================================== */
.cat-badge { font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.cat-discovery  { background: #eff6ff; color: #1d4ed8; }
.cat-production { background: #f0fdf4; color: #166534; }
.cat-health     { background: #f3e8ff; color: #6d28d9; }
.cat-transport  { background: #fee2e2; color: #b91c1c; }
.cat-ecology    { background: #ecfdf5; color: #065f46; }
.cat-law        { background: #fff7ed; color: #c2410c; }
.cat-history    { background: #fef3c7; color: #92400e; }
.cat-interview  { background: #fdf2f8; color: #9d174d; }
.cat-default    { background: #f1f5f9; color: #64748b; }

/* ==========================================================================
   10. ПЛЕЙСХОЛДЕРЫ
   ========================================================================== */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .7rem; color: rgba(16,33,30,.35); letter-spacing: .08em;
}
.img-placeholder::after { content: 'N₂O'; font-size: 1.6rem; font-weight: 800; opacity: .25; }

/* ==========================================================================
   11. КНОПКА «ЗАГРУЗИТЬ ЕЩЁ»
   ========================================================================== */
.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.js-load-more {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  padding: 13px 28px; border-radius: var(--r); font-weight: 700; font-size: .88rem; transition: var(--t);
}
.js-load-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.js-load-more:disabled { opacity: .6; cursor: default; }

/* ==========================================================================
   12. ПАГИНАЦИЯ
   ========================================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0; flex-wrap: wrap; }
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  color: var(--ink-ghost); transition: var(--t);
}
.page-numbers:hover, .page-numbers.current {
  border-color: var(--accent); color: var(--accent); background: var(--accent-light);
}

/* ==========================================================================
   13. РУБРИКА — ЗАГОЛОВОК
   ========================================================================== */
.cat-header {
  padding: 48px 24px; text-align: center; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.cat-header h1 { font-family: var(--font-disp); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.cat-header p { color: var(--ink-mid); max-width: 640px; margin: 0 auto 10px; font-family: var(--font-serif); }
.cat-header span { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-ghost); }

/* ==========================================================================
   14. САЙДБАР
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px;
}
.widget-title {
  font-family: var(--font-disp); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.widget-title::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }

/* Популярное */
.widget-popular ol { list-style: none; counter-reset: pop; display: flex; flex-direction: column; gap: 14px; }
.widget-popular li { counter-increment: pop; display: flex; gap: 12px; align-items: flex-start; }
.widget-popular li::before {
  content: counter(pop, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem;
  color: var(--accent); font-weight: 700; flex: 0 0 auto; margin-top: 2px;
}
.widget-popular a { font-size: .86rem; font-weight: 600; line-height: 1.35; }
.widget-popular a:hover { color: var(--accent); }
.widget-popular .meta { display: block; font-family: var(--font-mono); font-size: .66rem; color: var(--ink-ghost); margin-top: 3px; }

/* Рубрики */
.widget-cats ul { display: flex; flex-direction: column; gap: 2px; }
.widget-cats li a {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 4px;
  font-size: .86rem; font-weight: 600; border-bottom: 1px solid var(--border); transition: var(--t);
}
.widget-cats li:last-child a { border-bottom: none; }
.widget-cats li a:hover { color: var(--accent); padding-left: 8px; }
.widget-cats li a span { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-ghost); background: var(--surface2); padding: 1px 7px; border-radius: 10px; }

/* Теги */
.widget-tags .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-tags .tag-cloud a {
  font-family: var(--font-mono); font-size: .72rem; background: var(--surface2); color: var(--ink-mid);
  padding: 5px 10px; border-radius: 20px; transition: var(--t);
}
.widget-tags .tag-cloud a:hover { background: var(--accent); color: #fff; }

/* Подписка */
.widget-sub p { font-size: .82rem; color: var(--ink-mid); margin: 0 0 14px; }
.widget-sub form { display: flex; flex-direction: column; gap: 8px; }
.widget-sub input[type="email"] {
  border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; font-size: .86rem; font-family: inherit;
}
.widget-sub button {
  background: var(--accent); color: #fff; border: none; border-radius: var(--r); padding: 11px; font-weight: 700; font-size: .86rem; transition: var(--t);
}
.widget-sub button:hover { background: var(--accent-dark); }

/* Молекула */
.widget-molecule { text-align: center; }
.widget-molecule svg { width: 100%; max-width: 200px; margin: 6px auto 10px; display: block; }
.widget-molecule .formula { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-ghost); }
.widget-molecule dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 14px 0 0; font-size: .74rem; text-align: left; }
.widget-molecule dt { color: var(--ink-ghost); }
.widget-molecule dd { margin: 0; font-weight: 700; font-family: var(--font-mono); }

/* Счётчик дней */
.widget-days { text-align: center; }
.widget-days .big-num { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1; }
.widget-days .cap { font-size: .76rem; color: var(--ink-mid); margin-top: 6px; }
.widget-days .sub { font-size: .68rem; color: var(--ink-ghost); margin-top: 10px; font-family: var(--font-mono); }

/* GWP калькулятор */
.widget-gwp label { font-size: .78rem; color: var(--ink-mid); display: block; margin-bottom: 6px; }
.widget-gwp input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--r); padding: 9px 10px; font-family: var(--font-mono);
  font-size: .9rem; margin-bottom: 10px;
}
.widget-gwp .result {
  background: var(--accent-light); border-radius: var(--r); padding: 12px; text-align: center;
}
.widget-gwp .result .val { font-family: var(--font-mono); font-weight: 800; font-size: 1.2rem; color: var(--accent-dark); }
.widget-gwp .result .lab { font-size: .68rem; color: var(--ink-mid); margin-top: 2px; }

/* Факт дня */
.widget-fact p.fact-text { font-family: var(--font-serif); font-size: .92rem; font-style: italic; color: var(--ink); margin: 0; }
.widget-fact .fact-num { font-family: var(--font-mono); font-size: .64rem; color: var(--ink-ghost); margin-top: 10px; display: block; }

/* ==========================================================================
   15. СТРАНИЦА СТАТЬИ
   ========================================================================== */
.breadcrumbs { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-ghost); margin: 28px 0 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

.article-head { max-width: 760px; margin: 0 auto 28px; }
.article-head h1 { font-family: var(--font-disp); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 14px 0 14px; }
.article-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--ink-mid); margin: 0 0 20px; }

.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.byline img { width: 42px; height: 42px; border-radius: 50%; }
.byline-info b { display: block; font-size: .88rem; }
.byline-info .role { font-size: .72rem; color: var(--ink-ghost); }
.byline-meta { margin-left: auto; display: flex; gap: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-ghost); }

.article-media { max-width: 980px; margin: 28px auto; border-radius: var(--r-lg); overflow: hidden; }
.article-media img, .article-media .img-placeholder { width: 100%; height: 420px; object-fit: cover; }

.article-body { max-width: 760px; margin: 0 auto; font-size: 1.06rem; }
.article-body p { margin: 0 0 20px; }
.article-body p.has-dropcap::first-letter {
  font-family: var(--font-disp); font-size: 3.4em; font-weight: 800; color: var(--accent);
  float: left; line-height: .85; margin: .04em .12em 0 0;
}
.article-body h2 {
  font-family: var(--font-disp); font-size: 1.5rem; margin: 40px 0 18px; padding-bottom: 10px;
  border-bottom: 3px solid var(--accent); display: inline-block;
}
.article-body h3 { font-family: var(--font-disp); font-size: 1.2rem; margin: 28px 0 12px; }
.article-body blockquote {
  margin: 28px 0; padding: 20px 24px; background: var(--surface2); border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem;
}
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body a { color: var(--accent); text-decoration: underline; }

.article-tags { max-width: 760px; margin: 32px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a { font-family: var(--font-mono); font-size: .72rem; background: var(--surface2); color: var(--ink-mid); padding: 5px 10px; border-radius: 20px; }

.article-share { max-width: 760px; margin: 20px auto 0; display: flex; align-items: center; gap: 10px; }
.article-share span { font-size: .78rem; color: var(--ink-ghost); }
.article-share a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); display: flex;
  align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--ink-mid); transition: var(--t);
}
.article-share a:hover { background: var(--accent); color: #fff; }

.author-box {
  max-width: 760px; margin: 40px auto; display: flex; gap: 18px; padding: 24px; background: var(--surface2);
  border-radius: var(--r-md);
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; flex: 0 0 auto; }
.author-box b { display: block; font-size: 1rem; }
.author-box .role { font-size: .72rem; color: var(--accent); font-family: var(--font-mono); margin-bottom: 8px; display: block; }
.author-box p { margin: 0; font-size: .86rem; color: var(--ink-mid); }

.related-wrap { max-width: 980px; margin: 48px auto 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ==========================================================================
   16. ФУТЕР
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 40px; }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-grid h4 { color: #fff; font-family: var(--font-disp); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.footer-about .logo-text { font-family: var(--font-disp); font-weight: 800; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-about .logo-text span { color: var(--accent); }
.footer-about p { font-size: .84rem; line-height: 1.6; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .78rem; transition: var(--t);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li a { font-size: .84rem; transition: var(--t); }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .76rem; font-family: var(--font-mono); color: rgba(255,255,255,.5);
}

/* ==========================================================================
   17. ВИДЖЕТЫ WORDPRESS (универсальные стили)
   ========================================================================== */
.widget ul.menu, .widget ul { list-style: none; }
.widget select { width: 100%; padding: 8px; border-radius: var(--r); border: 1px solid var(--border); }

/* ==========================================================================
   18. АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================================== */
.card { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.card.revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   19. АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-resources { display: none; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .site-body { grid-template-columns: 1fr; }
  .btn-hamburger { display: flex; }
  .header-nav { display: none; }
  .article-body { column-count: 1; }
  .atlas-hero { grid-template-columns: 1fr; }
  .atlas-hero-media { min-height: 220px; }
  .atlas-hero-media img, .atlas-hero-media .img-placeholder { min-height: 220px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .byline-meta { width: 100%; margin-left: 0; }
  .article-media img, .article-media .img-placeholder { height: 260px; }
}

@media (max-width: 480px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-row { padding: 12px 16px; }
  .site-body { padding: 24px 16px; }
  .atlas-hero-body { padding: 24px; }
  .author-box { flex-direction: column; }
}
