/* =====================================================================
   ENHANCE — аддитивный слой полировки.
   Подключается ПОСЛЕ инлайновых стилей каждой страницы и только
   усиливает существующую эстетику (тёмная архивная editorial-тема),
   не переопределяя её идентичность: типографика, состояния, микромоушн,
   улучшенные таймлайны. Палитра и шрифты — те же переменные сайта.
   ===================================================================== */

/* ── Типографические тонкости ───────────────────────────────────── */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Заголовки — балансировка строк (ровные переносы) */
.hero-title,
.section-title,
.blocks-title,
.decade-years,
.decade-headline,
.article-title,
.featured-card-title,
.block-title,
.highlight-title,
.article-sub,
.about-text,
.pullquote,
figcaption {
  text-wrap: balance;
}

/* Абзацы — без «висячих» одиночных слов */
.hero-desc,
.article-lead,
.article-body p,
.block-desc,
.featured-card-lead,
.decade-intro,
.fact-text,
.tl-side,
.about-footnote {
  text-wrap: pretty;
}

/* Цифры — моноширинные табличные (ровные колонки чисел/годов) */
.num,
.decade-num,
.stat-cell .n,
.highlight-num,
.tl-node b,
.fact-year,
.hero-meta .years,
.header-years,
.carousel-dots {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ── Брендовое выделение текста ──────────────────────────────────── */
::selection {
  background: rgba(166, 39, 28, 0.32);
  color: #26221C;
}

::-moz-selection {
  background: rgba(166, 39, 28, 0.32);
  color: #26221C;
}

/* ── Тонкий скроллбар в палитре сайта ────────────────────────────── */
html {
  scrollbar-width: thin;
  scrollbar-color: #D9CFBA #F2EDE3;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #F2EDE3;
}

::-webkit-scrollbar-thumb {
  background: #D9CFBA;
  border: 3px solid #F2EDE3;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C0B295;
}

/* ── Якорные переходы с учётом фиксированной шапки ───────────────── */
[id] {
  scroll-margin-top: 88px;
}

/* ── Декоративная кавычка во врезках ─────────────────────────────── */
.pullquote {
  position: relative;
}

.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 8px;
  top: -0.34em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 3.6em;
  line-height: 1;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.pullquote cite,
.pullquote {
  position: relative;
  z-index: 1;
}

/* ── Анимированное подчёркивание ссылок-источников ──────────────── */
.article-body a.ref {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s cubic-bezier(.16, 1, .3, 1), color .2s;
}

.article-body a.ref:hover {
  background-size: 100% 1px;
}

/* ── Подписи изображений: отдельная строка для источника ─────────── */
figcaption:not(.ig-foot) {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
}

figcaption:not(.ig-foot)::before {
  grid-column: 1;
  grid-row: 1;
  margin-top: .72em;
}

figcaption:not(.ig-foot) .caption-text,
figcaption:not(.ig-foot) .image-source {
  grid-column: 2;
  min-width: 0;
}

figcaption:not(.ig-foot) .image-source {
  display: block;
  color: var(--text-faint);
}

/* =====================================================================
   SCROLL-REVEAL — мягкое появление при прокрутке (через JS-класс).
   Включается только при отсутствии prefers-reduced-motion.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal-js .reveal:not(.tl-row) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
      transform .7s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
  }

  .has-reveal-js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* Таймлайн: строки появляются «навстречу» оси */
  .has-reveal-js .tl-row.reveal .tl-node {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .5s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
  }

  .has-reveal-js .tl-row.reveal .tl-side.l:not(.empty) {
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .tl-row.reveal .tl-side.r:not(.empty) {
    opacity: 0;
    transform: translateX(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .tl-row.is-in .tl-node,
  .has-reveal-js .tl-row.is-in .tl-side.l:not(.empty),
  .has-reveal-js .tl-row.is-in .tl-side.r:not(.empty) {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   TIMELINE — обогащение: «живая» ось, акцентные узлы, цветные коннекторы.
   Классы те же (.tl, .tl-node, .tl-side, .tl-row) — переопределяем мягко.
   ===================================================================== */

/* Прогресс-ось: золото→красный «заполняет» линию по мере прокрутки.
   Элемент .tl-progress добавляется скриптом enhance.js. */
.tl-progress {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--terra));
  box-shadow: 0 0 6px rgba(176, 125, 38, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* На узких экранах ось таймлайна смещается влево — двигаем и прогресс */
@media (max-width: 768px) {
  .tl-progress {
    left: 22px;
    transform: none;
  }
}

/* Узлы-годы: мягкое кольцо, внутренняя точка, отклик на наведение */
.tl-node b {
  transition: border-color .35s, color .35s, box-shadow .35s, transform .35s;
}

.tl-node b::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
  transform: translate(-50%, 50%);
  transition: background .35s;
}

.tl-row:hover .tl-node b {
  box-shadow: 0 0 0 5px rgba(176, 125, 38, 0.08), 0 6px 20px rgba(38, 34, 28, 0.14);
  transform: translateY(-1px);
}

.tl-row:hover .tl-node b::after {
  background: var(--gold);
}

/* Коннекторы окрашиваются по «стороне»: СССР — красный, мир — синий */
.tl-side.l:not(.empty)::after {
  background: linear-gradient(to right, transparent, var(--terra)) !important;
  height: 1px;
}

.tl-side.r:not(.empty)::before {
  background: linear-gradient(to left, transparent, #A0ABAF) !important;
  height: 1px;
}

/* Лёгкая «карточность» текста вехи при наведении на строку */
.tl-row {
  transition: none;
}

.tl-side {
  transition: color .25s;
}

.tl-row:hover .tl-side:not(.empty) {
  color: var(--text);
}

/* Подписи-колонки таймлайна чуть выразительнее */
.tl-heads span {
  opacity: .9;
}

/* ── Микро-отклик карточек (усиление существующих hover) ─────────── */
.featured-card,
.decade-card,
.block,
.highlight-item {
  transition: background 300ms, transform 350ms cubic-bezier(.16, 1, .3, 1),
    border-color 300ms, box-shadow 350ms;
}

@media (prefers-reduced-motion: no-preference) {
  .has-reveal-js .block.reveal {
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
      transform .7s cubic-bezier(.16, 1, .3, 1),
      background .42s ease,
      border-color .42s ease,
      box-shadow .48s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .block.reveal.is-in {
    transition: opacity .35s ease,
      transform .5s cubic-bezier(.16, 1, .3, 1),
      background .42s ease,
      border-color .42s ease,
      box-shadow .5s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .block.reveal.is-in:hover {
    transform: translateY(-6px);
  }

  .has-reveal-js .block.reveal.is-in .block-img img {
    transition-duration: .75s;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
}

/* ── Аккуратные focus-состояния (поверх существующих) ────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =====================================================================
   ОРКЕСТРОВАННОЕ ПОЯВЛЕНИЕ ПРИ ЗАГРУЗКЕ — фирменный «первый кадр».
   Один выверенный каскад вместо разрозненных эффектов. Только hero/шапки.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ehRise {
    from {
      opacity: 0;
      transform: translateY(22px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-kicker,
  .hero-title,
  .hero-bottom,
  .scroll-hint,
  .decade-eyebrow,
  .decade-years,
  .decade-headline,
  .decade-intro,
  .article-meta,
  .article-title,
  .article-lead,
  .article-byline {
    opacity: 0;
    animation: ehRise .85s cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero-kicker {
    animation-delay: .05s;
  }

  .hero-title {
    animation-delay: .16s;
  }

  .hero-bottom {
    animation-delay: .34s;
  }

  .scroll-hint {
    animation-delay: .50s;
  }

  .decade-eyebrow {
    animation-delay: .05s;
  }

  .decade-years {
    animation-delay: .16s;
  }

  .decade-headline {
    animation-delay: .30s;
  }

  .decade-intro {
    animation-delay: .44s;
  }

  .article-meta {
    animation-delay: .05s;
  }

  .article-title {
    animation-delay: .15s;
  }

  .article-lead {
    animation-delay: .30s;
  }

  .article-byline {
    animation-delay: .44s;
  }
}

/* ── Атмосферное зерно поверх всей страницы (очень деликатно) ─────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── Микро-подчёркивание навигации (растущая линия) ──────────────── */
.header-nav a,
.footer-nav a,
.section-link {
  position: relative;
}

.header-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  transition: right .35s cubic-bezier(.16, 1, .3, 1);
}

.header-nav a:hover::after,
.footer-nav a:hover::after {
  right: 0;
}

/* Полоса под крупными цифрами статистики при появлении (тонкий акцент) */
.stat-cell .n {
  display: inline-block;
}

/* ── Подводящий текст декады: расширенный лид + блок «резюме» ─────── */
.decade-intro {
  max-width: 720px;
}

.decade-intro+.decade-intro {
  margin-top: 18px;
}

.decade-intro strong {
  color: var(--text);
  font-weight: 500;
}

/* даты и цифры — сигнальный красный (по палитре летописи) */
.decade-intro .ev {
  color: var(--red);
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
}

/* =====================================================================
   НАТИВНАЯ ИНФОГРАФИКА
   Собрана из тех же данных, что и печатные PDF, но вёрсткой страницы:
   только переменные палитры проекта, никаких растровых плашек.
   Анимация вешается на существующий scroll-reveal (.is-in из enhance.js).
   ===================================================================== */
.ig {
  position: relative;
  overflow: hidden;
  margin: 60px -70px;
  padding: 38px 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ig::after {
  /* буква-водяной знак, как на печатной версии */
  content: attr(data-mark);
  position: absolute;
  right: -22px;
  top: -54px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 230px;
  line-height: 1;
  color: var(--surface2);
  pointer-events: none;
}

.ig>* {
  position: relative;
  z-index: 1;
}

.ig-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 18px;
  gap: 10px;
}

.ig-eyebrow .p {
  color: var(--text-faint);
}

.ig-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.07;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 10px;
}

.ig-title em {
  font-style: normal;
  color: var(--gold);
}

.ig-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 20px;
  max-width: 64ch;
}

.ig-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.ig-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* цифры */
.ig-stats {
  display: grid;
  gap: 12px;
}

.ig-stats.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.ig-stats.c4 {
  grid-template-columns: repeat(4, 1fr);
}

.ig-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--terra);
  padding: 14px 14px 12px;
}

.ig-stat .n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 7px;
  /* цифры — сигнальный красный */
}

.ig-stat .l {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-dim);
}

/* горизонтальная хронология */
.ig-tl {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ig-tl li {
  flex: 1;
  padding-right: 14px;
  position: relative;
}

.ig-tl .bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--border2);
  margin-bottom: 13px;
  transform: scaleX(0);
  transform-origin: left;
}

