/* ============================================================
   GATEFOLD — основной стиль
   ============================================================ */

:root {
  --ink: #1a1a1e;
  --paper: #faf8f5;
  --paper-2: #f1edE6;
  --line: #e8e4dc;
  --muted: #7a7a82;
  --accent: #8b3a2e;

  --radius-card: 8px;
  --card-border: none;
  --card-bg: #ffffff;
  --grid-dividers: 0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Serif', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Текстура бумаги */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* прогресс-бар чтения */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--accent);
  width: 0%; z-index: 100;
  transition: width 0.1s linear;
}

/* ==================== ТОП-БАР ==================== */
.topbar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 3;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar .date, .topbar .breadcrumb { opacity: 0.8; }
.topbar a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar a:hover { border-color: var(--paper); }
.topbar .marquee { overflow: hidden; max-width: 50%; flex: 1; }
.topbar .marquee-inner { display: inline-block; white-space: nowrap; animation: marquee 60s linear infinite; }
.topbar .marquee-inner a { color: inherit; margin-right: 60px; display: inline-block; transition: color .15s; }
.topbar .marquee-inner a:hover { color: var(--accent); }
.topbar .marquee-inner a span::before { content: '● '; color: var(--accent); margin-right: 6px; }
/* пауза анимации на hover, чтобы ссылку можно было прочитать и кликнуть */
.topbar .marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== ШАПКА ==================== */
.header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  padding: 40px 0 0;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.header-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.header-meta-right {
  text-align: right;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-meta-right a {
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
  padding: 4px 0;
}
.header-meta-right a:hover { border-color: var(--ink); color: var(--ink); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.logo-img { display: block; height: clamp(40px, 5.5vw, 80px); width: auto; max-width: 100%; }
.logo-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 360px;
  line-height: 1.5;
}
.search-icon { display: flex; align-items: center; color: var(--muted); transition: color .2s; }
.search-icon:hover { color: var(--accent); }

/* ---- главное меню с выпадающими подрубриками ---- */
.nav {
  margin-top: 32px;
}
.nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: inline-block;
  padding: 16px 0;
  transition: color .2s;
  color: var(--ink);
}
.nav-list > li > a:hover { color: var(--accent); }
.nav-list > li.active > a { color: var(--accent); }

/* выпадашка */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 30;
  padding: 8px 0;
}
.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* невидимый «мост» чтобы не закрывалось при переводе мыши с пункта на выпадашку */
.nav-item-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 10px;
}
.nav-dropdown-inner {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  background: var(--paper-2);
  color: var(--accent);
}

/* ==================== HERO ==================== */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.hero-image-wrap { display: block; position: relative; }
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  height: 100%;
  background-color: #2a2823;
  background-size: cover;
  background-position: center;
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
}
.issue-badge {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 6px 10px;
}
.hero-content {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title a { transition: color .2s; }
.hero-title a:hover { color: var(--accent); }
.hero-dek {
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 32px;
  max-width: 42ch;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta .author { color: var(--ink); }

/* ==================== КАРТОЧКИ (3 колонки) ==================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Граница сетки показывается только когда тема использует жёсткий grid (default, dark) */
  border: calc(1px * var(--grid-dividers)) solid var(--line);
  border-top: none;
  gap: calc((1 - var(--grid-dividers)) * 32px);
  margin-top: calc((1 - var(--grid-dividers)) * 40px);
}
.card {
  padding: 32px;
  /* Разделительная линия только в «жёстких» темах */
  border-right: calc(1px * var(--grid-dividers)) solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-bg, var(--paper));
  border-radius: var(--radius-card);
  /* В «мягких» темах делаем карточки с общей рамкой вокруг каждой */
  border: var(--card-border, none);
  border-right: calc(1px * var(--grid-dividers)) solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.card:last-child { border-right: none; }
.card-image {
  aspect-ratio: 4 / 3;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform .4s;
  border-radius: var(--radius-card);
}
.card a:hover .card-image { transform: scale(0.98); }
.card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-kicker .cat { color: var(--accent); }
.card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
}
.card-dek { font-size: 14px; line-height: 1.5; color: var(--muted); }
.card a.title-link { transition: color .2s; }
.card a.title-link:hover { color: var(--accent); }

