/* «Познавательные очерки»: ад в мировых религиях (главная), южнокитайский тигр, космодесантники. Только светлая тема. */

/* ---------- Шрифты (локальные, OFL; подмножества cyrillic + latin) ---------- */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/literata-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/literata-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/literata-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  color-scheme: light;
  --paper: #EBEEE6;      /* туманно-шалфейный фон */
  --panel: #F7F8F4;      /* поверхности: график, таблицы, врезки */
  --ink: #24221F;        /* угольный — текст и полосы */
  --ink-2: #4C4F46;      /* вторичный текст */
  --muted: #62655B;      /* подписи осей, примечания */
  --rule: #C3C8B9;       /* тонкие линейки */
  --grid: #D9DDD1;       /* сетка графика */
  --ochre: #D0952A;      /* мех — поле узора */
  --ochre-deep: #A9690C; /* метки данных: точные значения */
  --ochre-pale: #D6A24A; /* метки данных: оценки */
  --rust: #94401A;       /* ржавчина — ссылки и годы */

  --serif: "Literata", "PT Serif", Georgia, "Times New Roman", serif;
  --cond: "Sofia Sans Extra Condensed", "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;

  --gutter: 16px;
  --wrap: 67rem;
  --measure: 44rem; /* ~65 знаков кириллицы при 18px Literata */
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ochre-pale); color: var(--ink); }
img, svg { max-width: 100%; }
i { font-style: italic; }
.nw { white-space: nowrap; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--panel); padding: .5rem .75rem; }

.fn {
  font: 600 .72em/0 var(--cond);
  vertical-align: super;
  margin-left: .06em;
  white-space: nowrap;
}
.fn a { color: var(--rust); text-decoration: none; padding: 0 .08em; }
.fn a:hover { text-decoration: underline; }

/* ---------- Шапка и первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "art" "body";
}
.site-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 14px var(--gutter) 12px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 800 1.5rem/1 var(--cond);
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { display: block; width: 28px; height: 28px; }
.wordmark:hover { color: var(--rust); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
}
.site-nav a {
  font: 600 1.0625rem/1.8 var(--cond);
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--rust); text-decoration: underline; }

.hero__art { grid-area: art; margin: 0; position: relative; }
.hero__art img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: left 30%;
}
.hero__art figcaption {
  padding: .5rem var(--gutter) 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero__body { grid-area: body; padding: 28px var(--gutter) 40px; }
h1 {
  margin: 0;
  font: 800 clamp(3.5rem, 7.2vw, 7.25rem)/.86 var(--cond);
  letter-spacing: -.012em;
  color: var(--ink);
}
.latin { margin: 1rem 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.lead {
  margin: 1.25rem 0 0;
  max-width: 44ch;
  font-size: 1.1875rem;
  line-height: 1.55;
}
.status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 40rem;
}
.status dt { font: 600 1.0625rem/1.25 var(--cond); color: var(--ink-2); }
.status__year { display: block; font: 800 2.25rem/1 var(--cond); color: var(--rust); margin-bottom: .2rem; }
.status dd { margin: .3rem 0 0; font-size: 1.0625rem; line-height: 1.45; }
@media (min-width: 560px) {
  .status { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 36vw);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head art" "body art";
    column-gap: clamp(32px, 4vw, 64px);
    min-height: clamp(640px, 100vh, 940px);
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }
  .site-head { padding: 22px 0 0; justify-content: flex-start; }
  .hero__body { align-self: center; padding: 40px 0 56px; }
  .hero__art img { height: 100%; position: absolute; inset: 0; object-position: left top; }
  .hero__art figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 30ch;
    padding: .6rem .8rem;
    background: var(--panel);
    color: var(--ink-2);
  }
  .lead { font-size: 1.3125rem; }
}

/* ---------- Разделы ---------- */
.sec {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
  scroll-margin-top: 16px;
}
.sec::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--rule);
  margin-bottom: 36px;
}
.sec h2 {
  margin: 0 0 1.25rem;
  font: 800 2.5rem/1 var(--cond);
  letter-spacing: -.005em;
}
.sec__body { min-width: 0; }
.sec__body > p { max-width: var(--measure); margin: 0 0 1.1em; }
.note { color: var(--muted); font-size: .9375rem; }