.ig-tl li.on .bar {
  background: var(--terra);
}

.ig-tl .dot {
  position: absolute;
  left: 0;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border2);
  transform: scale(0);
}

.ig-tl li.on .dot {
  background: var(--terra);
  border-color: var(--terra);
}

.ig-tl .y {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
}

.ig-tl .d {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
  margin-top: 4px;
}

.ig-tl .d b {
  color: var(--text);
  font-weight: 500;
}

/* вертикальная хронология */
.ig-vt {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
}

.ig-vt::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.ig-vt li {
  position: relative;
  padding-bottom: 15px;
}

.ig-vt li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border2);
  transform: scale(0);
}

.ig-vt li.on::before {
  border-color: var(--terra);
}

.ig-vt .y {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  margin-right: 12px;
}

.ig-vt h4 {
  display: inline;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.ig-vt p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 4px 0 0;
}

/* сравнительные шкалы */
.ig-cmp .row {
  margin-bottom: 16px;
}

.ig-cmp .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.ig-cmp .side {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ig-cmp .val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--red);
}

.ig-cmp .track {
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ig-cmp .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--terra);
}

.ig-cmp .row.b .fill {
  background: var(--blue);
}

.ig-cmp .cap {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
  margin-top: 6px;
}

/* спотлайт */
.ig-spot {
  display: flex;
  gap: 20px;
  margin: 14px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
}