/* ==================== МАНИФЕСТ ==================== */
.manifesto {
  margin: 120px -40px 80px;
  padding: 100px 60px;
  /* Фиксированный тёмный фон — манифест всегда драматичный контраст */
  background: #0a0a0a;
  color: #f5f2ec;
  position: relative;
  overflow: hidden;
}
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto .kicker { color: var(--manifesto-accent, var(--accent)); margin-bottom: 40px; }
.manifesto .kicker::after { background: rgba(245,242,236,0.3); }
.manifesto-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.manifesto-text em {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--manifesto-accent, var(--accent));
}
.manifesto-signature {
  margin-top: 60px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ==================== ЗАГОЛОВОК СЕКЦИИ ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 80px 0 24px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.section-all:hover { color: var(--accent); border-color: var(--accent); }

/* ==================== 6 КАРТОЧЕК ==================== */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: calc(1px * var(--grid-dividers)) solid var(--line);
  gap: calc((1 - var(--grid-dividers)) * 32px);
}
.grid-6 .card { border-bottom: calc(1px * var(--grid-dividers)) solid var(--line); }
.grid-6 .card:nth-last-child(-n+3) { border-bottom: none; }
.grid-6 .card:nth-child(3n) { border-right: none; }

/* ==================== ПОДПИСКА ==================== */
.newsletter {
  margin: 100px 0 0;
  padding: 80px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  text-align: center;
}
.newsletter .kicker { justify-content: center; max-width: 400px; margin: 0 auto 24px; }
.newsletter .kicker::after, .newsletter .kicker::before { display: none; }
.newsletter h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  max-width: 20ch;
  margin: 0 auto 16px;
  letter-spacing: -0.01em;
}
.newsletter p {
  font-size: 17px;
  color: #444;
  max-width: 48ch;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 18px 20px;
  font-family: 'PT Serif', serif;
  font-size: 16px;
  background: transparent;
  outline: none;
}
.newsletter-form button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--accent); }
.newsletter-note { font-size: 12px !important; color: var(--muted) !important; margin-top: 20px !important; }