@media (min-width: 1000px) {
  .sec {
    display: grid;
    grid-template-columns: 15rem minmax(0, 48rem);
    column-gap: 4rem;
    padding-bottom: 40px;
  }
  .sec::before { grid-column: 1 / -1; margin-bottom: 44px; }
  .sec h2 { font-size: 2.75rem; margin: 0; padding-top: .1rem; }
}

/* Версии источников */
.versions {
  margin: 1.75rem 0 2.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.versions h3 { margin: 0 0 1rem; font: 800 1.5rem/1.15 var(--cond); }
.versions__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
}
@media (min-width: 640px) {
  .versions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .versions__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.version { padding-left: .9rem; border-left: 3px solid var(--ochre); }
.version p { margin: 0; font-size: 1rem; line-height: 1.55; }
.version .version__src { margin-bottom: .3rem; font: 600 1.0625rem/1.3 var(--cond); color: var(--ink-2); }

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
}
caption {
  caption-side: top;
  text-align: left;
  padding-bottom: .5rem;
  font: 600 1.0625rem/1.3 var(--cond);
  color: var(--ink-2);
}
th, td {
  padding: .5rem .75rem .5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}
thead th { font: 600 1rem/1.25 var(--cond); color: var(--ink-2); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 400; }
.sizes { max-width: 30rem; margin: 1.5rem 0 1rem; }
.sizes td { font: 800 1.375rem/1.2 var(--cond); }

.data { margin: 0 0 2rem; }
.data td { font-size: .9375rem; line-height: 1.45; }
.data td:nth-child(-n+2) { font: 600 1.0625rem/1.3 var(--cond); white-space: nowrap; }
.data th:last-child, .data td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.src-ref { font: 600 1.0625rem/1.3 var(--cond); }
.src-ref a { text-decoration: none; }
.src-ref a:hover { text-decoration: underline; }

/* Ареал */
.provinces {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.75rem;
}
.provinces li { font: 800 2.125rem/1.1 var(--cond); }
.bounds { margin: 0 0 1.25rem; max-width: var(--measure); }
.bounds div {
  display: grid;
  align-items: baseline;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: .75rem;
  padding: .6rem 0;
  border-top: 1px solid var(--rule);
}
.bounds div:last-child { border-bottom: 1px solid var(--rule); }
.bounds dt { font: 600 1.0625rem/1.6 var(--cond); color: var(--ink-2); }
.bounds dd { margin: 0; }
@media (min-width: 720px) { .bounds div { grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; } }
.bounds b { font-weight: 600; }