.ig-spot .lead {
  flex: 0 0 auto;
}

/* ширину задаёт число, см. .bigl */
.ig-spot .big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 27px;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.ig-spot .bigl {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-top: 6px;
  line-height: 1.35;
  max-width: 34mm;
}

.ig-spot h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  margin: 0 0 7px;
}

.ig-spot p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

.ig-spot p.q {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text);
  margin-top: 8px;
}

/* цитаты */
.ig-quote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 18px;
  margin: 16px 0;
}

.ig-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 7px;
}

.ig-quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--olive);
}

.ig-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ig-quotes .ig-quote {
  margin: 16px 0 0;
}

/* карточки */
.ig-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.ig-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px 18px;
}

.ig-card h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}

.ig-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

.ig-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 4px 0 0;
}

.ig-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--olive);
}

.ig-foot .dl {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  white-space: nowrap;
}

.ig-foot .dl:hover {
  color: var(--terra);
  border-color: var(--terra);
}

/* ── Анимация: всё завязано на .is-in, который ставит наблюдатель ────── */
@media (prefers-reduced-motion: no-preference) {

  .has-reveal-js .ig .ig-stat,
  .has-reveal-js .ig .ig-card,
  .has-reveal-js .ig .ig-quote,
  .has-reveal-js .ig .ig-spot,
  .has-reveal-js .ig .ig-cmp .row,
  .has-reveal-js .ig .ig-vt li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1),
      transform .6s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .ig.is-in .ig-stat,
  .has-reveal-js .ig.is-in .ig-card,
  .has-reveal-js .ig.is-in .ig-quote,
  .has-reveal-js .ig.is-in .ig-spot,
  .has-reveal-js .ig.is-in .ig-cmp .row,
  .has-reveal-js .ig.is-in .ig-vt li {
    opacity: 1;
    transform: none;
  }

  /* шкалы «прочерчиваются», узлы выщёлкиваются */
  .has-reveal-js .ig .ig-tl .bar {
    transition: transform .75s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .ig .ig-tl .dot,
  .has-reveal-js .ig .ig-vt li::before {
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  }

  .has-reveal-js .ig .ig-cmp .fill {
    transition: width 1.15s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .ig.is-in .ig-tl .bar {
    transform: scaleX(1);
  }

  .has-reveal-js .ig.is-in .ig-tl .dot,
  .has-reveal-js .ig.is-in .ig-vt li::before {
    transform: scale(1);
  }

  .has-reveal-js .ig.is-in .ig-cmp .fill {
    width: var(--w);
  }

  /* каскад: элементы входят по очереди, а не пачкой */
  .ig .ig-stat:nth-child(1),
  .ig .ig-vt li:nth-child(1) {
    transition-delay: .04s;
  }

  .ig .ig-stat:nth-child(2),
  .ig .ig-vt li:nth-child(2) {
    transition-delay: .10s;
  }

  .ig .ig-stat:nth-child(3),
  .ig .ig-vt li:nth-child(3) {
    transition-delay: .16s;
  }

  .ig .ig-stat:nth-child(4),
  .ig .ig-vt li:nth-child(4) {
    transition-delay: .22s;
  }

  .ig .ig-stat:nth-child(5),
  .ig .ig-vt li:nth-child(5) {
    transition-delay: .28s;
  }

  .ig .ig-stat:nth-child(6),
  .ig .ig-vt li:nth-child(6) {
    transition-delay: .34s;
  }

  .ig .ig-vt li:nth-child(7) {
    transition-delay: .40s;
  }

  .ig .ig-tl li:nth-child(1) .bar,
  .ig .ig-tl li:nth-child(1) .dot {
    transition-delay: .06s;
  }

  .ig .ig-tl li:nth-child(2) .bar,
  .ig .ig-tl li:nth-child(2) .dot {
    transition-delay: .18s;
  }

  .ig .ig-tl li:nth-child(3) .bar,
  .ig .ig-tl li:nth-child(3) .dot {
    transition-delay: .30s;
  }

  .ig .ig-tl li:nth-child(4) .bar,
  .ig .ig-tl li:nth-child(4) .dot {
    transition-delay: .42s;
  }

  .ig .ig-tl li:nth-child(5) .bar,
  .ig .ig-tl li:nth-child(5) .dot {
    transition-delay: .54s;
  }

  .ig .ig-cmp .row:nth-child(2) .fill {
    transition-delay: .18s;
  }

  .ig .ig-card:nth-child(2),
  .ig .ig-quotes .ig-quote:nth-child(2) {
    transition-delay: .12s;
  }
}

@media (max-width: 900px) {
  .ig {
    margin: 40px 0;
    padding: 26px 20px 20px;
  }

  .ig-title {
    font-size: 28px;
  }

  .ig-stats.c3,
  .ig-stats.c4 {
    grid-template-columns: 1fr 1fr;
  }

  .ig-tl {
    flex-direction: column;
    gap: 14px;
  }

  .ig-tl li {
    padding-right: 0;
  }

  .ig-duo,
  .ig-quotes {
    grid-template-columns: 1fr;
  }

  .ig-spot {
    flex-direction: column;
    gap: 12px;
  }

  .ig-spot .bigl {
    max-width: none;
  }

  .ig::after {
    font-size: 150px;
    right: -14px;
  }
}

/* Буквица статьи не должна протекать внутрь инфографики:
   .article-body p:first-child::first-letter ловит любой первый абзац,
   включая абзацы цитат и карточек внутри .ig */
.article-body .ig p::first-letter,
.article-body .callout p::first-letter,
.article-body .expert p::first-letter {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  float: none;
  padding: 0;
  color: inherit;
}

/* =====================================================================
   ЛИД ДЕСЯТИЛЕТИЯ — во всю ширину полосы.
   Не растянутая строка на 1400px (её невозможно читать), а газетные
   колонки: первый абзац идёт врезкой на всю ширину, остальные — потоком
   по колонкам, так что текст занимает полосу целиком и остаётся с
   комфортной длиной строки.
   ===================================================================== */
.decade-lede {
  margin-top: 34px;
  columns: 2;
  column-gap: 60px;
}

.decade-lede .decade-intro {
  max-width: none;
  /* снимаем ограничение в 680px */
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.72;
}

.decade-lede .decade-intro:last-child {
  margin-bottom: 0;
}

/* первый абзац — врезка на всю полосу, задаёт тон десятилетию */
.decade-lede>.decade-intro:first-child {
  column-span: all;
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1700px) {
  .decade-lede {
    columns: 3;
    column-gap: 54px;
  }
}

@media (max-width: 1000px) {
  .decade-lede {
    columns: 1;
  }

  .decade-lede>.decade-intro:first-child,
  .decade-lede .decade-intro {
    font-size: 17px;
    line-height: 1.6;
    text-align: left !important;
  }
}

/* ── акценты в лиде ─────────────────────────────────────────────────
   цифры-факты — сигнальный красный, цитаты — терракот,
   названия машин и терминов — приборная охра.                        */
.decade-lede .ev {
  color: var(--red);
  font-style: normal;
  white-space: nowrap;
}

.decade-lede .qt {
  font-style: italic;
  color: var(--terra);
}

.decade-lede .nm {
  font-style: normal;
  color: var(--gold);
}

/* =====================================================================
   ЕДИНОЕ ОФОРМЛЕНИЕ ЦИТАТ ПО ВСЕМУ СПЕЦПРОЕКТУ
   Эталон — врезка в статьях: охряная линейка слева, крупная серифная
   курсивная строка, декоративная кавычка и подпись моноширинным
   капслоком. Ниже к этому языку приведены цитаты в инфографике
   и во врезках-спотлайтах.
   ===================================================================== */
.pullquote,
.ig-quote,
.ig-spot p.q {
  position: relative;
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}

.pullquote {
  margin: 40px 0;
  font-size: 24px;
}

.ig-quote {
  margin: 26px 0;
  font-size: 19px;
}

.ig-spot p.q {
  margin: 12px 0 0;
  font-size: 15px;
  padding-left: 22px;
}

/* декоративная кавычка — одна на все врезки */
.pullquote::before,
.ig-quote::before,
.ig-spot p.q::before {
  content: "\201C";
  position: absolute;
  left: 8px;
  top: -0.34em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 3.6em;
  line-height: 1;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.ig-spot p.q::before {
  left: 4px;
  font-size: 3em;
}

.pullquote>*,
.ig-quote>* {
  position: relative;
  z-index: 1;
}

/* абзац внутри блока цитаты не должен спорить с типографикой врезки */
.ig-quote p,
.ig-quotes .ig-quote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

/* подпись — одинаковая везде */
.pullquote cite,
.ig-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
}

.pullquote cite {
  margin-top: 14px;
  font-size: 11px;
}

.ig-quote cite {
  margin-top: 12px;
  font-size: 10px;
}

/* пара цитат рядом — сохраняем воздух между колонками */
.ig-quotes {
  column-gap: 26px;
}

@media (max-width: 900px) {
  .ig-quote {
    font-size: 17px;
    padding-left: 22px;
  }

  .ig-spot p.q {
    font-size: 14px;
  }
}

/* =====================================================================
   ТЕКСТОЛИТ ПЛАТ (--olive) — технический регистр проекта.
   Служебная строка шапки, ось и обвязка таймлайнов, подписи в инфографике.
   ===================================================================== */

/* ── 1. Шапки страниц ───────────────────────────────────────────────── */
.header-logo-word,
.header-years,
.header-channel-label,
.header-back,
.footer-copy,
.site-footer .footer-logo span:not(:first-child) {
  color: var(--olive);
}

.header-channel-label strong {
  color: var(--olive);
}

.header-nav a {
  color: var(--olive);
}

.header-nav a:hover {
  color: var(--text);
}

.header-back:hover {
  color: var(--terra);
}

.header-logo-word {
  border-left-color: var(--olive);
  opacity: .85;
}

/* ── 2. Таймлайн десятилетий — горизонтальный ───────────────────────── */
.tl {
  max-width: none;
  margin: 52px 0 0;
  position: relative;
}

.tl::before {
  display: none;
}

/* убираем вертикальную ось */

/* легенда сторон — в строку, над осью */
.tl-heads {
  display: flex;
  gap: 26px;
  margin-bottom: 16px;
  grid-template-columns: none;
}

.tl-heads span {
  grid-column: auto !important;
  justify-content: flex-start !important;
}

.tl-track {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

/* сама ось — оливковая, тянется через весь трек */
.tl-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--olive);
  opacity: .30;
}