/* ==================== ФУТЕР ==================== */
.footer {
  padding: 60px 0 40px;
  /* В тёмной теме логика var(--ink/--paper) перевернулась бы,
     а футер всегда должен быть тёмным — фиксируем цвета явно. */
  background: #0a0a0a;
  color: #f5f2ec;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}
.footer-brand .logo-img {
  display: block;
  margin: 0 auto;
  height: 40px;
  width: auto;
  max-width: 100%;
}
.footer-tagline {
  font-family: 'PT Serif', serif;
  font-style: italic;
  margin-top: 16px;
  opacity: 0.7;
  font-size: 15px;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-bottom: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-nav a { opacity: 0.65; transition: opacity .2s, color .2s; }
.footer-nav a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(245,242,236,0.2);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ==================== СТРАНИЦА СТАТЬИ ==================== */
.article-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.article-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.article-kicker::before, .article-kicker::after {
  content: ''; width: 40px; height: 1px; background: var(--accent);
}
.article-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  max-width: 18ch;
  margin-left: auto; margin-right: auto;
}
.article-title em {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.article-dek {
  font-family: 'PT Serif', serif;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  color: #333;
  max-width: 58ch;
  margin: 0 auto 48px;
  font-style: italic;
}
.article-byline {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-byline span { display: flex; align-items: center; gap: 8px; }
.article-byline .value { color: var(--ink); }

.cover-image {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #3a2a1a, #6a4a2a);
  overflow: hidden;
}
.cover-image img { width: 100%; height: 100%; object-fit: cover; }
.cover-caption {
  max-width: 1600px;
  margin: 16px auto 0;
  padding: 0 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.cover-caption .credit { opacity: 0.7; margin-left: 12px; }

/* ТЕЛО СТАТЬИ */
.article-body {
  max-width: 740px;
  margin: 80px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.article-body p {
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 28px;
  letter-spacing: 0.003em;
}
.article-body > p:first-of-type::first-letter {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  float: left;
  font-size: 96px;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  margin: 60px 0 24px;
  letter-spacing: -0.01em;
}
.article-body h2::before {
  content: '§';
  display: block;
  font-family: 'PT Serif', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 16px;
}
.article-body a { border-bottom: 1px solid var(--accent); transition: color .2s; }
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol {
  margin: 0 0 28px 32px;
  font-size: 19px;
  line-height: 1.7;
}
.article-body li { margin-bottom: 8px; }
.article-body img {
  margin: 40px 0;
  width: 100%;
}
.article-body em { font-style: italic; }
.article-body strong { font-weight: 700; }

/* Pullquote (вырванная цитата) — shortcode {% pullquote %} */
.pullquote {
  margin: 60px -120px;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink);
  position: relative;
  font-style: normal;
  border: none;
  padding: 0;
}
.pullquote::before {
  content: '“';
  display: block;
  font-family: 'PT Serif', serif;
  font-size: 120px;
  line-height: 0.7;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.pullquote em {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.pullquote .attribution {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  font-weight: 400;
}

/* QA (интервью) — shortcode {% qa %} */
.qa { margin-bottom: 28px; }
.qa-q {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  padding-left: 32px;
  position: relative;
}
.qa-q::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.qa-a { font-size: 19px; line-height: 1.75; }

/* Wide image — shortcode {% wideImage %} */
.wide-image {
  margin: 60px calc(50% - 50vw) 60px;
  padding: 0 40px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.wide-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wide-image .cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 12px;
}

/* Diptych — shortcode {% diptych %} */
.diptych {
  margin: 60px calc(50% - 50vw);
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.diptych img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Read-also — shortcode {% readAlso %} */
.read-also {
  margin: 80px 0;
  padding: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.read-also-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.read-also-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
.read-also-title a {
  border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.read-also-title a:hover { color: var(--accent); border-color: var(--accent); }

/* Концовка */
.article-end {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.5em;
  margin: 60px 0 40px;
}

/* Теги */
.article-tags {
  max-width: 740px;
  margin: 0 auto 60px;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.article-tags-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--line);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.tag:hover { background: var(--ink); color: var(--paper); }

/* Карточка автора */
.author-card {
  max-width: 740px;
  margin: 0 auto 80px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.author-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a2510);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--paper);
}
.author-info h4 { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.author-info .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.author-info p { font-size: 15px; line-height: 1.5; color: #444; }

/* ==================== СВЯЗАННЫЕ ==================== */
.related {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 2;
  margin-top: 60px;
}
.related-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(245,242,236,0.2);
}
.related-header h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.related-header a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.related-card { display: flex; flex-direction: column; gap: 14px; }
.related-card .img {
  aspect-ratio: 4/3;
  background: #2a2824;
  background-size: cover;
  background-position: center;
  transition: transform .4s;
}
.related-card:hover .img { transform: scale(0.98); }
.related-card .kicker-mini {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.related-card h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}
.related-card:hover h4 { color: var(--accent); }

/* ==================== РУБРИКА, АРХИВ, ПОИСК ==================== */
.rubric-head {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.rubric-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 16px 0;
}
.rubric-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.rubric-head .kicker { justify-content: center; display: inline-flex; }
.rubric-head .kicker::after, .rubric-head .kicker::before { display: none; }

/* ---- шапка страницы номера ---- */
.issue-head {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.issue-head .kicker {
  justify-content: center;
  display: inline-flex;
}
.issue-head .kicker::after, .issue-head .kicker::before { display: none; }
.issue-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 16px 0;
}
.issue-dek {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 auto 28px;
  font-style: italic;
}

/* ---- метка номера в шапке статьи ---- */
.issue-pin {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
  transition: color .15s, border-color .15s;
}
.issue-pin:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}
.card-large { padding: 0; border: none; background: transparent; }
.card-large .card-image { aspect-ratio: 16/9; }
.card-large .card-title { font-size: 32px; }
.card-large .card-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.archive-year {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 72px;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 60px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.archive-items { list-style: none; }
.archive-item {
  display: grid;
  grid-template-columns: 110px 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  font-size: 16px;
}
.archive-item:hover { background: var(--paper-2); }
.archive-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.archive-rubric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.archive-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
}
.archive-title:hover { color: var(--accent); }
.archive-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-box { max-width: 740px; margin: 0 auto 40px; }
.search-box input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 20px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  letter-spacing: -0.005em;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-status {
  max-width: 740px;
  margin: 0 auto 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-results { max-width: 740px; margin: 0 auto 80px; }
.search-result {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26,26,26,0.1);
}
.search-result:hover { background: var(--paper-2); }
.search-result-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.search-result-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.search-result-dek { font-size: 14px; color: #444; }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
.empty-state a { border-bottom: 1px solid var(--accent); color: var(--accent); }

/* ==================== ГЛАВНАЯ V2: МОЗАИКА ====================
   Карточки с фото во весь блок, текст поверх градиента.
   Три разных паттерна на рубрику — большой блок смещается
   влево / вправо / по центру, создавая ритм на странице.
   ============================================================ */

/* ----- Базовая mosaic-карточка ----- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  background-color: #111; /* тёмный фоллбэк если нет фото */
}

/* Фоновое фото — масштабируется при ховере */
.mosaic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.mosaic-card:hover .mosaic-bg { transform: scale(1.05); }

/* Градиент + ссылка-оверлей */
.mosaic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.18) 55%,
    transparent 100%);
  color: #fff;
  text-decoration: none;
  transition: background .25s;
}
.mosaic-card:hover .mosaic-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.28) 60%,
    transparent 100%);
}

.mosaic-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 5px;
}

