/* ============================================================
   СПАДОК — базова візуальна система
   Темний архів, теплий пергамент, стримане золото.
   ============================================================ */

:root {
  --ink: #17140f;
  --ink-2: #1f1a13;
  --ink-3: #2a2319;
  --ink-soft: #3b3225;
  --paper: #e9dfcb;
  --paper-2: #dfd2b8;
  --paper-3: #f3ecdd;
  --paper-deep: #cdbb98;
  --gold: #b08a4f;
  --gold-2: #c9a66b;
  --gold-3: #8e6a35;
  --oxblood: #7c342b;
  --moss: #4d6248;
  --muted: #9c907b;
  --muted-dark: #6c604f;
  --line: rgba(23, 20, 15, 0.18);
  --line-strong: rgba(23, 20, 15, 0.34);
  --line-light: rgba(233, 223, 203, 0.17);
  --line-gold: rgba(176, 138, 79, 0.48);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Literata", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  --container: 1340px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(176, 138, 79, 0.09), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(124, 52, 43, 0.08), transparent 28rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-playing { background: var(--ink); }

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  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 type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - (var(--pad) * 2)), var(--container));
  margin-inline: auto;
}

.view {
  min-height: 65vh;
  animation: view-in 0.55s var(--ease) both;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 20, 15, 0.92);
  border-bottom-color: var(--line-light);
  backdrop-filter: blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  border: 1px solid rgba(201, 166, 107, 0.3);
  transform: rotate(45deg);
}
.brand-mark svg { width: 34px; height: 34px; transform: rotate(-45deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.brand-copy small {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(233, 223, 203, 0.72);
  transition: color 0.25s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--gold-2);
  transition: right 0.3s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--paper); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.seal-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  border: 1px solid rgba(201, 166, 107, 0.25);
  padding: 7px 10px;
}
.seal-balance__icon { font-size: 14px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-light);
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons and links ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-outline {
  border-color: var(--line-gold);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(176, 138, 79, 0.12); border-color: var(--gold-2); }
.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(23, 20, 15, 0.06); }
.btn-small { min-height: 40px; padding: 10px 16px; font-size: 10px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow,
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.link-arrow span { transition: transform 0.25s ease; }
.link-arrow:hover span { transform: translateX(5px); }
.link-underline {
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 5px;
}
.link-underline:hover { border-color: var(--gold-2); }

/* ── Typographic utilities ──────────────────────────────── */
.kicker,
.eyebrow,
.folio,
.micro,
.label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 600;
}
.kicker { color: var(--gold-2); }
.eyebrow { color: var(--muted); }
.folio { color: var(--muted-dark); }
.micro { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }
.label { color: var(--muted); }