.tl-track .tl-row {
  flex: 0 0 300px;
  display: grid;
  grid-template-columns: none;
  grid-template-rows: 1fr auto 1fr;
  align-items: stretch;
  padding: 0 16px;
  scroll-snap-align: start;
  border-right: 1px dashed var(--border);
}

.tl-track .tl-row:last-child {
  border-right: 0;
}

.tl-track .tl-side {
  grid-column: auto;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  padding: 0;
  position: relative;
}

.tl-track .tl-side.l {
  grid-row: 1;
  align-self: end;
  padding-bottom: 20px;
}

.tl-track .tl-node {
  grid-row: 2;
  grid-column: auto;
  justify-content: flex-start;
}

.tl-track .tl-side.r {
  grid-row: 3;
  align-self: start;
  padding-top: 20px;
}

.tl-track .tl-side.empty {
  display: block;
  padding: 0;
}

/* вертикальные усики от текста к оси — тоже оливковые */
.tl-track .tl-side.l:not(.empty)::after,
.tl-track .tl-side.r:not(.empty)::before {
  content: "";
  position: absolute;
  left: 21px;
  width: 1px;
  height: 14px;
  background: var(--olive);
  opacity: .5;
  top: auto;
  right: auto;
}

.tl-track .tl-side.l:not(.empty)::after {
  bottom: 3px;
}