.mosaic-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}

/* Большая карточка — увеличенный заголовок и дек */
.mosaic-card.mc-feat .mosaic-title { font-size: 24px; }
.mosaic-dek {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  margin-top: 7px;
}
.mosaic-card.mc-feat .mosaic-dek { display: block; }

/* ----- Топ-3: три равных высоких карточки ----- */
.mosaic-top3 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  margin-top: 24px;
}
/* Герой внутри контейнера — двойной класс бьёт .hero-split { margin-left: 32px } */
.hero-split.hero-split--flush {
  margin-left: 0;
}

/* ----- Style: большой блок слева  [AA][B][C]
                                    [AA][D][E]  ----- */
.mosaic-style {
  grid-template-rows: 220px 220px;
  grid-template-areas:
    "a a b c"
    "a a d e";
}
.mosaic-style .mosaic-card:nth-child(1) { grid-area: a; }
.mosaic-style .mosaic-card:nth-child(2) { grid-area: b; }
.mosaic-style .mosaic-card:nth-child(3) { grid-area: c; }
.mosaic-style .mosaic-card:nth-child(4) { grid-area: d; }
.mosaic-style .mosaic-card:nth-child(5) { grid-area: e; }

/* ----- Beauty: большой блок справа  [A][B][CC]
                                       [D][E][CC]  ----- */
.mosaic-beauty {
  grid-template-rows: 220px 220px;
  grid-template-areas:
    "a b c c"
    "d e c c";
}
.mosaic-beauty .mosaic-card:nth-child(1) { grid-area: a; }
.mosaic-beauty .mosaic-card:nth-child(2) { grid-area: b; }
.mosaic-beauty .mosaic-card:nth-child(3) { grid-area: c; }
.mosaic-beauty .mosaic-card:nth-child(4) { grid-area: d; }
.mosaic-beauty .mosaic-card:nth-child(5) { grid-area: e; }

/* ----- Lifestyle: высокий блок по центру  [A][BB][C]
                                             [D][BB][E]  ----- */