.display {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.6vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.display em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 500;
}
.page-title {
  font-size: clamp(3rem, 6.4vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.section-title {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  color: rgba(233, 223, 203, 0.78);
}
.lead-dark { color: rgba(23, 20, 15, 0.72); }
.text-gold { color: var(--gold-2); }
.text-muted { color: var(--muted); }
.italic { font-style: italic; }

.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-2);
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.rule::before { width: 42px; }
.rule::after { flex: 1; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: min(120px, 18vw);
  background: currentColor;
  opacity: 0.5;
}
.ornament span {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: clamp(76px, 10vw, 150px) 0;
  position: relative;
}
.section-dark { background: var(--ink); color: var(--paper); }
.section-paper {
  background:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--paper);
  color: var(--ink);
}
.section-paper .kicker { color: var(--gold-3); }
.section-paper .lead { color: rgba(23, 20, 15, 0.68); }
.section-paper .eyebrow { color: var(--muted-dark); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}
.section-head .section-title { margin-top: 18px; }
.section-head p { max-width: 470px; justify-self: end; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  padding-top: 110px;
}
.hero-map {
  position: absolute;
  inset: 0;
  background-image: url("../assets/maps/europe-1815.jpg");
  background-size: cover;
  background-position: center 42%;
  filter: sepia(0.55) contrast(0.82) brightness(0.54) saturate(0.7);
  opacity: 0.72;
  transform: scale(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 20, 15, 0.96) 0%, rgba(23, 20, 15, 0.72) 44%, rgba(23, 20, 15, 0.2) 78%, rgba(23, 20, 15, 0.5) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(23, 20, 15, 0.05) 45%, rgba(23, 20, 15, 0.32) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(233, 223, 203, 0.11) 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(233, 223, 203, 0.08) 80px);
  mask-image: linear-gradient(90deg, black, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding-top: clamp(70px, 9vh, 120px);
  padding-bottom: clamp(48px, 8vh, 90px);
}
.hero-copy { max-width: 850px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-kicker .rule { width: 58px; flex: 0 0 auto; }
.hero-kicker .rule::after { display: none; }
.hero .display { margin-left: -0.06em; }
.hero-lead {
  max-width: 540px;
  margin-top: 28px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(233, 223, 203, 0.78);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-meta {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(46px, 7vh, 74px);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  max-width: 620px;
}
.hero-meta div { display: flex; align-items: baseline; gap: 9px; }
.hero-meta strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--gold-2);
  line-height: 1;
}
.hero-meta span:last-child {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-dossier {
  position: relative;
  align-self: center;
  max-width: 290px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-gold);
}
.hero-dossier::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero-dossier .folio { display: block; margin-bottom: 34px; }
.hero-stamp {
  width: 138px;
  height: 138px;
  border: 1px solid rgba(201, 166, 107, 0.58);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-8deg);
  color: var(--gold-2);
  position: relative;
  margin-bottom: 26px;
}
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(201, 166, 107, 0.42);
  border-radius: 50%;
}
.hero-stamp strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}
.hero-stamp small {
  display: block;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 7px;
}
.hero-dossier p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(233, 223, 203, 0.6);
  margin-bottom: 20px;
}
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line-light);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Home: archive index ────────────────────────────────── */
.index-section { background: var(--paper); color: var(--ink); }
.index-section .kicker { color: var(--gold-3); }
.index-section .section-head p { color: rgba(23, 20, 15, 0.66); }

.archive-index {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.index-panel {
  position: relative;
  min-height: 270px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
.index-panel:hover { background: var(--paper-3); }
.index-panel-ukraine {
  grid-row: span 2;
  min-height: 620px;
  background: var(--ink-2);
  color: var(--paper);
  justify-content: flex-end;
}
.index-panel-ukraine:hover { background: var(--ink-3); }
.index-panel-ukraine::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/maps/ukraine-1918.jpg");
  background-size: cover;
  background-position: center;
  filter: sepia(0.75) contrast(0.75) brightness(0.5) saturate(0.65);
  opacity: 0.46;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
}
.index-panel-ukraine:hover::before { transform: scale(1.03); opacity: 0.58; }
.index-panel-ukraine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.96), rgba(23, 20, 15, 0.1) 65%);
}
.index-panel-ukraine > * { position: relative; z-index: 1; }
.index-panel-epoch {
  background: var(--paper);
  min-height: 300px;
}
.index-panel-archive { background: #d9c9aa; min-height: 300px; }
.index-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.index-num {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--gold-3);
}
.index-panel-ukraine .index-num { color: var(--gold-2); }
.index-panel h3 {
  font-size: clamp(2.4rem, 4.3vw, 4.3rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.index-panel p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(23, 20, 15, 0.66);
}
.index-panel-ukraine p { color: rgba(233, 223, 203, 0.68); }
.index-panel-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.index-panel-ukraine .index-panel-meta { color: var(--muted); }
.index-panel-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.index-panel:hover .index-panel-arrow { transform: translate(3px, -3px); background: rgba(176, 138, 79, 0.12); }
.index-panel-ukraine .index-panel-arrow { color: var(--gold-2); }

/* ── Home: epoch feature ────────────────────────────────── */
.epoch-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.epoch-feature-copy .section-title { margin: 18px 0 24px; }
.epoch-feature-copy p { max-width: 520px; }
.epoch-feature-list {
  margin-top: 32px;
  border-top: 1px solid var(--line-light);
}
.epoch-feature-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.25s ease, padding 0.25s ease;
}
.epoch-feature-list a:hover { color: var(--gold-2); padding-left: 5px; }
.epoch-feature-list span:first-child {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--gold-2);
  letter-spacing: 0.1em;
}
.epoch-feature-list strong { font-weight: 400; font-size: 17px; }
.epoch-feature-list small { font-family: var(--sans); font-size: 9px; color: var(--muted); }
.epoch-feature-image {
  position: relative;
  min-height: 580px;
  background: var(--ink-2);
  overflow: hidden;
}
.epoch-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.22) contrast(0.94) brightness(0.78);
}
.epoch-feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.8), transparent 55%);
}
.epoch-feature-image figcaption {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 24px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 223, 203, 0.7);
}
.epoch-feature-image .image-index {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 28px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}