.tl-track .tl-side.r:not(.empty)::before {
  top: 3px;
}

/* узел-год */
.tl-track .tl-node b {
  width: 44px;
  height: 44px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.tl-track .tl-row:hover .tl-node b {
  border-color: var(--terra);
  color: var(--terra);
}

/* маркеры сторон остаются цветовым кодом СССР / мир */
.tl-track .tl-side.l:not(.empty) {
  border-left: 2px solid var(--terra);
  padding-left: 12px;
}

.tl-track .tl-side.r:not(.empty) {
  border-left: 2px solid var(--blue);
  padding-left: 12px;
}

/* прогресс-полоса вдоль оси (ширину ведёт enhance.js) */
.tl-progress {
  position: absolute;
  left: 0;
  top: 50%;
  transform: none;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--olive), var(--terra));
  box-shadow: none;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .tl-progress {
    left: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .tl-track .tl-row {
    flex-basis: 250px;
  }

  .tl-heads {
    display: flex;
  }
}

/* ── 3. Инфографика — подписи и служебные строки ────────────────────── */
.ig-eyebrow .p,
.ig-stat .l,
.ig-cmp .cap,
.ig-cmp .side,
.ig-spot .bigl,
.ig-note,
.ig-tl .d,
.ig-vt p {
  color: var(--olive);
}