.mosaic-lifestyle {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  grid-template-areas:
    "a b c"
    "d b e";
}
.mosaic-lifestyle .mosaic-card:nth-child(1) { grid-area: a; }
.mosaic-lifestyle .mosaic-card:nth-child(2) { grid-area: b; }
.mosaic-lifestyle .mosaic-card:nth-child(3) { grid-area: c; }
.mosaic-lifestyle .mosaic-card:nth-child(4) { grid-area: d; }
.mosaic-lifestyle .mosaic-card:nth-child(5) { grid-area: e; }

/* ----- Адаптив мозаики ----- */
@media (max-width: 900px) {
  .mosaic-style,
  .mosaic-beauty {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-auto-rows: 200px;
    gap: 2px;
  }
  .mosaic-style .mosaic-card,
  .mosaic-beauty .mosaic-card { grid-area: unset !important; }
  .mosaic-lifestyle {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-auto-rows: 200px;
  }
  .mosaic-lifestyle .mosaic-card { grid-area: unset !important; }
  .mosaic-top3 { grid-auto-rows: 240px; }
  .mosaic-card.mc-feat .mosaic-title { font-size: 18px; }
  .mosaic-card.mc-feat .mosaic-dek { display: none; }
}
@media (max-width: 600px) {
  .mosaic-style,
  .mosaic-beauty,
  .mosaic-lifestyle,
  .mosaic-top3 {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
}

/* ==================== АНИМАЦИИ ==================== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 0.8s ease-out forwards; }
.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ==================== АДАПТИВ ==================== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { border-left: none; border-top: 1px solid var(--line); }
  .grid-3, .grid-6 { grid-template-columns: 1fr 1fr; }
  .grid-3 .card:nth-child(2n) { border-right: none; }
  .grid-6 .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid-6 .card:nth-child(2n) { border-right: none; }
  .grid-6 .card:nth-last-child(-n+2) { border-bottom: none; }
  .rubric-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .archive-item { grid-template-columns: 100px 1fr; gap: 16px; }
  .archive-rubric, .archive-author { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .topbar .container { gap: 10px; }
  .topbar .marquee { display: none; }
  .topbar .date { font-size: 10px; }
  .header { padding-top: 16px; }
  .header-top { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .header-meta { display: none; }
  .header-meta-right { justify-content: center; gap: 16px; }
  .nav { margin-top: 12px; }
  .nav-list {
    gap: 20px;
    font-size: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list > li { flex-shrink: 0; }
  .nav-list > li > a { padding: 10px 0; }
  /* На мобильных — никаких выпадашек, подрубрики доступны на странице рубрики */
  .nav-dropdown { display: none; }
  .nav-item-has-dropdown::after { display: none; }

  .hero-split { flex-direction: column; height: auto; gap: 2px; margin-left: 0; }
  .hero-carousel-col { flex: none; width: 100%; height: clamp(360px, 55vw, 540px); }
  .hero-issue-col { flex: none; width: 100%; height: 280px; }
  .grid-3, .grid-6, .related-grid { grid-template-columns: 1fr; }
  .grid-3 .card, .grid-6 .card { border-right: none; }
  .grid-6 .card { border-bottom: 1px solid var(--line); }
  .hero-content { padding: 32px 24px; }
  .hero-image { min-height: 400px; }
  .manifesto { margin-left: -20px; margin-right: -20px; padding: 60px 24px; }
  .section-title { font-size: 30px; }
  .article-head { padding: 48px 20px 40px; }
  .article-body { padding: 0 24px; margin-top: 48px; }
  .article-body p, .qa-a { font-size: 17px; }
  .article-body > p:first-of-type::first-letter { font-size: 72px; }
  .article-byline { gap: 12px; font-size: 10px; padding: 16px 0; }
  .cover-caption, .wide-image, .article-tags { padding: 0 20px; }
  .pullquote { margin: 60px 0; }
  .diptych { grid-template-columns: 1fr; padding: 0 20px; }
  .author-card { grid-template-columns: 1fr; padding: 24px; }
  .author-avatar { width: 72px; height: 72px; font-size: 24px; }
  .footer-nav { gap: 10px 24px; }
  .footer-bottom { text-align: center; }
  .archive-year { font-size: 48px; }
}