/* ── Home: daily question ───────────────────────────────── */
.daily-section {
  background: var(--ink-2);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.daily-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(36px, 7vw, 110px);
}
.daily-aside .section-title { font-size: clamp(2.4rem, 3.6vw, 3.8rem); margin: 16px 0 20px; }
.daily-aside p { max-width: 320px; }
.daily-card {
  border-top: 1px solid var(--line-gold);
  padding-top: 24px;
}
.daily-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.daily-question {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 880px;
}
.daily-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.daily-option {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.daily-option:hover { border-color: var(--line-gold); background: rgba(176, 138, 79, 0.07); }
.daily-option.is-correct { border-color: var(--moss); background: rgba(77, 98, 72, 0.2); }
.daily-option.is-wrong { border-color: var(--oxblood); background: rgba(124, 52, 43, 0.2); }
.daily-option[disabled] { cursor: default; }
.daily-feedback {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  display: none;
}
.daily-feedback.is-visible { display: block; animation: fade-up 0.45s var(--ease) both; }
.daily-feedback p { font-size: 14px; color: rgba(233, 223, 203, 0.76); max-width: 780px; }
.daily-feedback .source-line { margin-top: 12px; }

/* ── Home: reading room ─────────────────────────────────── */
.reading-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reading-image {
  position: relative;
  min-height: 540px;
  background: var(--paper-deep);
  overflow: hidden;
}
.reading-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.12) contrast(0.96); }
.reading-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.26), transparent 55%);
}
.reading-copy {
  background: var(--paper-3);
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reading-copy h3 {
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 18px 0 22px;
}
.reading-copy p { color: rgba(23, 20, 15, 0.68); font-size: 15px; max-width: 540px; }
.reading-copy .link-underline { align-self: flex-start; margin-top: 28px; color: var(--ink); }

/* ── Home: figures ──────────────────────────────────────── */
.figures-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.figure-card {
  background: var(--ink);
  padding: 24px 24px 30px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  transition: background 0.3s ease;
}
.figure-card:hover { background: var(--ink-2); }
.figure-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
  margin-bottom: 20px;
}
.figure-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: sepia(0.4) contrast(0.9) brightness(0.86);
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.figure-card:hover .figure-portrait img { transform: scale(1.03); filter: sepia(0.2) contrast(0.96) brightness(0.96); }
.figure-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.4), transparent 45%);
}
.figure-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.figure-card .figure-role {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.figure-card p { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--muted); }

/* ── Home: method ───────────────────────────────────────── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 54px);
  counter-reset: method;
}
.method-step {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  counter-increment: method;
}
.method-step::before {
  content: "0" counter(method);
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gold-3);
  margin-bottom: 36px;
}
.method-step h3 { font-size: 28px; font-weight: 500; margin-bottom: 14px; }
.method-step p { color: rgba(23, 20, 15, 0.66); font-size: 14px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0f0d0a;
  border-top: 1px solid var(--line-light);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 56px;
}
.brand-footer { margin-bottom: 22px; }
.footer-brand p { max-width: 300px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-col p { font-size: 12px; line-height: 1.65; color: var(--muted); }
.footer-folio {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line-light);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

/* ── Shared page hero ───────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 150px 0 76px;
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 15, 0.98), rgba(23, 20, 15, 0.55)),
    var(--page-hero-image, none) center / cover no-repeat;
  filter: sepia(0.45) contrast(0.85) brightness(0.7);
  opacity: 0.5;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--ink), transparent 60%);
  z-index: -1;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}
.page-hero h1 { margin-top: 18px; }
.page-hero p { max-width: 620px; margin-top: 24px; }
.page-hero-aside {
  justify-self: end;
  max-width: 310px;
  border-left: 1px solid var(--line-gold);
  padding-left: 22px;
}
.page-hero-aside .folio { display: block; margin-bottom: 14px; }
.page-hero-aside p { font-size: 13px; color: var(--muted); }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs span { color: var(--gold-2); }

/* ── Shared components ──────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line-gold);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  white-space: nowrap;
}
.tag-dark { border-color: var(--line); color: var(--muted-dark); }
.difficulty-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.difficulty-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.source-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.source-line a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(201, 166, 107, 0.35);
}
.source-line a:hover { border-color: var(--gold-2); }

.paper-panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.split-panel--epoch { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 820px) {
  .split-panel,
  .split-panel--epoch { grid-template-columns: 1fr; }
}
.paper-panel .kicker { color: var(--gold-3); }
.paper-panel .source-line { color: var(--muted-dark); }
.paper-panel .source-line a { color: var(--gold-3); border-color: rgba(142, 106, 53, 0.4); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px solid var(--line-light);
}
.empty-state h2 { font-size: 34px; margin-bottom: 12px; }
.empty-state p { max-width: 480px; margin: 0 auto 24px; color: var(--muted); }

/* ── Ukraine page ───────────────────────────────────────── */
.ukraine-hero { --page-hero-image: url("../assets/maps/ukraine-1918.jpg"); }
.ukraine-hero .page-title { max-width: 900px; }
.era-index {
  border-top: 1px solid var(--line-light);
}
.era-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(150px, 0.34fr) 40px;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.era-row:hover {
  color: var(--gold-2);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(176, 138, 79, 0.06), transparent 70%);
}
.era-row-index {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}
.era-row-years {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.era-row h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.era-row p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
}
.era-row-count {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.era-row-arrow {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--gold-2);
  text-align: right;
}
.era-row.is-featured {
  background: linear-gradient(90deg, rgba(176, 138, 79, 0.12), transparent 75%);
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.era-row.is-featured:hover { padding-left: 28px; }

.ukraine-dossier {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.ukraine-dossier-sticky { position: sticky; top: 110px; }
.ukraine-dossier h2 { margin: 18px 0 22px; }
.ukraine-dossier p { color: rgba(23, 20, 15, 0.68); }
.dossier-topics { border-top: 1px solid var(--line); }
.dossier-topic {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.dossier-topic span:first-child {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--gold-3);
}
.dossier-topic strong { font-weight: 400; font-size: 16px; }
.dossier-topic small { font-family: var(--sans); font-size: 9px; color: var(--muted-dark); }
.dossier-topic:hover { color: var(--gold-3); }

/* ── Epoch page ─────────────────────────────────────────── */
.epoch-hero { --page-hero-image: url("../assets/images/liberty-1830.jpg"); }
.epoch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-top: 40px;
}
.epoch-stat { padding: 24px; background: var(--ink); }
.epoch-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-2);
}
.epoch-stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.atlas-column {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 3.4vw, 44px);
}
.atlas-column h3 { font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 500; margin: 14px 0 20px; }
.atlas-column p { font-size: 14px; color: rgba(23, 20, 15, 0.66); }
.atlas-list { margin-top: 26px; border-top: 1px solid var(--line); }
.atlas-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color 0.2s ease, padding 0.2s ease;
}
.atlas-list a:hover { color: var(--gold-3); padding-left: 4px; }
.atlas-list span:last-child { font-family: var(--sans); font-size: 9px; color: var(--muted-dark); }
.atlas-column-dark { background: var(--ink); color: var(--paper); }
.atlas-column-dark .kicker { color: var(--gold-2); }
.atlas-column-dark p { color: var(--muted); }
.atlas-column-dark .atlas-list { border-top-color: var(--line-light); }
.atlas-column-dark .atlas-list a { border-bottom-color: var(--line-light); }
.atlas-column-dark .atlas-list a:hover { color: var(--gold-2); }
.atlas-column-dark .atlas-list span:last-child { color: var(--gold-2); }