/* График */
.figure {
  margin: 2rem 0 1.25rem;
  padding: 1.1rem 1rem 1rem;
  background: var(--panel);
}
@media (min-width: 720px) { .figure { padding: 1.25rem 1.25rem 1rem; } }
.figure figcaption { max-width: var(--measure); }
.figure__title { display: block; font: 800 1.625rem/1.1 var(--cond); }
.figure__note { display: block; margin-top: .35rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.legend {
  list-style: none;
  margin: .75rem 0 .75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.5rem;
  font: 600 1rem/1.4 var(--cond);
  color: var(--ink-2);
}
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.sw--exact { background: var(--ochre-deep); }
.sw--approx { background: var(--ochre-pale); }

.chart { display: block; width: 100%; height: auto; }
.chart--tall { display: none; }
@media (max-width: 599px) {
  .chart--wide { display: none; }
  .chart--tall { display: block; max-width: 400px; margin: 0 auto; }
}
.chart text { font-family: var(--cond); }
.c-grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.c-axis { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.c-bar { fill: var(--ochre-deep); }
.c-bar--approx { fill: var(--ochre-pale); }
.c-tick { font-size: 13px; font-weight: 600; fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-unit { font-size: 13px; font-weight: 600; fill: var(--muted); }
.c-val { font-size: 17px; font-weight: 800; fill: var(--ink); }
.c-pre { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.c-year { font-size: 14px; font-weight: 600; fill: var(--ink-2); }

/* Цель проекта */
.sec__body > .goal {
  padding: .9rem 1.1rem;
  background: var(--panel);
  border-left: 3px solid var(--ochre-deep);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Хронология */
.tl-legend {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  font: 600 1.0625rem/1.4 var(--cond);
  color: var(--ink-2);
}
.tl-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.mk { display: inline-block; flex: none; width: 12px; height: 12px; }
.mk--wild { background: var(--ink); border-radius: 50%; }
.mk--captive { background: var(--ochre-deep); transform: rotate(45deg) scale(.86); }
.mk--science { border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }

.timeline {
  --rail: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  grid-template-areas: "mk year" ". text";
  column-gap: .75rem;
  padding-bottom: 1.2rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}
.tl:first-child::before { top: .8rem; }
.tl:last-child::before { bottom: auto; height: .8rem; }
.tl .mk { grid-area: mk; justify-self: center; margin-top: .55rem; position: relative; }
.tl__year { grid-area: year; font: 800 1.625rem/1.15 var(--cond); }
.tl__text { grid-area: text; margin: .1rem 0 0; font-size: 1rem; line-height: 1.55; }
.tl-gap { position: relative; height: 28px; margin-bottom: 1.2rem; }
.tl-gap svg { position: absolute; top: 0; left: calc(var(--rail) - 10px); display: block; }
.tl-gap__line { fill: none; stroke: var(--rule); stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 720px) {
  .timeline { --rail: calc(7.5rem + 1rem + .75rem); }
  .tl {
    grid-template-columns: 7.5rem 1.5rem minmax(0, 1fr);
    grid-template-areas: "year mk text";
    column-gap: 1rem;
    align-items: baseline;
  }
  .tl .mk { align-self: start; margin-top: .6rem; }
  .tl__year { text-align: right; }
  .tl__text { margin-top: 0; }
}

/* Источники */
.sources { margin: 0; padding-left: 1.6rem; max-width: var(--measure); }
.sources li { margin-bottom: .8rem; padding-left: .3rem; font-size: 1rem; line-height: 1.55; scroll-margin-top: 16px; }
.sources li::marker { font: 800 1.125rem var(--cond); color: var(--rust); }
.sources li:target { background: var(--panel); outline: 2px solid var(--ochre-pale); outline-offset: 4px; }

/* Подвал */
.site-foot {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 40px auto 0;
  padding: 0 var(--gutter) 40px;
}
.site-foot p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
}

/* ---------- Страница 404 ---------- */
.nf-code { margin: 0 0 .75rem; font: 600 1.125rem/1 var(--cond); color: var(--rust); }
.nf-text { margin: 1.25rem 0 0; max-width: 40ch; font-size: 1.1875rem; line-height: 1.55; }
.nf-link {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .55rem 1.1rem .6rem;
  background: var(--ink);
  color: var(--panel);
  font: 800 1.25rem/1.1 var(--cond);
  text-decoration: none;
  border-radius: 2px;
}
.nf-link:hover { background: var(--rust); color: var(--panel); }
.hero--nf .hero__body { padding-bottom: 64px; }

/* ======================================================================
   Сайт из трёх статей: переключатель статей, подвал
   ====================================================================== */
.site-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
}
.site-articles a {
  font: 600 1.0625rem/1.8 var(--cond);
  color: var(--rust);
  text-decoration: none;
}
.site-articles a:hover { color: var(--ink); text-decoration: underline; }
.site-articles a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
}
.site-head .site-nav { flex-basis: 100%; }
@media (min-width: 720px) {
  .site-articles { padding-left: 1.1rem; border-left: 1px solid var(--rule); }
}

.foot-nav { padding-top: 18px; border-top: 1px solid var(--rule); margin-bottom: .6rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; }
.foot-nav a { font: 600 1.125rem/1.5 var(--cond); color: var(--rust); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-nav a[aria-current="page"] { color: var(--ink); }
.site-foot .foot-nav + p { border-top: 0; padding-top: 0; }

.nf-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.75rem; }
.nf-links .nf-link { margin-top: 0; }
.nf-link--alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.nf-link--alt:hover { background: var(--ink); color: var(--panel); }

/* ======================================================================
   Статья «Ад в мировых религиях»
   ====================================================================== */
.hero--hell .hero__art img { object-position: left 70%; }
@media (min-width: 900px) { .hero--hell .hero__art img { object-position: left top; } }
.hero--hell h1 { font-size: clamp(3.25rem, 6.4vw, 6.5rem); line-height: .9; }

.status--3 { max-width: 46rem; }
@media (min-width: 560px) {
  .status--3 { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
}
.status--3 .status__year { font-size: 2rem; }
.status--3 dd { font-size: 1rem; }
.status-note { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); max-width: 46rem; }

/* Содержание */
.toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; }
@media (min-width: 640px) { .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc__group { padding-top: .7rem; border-top: 2px solid var(--ink); }
.toc__title { margin: 0 0 .35rem; font: 600 1.0625rem/1.3 var(--cond); color: var(--ink-2); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { font: 800 1.625rem/1.3 var(--cond); color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--rust); text-decoration: underline; text-decoration-thickness: 2px; }

/* Подзаголовки внутри раздела */
.sec__body h3.sub {
  margin: 2.25rem 0 .75rem;
  font: 800 1.75rem/1.15 var(--cond);
  scroll-margin-top: 16px;
}
.sec__body > h3.sub:first-child { margin-top: 0; }

/* Названия */
.names { margin: 0 0 1.5rem; max-width: var(--measure); }
.names div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .1rem;
  padding: .55rem 0;
  border-top: 1px solid var(--rule);
}
.names div:last-child { border-bottom: 1px solid var(--rule); }
.names dt { font: 800 1.375rem/1.2 var(--cond); }
.names dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 560px) {
  .names div { grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}

/* Ключевые тексты */
.texts { margin: 0 0 1rem; padding: 0; list-style: none; max-width: var(--measure); }
.texts li { position: relative; padding-left: 1.4rem; margin-bottom: .35rem; font-size: 1rem; line-height: 1.5; }
.texts li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 2px; background: var(--ochre-deep); }
.texts-note { margin: 0 0 1rem; max-width: var(--measure); font-size: 1rem; color: var(--ink-2); }

/* Цитаты */
.quote {
  margin: 1.5rem 0 1.75rem;
  padding: .15rem 0 .15rem 1.1rem;
  max-width: var(--measure);
  border-left: 3px solid var(--rust);
}
.quote p { margin: 0; font-size: 1.1875rem; line-height: 1.5; }
@media (min-width: 720px) { .quote p { font-size: 1.3125rem; } }
.quote footer { margin-top: .45rem; font: 600 1.0625rem/1.35 var(--cond); color: var(--ink-2); }

.versions--plain { margin-top: 1rem; }

/* Джайнизм: семь земель */
.layers { margin: 1.75rem 0 1.5rem; max-width: var(--measure); }
.layers figcaption { margin-bottom: .6rem; font: 600 1.0625rem/1.3 var(--cond); color: var(--ink-2); }
.layers__list { list-style: none; margin: 0; padding: 0; }
.layers__l {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name life" "gloss gloss";
  column-gap: 1rem;
  padding: .5rem .85rem .55rem;
}
.layers__name { grid-area: name; font: 800 1.375rem/1.2 var(--cond); }
.layers__gloss { grid-area: gloss; font-size: .9375rem; line-height: 1.4; }
.layers__life { grid-area: life; align-self: baseline; font: 600 1.0625rem/1.2 var(--cond); white-space: nowrap; }
@media (min-width: 560px) {
  .layers__l { grid-template-columns: 11.5rem minmax(0, 1fr) auto; grid-template-areas: "name gloss life"; align-items: baseline; }
}
.layers__l--1 { background: #F7F8F4; color: var(--ink); }
.layers__l--2 { background: #E2E5DA; color: var(--ink); }
.layers__l--3 { background: #CDD1C3; color: var(--ink); }
.layers__l--4 { background: #B3B8A8; color: var(--ink); }
.layers__l--5 { background: #8E9283; color: #1A1916; }
.layers__l--6 { background: #4C4F46; color: #F7F8F4; }
.layers__l--7 { background: #24221F; color: #F7F8F4; }

/* Китай: десять судов */
.courts { margin: 1.75rem 0 1.5rem; max-width: var(--measure); }
.courts figcaption { margin-bottom: .6rem; font: 600 1.0625rem/1.3 var(--cond); color: var(--ink-2); }
.courts__row {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}
.courts__c {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 800 1.25rem/1 var(--cond);
  color: var(--muted);
}
.courts__c--on { background: var(--ochre); box-shadow: none; color: var(--ink); }
.courts__notes { margin: 0; }
.courts__notes div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .5rem 0;
  border-top: 1px solid var(--rule);
}
.courts__notes div:last-child { border-bottom: 1px solid var(--rule); }
.courts__notes dt { font: 800 1.25rem/1.2 var(--cond); }
.courts__notes dd { margin: 0; font-size: 1rem; line-height: 1.5; }

/* Сравнительная таблица */
.sec__body > .table-cap { max-width: none; margin: 0 0 .5rem; font: 600 1.0625rem/1.3 var(--cond); color: var(--ink-2); }
.table-hint { display: none; }
@media (max-width: 759px) {
  .sec__body > .table-hint { display: block; margin: 0 0 .5rem; font-size: .9375rem; color: var(--muted); }
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 0 1.5rem;
  background: var(--panel);
  padding: .9rem 1rem .5rem;
}
.table-wrap:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.cmp { min-width: 44rem; }
.cmp th, .cmp td { font-size: .9375rem; line-height: 1.45; vertical-align: top; padding-top: .6rem; padding-bottom: .6rem; }
.cmp thead th { font: 600 1rem/1.25 var(--cond); }
.cmp tbody th { font: 800 1.1875rem/1.2 var(--cond); width: 9.5rem; }
.cmp tbody th a { color: var(--ink); text-decoration: none; }
.cmp tbody th a:hover { color: var(--rust); text-decoration: underline; }
.cmp td:nth-child(2) { width: 9rem; }
.cmp td:last-child { width: 11rem; padding-right: 0; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
/* первый столбец не уезжает при прокрутке таблицы */
.cmp thead th:first-child, .cmp tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
}
@media (max-width: 759px) {
  .table-wrap { padding: .4rem .75rem .25rem 0; }
  .cmp { min-width: 40rem; }
  .cmp thead th:first-child, .cmp tbody th { width: 7.25rem; padding-left: .75rem; box-shadow: inset -1px 0 0 var(--rule); }
  .cmp td:nth-child(2), .cmp thead th:nth-child(2) { padding-left: .75rem; }
}
.mark { font: 600 1.0625rem/1.3 var(--cond); white-space: nowrap; }
.mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .35rem;
  border-radius: 2px;
  vertical-align: .05em;
}
.mark--ever::before { background: var(--ink); }
.mark--temp::before { background: var(--ochre-deep); }
.mark--none::before { box-shadow: inset 0 0 0 2px var(--ink); }

/* ======================================================================
   Статья «Космодесантники»
   ====================================================================== */
.hero--marines .hero__art img { object-position: center top; }
.hero--marines h1 { font-size: clamp(3.25rem, 6.6vw, 6.75rem); line-height: .9; }

/* Роты ордена: ветераны, боевые, резервные, скауты */
.courts__c--vet { background: var(--ink); box-shadow: none; color: var(--panel); }
.courts__c--battle { background: var(--ochre-deep); box-shadow: none; color: var(--panel); }
.courts__c--res { background: var(--ochre-pale); box-shadow: none; color: var(--ink); }

/* Таблица легионов: умещается в 390 px без прокрутки */
.table-wrap--fit { overflow-x: visible; }
.legions { width: 100%; }
.legions th, .legions td { font-size: .9375rem; line-height: 1.35; vertical-align: top; padding: .5rem .6rem .5rem 0; }
.legions thead th { font: 600 1rem/1.25 var(--cond); }
.legions tbody th { font: 800 1.125rem/1.2 var(--cond); }
.legions td:last-child, .legions th:last-child { padding-right: 0; }
.legions tbody tr:last-child th, .legions tbody tr:last-child td { border-bottom: 0; }
.legions__n { font: 800 1.125rem/1.2 var(--cond); color: var(--rust); white-space: nowrap; width: 2.6rem; }
.legions__lost { color: var(--muted); }
.legions__was { display: block; font: 400 .875rem/1.35 var(--serif); color: var(--ink-2); }
.side { font: 600 1rem/1.25 var(--cond); white-space: nowrap; }
.side::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .35rem;
  border-radius: 2px;
  vertical-align: .05em;
}
.side--loyal::before { background: var(--ochre-deep); }
.side--traitor::before { background: var(--ink); }
.side--lost { color: var(--muted); white-space: normal; }
.side--lost::before { box-shadow: inset 0 0 0 2px var(--muted); }
@media (max-width: 559px) {
  .legions th, .legions td { font-size: .875rem; padding-right: .45rem; }
  .legions tbody th { font-size: 1.0625rem; }
  .legions__n { width: 2.1rem; }
}

/* Девятнадцать имплантов */
.implants { margin: 0 0 1.5rem; padding-left: 2rem; max-width: var(--measure); }
.implants li { margin-bottom: .45rem; padding-left: .25rem; font-size: 1rem; line-height: 1.5; }
.implants li::marker { font: 800 1.0625rem var(--cond); color: var(--rust); }
.implants b { font-weight: 600; }