/* ==================== HERO SPLIT: КАРУСЕЛЬ + ОБЛОЖКА НОМЕРА ==================== */
.hero-split {
  display: flex;
  height: clamp(500px, 75vh, 880px);
  overflow: hidden;
  margin-left: 32px;
  margin-top: 32px;
}
.hero-carousel-col {
  flex: 1;
  position: relative;
  overflow: hidden;
}
/* Цепочка высот: все вложенные элементы должны наследовать 100% */
.hero-carousel-col .carousel,
.hero-carousel-col .carousel-track,
.hero-carousel-col .carousel-slide,
.hero-carousel-col .carousel-image-wrap { height: 100%; }
.hero-carousel-col .carousel-image { height: 100%; }

/* Панель с обложкой номера — обложка сверху, текст снизу */
.hero-issue-col {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  padding: 32px 32px 32px 48px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.hero-issue-photo {
  flex: 1;
  min-height: 0;
  background-size: cover;
  background-position: center top;
  background-color: #c8c4be;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.hero-issue-info {
  flex-shrink: 0;
  padding-top: 20px;
}
.hero-issue-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-issue-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-issue-season {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero-issue-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity .2s;
}
.hero-issue-col:hover .hero-issue-cta { opacity: 0.65; }

/* ==================== КАРУСЕЛЬ COVER STORIES (full-bleed) ==================== */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  min-width: 0;
}
.carousel-image-wrap { display: block; }
.carousel-image {
  width: 100%;
  height: clamp(620px, 86vh, 1040px);
  background-color: #2a2823;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 15%, rgba(0,0,0,0.62) 78%, rgba(0,0,0,0.80) 100%);
}
.carousel-image .issue-badge {
  position: absolute;
  top: 32px; left: 40px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 6px 10px;
}
.carousel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 clamp(24px, 5vw, 80px) clamp(56px, 7vh, 80px);
  pointer-events: none;
  z-index: 2;
}
.carousel-content a { pointer-events: all; }
.carousel-content .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.7);
  margin-bottom: 16px;
}
.carousel-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.carousel-title a { color: #f5f2ec; transition: opacity .2s; }
.carousel-title a:hover { opacity: 0.8; }
.carousel-dek {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: rgba(245,242,236,0.82);
  max-width: 60ch;
  margin-bottom: 20px;
}
.carousel-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.6);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.carousel-meta .author { color: rgba(245,242,236,0.8); }
.carousel-meta .issue-link { color: rgba(245,242,236,0.9); }
.carousel-meta .issue-link:hover { color: #fff; text-decoration: underline; }

/* Стрелки карусели */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(0,0,0,0.55); }
.carousel-arrow-prev { left: 20px; }
.carousel-arrow-next { right: 20px; }

/* Дефисы-индикаторы карусели */
.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: clamp(24px, 5vw, 80px);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 3;
}
.carousel-dot {
  width: 20px; height: 2px;
  border: none;
  background: rgba(245,242,236,0.28);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.carousel-dot.active { background: #f5f2ec; width: 40px; }

/* ==================== БЛОК НОМЕРОВ ==================== */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.issue-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.issue-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  border: var(--card-border);
  border-radius: var(--radius-card);
  transition: opacity .2s;
}
.issue-card:hover .issue-cover { opacity: 0.85; }
.issue-number {
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245,242,236,0.7);
  background: rgba(0,0,0,0.4);
  padding: 4px 7px;
}
.issue-meta {
  margin-top: 12px;
}
.issue-season {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.issue-name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .issues-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==================== СТРАНИЦА ВСЕХ НОМЕРОВ ==================== */
.issues-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  margin-bottom: 80px;
}
.issues-index-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.issues-index-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  border: var(--card-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: box-shadow .25s, transform .25s;
}
.issues-index-card:hover .issues-index-cover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}
.issues-index-num {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(245,242,236,0.8);
  background: rgba(0,0,0,0.38);
  padding: 4px 8px;
}
.issues-index-meta { margin-top: 14px; }
.issues-index-season {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.issues-index-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 4px;
}
.issues-index-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
@media (max-width: 900px) { .issues-index-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .issues-index-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }

