:root {
  --bg: #130f0b;
  --panel: #1c1510;
  --ink: #eee4d3;
  --dim: #a99b89;
  --line: #413326;
  --red: #a83827;
  --gold: #c49a55;
  --green: #78816a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.topbar {
  height: 72px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.17em;
}
.topbar a,
footer a,
.sources a {
  color: var(--ink);
  text-underline-offset: 5px;
}
.topbar a {
  text-decoration: none;
}
.topbar a span,
.index,
.eyebrow {
  color: #d5533d;
}
.hero {
  height: calc(100vh - 72px);height: calc(100svh - 72px);
  min-height: 690px;
  position: relative;
  overflow: hidden;
}
.hero > img {
  width: 53%;
  height: 100%;
  margin-left: 47%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.8) contrast(1.08);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0 36%, #130f0be6 48%, transparent 76%),
    linear-gradient(0deg, var(--bg), transparent 25%);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 4vw;
  top: 46%;
  transform: translateY(-50%);
  max-width: 830px;
}
.eyebrow,
.index {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(78px, 12vw, 180px);
  line-height: 0.73;
  letter-spacing: -0.07em;
  margin: 0.22em 0;
}
.hero h1 em,
h2 em {
  font:
    italic 400 0.78em "PT Serif",
    serif;
  color: var(--gold);
}
.hero-copy > p:last-of-type {
  font:
    20px/1.55 "PT Serif",
    serif;
  max-width: 650px;
  color: #d1c5b4;
}
.open-reader {
  margin-top: 20px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 18px 22px;
  font: 600 11px Manrope;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.open-reader span {
  margin-left: 28px;
  color: #675b4d;
}
.folio {
  position: absolute;
  z-index: 2;
  right: 3vw;
  bottom: 2.5vw;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.mode {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #130f0bf2;
  -webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-block: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.mode span {
  color: var(--dim);
  margin-right: 10px;
}
.mode button,
.missing button {
  border: 1px solid var(--line);
  background: none;
  color: var(--dim);
  padding: 10px 17px;
  cursor: pointer;
  font: 600 10px Manrope;
  letter-spacing: 0.1em;
}
.mode button.active {
  color: var(--ink);
  background: var(--red);
  border-color: var(--red);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline:3px solid #fff;
  outline-offset: 3px;
}
.verdict,
.scale,
.contents,
.choice,
.journey,
.fire,
.sources {
  padding: 8vw 4vw;
  border-top: 1px solid var(--line);
}
.verdict,
.fire,
.sources {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 5vw;
}
.verdict h2,
.sources h2,
.fire h2 {
  font-size: clamp(45px, 6.4vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0 0 0.35em;
}
.verdict div p,
.fire div p {
  font:
    20px/1.7 "PT Serif",
    serif;
  color: #c9bdad;
  max-width: 950px;
}
.legend-copy {
  padding: 24px;
  border-left: 2px solid var(--red);
  background: #1d1110;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.section-head > p:last-child {
  max-width: 620px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
}
.scale {
  background: var(--panel);
}
.scale-stage {
  height: 590px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 55px;
  border-bottom: 1px solid var(--line);
  margin-top: 35px;
}
.person {
  height: 525px;
  width: 155px;
  position: relative;
  background: var(--ink);
  clip-path: polygon(
    40% 0,
    60% 0,
    67% 8%,
    65% 16%,
    73% 24%,
    76% 52%,
    68% 55%,
    66% 100%,
    53% 100%,
    49% 60%,
    45% 100%,
    31% 100%,
    31% 55%,
    24% 51%,
    27% 24%,
    35% 16%,
    33% 8%
  );
}
.book-model {
  height: 267px;
  width: 147px;
  background: #dfd3ba;
  color: #4a1c14;
  border: 8px solid #69503d;
  box-shadow: 12px 10px #39271c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.book-model b {
  font:
    25px/1.1 "PT Serif",
    serif;
}
.book-model small {
  margin-top: 45px;
  font-size: 8px;
}
.measure {
  align-self: center;
}
.measure strong {
  font-size: clamp(60px, 8vw, 120px);
  color: var(--gold);
  letter-spacing: -0.07em;
}
.measure p,
.note {
  color: var(--dim);
  line-height: 1.7;
}
.note {
  max-width: 1000px;
  margin: 35px auto 0;
  font:
    14px/1.7 "PT Serif",
    serif;
}
.scribe,
.spells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  padding: 9vw 4vw;
  border-top: 1px solid var(--line);
  align-items: start;
}
.scribe figure,
.spells figure {
  margin: 0;
  position: sticky;
  top: 70px;
}
.scribe img,
.spells img {
  width: 100%;
  height: auto;
  display: block;
}
.scribe h2,
.spells h2 {
  font-size: clamp(48px, 6.2vw, 90px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.scribe article > p,
.spells article > p {
  font:
    18px/1.7 "PT Serif",
    serif;
  color: #c7bcad;
}
.calculation {
  display: grid;
  border: 1px solid var(--line);
  margin: 32px 0;
}
.calculation > * {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.calculation strong {
  border: 0;
  color: var(--gold);
}
figcaption {
  padding-top: 10px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.13em;
}
.contents {
  background: var(--panel);
}
.codex-map {
  display: flex;
  height: 90px;
  margin: 45px 0 28px;
  border: 1px solid #68503c;
}
.codex-map button {
  min-width: 8px;
  border: 0;
  border-right: 1px solid #130f0b;
  background: var(--gold);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.codex-map button:nth-child(2n) {
  background: #9e7242;
}
.codex-map button.active {
  box-shadow: inset 0 0 0 4px #fff;
}
.codex-map button:hover {
  filter: brightness(1.1);
}
/* Пустые листы между разделами: тёмный зазор той же ширины, что и лист. */
.codex-map .gap {
  background: #130f0b;
}
/* Название прямо на сегменте, когда влезает (решает скрипт). Цвет почти
   чёрный: на тёмном сегменте #9e7242 нужен контраст 4,5 для мелкого текста. */
.codex-map button {
  overflow: hidden;
  text-align: left;
}
/* inline-block, а не block: ширина по тексту, иначе скрипту нечего сравнивать
   с шириной сегмента. Скрытое состояние прописываем явно — атрибут hidden
   слабее классового display. */
.codex-map .seg-name {
  display: inline-block;
  vertical-align: top;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: #0b0805;
  pointer-events: none;
}
.codex-map .seg-name[hidden] {
  display: none;
}
/* Ярлык над полосой — на месте прежнего всплывающего ::after, который
   обрезала прокручиваемая полоса. Смещение по горизонтали ставит скрипт. */
.codex-map-wrap {
  position: relative;
}
.map-caption {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0 0 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #080604;
  color: #fff;
  padding: 8px;
  font-size: 11px;
  z-index: 2;
}
.content-detail {
  min-height: 130px;
  max-width: 820px;
}
.content-detail b {
  font-size: 24px;
}
.content-detail p {
  font:
    17px/1.65 "PT Serif",
    serif;
  color: #bfb3a3;
}
.choice {
  background: #0e0b09;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1050px;
  margin: 45px auto 0;
  position: relative;
}
.compare figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.compare img {
  display: block;
  width: 100%;
  height: auto;
}
.reveal {
  position: relative;
  overflow: hidden;
}
.reveal input {
  position: absolute;
  z-index: 3;
  left: -100%;
  width: 200%;
  top: 50%;
  accent-color: var(--red);
}
.choice-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  max-width: 1050px;
  margin: 45px auto;
  font:
    17px/1.7 "PT Serif",
    serif;
  color: #bfb4a5;
}
.spells {
  background: #19110d;
}
.spells blockquote {
  font:
    italic 25px/1.55 "PT Serif",
    serif;
  color: var(--gold);
  margin: 40px 0;
  padding-left: 25px;
  border-left: 2px solid var(--red);
}
.translation {
  font-size: 13px !important;
  color: var(--dim) !important;
}
.missing {
  padding: 9vw 4vw;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 0.8fr;
  gap: 4vw;
  align-items: center;
}
.missing h2 {
  font-size: clamp(55px, 8vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.06em;
}
.missing p,
.missing aside {
  font:
    15px/1.65 "PT Serif",
    serif;
  color: #bfb4a5;
}
.missing button {
  color: var(--ink);
  margin-top: 20px;
}
.quire {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}
.kept,
.cut {
  width: 55%;
  height: 320px;
  padding: 25px;
  background: #d8c9aa;
  color: #432b20;
  box-shadow: 8px 8px #4e382a;
  transform: rotateY(-10deg);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.cut {
  background: repeating-linear-gradient(
    135deg,
    #772b22 0 12px,
    #a94a3b 12px 24px
  );
  color: #fff;
  box-shadow: none;
  transform: rotateY(10deg);
  margin-left: -25px;
}
.missing aside b {
  color: var(--ink);
  font: 600 11px Manrope;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.journey {
  background: var(--panel);
}
#time-range {
  width: 100%;
  margin: 40px 0;
  accent-color: var(--red);
}
.time-card {
  min-height: 330px;
}
.time-card time {
  font-size: clamp(55px, 8vw, 120px);
  letter-spacing: -0.06em;
  color: var(--gold);
}
.time-card h2 {
  font-size: clamp(46px, 7vw, 105px);
  margin: 0.05em 0;
  letter-spacing: -0.05em;
}
.time-card p {
  max-width: 740px;
  font:
    18px/1.7 "PT Serif",
    serif;
  color: #c1b6a7;
}
.time-dots {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}
.time-dots button {
  border: 0;
  border-top: 2px solid var(--line);
  padding: 15px 0;
  background: none;
  color: var(--dim);
  font-size: 9px;
  cursor: pointer;
}
.time-dots button.active {
  border-color: var(--red);
  color: var(--ink);
}
.fire {
  background: #24100c;
}
.fire p {
  font-size: 18px !important;
}
.sources {
  background: #0d0b09;
}
.sources p {
  color: #b8ac9c;
  line-height: 1.7;
}
.sources a {
  line-height: 2.3;
  overflow-wrap: anywhere;
}
.credit,
.method {
  font-size: 12px;
  max-width: 950px;
}
.method {
  border-left: 2px solid var(--red);
  padding-left: 20px;
}
footer {
  padding: 35px 4vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.13em;
}
dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  background: #080706;
  color: #fff;
}
dialog::backdrop {
  background: #000;
}
.reader-bar,
.reader-controls {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 25px;
  background: #13100d;
  border-bottom: 1px solid #33281f;
  font-size: 11px;
}
.reader-bar span {
  color: #aaa;
}
.reader-bar button {
  margin-left: auto;
}
.reader-bar button,
.reader-stage > button,
.reader-controls button {
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
.reader-stage {
  height: calc(100% - 128px);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
}
.reader-stage > button {
  height: 100%;
}
.page-wrap {
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  position: relative;
}
.page-wrap img {
  max-height: 95%;
  max-width: 95%;
  width: auto;
  transform-origin: center;
  transition: transform 0.15s;
}
.loader {
  position: absolute;
  z-index: -1;
  color: #777;
}
.reader-controls {
  border-top: 1px solid #33281f;
  border-bottom: 0;
}
.reader-controls > input {
  flex: 1;
}
.reader-controls label {
  white-space: nowrap;
}
.reader-controls label input {
  width: 65px;
  background: #211b16;
  color: #fff;
  border: 1px solid #544437;
  padding: 6px;
}
body.legend .fact-copy {
  display: none;
}
body.legend .legend-copy {
  display: block !important;
}
body.legend .mode {
  border-color: var(--red);
}
@media (max-width: 800px) {
  .topbar {
    padding: 0 5vw;
  }
  .topbar > span {
    display: none;
  }
  .hero {
    min-height: 740px;
  }
  .hero > img {
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0.55;
  }
  .hero:after {
    background:
      linear-gradient(0deg, var(--bg) 5%, transparent 75%),
      linear-gradient(90deg, #130f0bd9, transparent);
  }
  .hero-copy {
    left: 5vw;
    right: 5vw;
    top: 44%;
  }
  .hero h1 {
    font-size: 22vw;
  }
  .folio {
    left: 5vw;
  }
  .mode {
    justify-content: flex-start;
    overflow: auto;
  }
  .verdict,
  .fire,
  .sources,
  .scribe,
  .spells,
  .missing {
    grid-template-columns: 1fr;
    padding: 18vw 5vw;
  }
  .scale,
  .contents,
  .choice,
  .journey {
    padding: 18vw 5vw;
  }
  .section-head {
    display: block;
  }
  .scale-stage {
    height: 450px;
    gap: 20px;
    justify-content: flex-start;
    overflow: hidden;
  }
  .person {
    height: 350px;
    min-width: 104px;
  }
  .book-model {
    height: 178px;
    min-width: 98px;
  }
  .measure strong {
    font-size: 14vw;
  }
  .measure p {
    font-size: 11px;
  }
  .scribe figure,
  .spells figure {
    position: static;
  }
  .scribe h2,
  .spells h2 {
    font-size: 14vw;
  }
  .codex-map {
    height: 120px;
    overflow: hidden;
  }
  .choice-copy {
    grid-template-columns: 1fr;
  }
  .missing {
    gap: 30px;
  }
  .quire {
    min-height: 300px;
  }
  .kept,
  .cut {
    height: 250px;
  }
  .time-dots {
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    gap: 15px;
    line-height: 1.5;
  }
  .reader-bar {
    padding: 0 14px;
  }
  .reader-stage {
    grid-template-columns: 38px 1fr 38px;
  }
  .reader-controls {
    height: 110px;
    flex-wrap: wrap;
    padding: 12px;
  }
  .reader-controls > input {
    flex-basis: 100%;
    order: -1;
  }
  .reader-stage {
    height: calc(100% - 174px);
  }
}

/* Ползунок листа оставался системным: синяя полоса Chrome посреди тёмной
   читалки. Красим в ту же палитру и увеличиваем зону захвата пальцем. */
.reader-controls > input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.reader-controls > input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
}
.reader-controls > input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--line);
}
.reader-controls > input[type="range"]::-moz-range-progress {
  height: 3px;
  background: var(--gold);
}
.reader-controls > input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
}
.reader-controls > input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
}
.reader-controls > input[type="range"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
/* Стрелки и крестик были голым текстом без границ: их не отличить от подписи. */
.reader-bar button,
.reader-stage > button,
.reader-controls button {
  color: var(--ink);
  transition: color 0.15s, background 0.15s;
}
.reader-bar button:hover,
.reader-stage > button:hover,
.reader-controls button:hover {
  color: var(--gold);
  background: rgba(196, 154, 85, 0.1);
}
.reader-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  line-height: 1;
}
.reader-bar b {
  letter-spacing: 0.1em;
}
/* align-items:center лишало .page-wrap определённой высоты, поэтому max-height:95%
   у страницы ни к чему не резолвился: при 420 px картинка помещалась случайно,
   а при 1100 px вылезала за экран и стол уезжал в прокрутку. */
.reader-stage {
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
}
.page-wrap {
  min-height: 0;
}
.page-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
/* place-items:center снова делало высоту ячейки неопределённой. Гибкий бокс
   с определённой высотой родителя даёт странице честные 100%. */
.page-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Длинное русское слово в крупном заголовке шире экрана 320 px: «МАСТЕРСКОЙ»
   при clamp-кегле занимает 336 px и уезжает за край — прокрутки нет, буквы
   просто пропадают. Разрешаем переносить по слогам, а если словарь переносов
   не подхватился — рвать слово принудительно.

   Только на узких экранах. На десктопе крупный заголовок намеренно выходит
   за текстовую колонку в пустое поле справа — это часть оформления, и
   переносить его там незачем: получается лишняя строка и рваный вид. */
@media(max-width:520px){h1,h2,h3,h4{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}}

/* --- контраст: приведено к WCAG AA ----------------------------------
   Значения посчитаны: тот же тон и насыщенность, другая светлота —
   минимальная, при которой пара «текст/фон» проходит норму. Область
   действия — секция, которая задаёт фон: один и тот же .index на тёмной
   и на светлой полосе требует разных цветов. */
/* 4.41→4.67 при норме 4.5 на #1c1510 ×1 — «04 / Карта книги» */
.contents .topbar a span, .contents .index, .contents .eyebrow{color:#d75a45}
/* 4.41→4.67 при норме 4.5 на #1c1510 ×1 — «08 / Путь в 800 лет» */
.journey .topbar a span, .journey .index, .journey .eyebrow{color:#d75a45}
/* 4.41→4.67 при норме 4.5 на #1c1510 ×1 — «02 / Масштаб» */
.scale .topbar a span, .scale .index, .scale .eyebrow{color:#d75a45}

/* --- тач-цели: минимум 24 px (WCAG 2.5.8) ------------------------------
   Ссылки и кнопки в шапке, подвале и на первом экране были высотой 11-22 px.
   Растим область нажатия симметричным вертикальным отступом: содержимое
   остаётся по центру коробки и не переносится, поэтому вёрстка не меняется.
   Менять display на flex здесь нельзя — у «● ИНТЕРЕСНОЕ ТУТ» точка и текст
   стали бы отдельными флекс-элементами и разъехались на две строки. */
.topbar a,.topbar button,.bar a,.legal-top a,footer a,.links a,.map-actions a,
.controls a,.controls button,.hero-copy a,.hero-text a,.hero>a,.hero .down,
.sound-toggle,.about-open,.fullscreen,.compact-prev,.compact-next,
.translation-toggle,.pin,.hotspot,nav a,.meta a,.sources a{min-height:24px;padding-block:7px}
/* Ползунки: полоса была 16 px, пальцем не поймать. Высоту поднимаем у самого
   поля - область нажатия растёт, родная отрисовка бегунка не ломается. */
input[type=range]{height:26px}
/* Флажки и переключатели: 13-17 px до пальца не дотягивают. */
input[type=checkbox],input[type=radio]{width:24px;height:24px}
/* Ссылки-«источники» и вспомогательная навигация: у строчных растим область
   нажатия отступом (высота строки не меняется), у блочных — задаём высоту. */

/* Карта книги: ширина полосы = число листов раздела, поэтому короткие разделы
   давали цели по 8 px. Ширину как таковую менять нельзя — пропорция и есть
   содержание карты. На указателе-пальце (телефон, планшет) точность другая:
   там задаём минимум 26 px и разрешаем полосе прокручиваться вбок — карта
   остаётся пропорциональной, но в неё можно попасть. */
.codex-map{overflow-x:auto;overflow-y:hidden}
.codex-map button{min-width:26px;flex-shrink:0}

/* Название раздела раньше показывал ::after у кнопки, поднятый на 105 px над
   полосой. Прокрутка полосы вбок (правило выше) сделала её overflow-контейнером,
   и ярлык обрезался: на десктопе не появлялся вовсе, на телефоне торчал только
   нижний край строки. Теперь ярлык — отдельный элемент над полосой (.map-caption),
   а названия широких разделов написаны прямо на сегментах (.seg-name). */

/* Уважаем системную настройку «меньше движения»: анимации и плавная прокрутка
   у части людей вызывают тошноту и головокружение. Оставляем мгновенные
   состояния — интерфейс работает так же, просто без движения. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Пояснение под моделью книги было 8 px. */
.book-model small{font-size:10px}

/* Слова КАПИТЕЛЬЮ Firefox и WebKit по слогам не переносят: при
   overflow-wrap:break-word слово рвётся посреди без дефиса («ЧУДОВИЩА/МИ»),
   а Chromium ставит в крупном заголовке дефис. Поэтому на узких экранах
   автоперенос в h1–h3 выключен, а кегль подобран так, чтобы самое длинное
   слово влезало в строку целиком. Значения измерены Playwright на 320,
   360 и 390 px в Chromium, Firefox и WebKit. Десктоп не затронут. */
@media(max-width:520px){h1,h2,h3{hyphens:manual;-webkit-hyphens:manual}}

/* Три предмета масштаба с прежними min-width и gap суммарно требовали 327 px
   и раздували секцию на экране 320 px. Уменьшаем только мобильные модели и
   разрешаем текстовому измерению занять остаток без min-content-минимума. */
@media(max-width:520px){
  /* «САТАНИНСКАЯ,» шире мобильной колонки: снимаем min-content-минимум
     сетки и ограничиваем кегль по доступным 288 px. */
  .verdict{grid-template-columns:minmax(0,1fr)}
  .verdict h2{font-size:min(clamp(45px,6.4vw,94px),11vw)}
  .scale-stage{gap:8px;min-width:0}
  .person{width:80px;min-width:80px}
  .book-model{width:75px;min-width:75px}
  .measure{min-width:0;flex:1}
  .measure p{overflow-wrap:anywhere}
}


/* Единый клавиатурный фокус: светлый контур и контрастный внешний контур. */
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 6px #000}