.ig-label {
  color: var(--gold);
}

/* заголовки блоков остаются охрой */
.ig-vt::before,
.ig-tl .bar {
  background: var(--olive);
}

.ig-tl li.on .bar {
  background: var(--terra);
}

.ig-tl .dot,
.ig-vt li::before {
  border-color: var(--olive);
}

.ig-tl li.on .dot {
  background: var(--terra);
  border-color: var(--terra);
}

.ig-vt li.on::before {
  border-color: var(--terra);
}

/* Ряды таймлайна: 1fr может оказаться ниже текста и обрезать его при
   overflow-y:hidden — страхуем минимумом по контенту. */
.tl-track .tl-row {
  grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
}

.tl-track {
  align-items: stretch;
}

/* ── лестница быстродействия в инфографике ──────────────────────────── */
.ig-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-ladder li {
  display: grid;
  grid-template-columns: 104px 1fr 124px;
  align-items: center;
  gap: 14px;
}

.ig-ladder .m {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
}

.ig-ladder .m small {
  display: block;
  font-weight: 400;
  font-size: 9.5px;
  color: var(--olive);
}

.ig-ladder .track {
  height: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ig-ladder .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--terra);
}

.ig-ladder li.hi .fill {
  background: var(--red);
}

.ig-ladder .v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--red);
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .has-reveal-js .ig .ig-ladder .fill {
    transition: width 1.05s cubic-bezier(.16, 1, .3, 1);
  }

  .has-reveal-js .ig.is-in .ig-ladder .fill {
    width: var(--w);
  }

  .ig .ig-ladder li:nth-child(2) .fill {
    transition-delay: .08s;
  }

  .ig .ig-ladder li:nth-child(3) .fill {
    transition-delay: .16s;
  }

  .ig .ig-ladder li:nth-child(4) .fill {
    transition-delay: .24s;
  }

  .ig .ig-ladder li:nth-child(5) .fill {
    transition-delay: .32s;
  }

  .ig .ig-ladder li:nth-child(6) .fill {
    transition-delay: .40s;
  }
}

@media (max-width: 900px) {
  .ig-ladder li {
    grid-template-columns: 74px 1fr 92px;
    gap: 9px;
  }
}

/* Мелкий оригинал: растягивать нельзя, кадрировать — тем более.
   Даём ему поле и показываем как экспонат. */
.body-figure.is-doc figure {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 28px;
}

.body-figure.is-doc img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .body-figure.is-doc figure {
    padding: 18px;
  }
}

/* =====================================================================
   БЕЗ РАСТЯГИВАНИЯ (.fit)
   Архивный кадр в 200–600 px нельзя раздувать на всю колонку: он теряет
   резкость, а вместе с ней и доверие. Такой кадр показывается в натуральную
   величину на подложке — как экспонат под стеклом. Класс проставляется
   автоматически там, где оригинал мельче своего места.
   ===================================================================== */