.timeline-section { background: var(--ink-2); }
.timeline {
  position: relative;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 95px;
  width: 1px;
  background: var(--line-gold);
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 38px;
  position: relative;
  padding: 18px 0 26px;
}
.timeline-year {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--gold-2);
  text-align: right;
  padding-top: 2px;
}
.timeline-body {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid transparent;
}
.timeline-body::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.timeline-body h3 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.timeline-body p { font-size: 14px; color: var(--muted); max-width: 780px; }

.dossier-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dossier-card {
  position: relative;
  min-height: 300px;
  padding: clamp(26px, 3.4vw, 42px);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.dossier-card:first-child {
  grid-row: span 2;
  min-height: 620px;
  color: var(--paper);
  background: var(--ink-2);
}
.dossier-card:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/congress-vienna.jpg") center / cover no-repeat;
  filter: sepia(0.4) contrast(0.85) brightness(0.55);
  opacity: 0.65;
}
.dossier-card:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.95), rgba(23, 20, 15, 0.05) 65%);
}
.dossier-card:first-child > * { position: relative; z-index: 1; }
.dossier-card h3 { font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 500; margin: 14px 0 12px; }
.dossier-card p { font-size: 13px; color: rgba(23, 20, 15, 0.66); max-width: 520px; }
.dossier-card:first-child p { color: rgba(233, 223, 203, 0.7); }
.dossier-card .link-underline { align-self: flex-start; margin-top: 20px; }
.dossier-card:first-child .link-underline { color: var(--gold-2); }

/* ── Profile page ───────────────────────────────────────── */
.profile-hero { --page-hero-image: url("../assets/images/iron-mill.jpg"); }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.profile-panel {
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3.4vw, 38px);
}
.profile-panel h2 { font-size: 36px; margin-bottom: 24px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.stat-cell { background: var(--ink); padding: 20px; }
.stat-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
  color: var(--gold-2);
}
.stat-cell span {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress-list { margin-top: 10px; }
.progress-row { margin-top: 20px; }
.progress-row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 8px;
}
.progress-row-head span:last-child { font-family: var(--sans); font-size: 9px; color: var(--muted); }
.progress-bar {
  height: 5px;
  background: var(--line-light);
  overflow: hidden;
}
.progress-bar span { display: block; height: 100%; background: var(--gold); }
.achievement-list { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.achievement {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  background: var(--ink);
}
.achievement.is-locked { opacity: 0.48; }
.achievement-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-2);
}
.achievement h3 { font-family: var(--body); font-size: 13px; font-weight: 600; }
.achievement p { font-size: 11px; color: var(--muted); }
.achievement .achievement-state {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.history-table { width: 100%; border-collapse: collapse; }
.history-table th,
.history-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-light);
  font-size: 12px;
}
.history-table th {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.history-table td:last-child,
.history-table th:last-child { text-align: right; }
.profile-aside { border: 1px solid var(--line-gold); padding: 28px; }
.profile-aside .seal-big {
  font-family: var(--serif);
  font-size: 70px;
  line-height: 1;
  color: var(--gold-2);
}
.profile-aside h3 { font-size: 28px; margin: 14px 0 8px; }
.profile-aside p { font-size: 13px; color: var(--muted); }
.danger-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  border-bottom: 1px solid rgba(124, 52, 43, 0.4);
}