.body-figure.fit figure,
.figure-duo.fit figure,
.article-hero-img.fit figure {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 26px 26px 20px;
  /* подложка обжимает кадр: у вертикального снимка не остаётся
     пустых полей в половину колонки */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.body-figure.fit img,
.figure-duo.fit figure img,
.article-hero-img.fit img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
}

.article-hero-img.fit img {
  max-height: 520px;
}

.body-figure.fit figcaption,
.figure-duo.fit figcaption,
.article-hero-img.fit figcaption {
  margin-top: 16px;
}

@media (max-width: 900px) {

  .body-figure.fit figure,
  .figure-duo.fit figure,
  .article-hero-img.fit figure {
    padding: 16px 16px 12px;
  }

  .body-figure.fit img,
  .figure-duo.fit figure img {
    max-height: 380px;
  }
}

/* =====================================================================
   ВРЕЗКА И КОММЕНТАРИЙ ЭКСПЕРТА
   В предфинальных текстах автор помечал эти места словами «оформить
   врезом» и «оформить комментарием». Врезка — короткое пояснение в сторону
   от основного повествования; комментарий — речь приглашённого эксперта,
   поэтому у него своя метка и подпись. От цитаты оба отличаются намеренно:
   цитата — голос эпохи, эти два блока — голос редакции и современника.
   ===================================================================== */
.callout {
  margin: 34px 0;
  padding: 20px 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--olive);
}

.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

.expert {
  margin: 38px 0;
  padding: 22px 26px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
}

.expert p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text);
}

.expert p:last-of-type {
  margin-bottom: 14px;
}

.expert cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--olive);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .callout {
    padding: 16px 18px;
  }

  .expert {
    padding: 18px 18px 16px;
  }
}

/* Блок источников снят, а вместе с ним ушёл и отступ в 64px, отделявший
   текст от подвала: у .article-body нижний padding нулевой. Возвращаем. */
.article-body {
  padding-bottom: 72px;
}

@media (max-width: 900px) {
  .article-body {
    padding-bottom: 48px;
  }
}

/* =====================================================================
   СНОСКА-ИСТОЧНИК (.ref)
   Факт или цифру, у которых есть источник, обводим полупрозрачной рамкой.
   По клику рядом раскрывается карточка с названием источника и ссылкой.
   Без скрипта рамка остаётся, карточка просто не открывается, а текст
   читается как обычный — поэтому разметка не мешает ни печати, ни поиску.
   ===================================================================== */
.ref {
  position: relative;
  display: inline;
}

.ref-btn {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: rgba(176, 125, 38, 0.07);
  border: 1px solid rgba(176, 125, 38, 0.38);
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 1px;
  transition: background 180ms, border-color 180ms;
  /* Кнопка по умолчанию inline-block: длинная сноска не переносится,
     а целиком спрыгивает на свою строку, разрывая абзац и растягивая
     предыдущую строку. Пускаем её в поток как обычный текст, а рамку
     дорисовываем на каждом переносе. */
  display: inline;
  text-align: left;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ref-btn:hover,
.ref-btn[aria-expanded="true"] {
  background: rgba(176, 125, 38, 0.16);
  border-color: var(--gold);
}

.ref-btn:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.ref-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  width: min(340px, 78vw);
  padding: 18px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(38, 34, 28, 0.16);
  font-family: var(--font-body);
  font-style: normal;
  text-align: left;
  cursor: auto;
}

.ref-pop[hidden] {
  display: none;
}

.ref.is-right .ref-pop {

  left: auto;
  right: 0;
}

.ref-pop-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 9px;
  padding-right: 22px;
}

.ref-pop-body {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.ref-pop-link {
  display: inline-block;
  margin-top: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  word-break: break-word;
}

.ref-pop-link:hover {
  color: var(--terra);
  border-color: var(--terra);
}

.ref-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 17px;
  line-height: 1;
}

.ref-close:hover {
  color: var(--text);
}

/* внутри врезок и цитат сноска не должна ломать курсив и кегль */
.pullquote .ref-btn,
.callout .ref-btn {
  font-style: inherit;
}

@media (max-width: 900px) {
  .ref-pop {
    width: min(320px, 86vw);
    padding: 15px 16px 14px;
  }
}

@media (max-width: 767px) {



  .pullquote {
    font-size: 20px;
  }
}

@media (max-width: 500px) {

  .ref-pop,
  .ref.is-right .ref-pop {
    position: fixed;
    top: var(--ref-pop-y, 50vh);
    left: 50vw;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}


/* ── Таблица данных в теле статьи ───────────────────────────────────
   Ряд «цифра — что это» читается таблицей, а не чередой абзацев:
   числа выровнены по правому краю и набраны моноширинным, итог
   отделён верхней линейкой. ───────────────────────────────────── */
.dtable {
  margin: 38px 0;
  padding: 22px 26px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.dtable-scroll {
  overflow-x: auto;
}

.dtable table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.dtable th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border2);
}