/* ── Toasts / modal ─────────────────────────────────────── */
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 48px));
}
.toast {
  background: var(--paper);
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  animation: toast-in 0.35s var(--ease) both;
}
.toast strong { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 4px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 8, 5, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade-in 0.2s ease both;
}
.modal {
  width: min(560px, 100%);
  background: var(--paper);
  color: var(--ink);
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: modal-in 0.3s var(--ease) both;
}
.modal h2 { font-size: 36px; margin-bottom: 12px; }
.modal p { color: rgba(23, 20, 15, 0.68); font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }

.noscript {
  position: fixed;
  inset: auto 0 0;
  z-index: 10002;
  background: var(--oxblood);
  color: var(--paper);
  padding: 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-dossier { display: none; }
  .hero-meta { margin-top: 38px; }
  .archive-index { grid-template-columns: 1fr 1fr; }
  .index-panel-ukraine { grid-row: span 2; min-height: 520px; }
  .epoch-feature { grid-template-columns: 1fr; }
  .epoch-feature-image { min-height: 440px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-column { border-bottom: 1px solid var(--line); }
  .atlas-column-dark { border-bottom-color: var(--line-light); }
  .dossier-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .dossier-card:first-child { grid-row: auto; min-height: 460px; }
}

@media (max-width: 820px) {
  :root { --pad: 20px; }
  .header-inner { height: 70px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 7px; }
  .primary-nav {
    position: fixed;
    inset: 70px 0 auto;
    background: rgba(23, 20, 15, 0.98);
    border-bottom: 1px solid var(--line-light);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 15px 0; border-bottom: 1px solid var(--line-light); font-size: 12px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head p { justify-self: start; }
  .hero { padding-top: 90px; min-height: 94svh; }
  .hero-inner { padding-top: 40px; padding-bottom: 46px; }
  .hero-meta { flex-wrap: wrap; gap: 18px 30px; }
  .hero-bottom { display: none; }
  .hero .display { font-size: clamp(3.3rem, 13vw, 6rem); }
  .archive-index { grid-template-columns: 1fr; }
  .index-panel-ukraine { grid-row: auto; min-height: 460px; }
  .index-panel { min-height: 240px; }
  .daily-grid { grid-template-columns: 1fr; }
  .daily-options { grid-template-columns: 1fr; }
  .reading-feature { grid-template-columns: 1fr; }
  .reading-image { min-height: 360px; }
  .figures-strip { grid-template-columns: 1fr 1fr; }
  .figure-card { min-height: 360px; }
  .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .page-hero { padding-top: 120px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-aside { justify-self: start; }
  .era-row { grid-template-columns: 38px 1fr 30px; gap: 14px; }
  .era-row-count { display: none; }
  .era-row p { display: none; }
  .ukraine-dossier { grid-template-columns: 1fr; }
  .ukraine-dossier-sticky { position: static; }
  .epoch-stats { grid-template-columns: 1fr; }
  .timeline::before { left: 55px; }
  .timeline-item { grid-template-columns: 42px 1fr; gap: 30px; }
  .timeline-year { font-size: 17px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .history-table { font-size: 11px; }
}

@media (max-width: 520px) {
  .hero-kicker .rule { width: 28px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .figures-strip { grid-template-columns: 1fr; }
  .figure-card { min-height: 0; }
  .figure-portrait { aspect-ratio: 1 / 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .achievement { grid-template-columns: 38px 1fr; }
  .achievement-state { grid-column: 2; }
  .modal { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