.dtable th.n,
.dtable td.n {
  text-align: right;
  white-space: nowrap;
}

.dtable td {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-dim);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.dtable td.n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  padding-left: 24px;
}

.dtable tbody tr:last-child td {
  border-bottom: 0;
}

.dtable tr.total td {
  border-top: 2px solid var(--border2);
  border-bottom: 0;
  padding-top: 13px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dtable tr.total td.n {
  color: var(--red);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  .dtable {
    padding: 18px 18px 16px;
  }

  .dtable td {
    font-size: 14.5px;
  }

  .dtable td.n {
    font-size: 16px;
    padding-left: 16px;
  }
}

/* ── Выключка по формату ────────────────────────────────────────────
   Переносы обязательны — без них выключка рвёт русскую строку
   пробелами в полсантиметра. ─────────────────────────────────────── */
.article-body>p,
.article-body>.callout p,
.article-body>.expert p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

@media (max-width:768px) {

  .article-body>p,
  .article-body>.callout p,
  .article-body>.expert p,
  .hero-desc {
    text-align: left;

  }
}

/* ── Хронология без подписи над ней ─────────────────────────────────
   Отступ перед лентой давала подпись; там, где её сняли, лента
   упиралась в блок цифр. Задаём отступ самой ленте и гасим его,
   когда подпись всё-таки есть. ──────────────────────────────────── */
.ig-tl,
.ig-vt,
.ig-cmp {
  margin-top: 30px;
}

.ig-label+.ig-tl,
.ig-label+.ig-vt,
.ig-label+.ig-cmp {
  margin-top: 0;
}

/* ── Маркированный список в тексте ──────────────────────────────────
   Перечень организаций приходил из .docx отдельными абзацами: каждая
   строка выглядела самостоятельным абзацем, хотя это один список.
   Маркер — короткая красная черта, как в подписях к фотографиям.
   Выключку по формату к списку не применяем: строки короткие. ────── */
.article-body ul.article-list {
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.article-body ul.article-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  line-height: 1.6;
  text-align: left;
}

.article-body ul.article-list li:last-child {
  margin-bottom: 0;
}

.article-body ul.article-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--red);
}

/* ── Строка партнёров в шапке ───────────────────────────────────────
   Логотипы отданы как есть, без перекраски. Подпись набрана тем же
   моноширинным капслоком, что и остальная служебная строка шапки.
   На узком экране слова прячем, знаки оставляем. ─────────────────── */
.header-support {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.header-support-logo {
  /* знак YADRO двухстрочный (YA / DRO), поэтому ему нужна высота:
     на 16 px строки схлопываются в пятно */
  height: 28px;
  width: auto;
  display: block;
}

.header-support-logo-k {
  height: 26px;
}

.header-support-separator {
  flex: 0 0 auto;
  width: 1px;
  height: 28px;
  background: var(--olive);
  opacity: .75;
}

@media (max-width: 900px) {
  .header-support-label {
    display: none;
  }

  .header-support-logo {
    height: 24px;
  }

  .header-support-logo-k {
    height: 22px;
  }

  .header-support-separator {
    height: 24px;
  }
}

/* ── Выключка вступления к декаде ───────────────────────────────────
   Текст идёт колонками, строка короткая — без переносов выключка
   рвала бы её пробелами, поэтому переносы обязательны. ────────────────────── */
.decade-lede .decade-intro {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}

/* ── Буквица в каждой статье ────────────────────────────────────────
   Правило на странице ловит абзац через :first-child, а тело почти
   везде начинается с заголовка главы — тогда ни один абзац первым
   ребёнком не оказывается и буквицы нет. Берём первый абзац по типу:
   он есть в любой статье, стоит перед заголовком или после него.
   Значения те же, что в правиле на странице. ───────────────────── */
.article-body>p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 4.6em;
  line-height: 0.78;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--gold);
}

@media (max-width: 600px) {
  .article-body>p:first-of-type::first-letter {
    font-size: 3.8em;
  }
}

/* Врезка на два абзаца: .callout p обнуляет отступы, поэтому интервал
   между соседними абзацами задаём отдельно. */
.callout p+p {
  margin-top: 14px;
}

/* ── Кадрирование вертикальных снимков в горизонтальных карточках ────
   object-fit: cover режет по центру, и у портрета уходит голова.
   Проценты подобраны по кадру: у портрета — по линии волос, у пульта
   ЕС-1052 — так, чтобы осталась заводская марка. ─────────────────── */
.featured-card-img img[src$="berg.webp"],
.block-img img[src$="berg.webp"] {
  object-position: 50% 10%;
}

.featured-card-img img[src$="es1052-control.webp"],
.block-img img[src$="es1052-control.webp"] {
  object-position: 50% 18%;
}