/* Музей Смоленского областного суда — дизайн-система (стиль «редакционный музей»)
   Layout: светлая бумага, глубокий морской синий, приглушённое золото; прямые углы, тонкие линии, Prata + Golos Text. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --soft: #eeede7;
  --ink: #152e3a;
  --muted: #626d71;
  --line: #dcded8;
  --gold: #9a783f;
  --gold-ink: #826431;
  --gold-light: #dac092;
  --gold-btn: #d9bb84;
  --navy: #122b38;
  --focus: #b38b4e;
  --shadow: 0 10px 22px rgba(20, 44, 55, .07);
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", Arial, sans-serif;
  --fs-scale: 1;
  --lh: 1.65;
  --ls: 0em;
  --maxw: 1320px;
  --gut: 56px;
  --ease: cubic-bezier(.22,.7,.18,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1c23; --surface: #152630; --soft: #1a2e39; --ink: #e9e6dd; --muted: #a2adb0; --line: #2a404b;
    --gold: #c9a96e; --gold-ink: #d6b77d; --navy: #08151c; --shadow: 0 10px 22px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1c23; --surface: #152630; --soft: #1a2e39; --ink: #e9e6dd; --muted: #a2adb0; --line: #2a404b;
  --gold: #c9a96e; --gold-ink: #d6b77d; --navy: #08151c; --shadow: 0 10px 22px rgba(0,0,0,.35);
  color-scheme: dark;
}
html.a11y-contrast { --bg: #fff; --surface: #fff; --soft: #fff; --ink: #000; --muted: #000; --line: #000; --gold: #000; --gold-ink: #000; --navy: #000; }
html.a11y-contrast[data-theme="dark"] { --bg: #000; --surface: #000; --soft: #000; --ink: #ffef5a; --muted: #ffef5a; --line: #ffef5a; --gold: #ffef5a; --gold-ink: #ffef5a; --navy: #000; }
html.a11y-gray body { filter: grayscale(1); }
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-noimg .decor, html.a11y-noimg .card-bg, html.a11y-noimg .hero-art { display: none !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs-scale)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: var(--lh); letter-spacing: var(--ls); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { line-height: 1.22; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.8rem); line-height: 1.3; letter-spacing: -.035em; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); width: calc(100% - 2 * var(--gut)); margin-inline: auto; }
@media (max-width: 900px) { :root { --gut: 20px; } }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--surface); padding: 12px 22px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- типовые элементы ---------- */
.eyebrow { display: flex; align-items: center; gap: 13px; font-size: .75rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 27px; height: 1px; background: currentColor; flex: none; }
.lead { color: var(--muted); font-size: 1rem; line-height: 1.9; max-width: 660px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; padding: 12px 22px; border: 1px solid var(--line); background: transparent; font-size: .86rem; font-weight: 500; transition: background .2s, transform .2s, border-color .2s; text-align: left; }
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn.dark, .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.gold { background: var(--gold-btn); color: #172d36; border-color: var(--gold-btn); }
.btn.gold:hover { background: #e8cb98; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: .8rem; gap: 10px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn[aria-pressed="true"] { background: var(--soft); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.text-link { display: inline-flex; align-items: center; gap: 11px; font-size: .86rem; font-weight: 500; }
.text-link:hover { color: var(--gold); }
.text-link svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border: 1px solid var(--line); font-size: .8rem; transition: background .2s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--gold); }
.icon-btn svg { width: 21px; height: 21px; }
.source-note { font-size: .78rem; line-height: 1.8; color: var(--muted); border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; max-width: 80ch; }
mark { background: color-mix(in srgb, var(--gold-btn) 60%, transparent); color: inherit; }

/* ---------- верхняя полоса и шапка ---------- */
.utility { border-bottom: 1px solid var(--line); font-size: .78rem; }
.utility .wrap { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-label { color: var(--muted); font-size: .76rem; letter-spacing: .045em; }
.utilities { display: flex; align-items: center; gap: 22px; }
.util-btn { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .78rem; line-height: 1.2; }
.util-btn svg { width: 17px; height: 17px; }
.util-btn:hover { color: var(--gold); }
.util-div { width: 1px; height: 16px; background: var(--line); }
.hdr { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; flex: none; }
.brand img { height: 64px; width: auto; }
:root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.3); } }
.brand-title { display: block; font-size: 1rem; font-weight: 550; line-height: 1.3; letter-spacing: .025em; }
.brand-sub { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: stretch; gap: 29px; align-self: stretch; }
.main-nav a { display: flex; align-items: center; position: relative; font-size: .88rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }
.hdr-tools { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none !important; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid !important; }
  .hdr .wrap { height: 74px; }
  .brand img { height: 50px; }
}
@media (max-width: 640px) { .brand-text { display: none; } .utility-label { display: none; } .utilities { gap: 16px; margin-left: auto; } .util-btn span { display: none; } }

/* ---------- панели ---------- */
.scrim { position: fixed; inset: 0; z-index: 85; background: rgba(8, 24, 32, .62); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 90; inset: 0 0 0 auto; width: min(560px, 100%); background: var(--bg); color: var(--ink); border-left: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0,0,0,.3); transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.sheet.open { transform: none; }
.sheet:not(.open) { visibility: hidden; box-shadow: none; transition: transform .4s var(--ease), visibility 0s .4s; }
.sheet-hd { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.sheet-hd h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }
.sheet-bd { overflow: auto; padding: 26px 28px; display: grid; gap: 24px; align-content: start; flex: 1; }
.sheet-ft { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.opt-group { display: grid; gap: 11px; }
.opt-group > span { font-size: .82rem; font-weight: 500; }
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { padding: 9px 18px; border: 1px solid var(--line); font-size: .82rem; }
.seg[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--soft); }
.check { display: flex; align-items: center; gap: 11px; font-size: .88rem; padding: 4px 0; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--gold); flex: none; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-list a { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.menu-list a:hover, .menu-list a[aria-current="page"] { color: var(--gold-ink); }
.menu-list .n { font-size: .75rem; letter-spacing: .09em; color: var(--gold-ink); }
.menu-list .t { font-family: var(--serif); font-size: 1.1rem; letter-spacing: -.015em; }
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .6s var(--ease); }

/* ---------- главная ---------- */
.hero { position: relative; background: #142831; color: #fff; min-height: 620px; overflow: hidden; }
.hero-art { position: absolute; right: 0; top: 0; width: 70%; height: 100%; object-fit: cover; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); filter: grayscale(.35) sepia(.25) contrast(1.05); }
.hero-themis { position: absolute; right: 6%; bottom: -1%; height: 102%; width: auto; opacity: .95; pointer-events: none; filter: sepia(1) saturate(1.1) hue-rotate(-12deg) brightness(.95); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,27,37,.99) 0%, rgba(9,27,37,.94) 30%, rgba(9,27,37,.62) 54%, rgba(9,27,37,.3) 80%), linear-gradient(0deg, rgba(9,27,37,.55), transparent 35%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding-block: 77px 92px; }
.hero .eyebrow { color: var(--gold-light); margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.8rem, 5.15vw, 4.8rem); max-width: 680px; color: #fff; }
.hero h1 span { display: block; color: var(--gold-light); }
.hero-desc { color: #d0d5d6; max-width: 450px; line-height: 1.8; margin-top: 24px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 33px; flex-wrap: wrap; }
.hero .text-link { color: #fff; }
.hero-foot { position: absolute; right: var(--gut); bottom: 31px; z-index: 2; display: flex; align-items: center; gap: 14px; color: #e5e1d7; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.7; }
.hero-foot::before { content: ""; width: 1px; height: 30px; background: #c9b083; }
.intro-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; background: var(--surface); padding: 29px 38px; border: 1px solid var(--line); border-top: 0; position: relative; z-index: 2; }
.intro-strip > div { display: flex; align-items: center; gap: 19px; padding: 1px 31px; border-right: 1px solid var(--line); }
.intro-strip > div:first-child { padding-left: 0; }
.intro-strip > div:last-child { border: 0; padding-right: 0; }
.intro-value { font-family: var(--serif); font-size: 2rem; line-height: 1.2; color: var(--gold); white-space: nowrap; }
.intro-label { font-size: .79rem; line-height: 1.55; color: var(--muted); }
.intro-strip svg { width: 31px; height: 31px; color: var(--gold); stroke-width: 1.2; }
@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero-themis { right: -22%; opacity: .3; }
  .hero-art { width: 100%; opacity: .3; }
  .hero-foot { display: none; }
  .intro-strip { grid-template-columns: 1fr; padding: 10px 20px; }
  .intro-strip > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .intro-strip > div:last-child { border: 0; }
}
.section { padding-block: 86px; }
.section.tight { padding-block: 50px; }
.section.soft { background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 35px; flex-wrap: wrap; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p { max-width: 380px; font-size: .89rem; line-height: 1.8; color: var(--muted); }
.section-heading .text-link { padding-bottom: 5px; white-space: nowrap; }
.sections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.section-card { display: flex; flex-direction: column; position: relative; min-height: 245px; border: 1px solid var(--line); background: var(--surface); padding: 25px 24px 22px; overflow: hidden; transition: transform .24s, border-color .24s, box-shadow .24s; }
.section-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.section-card.image-card { background: #1e302f; color: #fff; border-color: #1e302f; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); opacity: .62; transition: transform .5s; }
.section-card:hover .card-bg { transform: scale(1.045); }
.section-card.image-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,43,56,.19) 0%, rgba(8,24,32,.86) 100%); }
.card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; margin-bottom: 39px; }
.card-number { font-size: .75rem; letter-spacing: .09em; color: var(--gold-ink); }
.image-card .card-number { color: #e7cfaa; }
.card-top svg { width: 27px; height: 27px; stroke-width: 1.25; color: var(--gold); }
.image-card .card-top svg { color: #e1ccb0; }
.section-card h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; letter-spacing: -.015em; max-width: 210px; position: relative; z-index: 1; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; position: relative; z-index: 1; }
.card-bottom p { font-size: .75rem; line-height: 1.5; max-width: 180px; color: var(--muted); }
.image-card .card-bottom p { color: #d4d5d0; }
.card-bottom svg { width: 19px; height: 19px; flex: none; }
.card-visited { position: absolute; z-index: 1; right: 24px; bottom: 56px; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.image-card .card-visited { color: #e7cfaa; }
@media (max-width: 1080px) { .sections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sections-grid { grid-template-columns: 1fr; } .section-card { min-height: 200px; } }
.feature-layout { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 475px; background: var(--soft); border: 1px solid var(--line); }
.feature-photo { position: relative; overflow: hidden; background: #2d251d; min-height: 360px; }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.feature-photo:hover img { transform: scale(1.025); }
.photo-tag { position: absolute; left: 24px; top: 24px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(21,35,43,.38); backdrop-filter: blur(5px); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; z-index: 1; }
.feature-content { padding: 47px 46px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.feature-content .eyebrow { margin-bottom: 23px; }
.feature-content h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.38; max-width: 440px; }
.feature-content > p { font-size: .89rem; line-height: 1.85; margin-top: 20px; max-width: 430px; color: var(--muted); }
.object-meta { display: flex; flex-wrap: wrap; gap: 25px; align-self: stretch; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 23px; font-size: .75rem; color: var(--muted); }
.object-meta span { display: flex; align-items: center; gap: 8px; }
.object-meta svg { width: 17px; height: 17px; color: var(--gold); }
.feature-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 27px; }
.feature-dots { display: flex; gap: 8px; margin-top: 22px; }
.feature-dots button { width: 34px; height: 3px; background: var(--line); }
.feature-dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 900px) { .feature-layout { grid-template-columns: 1fr; } .feature-content { padding: 28px 22px; } }
.history-banner { background: var(--navy); color: #fff; padding: 54px 0; }
.history-banner .wrap { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 50px; align-items: center; }
.history-banner .eyebrow { color: var(--gold-light); margin-bottom: 18px; }
.history-banner h2 { font-size: 1.7rem; line-height: 1.55; color: #fff; }
.history-banner p { font-size: .86rem; color: #c4cdcf; line-height: 1.9; }
.round-link { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid #69757a; border-radius: 50%; transition: background .2s; color: #fff; }
.round-link:hover { background: rgba(255,255,255,.12); }
.round-link svg { width: 19px; height: 19px; }
@media (max-width: 900px) { .history-banner .wrap { grid-template-columns: 1fr; gap: 20px; } }
.route-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 34px 38px; }
.route-box h2 { font-size: 1.7rem; margin-top: 14px; }
.route-box p { margin-top: 12px; font-size: .86rem; color: var(--muted); line-height: 1.8; }
.route-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
.route-steps a { display: flex; gap: 12px; align-items: center; font-size: .82rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.route-steps a:hover { color: var(--gold-ink); }
.route-steps .dot { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); font-size: .68rem; flex: none; }
.route-steps .done .dot { background: var(--gold); color: #fff; border-color: var(--gold); }
@media (max-width: 900px) { .route-box { grid-template-columns: 1fr; padding: 22px; } .route-steps { grid-template-columns: 1fr; } }

/* ---------- подвал ---------- */
.site-footer { padding-top: 52px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 35px; padding-bottom: 42px; flex-wrap: wrap; }
.footer-note { font-size: .76rem; max-width: 340px; margin-top: 20px; line-height: 1.8; color: var(--muted); }
.footer-nav { display: flex; gap: 55px; padding-top: 9px; flex-wrap: wrap; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; font-size: .8rem; align-items: flex-start; }
.footer-nav span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--gold); }
.footer-nav button { text-align: left; padding: 0; font-size: .8rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 21px 0; display: flex; justify-content: space-between; gap: 22px; align-items: center; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.footer-bottom .dotted { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .dotted::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- страницы разделов ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 26px; font-size: .75rem; color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs svg { width: 12px; height: 12px; }
.page-intro { padding: 22px 0 45px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.page-intro .eyebrow { margin-bottom: 20px; }
.page-intro h1 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); max-width: 920px; }
.page-intro .lead { margin-top: 20px; }
.page-intro .tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-intro .tools .btn { min-height: 42px; padding: 8px 16px; font-size: .8rem; gap: 10px; }
.side-num { font-size: .75rem; color: var(--muted); text-align: right; line-height: 1.8; padding-bottom: 7px; }
.side-num strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold); }
@media (max-width: 700px) { .page-intro { grid-template-columns: 1fr; } .side-num { text-align: left; } }
.banner-img { position: relative; height: clamp(240px, 32vw, 430px); overflow: hidden; background: var(--navy); margin: 0; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-img figcaption { position: absolute; right: 0; bottom: 0; max-width: 52ch; padding: 8px 12px; font-size: .7rem; line-height: 1.5; color: #e2ddd2; background: rgba(12, 29, 38, .72); }
.reading-grid { display: grid; grid-template-columns: .65fr 1fr; gap: 80px; }
.reading-grid h2 { font-size: 1.8rem; }
.reading-grid .copy p { line-height: 1.9; margin-bottom: 20px; color: var(--muted); }
.reading-grid .copy p.ink { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; letter-spacing: -.01em; }
@media (max-width: 900px) { .reading-grid { grid-template-columns: 1fr; gap: 24px; } }
.room-back { border-top: 1px solid var(--line); padding-block: 30px 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.room-back .next { display: grid; gap: 4px; text-align: right; }
.room-back .next small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.room-back .next span { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.02em; }
.room-back .next:hover span { color: var(--gold-ink); }
.story-box { border: 1px solid var(--line); background: var(--soft); padding: 18px 20px; display: grid; gap: 10px; }
.story-box .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.story-box .row span { font-size: .78rem; color: var(--muted); }
.story-box details summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
.story-box details p { margin-top: 10px; font-family: var(--serif); font-size: .98rem; line-height: 1.8; }
.story-box small { font-size: .72rem; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: .85fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .82rem; line-height: 1.6; }
.kv dt { color: var(--muted); padding-right: 20px; }
.note-warn { font-size: .82rem; line-height: 1.7; padding: 12px 16px; background: var(--soft); border-left: 2px solid var(--gold); }

/* ---------- 1. эпохи ---------- */
.era-tabs { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.era-tab { padding: 18px 14px 16px; text-align: left; position: relative; color: var(--muted); border-right: 1px solid var(--line); transition: color .2s, background .2s; }
.era-tab:last-child { border-right: 0; }
.era-tab b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; letter-spacing: -.02em; }
.era-tab span { display: block; font-size: .76rem; margin-top: 3px; line-height: 1.4; }
.era-tab:hover { color: var(--ink); }
.era-tab[aria-selected="true"] { color: var(--gold-ink); background: var(--surface); }
.era-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.era-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--surface); border: 1px solid var(--line); margin-top: 28px; }
.era-picture { position: relative; background: var(--navy); min-height: 440px; overflow: hidden; margin: 0; }
.era-picture button { position: absolute; inset: 0; padding: 0; cursor: zoom-in; }
.era-picture img { width: 100%; height: 100%; object-fit: cover; }
.era-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,24,32,.82), transparent 55%); pointer-events: none; }
.era-picture .big-year { position: absolute; left: 30px; bottom: 26px; z-index: 1; font-family: var(--serif); font-size: clamp(2.4rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -.04em; color: var(--gold-light); pointer-events: none; }
.era-picture figcaption { position: absolute; right: 0; top: 0; z-index: 1; font-size: .68rem; padding: 6px 10px; color: #e2ddd2; background: rgba(12,29,38,.7); max-width: 70%; pointer-events: none; }
.era-picture.typeset { display: grid; place-items: center; background: var(--navy) url("../assets/img/themis-white.png") no-repeat 85% 100% / auto 92%; }
.era-picture.typeset::before { content: ""; position: absolute; inset: 0; background: rgba(18,43,56,.86); }
.era-copy { padding: 44px 46px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.era-copy .label { font-size: .75rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-ink); }
.era-copy h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.25; }
.era-copy .lead { line-height: 1.85; }
.flow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow-list li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.55; }
.flow-list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); margin-top: .55em; flex: none; }
.era-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.era-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.era-nav .status { font-size: .8rem; color: var(--muted); }
.btn:disabled { opacity: .4; transform: none; cursor: default; }
@media (max-width: 900px) { .era-panel { grid-template-columns: 1fr; } .era-picture { min-height: 260px; } .era-copy { padding: 26px 22px; } }
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.event { border-top: 1px solid var(--gold); padding-top: 20px; }
.event .d { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); letter-spacing: -.02em; line-height: 1.25; }
.event h3 { font-size: 1rem; font-weight: 500; margin-block: 10px 8px; }
.event p { font-size: .87rem; line-height: 1.8; color: var(--muted); }
@media (max-width: 1000px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events { grid-template-columns: 1fr; } }
.era-extra { display: grid; gap: 34px; margin-top: 46px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.fact { padding: 22px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--gold); line-height: 1.2; }
.fact span { font-size: .79rem; color: var(--muted); line-height: 1.55; }
.principles { display: flex; flex-wrap: wrap; gap: 8px; }
.principles span { border: 1px solid var(--line); padding: 6px 12px; font-size: .8rem; background: var(--surface); }
.structure { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.structure div { padding: 20px; border-right: 1px solid var(--line); font-size: .84rem; color: var(--muted); line-height: 1.7; }
.structure div:last-child { border-right: 0; }
.structure b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -.015em; }
@media (max-width: 900px) { .structure { grid-template-columns: 1fr 1fr; } }
.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; }
.chain span { border: 1px solid var(--line); padding: 7px 12px; background: var(--surface); }
.chain i { font-style: normal; color: var(--gold); }
blockquote.q { margin: 0; padding: 22px 26px; background: var(--soft); border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; letter-spacing: -.01em; }
blockquote.q footer { margin-top: 10px; font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.compare { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #222; user-select: none; touch-action: pan-y; max-width: 100%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold-btn); color: #172d36; display: grid; place-items: center; font-size: 1.1rem; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl { position: absolute; top: 18px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.35); background: rgba(21,35,43,.5); color: #fff; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; pointer-events: none; }
.compare .lbl.l { left: 18px; } .compare .lbl.r { right: 18px; }
.compare:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.cmp-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .78rem; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.cmp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr; gap: 24px; } }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 24%); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.strip button { padding: 0; scroll-snap-align: start; overflow: hidden; background: var(--soft); }
.strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.strip button:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .strip { grid-auto-columns: 78%; } }

/* ---------- 2. стенды ---------- */
.stands { display: grid; border-top: 1px solid var(--line); }
.stand { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.stand-num { position: sticky; top: 120px; align-self: start; }
.stand-num b { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--gold); letter-spacing: -.04em; }
.stand-num small { display: block; margin-top: 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stand-bd { display: grid; gap: 24px; min-width: 0; }
.stand-bd > h3 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.3; }
.stand-bd .prose { color: var(--muted); line-height: 1.9; max-width: 72ch; }
.stand.dark { background: var(--navy); color: #fff; padding-inline: 40px; border-bottom-color: var(--navy); --muted: #c4cdcf; --line: #2e4652; --soft: #183644; --surface: #183644; --ink: #fff; }
.stand.dark .stand-num b { color: var(--gold-light); }
@media (max-width: 900px) { .stand { grid-template-columns: 1fr; gap: 16px; padding-block: 40px; } .stand.dark { padding-inline: 20px; } .stand-num { position: static; } }
.scheme { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 720px; }
.scheme .col { display: grid; gap: 8px; }
.scheme .box { border: 1px solid var(--line); padding: 10px 14px; font-size: .84rem; background: var(--surface); }
.scheme .arrow { color: var(--gold); font-size: 1.4rem; }
.scheme .one { border: 1px solid var(--gold); padding: 22px; text-align: center; font-family: var(--serif); font-size: 1.2rem; background: var(--surface); }
@media (max-width: 640px) { .scheme { grid-template-columns: 1fr; } .scheme .arrow { transform: rotate(90deg); justify-self: center; } }
.fig { margin: 0; }
.fig button { padding: 0; display: block; width: 100%; cursor: zoom-in; }
.fig img { width: 100%; max-height: 520px; object-fit: cover; }
.fig figcaption { margin-top: 10px; font-size: .75rem; color: var(--muted); line-height: 1.65; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice button { text-align: left; padding: 18px; border: 1px solid var(--line); background: var(--surface); min-height: 130px; display: grid; align-content: start; gap: 8px; }
.choice button b { font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.choice button p { font-size: .86rem; line-height: 1.7; filter: blur(5px); opacity: .55; transition: filter .5s, opacity .5s; }
.choice button[aria-expanded="true"] p { filter: none; opacity: 1; }
@media (max-width: 800px) { .choice { grid-template-columns: 1fr; } }
.route-map { width: 100%; max-width: 640px; aspect-ratio: 16/9; background: var(--surface); border: 1px solid var(--line); }
.route-map .path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 6; }
.route-map text { fill: var(--ink); font-family: var(--sans); font-size: 13px; }
.route-map .date { fill: var(--gold); font-size: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.person { border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 10px; align-content: start; }
.person h4 { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.4; }
.person p { font-size: .84rem; line-height: 1.8; color: var(--muted); }
.chron { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chron li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.chron .d { font-family: var(--serif); color: var(--gold); }
@media (max-width: 560px) { .chron li { grid-template-columns: 1fr; gap: 2px; } }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.numbers div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers b { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.numbers b small { font-size: 1rem; margin-left: 4px; }
.numbers span { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 700px) { .numbers { grid-template-columns: 1fr 1fr; } }
.opt-label { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.stand.dark .opt-label { color: var(--gold-light); }

/* ---------- 3. председатели ---------- */
.portrait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; }
.portrait-card { display: grid; gap: 14px; }
.pf { aspect-ratio: 3/4; background: var(--soft); border: 1px solid var(--line); padding: 10px; transition: border-color .24s, transform .24s; }
.pf > div { width: 100%; height: 100%; overflow: hidden; background: var(--navy); display: grid; place-items: center; }
.pf img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .6s; }
.pf .mono-p { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); letter-spacing: .04em; }
.portrait-card:hover .pf { border-color: var(--gold); transform: translateY(-4px); }
.portrait-card:hover .pf img { transform: scale(1.08); }
.portrait-card .meta { display: grid; gap: 3px; }
.portrait-card .meta small { font-size: .75rem; letter-spacing: .09em; color: var(--gold-ink); }
.portrait-card .meta b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; letter-spacing: -.015em; }
.portrait-card .meta span { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.person-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 54px; align-items: start; padding-bottom: 60px; }
.person-page .pf { position: sticky; top: 120px; max-width: 460px; padding: 14px; }
.person-page .pf .mono-p { font-size: 4rem; }
.person-page .copy { display: grid; gap: 24px; min-width: 0; }
.person-page .summary { font-family: var(--serif); font-size: 1.22rem; line-height: 1.75; letter-spacing: -.015em; }
.person-page .bio p { color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.pf-note { font-size: .75rem; color: var(--muted); margin-top: 12px; line-height: 1.65; max-width: 460px; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 8px; }
.pnav > span:empty { display: block; }
.pnav a { display: grid; align-content: start; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); transition: border-color .25s, background .25s; min-width: 0; }
.pnav a small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pnav a span { font-family: var(--serif); font-size: 1.02rem; line-height: 1.4; }
.pnav a:hover { border-color: var(--gold); }
.pnav a.pnav-all { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 4px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pnav a.pnav-all:hover { color: var(--gold-ink); }
.pnav a.pnav-all svg { width: 14px; height: 14px; }
.pnav a:hover span { color: var(--gold-ink); }
@media (max-width: 560px) { .pnav { grid-template-columns: 1fr; gap: 10px; } .pnav > span:empty { display: none; } .pnav a[style] { text-align: left !important; } }
@media (max-width: 900px) { .person-page { grid-template-columns: 1fr; } .person-page .pf { position: static; max-width: 320px; } }
.earlier { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.earlier h3 { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 12px; }
.earlier ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.earlier li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.earlier li span { color: var(--muted); font-size: .78rem; text-align: right; }
@media (max-width: 800px) { .earlier { grid-template-columns: 1fr; } }

/* ---------- 4. коллекция ---------- */
.collection-bar { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.collection-count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); flex: 1 1 260px; max-width: 420px; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 0; color: var(--ink); }
.field svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
select.sel { max-width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
@media (max-width: 1000px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .collection-grid { grid-template-columns: 1fr; } }
.exhibit-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.exhibit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.exhibit-card > a { display: flex; flex-direction: column; flex: 1; }
.exhibit-card .ph { aspect-ratio: 1.25; position: relative; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.exhibit-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.exhibit-card:hover .ph img { transform: scale(1.04); }
.exhibit-card .ph .noimg { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.exhibit-card .ph .photo-tag { top: 17px; left: 17px; }
.exhibit-card .bd { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.exhibit-card .bd .eyebrow { margin-bottom: 11px; font-size: .72rem; }
.exhibit-card .bd .eyebrow::before { width: 16px; }
.exhibit-card h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; letter-spacing: -.02em; }
.exhibit-card p { margin-top: 12px; font-size: .82rem; line-height: 1.8; color: var(--muted); }
.exhibit-card .copy { padding-bottom: 23px; }
.exhibit-card .go { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 500; }
.exhibit-card .go svg { width: 16px; height: 16px; }
.fav-btn { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(21,35,43,.5); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(5px); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn[aria-pressed="true"] { background: var(--gold-btn); color: #172d36; border-color: var(--gold-btn); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 15px; color: var(--muted); border: 1px dashed var(--line); }
.detail-heading { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding: 10px 0 37px; }
.detail-heading .eyebrow { margin-bottom: 16px; }
.detail-heading h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); max-width: 820px; }
.detail-heading .sub { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.detail-heading .tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-heading .tools .btn { min-height: 42px; padding: 8px 16px; font-size: .8rem; gap: 10px; }
.specimen { text-align: right; font-size: .75rem; color: var(--muted); line-height: 1.8; padding-bottom: 7px; }
.specimen strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 54px; align-items: start; padding-bottom: 60px; }
.detail-copy { display: grid; gap: 22px; min-width: 0; }
.detail-copy .prose p { color: var(--muted); line-height: 1.9; font-size: .92rem; margin-bottom: 16px; }
.detail-copy h2 { font-size: 1.5rem; }
@media (max-width: 960px) { .detail-heading, .detail-grid { grid-template-columns: 1fr; } .specimen { text-align: left; } }
.loupe { position: relative; background: #0c1820; overflow: hidden; height: min(72vh, 680px); min-height: 360px; }
.osd { position: absolute !important; inset: 0; }
.loupe-tools { position: absolute; z-index: 5; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.loupe-tools button { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: rgba(20,39,51,.72); border: 1px solid rgba(255,255,255,.3); }
.loupe-tools button:hover { background: rgba(40,64,78,.9); }
.loupe-tools svg { width: 19px; height: 19px; }
.loupe-zoom { position: absolute; z-index: 5; left: 14px; bottom: 14px; font-size: .72rem; color: #e5e1d7; background: rgba(20,39,51,.72); padding: 4px 9px; }
.loupe-help { position: absolute; z-index: 5; right: 14px; bottom: 14px; max-width: 60%; font-size: .72rem; color: #e5e1d7; background: rgba(20,39,51,.72); padding: 4px 9px; }
.thumbs { display: flex; gap: 13px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 101px; height: 77px; padding: 3px; border: 2px solid transparent; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hs { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--gold-btn); color: #172d36; display: grid; place-items: center; font-size: .8rem; font-weight: 600; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,187,132,.7); } 70% { box-shadow: 0 0 0 16px rgba(217,187,132,0); } 100% { box-shadow: 0 0 0 0 rgba(217,187,132,0); } }
.hs-pop { position: absolute; z-index: 6; right: 14px; top: 14px; max-width: 300px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 16px 18px; font-size: .84rem; line-height: 1.7; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hs-pop b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin-bottom: 6px; }
.hs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hs-list button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .84rem; line-height: 1.6; }
.hs-list button:hover { color: var(--gold-ink); }
.hs-list button i { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-btn); color: #172d36; display: grid; place-items: center; font-style: normal; font-size: .72rem; flex: none; }

/* ---------- 5. карта ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 27px; align-items: start; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: 1fr; } }
.map-box { position: relative; height: min(74vh, 720px); min-height: 380px; overflow: hidden; background: #e2d4b4; border: 1px solid var(--line); }
.map-box .loupe-tools { top: auto; bottom: 48px; }
.mk { position: relative; display: block; width: 34px; height: 44px; padding: 0; }
.mk svg { width: 34px; height: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); transition: transform .25s; }
.mk:hover svg, .mk[aria-pressed="true"] svg { transform: scale(1.18) translateY(-3px); }
.mk span { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 7px; font-size: 12px; background: #122b38; color: #f3ead8; }
.mk.cluster span { background: #623e43; }
.court-list { display: grid; max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
.court-list button { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.court-list button:hover b { color: var(--gold-ink); }
.court-list button[aria-pressed="true"] { box-shadow: inset 2px 0 0 var(--gold); padding-left: 14px; background: var(--surface); }
.court-list b { font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: -.01em; }
.court-list small { font-size: .75rem; color: var(--muted); }
.court-card { border: 1px solid var(--line); background: var(--surface); }
.court-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.court-card .bd { padding: 24px; display: grid; gap: 14px; }
.court-card h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; letter-spacing: -.025em; }
.court-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .86rem; line-height: 1.7; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.side-list-title { font-size: .75rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-ink); margin: 26px 0 12px; }

/* ---------- 6. архив ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 27px; }
.folder { display: block; position: relative; color: #2a2016; text-align: left; }
.folder .tab { width: 44%; height: 20px; background: #c9ad74; margin-left: 12px; }
.folder .body { min-height: 210px; padding: 22px 20px; display: grid; gap: 8px; align-content: start; background: linear-gradient(180deg, #e6d1a0, #d8bf86); box-shadow: 0 16px 26px -16px rgba(40,25,5,.55); position: relative; transition: transform .35s var(--ease); }
.folder:hover .body { transform: translateY(-5px); }
.folder .code { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6b4a26; }
.folder h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; letter-spacing: -.015em; }
.folder .date { font-family: var(--serif); color: #623e43; }
.folder .sub { font-size: .8rem; line-height: 1.6; }
.folder.sealed .body { background: repeating-linear-gradient(135deg, #dcd6ca 0 10px, #d2cbbe 10px 20px); color: #4a4337; }
.folder.sealed .body::after { content: "в подготовке"; position: absolute; right: 14px; bottom: 16px; padding: 3px 9px; border: 1.5px solid #623e43; color: #623e43; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-6deg); }
.pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; }

/* ---------- 7. зал ---------- */
.hall-views { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hall-views button { text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 0; }
.hall-views button[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.hall-views img { width: 100%; height: 72px; object-fit: cover; }
.hall-views span { display: block; padding: 8px 10px; font-size: .76rem; }
@media (max-width: 800px) { .hall-views { grid-template-columns: repeat(5, 160px); overflow-x: auto; } }
.pano { position: relative; height: min(68vh, 620px); min-height: 340px; overflow: hidden; background: #0c1820; margin-top: 16px; }
.role-pin { display: inline-flex !important; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; white-space: nowrap; font-size: 12px; color: #f8efdc; background: rgba(12,29,38,.85); border: 1px solid rgba(255,255,255,.25); }
.role-pin i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--gold-btn); color: #172d36; }
.role-pin[aria-pressed="true"] { background: #623e43; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .roles { grid-template-columns: 1fr; } }
.role-card { border: 1px solid var(--line); background: var(--surface); padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .24s; }
.role-card.on { border-color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }
.role-card h3 { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -.02em; }
.role-card > p { font-size: .84rem; color: var(--muted); }
.role-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 7px; font-size: .84rem; line-height: 1.7; color: var(--muted); }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- 8. медиатека ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px; }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr 1fr; } }
.book { text-align: left; display: grid; gap: 14px; align-content: start; }
.book .cover { aspect-ratio: 3/4.1; position: relative; overflow: hidden; background: var(--tone, #5b4632); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.book:hover .cover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .typeset { position: absolute; inset: 12px; border: 1px solid rgba(242,227,194,.35); display: grid; align-content: center; gap: 12px; padding: 18px; text-align: center; color: #f2e3c2; }
.book .typeset b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.4; }
.book .typeset span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.book h3 { font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; letter-spacing: -.015em; }
.book small { font-size: .75rem; color: var(--muted); }
.book-notes { display: grid; border-top: 1px solid var(--line); margin-top: 46px; }
.book-notes details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.book-notes summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; letter-spacing: -.015em; }
.book-notes p { margin-top: 10px; color: var(--muted); line-height: 1.9; font-size: .9rem; max-width: 80ch; }
.book-notes .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.project img { width: 100%; }
.project .copy { display: grid; gap: 16px; }
.project .copy p { color: var(--muted); line-height: 1.85; font-size: .92rem; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 24px; } }
.video-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .video-cards { grid-template-columns: 1fr; } }
.video-card { display: grid; grid-template-columns: 55px 1fr; gap: 20px; align-items: start; padding: 26px; border: 1px solid var(--line); background: var(--surface); transition: border-color .24s; }
.video-card:hover { border-color: var(--gold); }
.video-card .play { width: 55px; height: 55px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.video-card .play svg { width: 20px; height: 20px; }
.video-card h3 { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.015em; }
.video-card p { margin-top: 8px; font-size: .84rem; color: var(--muted); line-height: 1.7; }
.video-card small { display: block; margin-top: 10px; font-size: .72rem; color: var(--gold-ink); letter-spacing: .06em; }

/* ---------- читалка, лайтбокс ---------- */
.reader, .lightbox { position: fixed; inset: 0; z-index: 96; display: grid; grid-template-rows: auto 1fr auto; background: #0c1820; color: #f1ece2; }
.reader[hidden], .lightbox[hidden] { display: none !important; }
.reader-hd, .lb-hd { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.reader-hd h2 { flex: 1; min-width: 0; font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-hd { justify-content: space-between; }
.lb-hd p { font-size: .84rem; color: #c4cdcf; }
.reader .icon-btn, .lightbox .icon-btn { color: #f1ece2; }
.reader-bd { position: relative; overflow: auto; display: grid; place-items: center; padding: 22px; perspective: 2200px; }
.lb-bd { position: relative; }
.spread { display: flex; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.spread canvas { display: block; background: #fff; max-width: 100%; }
.spread.flip-next { animation: flipN .55s var(--ease); }
.spread.flip-prev { animation: flipP .55s var(--ease); }
@keyframes flipN { 45% { transform: rotateY(-9deg) translateX(-14px); opacity: .6; } }
@keyframes flipP { 45% { transform: rotateY(9deg) translateX(14px); opacity: .6; } }
.reader-ft { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; }
.reader .btn { color: #f1ece2; border-color: rgba(255,255,255,.28); }
.reader input[type="number"] { width: 70px; min-height: 38px; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.3); padding: 0 8px; }
.reader-search { position: absolute; z-index: 3; top: 16px; right: 16px; width: min(380px, calc(100% - 32px)); max-height: 70%; overflow: auto; background: #132733; border: 1px solid rgba(255,255,255,.16); padding: 14px; display: grid; gap: 8px; }
.reader-search input { width: 100%; min-height: 42px; background: transparent; color: inherit; border: 0; border-bottom: 2px solid var(--gold-btn); outline: none; }
.reader-search .hit { text-align: left; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .82rem; line-height: 1.6; }
.reader-search .hit b { color: var(--gold-light); font-weight: 500; margin-right: 6px; }
.thumbs.lb { justify-content: center; padding: 8px 16px; margin: 0; }

/* ---------- поиск ---------- */
.search-panel { position: fixed; z-index: 92; left: 50%; top: 9vh; width: min(710px, calc(100% - 24px)); max-height: 80vh; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0,0,0,.33); display: grid; grid-template-rows: auto auto 1fr; }
.search-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.search-panel .top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.search-panel .top h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }
.search-input { display: flex; align-items: center; gap: 14px; margin: 22px 28px 0; border-bottom: 2px solid var(--gold); padding-bottom: 12px; }
.search-input input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 1rem; }
.search-input svg { color: var(--gold); width: 21px; height: 21px; }
.search-res { overflow: auto; padding: 6px 28px 24px; display: grid; align-content: start; }
.search-res a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-res a:hover .t { color: var(--gold-ink); }
.search-res .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.search-res .t { font-weight: 500; font-size: .95rem; }
.search-res .s { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.search-res .grp { font-size: .75rem; color: var(--muted); padding-top: 14px; }
.search-res .empty { margin-top: 14px; }

/* ---------- аудиоплеер ---------- */
.player { position: fixed; z-index: 80; left: 50%; bottom: 16px; width: min(760px, calc(100% - 24px)); transform: translate(-50%, 150%); transition: transform .4s var(--ease); background: #122b38; color: #f1ece2; border: 1px solid #2e4652; box-shadow: 0 20px 50px rgba(0,0,0,.35); padding: 12px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.player.on { transform: translate(-50%, 0); }
.player .ttl { min-width: 0; }
.player .ttl small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.player .ttl b { display: block; font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { height: 2px; background: rgba(255,255,255,.15); margin-top: 7px; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--gold-btn); transition: width .3s; }
.player .ctl { display: flex; align-items: center; gap: 4px; }
.player .icon-btn { color: #f1ece2; width: 40px; height: 40px; }
.player .play { background: var(--gold-btn); color: #172d36; border-radius: 50%; }
.player .icon-btn svg { width: 18px; height: 18px; }
.player select { min-height: 34px; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.3); padding: 0 6px; font-size: .78rem; }
.player select option { color: #000; }
.player .vol { width: 80px; accent-color: var(--gold-btn); }
.player .transcript { grid-column: 1 / -1; max-height: 30vh; overflow: auto; border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; font-family: var(--serif); font-size: .95rem; line-height: 1.75; }
.player .transcript .cur { background: rgba(217,187,132,.32); }
@media (max-width: 620px) { .player { grid-template-columns: 1fr auto; } .player .ico, .player .vol { display: none; } }
.speaking { outline: 2px dashed var(--gold); outline-offset: 6px; }
.toast { position: fixed; z-index: 99; left: 50%; top: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 20px; font-size: .86rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.toast.on { opacity: 1; }
.fav-list { display: grid; }
.fav-list a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.fav-list img { width: 64px; height: 52px; object-fit: cover; }
.fav-list small { color: var(--muted); font-size: .75rem; }
.zoom-veil { position: fixed; inset: 0; z-index: 70; background: #122b38; opacity: 0; pointer-events: none; }
h1[tabindex="-1"]:focus { outline: none; }
.navigator { border: 1px solid rgba(255,255,255,.6) !important; background: rgba(0,0,0,.4) !important; }
.reveal-up { animation: up .7s var(--ease) both; }
@keyframes up { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* плеер: свернуть / закрыть */
.player .pl-div { width: 1px; height: 26px; background: rgba(255,255,255,.2); margin: 0 6px; }
.player .pl-act { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; color: #f1ece2; border: 1px solid rgba(255,255,255,.28); font-size: .78rem; }
.player .pl-act:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.player .pl-act + .pl-act { margin-left: 6px; }
.player .pl-act svg { width: 16px; height: 16px; }
.pl-mini { display: none; }
.player.min { width: auto; grid-template-columns: auto; padding: 0; left: auto; right: 16px; transform: none; border-radius: 999px; overflow: hidden; }
.player.min:not(.on) { transform: translateY(160%); }
.player.min > :not(.pl-mini) { display: none !important; }
.player.min .pl-mini { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; color: #f1ece2; font-size: .86rem; max-width: min(360px, calc(100vw - 32px)); }
.pl-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mini svg { width: 16px; height: 16px; flex: none; }
.pl-mini .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.pl-mini .eq b { width: 3px; height: 30%; background: var(--gold-btn); }
.is-speaking .pl-mini .eq b { animation: eq .9s ease-in-out infinite alternate; }
.is-speaking .pl-mini .eq b:nth-child(2) { animation-delay: .2s; } .is-speaking .pl-mini .eq b:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
@media (max-width: 620px) { .player .pl-act span { display: none; } .player .pl-act { padding: 0 8px; } .player .pl-div { display: none; } }

/* ---------- главная: машина времени ---------- */
.tl-section { padding-bottom: 20px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.timeline li { scroll-snap-align: start; }
.timeline a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 18px 22px 0; min-height: 100%; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); position: relative; z-index: 1; margin-bottom: 14px; transition: background .25s, transform .25s; }
.tl-year { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1; color: var(--gold); letter-spacing: -.03em; }
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.35; min-height: 2.7em; }
.tl-period { font-size: .76rem; color: var(--muted); }
.tl-img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; flex: none; object-fit: cover; margin-top: 10px; filter: grayscale(1) contrast(1.05); opacity: .0; transform: translateY(6px); transition: opacity .3s, transform .3s, filter .3s; }
.timeline li.on .tl-dot, .timeline a:focus-visible .tl-dot { background: var(--gold); transform: scale(1.25); }
.timeline li.on .tl-img, .timeline a:focus-visible .tl-img { opacity: 1; transform: none; filter: grayscale(.2); }
.timeline li.on b { color: var(--gold-ink); }
@media (hover: none) { .tl-img { opacity: 1; transform: none; } }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(7, 62%); } .tl-img { opacity: 1; transform: none; } }

/* ---------- главная: аудиогид ---------- */
.listen { padding-block: 70px; background: var(--soft); border-block: 1px solid var(--line); }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.listen h2 { margin-top: 14px; }
.listen p { margin-top: 16px; color: var(--muted); line-height: 1.85; max-width: 52ch; }
.listen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.wave { display: flex; align-items: center; gap: 5px; height: 150px; }
.wave i { flex: 1; height: var(--h); background: linear-gradient(var(--gold), var(--gold-light)); opacity: .55; transform-origin: center; transform: scaleY(.35); transition: transform .5s var(--ease), opacity .5s; }
.is-speaking .wave i { opacity: .95; animation: wave 1.1s ease-in-out var(--d) infinite alternate; }
@keyframes wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 900px) { .listen-grid { grid-template-columns: 1fr; gap: 30px; } .wave { height: 90px; } }

/* ---------- карточки разделов: состав ---------- */
.card-count { position: relative; z-index: 1; margin-top: 12px; font-size: .76rem; color: var(--gold-ink); }
.image-card .card-count { color: #e7cfaa; }

/* ---------- переключатель языка ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); }
.lang-switch button { padding: 4px 9px; font-size: .74rem; line-height: 1.2; color: var(--muted); letter-spacing: .04em; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
html[lang="zh-CN"] body { font-family: "Golos Text", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] .menu-list .t, html[lang="zh-CN"] .tl-year { font-family: "Prata", "Songti SC", "SimSun", "Noto Serif SC", serif; letter-spacing: 0; }
html[lang="zh-CN"] .eyebrow { letter-spacing: .08em; }
/* хронология: место для увеличенной точки, чтобы её не обрезало */
.timeline { padding: 8px 0 10px 6px; }
.timeline::before { top: 15px; }

/* ===== Архив: обезличенные уголовные дела ===== */
.dossiers .section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.anon-note { display: inline-flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }
.anon-note .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dossier { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); align-items: start; }
.dossier-stack { position: relative; display: block; aspect-ratio: 4 / 5; isolation: isolate; }
.dossier-stack img { position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 30px -18px rgba(30,20,5,.6); background: #d8bf86;
  transform: rotate(calc((var(--k) - 1.5) * 3deg)) translate(calc((var(--k) - 1.5) * 10px), calc(var(--k) * -4px)); z-index: calc(4 - var(--k)); transition: transform .6s var(--ease); }
.dossier-stack:hover img { transform: rotate(calc((var(--k) - 1.5) * 6deg)) translate(calc((var(--k) - 1.5) * 26px), calc(var(--k) * -8px)); }
.dossier-years { position: absolute; left: 0; bottom: -6px; z-index: 6; background: var(--navy); color: #f3ead6; font-family: var(--serif); font-size: 1.05rem; padding: 10px 16px; letter-spacing: .02em; }
.dossier-copy h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 14px; }
.dossier-copy > p { max-width: 64ch; color: var(--muted); line-height: 1.7; }
.chapters { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; counter-reset: none; }
.chapters a { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .25s, padding .3s var(--ease); }
.chapters a:hover, .chapters a[aria-current] { color: var(--gold-ink); padding-left: 6px; }
.chapters a[aria-current] span { font-weight: 500; }
.chapters i { font-style: normal; font-size: .72rem; letter-spacing: .1em; color: var(--gold); }
.chapters em { font-style: normal; font-size: .72rem; color: var(--muted); }
.case-nav { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-nav .chapters { grid-template-columns: 1fr; margin-top: 10px; }
.case-nav .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.detail-copy .anon-note { margin-top: 18px; display: block; padding: 12px 14px; background: var(--soft); border-left: 2px solid var(--gold); }
@media (max-width: 760px) { .dossier { grid-template-columns: 1fr; } .dossier-stack { max-width: 320px; } }

/* Превью: фото целиком поверх размытой подложки */
.exhibit-card .ph img.ph-bg, .feature-photo img.ph-bg { object-fit: cover; filter: blur(22px) saturate(.9) brightness(.92); transform: scale(1.15); opacity: .85; }
.exhibit-card .ph img.ph-fg, .feature-photo img.ph-fg { object-fit: contain; padding: 4%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.22)); }
.exhibit-card:hover .ph img.ph-bg { transform: scale(1.15); }
.exhibit-card:hover .ph img.ph-fg { transform: scale(1.035); }

/* ===== Музей в цифрах (вместо слабого «УТП») ===== */
section.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #efe7d6; margin-top: -1px; isolation: isolate; overflow: hidden; }
section.facts::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 180px at var(--mx, 20%) 0%, rgba(201,169,110,.18), transparent 70%); z-index: -1; transition: background-position .3s; }
a.fact { position: relative; display: grid; gap: 6px; align-content: start; padding: 30px 30px 32px; color: inherit; text-decoration: none; border-right: 1px solid rgba(255,255,255,.08); transition: background .4s; }
a.fact:last-child { border-right: 0; }
a.fact:hover { background: rgba(255,255,255,.035); }
.fact-line { position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--k) * .12s); }
section.facts.in .fact-line { transform: scaleX(1); }
.fact-num { display: flex; align-items: baseline; gap: 10px; }
.fact-num b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fact-num em { font-style: normal; font-family: var(--serif); font-size: 1.15rem; color: #efe7d6; }
.fact-t { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #cdbf9f; }
.fact-s { font-size: .82rem; line-height: 1.55; color: rgba(239,231,214,.62); max-width: 26ch; opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(.5s + var(--k) * .12s); }
section.facts.in .fact-s { opacity: 1; transform: none; }
.fact-go { position: absolute; right: 26px; top: 30px; opacity: .35; transition: transform .35s var(--ease), opacity .35s; }
.fact-go .icon { width: 18px; height: 18px; }
a.fact:hover .fact-go { opacity: 1; transform: translateX(4px); color: var(--gold-light); }
@media (max-width: 1000px) { section.facts { grid-template-columns: 1fr 1fr; } a.fact:nth-child(2) { border-right: 0; } a.fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); } }
@media (max-width: 560px) { a.fact { padding: 22px 20px; } .fact-line { left: 20px; right: 20px; } .fact-num b { font-size: 2.2rem; } }
@media (prefers-reduced-motion: reduce) { .fact-line, .fact-s { transition: none; } }

.cine-link { gap: 10px; }
.cine-dot { width: 7px; height: 7px; border-radius: 50%; background: #9fd3e6; box-shadow: 0 0 0 0 rgba(159,211,230,.6); animation: cinePulse 2.4s infinite; display: inline-block; }
@keyframes cinePulse { 70% { box-shadow: 0 0 0 9px rgba(159,211,230,0); } 100% { box-shadow: 0 0 0 0 rgba(159,211,230,0); } }
@media (prefers-reduced-motion: reduce) { .cine-dot { animation: none; } }

/* Фемида из живых частиц */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero--fx .hero-themis { display: none; }
.hero--fx .hero-art { width: 78%; opacity: .72; object-position: 50% 45%; filter: saturate(.92) contrast(1.04) brightness(.82); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); animation: heroDrift 40s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero--fx .hero-art { animation: none; } }
html.a11y-motion .hero--fx .hero-art { animation: none; }
.hero--fx { background: radial-gradient(ellipse at 72% 45%, #1b3540 0%, #11232b 55%, #0c1a21 100%); }
html.a11y-noimg .hero-fx { display: none !important; }
@media (max-width: 820px) { .hero--fx .hero-fx { opacity: .55; } }

.wave { display: block; height: 170px; cursor: crosshair; }
.wave canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .wave { height: 110px; } }

/* ===== Председатели: действующий председатель + лента от новых к старым ===== */
.ch-now { background: var(--navy); color: #efe7d6; padding: clamp(36px, 5vw, 64px) 0; margin-top: 24px; position: relative; overflow: hidden; }
.ch-now::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 18% 50%, rgba(201,169,110,.16), transparent 70%); }
.ch-now-card { position: relative; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; color: inherit; text-decoration: none; }
.ch-now-photo .pf { background: rgba(255,255,255,.04); border-color: rgba(218,192,146,.35); padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.ch-now-card:hover .pf { border-color: var(--gold-light); }
.ch-now-copy .eyebrow { color: var(--gold-light); }
.ch-now-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 16px 0 10px; color: #fff; letter-spacing: -.02em; }
.ch-role { color: #cdbf9f; font-size: .95rem; margin-bottom: 18px; }
.ch-sum { color: rgba(239,231,214,.72); line-height: 1.75; max-width: 60ch; margin-bottom: 28px; }
.ch-line { list-style: none; padding: 0; margin: 10px 0 0; position: relative; }
.ch-line::before { content: ""; position: absolute; left: 160px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.ch-line li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(min(var(--k), 4) * 60ms); }
.ch-line li.in { opacity: 1; transform: none; }
.ch-row { display: grid; grid-template-columns: 136px 48px 112px 1fr 40px; align-items: center; gap: 0 18px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.ch-years { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-ink); text-align: right; white-space: nowrap; }
.ch-dot { justify-self: center; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); transition: background .3s, transform .3s; position: relative; z-index: 1; margin-left: -22px; }
.ch-ph .pf { padding: 5px; }
.ch-ph .pf .mono-p { font-size: 1.5rem; }
.ch-txt { display: grid; gap: 4px; min-width: 0; }
.ch-txt b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.ch-txt small { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.ch-txt span { font-size: .86rem; color: var(--muted); line-height: 1.6; max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-go { justify-self: end; opacity: .35; transition: transform .35s var(--ease), opacity .35s; }
.ch-row:hover .ch-dot { background: var(--gold); transform: scale(1.3); }
.ch-row:hover .ch-go { opacity: 1; transform: translateX(5px); color: var(--gold-ink); }
.ch-row:hover .ch-txt b { color: var(--gold-ink); }
.ch-row:hover .pf { border-color: var(--gold); }
@media (max-width: 760px) {
  .ch-now-card { grid-template-columns: 1fr; } .ch-now-photo { max-width: 260px; }
  .ch-line::before { left: 6px; }
  .ch-row { grid-template-columns: 12px 84px 1fr; grid-template-areas: "dot ph years" "dot ph txt"; gap: 4px 14px; }
  .ch-dot { grid-area: dot; margin-left: 0; } .ch-ph { grid-area: ph; } .ch-years { grid-area: years; text-align: left; font-size: 1.05rem; } .ch-txt { grid-area: txt; } .ch-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ch-line li { opacity: 1; transform: none; transition: none; } }

/* перемотка в плеере */
.player .bar { height: auto; background: none; margin-top: 4px; padding: 7px 0; cursor: pointer; touch-action: none; }
.player .bar .track { display: block; position: relative; height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; transition: height .2s; }
.player .bar i { position: relative; border-radius: 2px; }
.player .bar i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--gold-btn); box-shadow: 0 0 0 3px rgba(217,187,132,.25); transform: scale(0); transition: transform .2s; }
.player .bar:hover .track, .player .bar.drag .track, .player .bar:focus-visible .track { height: 5px; }
.player .bar:hover i::after, .player .bar.drag i::after, .player .bar:focus-visible i::after { transform: scale(1); }
.player .bar.drag i { transition: none; }
.player .bar:focus-visible { outline: none; }
.player .pl-pos { display: block; font-size: .66rem; color: rgba(241,236,226,.55); letter-spacing: .06em; margin-top: -2px; }
.player .skip { width: 34px; position: static; transform: none; padding: 0; background: none; z-index: auto; }
.player .skip svg { width: 15px; height: 15px; }
.player .transcript span { cursor: pointer; border-radius: 2px; transition: background .2s; }
.player .transcript span:hover { background: rgba(255,255,255,.08); }
@media (max-width: 620px) { .player .vol { display: none; } }

/* без внутренних полос прокрутки: блоки подстраиваются под содержимое */
.timeline, .era-tabs { overflow-y: hidden; }
@media (min-width: 901px) { .timeline, .era-tabs { overflow: visible; } }
.timeline, .era-tabs, .strip, .thumbs, .hall-views { scrollbar-width: none; -ms-overflow-style: none; }
.timeline::-webkit-scrollbar, .era-tabs::-webkit-scrollbar, .strip::-webkit-scrollbar, .thumbs::-webkit-scrollbar, .hall-views::-webkit-scrollbar { display: none; }
.court-list { max-height: none; overflow: visible; }
.player .transcript { scrollbar-width: thin; scrollbar-color: rgba(217,187,132,.5) transparent; }
.player .transcript::-webkit-scrollbar { width: 6px; } .player .transcript::-webkit-scrollbar-thumb { background: rgba(217,187,132,.45); border-radius: 3px; } .player .transcript::-webkit-scrollbar-button { display: none; }

/* воздух между последним блоком страницы и следующей секцией */
.era-extra { padding-bottom: clamp(40px, 5vw, 64px); }
.era-extra > .opt-group:last-child { margin-bottom: 0; }
.room-back { margin-top: clamp(32px, 4vw, 56px); }
.exhibit-card .ph .noimg .icon{width:46px;height:46px;opacity:.35;color:var(--gold,#a8874a)}
.noimg-big{min-height:300px;display:grid;place-items:center}
.noimg-big .icon{width:84px;height:84px;opacity:.28;color:var(--gold,#a8874a)}
/* без текстового курсора вне полей ввода */
body{caret-color:transparent}
input,textarea,select,[contenteditable="true"]{caret-color:auto}
.brand,.brand *,header img,.logo,.logo *{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}

.timeline li{display:flex}.timeline li>a{flex:1;min-height:0}
@media (max-width: 820px) { .hero--fx .hero-art { width: 100%; opacity: .5; object-position: 60% 45%; } }

/* перелистывание книги */
.flip-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.flip-under, .flip-leaf { position: absolute; }
.flip-leaf { transform-style: preserve-3d; will-change: transform; }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #f4ecdc; }
.flip-face canvas { width: 100% !important; height: 100% !important; display: block; }
.flip-back { transform: rotateY(180deg); }
.flip-front { box-shadow: 0 0 40px rgba(0,0,0,.35); }
.flip-shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 35%, rgba(255,255,255,.08) 60%, rgba(0,0,0,.25)); }
.flip-under { overflow: hidden; }
.flip-under .flip-shade { display: none; }
/* подпись и переключатель символов у частиц на главной */
.fx-cap { position: absolute; z-index: 3; right: calc(var(--gut) + 200px); bottom: 33px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; color: var(--gold-light, #dac092); pointer-events: none; }
.fx-name { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; transition: opacity .4s; }
.fx-dots { display: flex; gap: 8px; pointer-events: auto; }
.fx-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(218,192,146,.7); background: transparent; cursor: pointer; transition: background .3s, transform .3s; }
.fx-dots button[aria-current="true"] { background: #dac092; transform: scale(1.25); }
.fx-dots button:focus-visible { outline: 2px solid #dac092; outline-offset: 3px; }
@media (max-width: 820px) { .fx-cap { right: var(--gut); bottom: 24px; } }
html.a11y-noimg .fx-cap { display: none; }
#player.loading #plPlay { animation: plLoad 1s ease-in-out infinite alternate; }
@keyframes plLoad { from { opacity: 1; } to { opacity: .45; } }

/* ---------- 404 «Дело № 404» ---------- */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - 90px); display: grid; align-content: center; padding: 72px 0 56px; background: radial-gradient(ellipse at 75% 40%, #1b3540 0%, #11232b 55%, #0c1a21 100%); color: #f1ece2; }
.nf-grain { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 3px 3px; pointer-events: none; }
.nf-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.nf .eyebrow { color: #dac092; }
.nf-num { display: flex; align-items: center; gap: 4px; font-family: var(--serif); font-size: clamp(7rem, 15vw, 12.5rem); line-height: .9; color: #dac092; letter-spacing: -.04em; margin: 14px 0 10px; }
.nf-scales { width: .98em; height: .98em; overflow: visible; margin: 0 .02em; }
.nf-scales path, .nf-scales circle, .nf-scales rect { fill: none; stroke: #dac092; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nf-scales .fill { fill: rgba(218,192,146,.14); }
.nf-scales .nf-sheet rect { fill: #f1ece2; stroke: #f1ece2; stroke-width: 1; }
.nf-scales .nf-sheet path { stroke: #11232b; stroke-width: 1.6; }
.nf-beam { transform-origin: 110px 52px; transform-box: view-box; }
.nf-pan-l { transform-origin: 30px 52px; transform-box: view-box; }
.nf-pan-r { transform-origin: 190px 52px; transform-box: view-box; }
.nf h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; max-width: 16ch; color: #fff; }
.nf-verdict { margin: 26px 0 30px; display: grid; gap: 14px; max-width: 54ch; }
.nf-verdict div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(218,192,146,.22); }
.nf-verdict dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #dac092; padding-top: 4px; }
.nf-verdict dd { margin: 0; color: #cfd6d6; line-height: 1.6; }
.nf-path { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9em; padding: 2px 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #f1ece2; word-break: break-all; }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.nf .btn:not(.gold) { color: #f1ece2; border-color: rgba(241,236,226,.45); background: transparent; }
.nf .text-link { color: #f1ece2; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.nf-case { display: grid; justify-items: center; gap: 16px; }
.nf-folder { position: relative; width: min(100%, 360px); aspect-ratio: 3/4; padding: 26px 26px 30px; display: grid; grid-template-rows: auto 1fr auto; text-align: left; cursor: pointer; border: 0; color: #3b2f1e;
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.08)), repeating-linear-gradient(0deg, rgba(90,70,40,.05) 0 2px, transparent 2px 5px), #cdb68a;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(80,60,30,.25), inset 0 0 40px rgba(90,60,20,.25); transform: rotate(3deg); transition: transform .5s var(--ease); }
.nf-folder::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 1px; background: rgba(60,45,25,.15); }
.nf-folder:hover { transform: rotate(1.5deg) translateY(-4px); }
.nf-folder:focus-visible { outline: 3px solid #dac092; outline-offset: 6px; }
.nf-folder.hit { animation: nfHit .45s .2s var(--ease); }
.nf-folder-top { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.nf-folder-ttl { align-self: center; justify-self: center; text-align: center; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; letter-spacing: .04em; }
.nf-folder-lines { display: grid; gap: 9px; font-size: .8rem; }
.nf-folder-lines span { display: grid; grid-template-columns: 84px 1fr; border-bottom: 1px solid rgba(60,45,25,.35); padding-bottom: 3px; }
.nf-folder-lines i { font-style: normal; opacity: .65; }
.nf-folder-lines b { font-weight: 500; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-type::after { content: "▌"; animation: nfCaret 1s steps(1) infinite; opacity: .6; }
.nf-stamp { position: absolute; left: 56%; top: 61%; display: grid; justify-items: center; padding: 10px 20px 8px; border: 4px solid #b3261e; border-radius: 8px; color: #b3261e; text-transform: uppercase; opacity: 0;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.6); mix-blend-mode: multiply; box-shadow: inset 0 0 0 2px rgba(179,38,30,.4); pointer-events: none; }
.nf-stamp b { font-family: var(--sans); font-weight: 800; font-size: 1.65rem; letter-spacing: .08em; line-height: 1; }
.nf-stamp small { font-size: .72rem; letter-spacing: .2em; margin-top: 4px; font-weight: 600; }
.nf-stamp.on { animation: nfStamp .5s var(--ease) forwards; }
.nf-hint { font-size: .78rem; color: #9fb0b3; }
.nf-more { position: relative; margin-top: 54px; }
.nf-more .eyebrow { margin-bottom: 14px; }
.nf-more .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-more .chip { color: #f1ece2; border-color: rgba(241,236,226,.25); }
.nf-more .chip:hover { background: rgba(218,192,146,.14); border-color: #dac092; }
@keyframes nfStamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.6); } 60% { opacity: .95; transform: translate(-50%, -50%) rotate(-11deg) scale(.94); } 100% { opacity: .88; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
@keyframes nfHit { 0%, 100% { transform: rotate(3deg); } 30% { transform: rotate(2.4deg) translateY(5px) scale(.985); } }
@keyframes nfCaret { 50% { opacity: 0; } }
@media (max-width: 900px) { .nf-grid { grid-template-columns: 1fr; gap: 48px; } .nf-folder { width: min(72%, 280px); } .nf-folder-ttl { font-size: 2.1rem; } }
@media (max-width: 560px) { .nf { padding-top: 40px; } .nf-verdict div { grid-template-columns: 1fr; gap: 4px; } .nf-num { font-size: 6.4rem; } }
html.a11y-contrast .nf { background: var(--bg); color: var(--ink); }

/* ---- карточки разделов с фотографиями (правки 10.2026) ---- */
.section-card.image-card .card-bg { opacity: .78; filter: saturate(.85); }
.section-card.image-card::after { background: linear-gradient(180deg, rgba(10,26,34,.35) 0%, rgba(10,26,34,.25) 35%, rgba(8,22,30,.9) 100%); }
.card-bg--chairmen { object-position: 62% 40%; }
.card-bg--exhibits { object-position: 50% 30%; }
.card-bg--court { object-position: 52% 50%; }
.card-tl { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 10px 0 4px; padding-top: 8px; }
.card-tl::before { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 1px; background: rgba(231,207,170,.55); }
.card-tl i { position: relative; display: flex; flex-direction: column; align-items: center; font-style: normal; }
.card-tl b { width: 9px; height: 9px; border-radius: 50%; background: #e7cfaa; box-shadow: 0 0 0 3px rgba(231,207,170,.18); }
.card-tl em { font-style: normal; font-size: .62rem; color: #e7cfaa; margin-top: 5px; letter-spacing: .02em; }
@media (max-width: 520px) { .card-tl em { font-size: .55rem; } }
/* обращение председателя на странице «О музее» */
.welcome-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 64px; align-items: center; }
.welcome-photo { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line, rgba(0,0,0,.12)); background: var(--navy); }
.welcome-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%; }
.welcome-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(0deg, rgba(10,26,34,.92), rgba(10,26,34,0)); color: #fff; display: grid; gap: 3px; }
.welcome-photo figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.welcome-photo figcaption span { font-size: .78rem; color: #e7cfaa; letter-spacing: .04em; }
.welcome-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 22px; }
.welcome-text p { line-height: 1.9; margin-bottom: 16px; color: var(--muted); }
.welcome-text p.ink { color: var(--ink); font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; }
.welcome-text .welcome-sign { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.15rem; }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; gap: 28px; } .welcome-photo { max-width: 440px; } }
/* лента времени раздела 1: линия с точками, фото при наведении */
.tl2-head { padding-top: 8px; margin-bottom: 26px; display: grid; gap: 10px; }
.tl2-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tl2-head p { color: var(--muted); max-width: 60ch; }
.era-tabs.tl2 { position: relative; display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 0; border: 0; padding: 150px 0 6px; margin-bottom: 30px; overflow: visible; background: none; }
.era-tabs.tl2::before { content: ""; position: absolute; left: 0; right: 0; top: 198px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold, #b8955a) 6%, var(--gold, #b8955a) 94%, transparent); opacity: .7; }
.tl2-pt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 10px 8px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); min-width: 0; }
.tl2-pt b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; color: var(--gold-dark, #8c6a35); }
.tl2-dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--gold, #b8955a); background: var(--paper, #f6f5f1); transition: transform .25s, background .25s, box-shadow .25s; margin-left: 1px; }
.tl2-name { font-family: var(--serif); font-size: 1rem; line-height: 1.25; color: var(--ink); }
.tl2-pt[aria-selected="true"] .tl2-dot { background: var(--gold, #b8955a); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(184,149,90,.18); }
.tl2-pt[aria-selected="true"] b { color: var(--gold, #b8955a); }
.tl2-pt:hover .tl2-dot, .tl2-pt:focus-visible .tl2-dot { transform: scale(1.35); background: var(--gold-light, #d7bd8d); }
.tl2-pop { position: absolute; left: -6px; bottom: calc(100% + 6px); width: 150px; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 20px 100%; transition: opacity .25s, transform .25s; pointer-events: none; background: #10232c; border: 1px solid rgba(184,149,90,.6); padding: 5px; z-index: 3; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.tl2-pop img { display: block; width: 100%; height: 96px; object-fit: cover; }
.tl2-pop em { display: block; font-style: normal; font-size: .7rem; color: #e7cfaa; padding: 5px 2px 1px; letter-spacing: .03em; }
.tl2-pt:hover .tl2-pop, .tl2-pt:focus-visible .tl2-pop, .tl2-pt[aria-selected="true"] .tl2-pop { opacity: 1; transform: none; }
.era-tabs.tl2:hover .tl2-pt[aria-selected="true"]:not(:hover) .tl2-pop { opacity: 0; }
@media (max-width: 900px) {
  .era-tabs.tl2 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 140px; gap: 6px; -webkit-overflow-scrolling: touch; }
  .era-tabs.tl2::before { top: 188px; left: 0; right: auto; width: 1100px; }
  .tl2-pt { flex: 0 0 140px; scroll-snap-align: start; }
}
.era-tab.tl2-pt { border-right: 0; padding: 0 10px 8px 0; color: var(--ink); }
.era-tab.tl2-pt::after { display: none; }
.era-tab.tl2-pt[aria-selected="true"] { background: none; }
.era-tab.tl2-pt b { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.era-tab.tl2-pt .tl2-name { font-size: 1rem; margin-top: 0; }
.era-tab.tl2-pt .tl2-pop { position: absolute; display: block; margin: 0; }
.era-tabs.tl2 { border-top: 0; border-bottom: 1px solid var(--line); }
/* карта: фото здания суда при наведении на маркер */
.mk { position: relative; }
.mk .mk-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); width: 220px; background: #10232c; border: 1px solid rgba(184,149,90,.7); padding: 5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; box-shadow: 0 12px 28px rgba(0,0,0,.35); text-align: left; display: block; }
.mk .mk-tip img { display: block; width: 100%; height: 130px; object-fit: cover; }
.mk .mk-tip b { display: block; font-weight: 500; font-size: .72rem; line-height: 1.35; color: #f1e6cf; padding: 6px 3px 2px; white-space: normal; }
.mk:hover .mk-tip, .mk:focus-visible .mk-tip { opacity: 1; transform: translate(-50%, 0); }
.mk.cluster .mk-tip b { max-height: 7.5em; overflow: hidden; }
.mk .mk-tip, .mk.cluster .mk-tip { top: auto; background: #10232c; white-space: normal; font-size: 12px; }

/* ---------- первый блок: редакционный разворот ---------- */
.hero { background: #0d1c23; min-height: 640px; }
.hero::after { display: none; }
.hero-pic { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; margin: 0; overflow: hidden; }
.hero-pic .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none; animation: none; transform: none; }
.hero-pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,28,35,.5), transparent 26%); z-index: 1; }
.hero-pic::after { content: ""; position: absolute; inset: 40px; border: 1px solid rgba(214,190,146,.6); z-index: 2; pointer-events: none; }
.hero-pic figcaption { position: absolute; z-index: 3; right: 64px; left: 64px; bottom: 58px; text-align: right; color: #f1ece2; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }
.hero .wrap { padding-block: 84px 96px; }
.hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.1rem); max-width: 47%; }
.hero-desc { max-width: 430px; }
.hero-actions { max-width: 46%; gap: 22px 26px; }
.hero-foot { right: auto; left: var(--gut); bottom: 34px; }
@media (max-width: 900px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-pic { position: relative; width: 100%; height: 300px; order: -1; }
  .hero-pic::after { inset: 18px; }
  .hero-pic figcaption { right: 34px; left: 34px; bottom: 30px; font-size: .62rem; }
  .hero .wrap { padding-block: 44px 56px; }
  .hero h1, .hero-actions { max-width: none; }
}
html.a11y-noimg .hero-pic { display: none !important; }
html.a11y-noimg .hero h1, html.a11y-noimg .hero-actions { max-width: none; }
.hero-links { flex-basis: 100%; display: flex; gap: 30px; align-items: center; margin-top: 4px; }
.hero-links .text-link { font-size: .86rem; color: #cfd6d8; }
.hero-links .text-link:hover { color: #fff; }
.hero-motto { position: absolute; z-index: 3; left: 64px; top: 62px; display: flex; gap: 14px; align-items: center; color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.hero-motto::before { content: ""; width: 1px; height: 30px; background: #d6be92; }
.hero-pic::before { background: linear-gradient(0deg, rgba(13,28,35,.62), transparent 30%), linear-gradient(180deg, rgba(13,28,35,.35), transparent 22%); }
@media (max-width: 900px) {
  .hero-motto { display: none; }
  .hero-pic::before { background: linear-gradient(0deg, rgba(13,28,35,.78), transparent 45%); }
}
/* бронзовая Фемида в раме */
.hero-pic { background: radial-gradient(ellipse 58% 56% at 50% 54%, #3b2d1d 0%, #1e201e 52%, #0d1c23 100%); }
.hero-pic::before { display: none; }
.hero-statue { position: absolute; z-index: 3; bottom: 0; left: 50%; transform: translateX(-46%); height: 96%; width: auto; pointer-events: none; filter: drop-shadow(0 22px 40px rgba(0,0,0,.6)); }
@media (max-width: 900px) {
  .hero-pic { height: 420px; }
  .hero-statue { height: 94%; }
}
/* приглушённая панорама за всем блоком */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; opacity: .3; filter: saturate(.5) sepia(.3) brightness(.7); -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 60%); mask-image: linear-gradient(90deg, transparent 5%, #000 60%); pointer-events: none; }
.hero-pic { background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(59,45,29,.85) 0%, rgba(30,32,30,.45) 55%, rgba(13,28,35,0) 100%); overflow: visible; }
.hero .wrap { z-index: 2; }
@media (max-width: 900px) {
  .hero-bg { opacity: .22; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 75%); mask-image: linear-gradient(180deg, #000 30%, transparent 75%); object-position: 40% 30%; }
}
/* карточки разделов: название внизу, над описанием */
.section-card { min-height: 290px; }
.section-card .card-top { margin-bottom: 0; }
.section-card h3 { margin-top: auto; padding-top: 28px; max-width: 240px; }
.section-card .card-count { margin-top: 6px; }
.section-card .card-tl { margin: 14px 0 0; }
.section-card .card-bottom { margin-top: 0; padding-top: 14px; }
.card-visited { right: auto; left: 58px; top: 29px; bottom: auto; }
.section-card.image-card::after { background: linear-gradient(180deg, rgba(10,26,34,.3) 0%, rgba(10,26,34,.18) 30%, rgba(8,22,30,.78) 62%, rgba(8,22,30,.95) 100%); }
/* фотоархив на странице человека: снимки в естественных пропорциях */
.strip--free { display: flex; gap: 18px; align-items: flex-start; }
.strip--free figure { margin: 0; flex: none; scroll-snap-align: start; max-width: 80vw; }
.strip--free button { display: block; background: #0f1d24; }
.strip--free img { height: 280px; width: auto; max-width: 80vw; aspect-ratio: auto; object-fit: contain; }
.strip--free figcaption { margin-top: 10px; font-size: .78rem; line-height: 1.5; color: var(--muted); max-width: 300px; }
@media (max-width: 600px) { .strip--free img { height: 220px; } }
/* Фемида «по колено»: частицы на WebGL */
.hero-statue-box { position: absolute; z-index: 3; top: -14%; bottom: 0; left: -28%; right: -12%; pointer-events: none; }
.hero-statue-box .hero-statue { position: absolute; bottom: 0; left: 57%; transform: translateX(-50%); height: 81%; width: auto; max-width: 98%; object-fit: contain; object-position: bottom; filter: none; transition: opacity .3s; }
.hero-statue-box.fx-on .hero-statue { opacity: 0; transition: none; }
.themis-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-pic::after { z-index: 2; }
@media (max-width: 900px) { .hero-statue-box { top: 0; } }

.persons-title { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 4px; }

/* стрелки листания лент */
.strip-box { position: relative; }
.strip-arr { position: absolute; top: calc(50% - 30px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,29,36,.86); color: #f4ead6; border: 1px solid rgba(217,187,132,.55); box-shadow: 0 6px 18px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2; }
.strip-arr svg { width: 20px; height: 20px; }
.strip-arr.l { left: -14px; } .strip-arr.r { right: -14px; }
.strip-box.can-l .strip-arr.l, .strip-box.can-r .strip-arr.r { opacity: 1; pointer-events: auto; }
.strip-arr:hover { transform: scale(1.08); background: #9a783f; }
.strip--free + .strip-arr, .strip-box:has(.strip--free) .strip-arr { top: 117px; }
@media (max-width: 600px) { .strip-arr { width: 38px; height: 38px; } .strip-arr.l { left: 2px; } .strip-arr.r { right: 2px; } .strip-box:has(.strip--free) .strip-arr { top: 90px; } }

/* История судебной системы в лицах */
.fc-decs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.fc-decs button { padding: 9px 16px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; display: inline-flex; gap: 8px; align-items: baseline; transition: background .2s, color .2s, border-color .2s; }
.fc-decs button small { font-size: .72rem; color: var(--muted); }
.fc-decs button[aria-selected="true"] { background: #0f1d24; color: #f4ead6; border-color: #0f1d24; }
.fc-decs button[aria-selected="true"] small { color: #d9bb84; }
.fc-strip .fc-ph { height: 280px; width: auto; max-width: 80vw; }
.fc-strip .fc-ph img { height: 100%; width: 100%; object-fit: contain; max-width: none; }
.fc-strip .fc-ph img:not([src]) { visibility: hidden; }
.fc-strip figcaption { max-width: 340px; }
@media (max-width: 600px) { .fc-strip .fc-ph { height: 220px; } }
.fc-strip figcaption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
#lbCap { white-space: pre-line; max-height: 30vh; overflow: auto; }
@media (max-width: 600px) { .fc-decs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .fc-decs button { flex: none; } }
/* блок с Фемидой не выходит за контентную зону на широких экранах */
@media (min-width: 901px) {
  .hero-pic { right: calc((100% - min(var(--maxw), 100% - 2 * var(--gut))) / 2); width: calc(min(var(--maxw), 100% - 2 * var(--gut)) * .5); }
}
/* Фемида на мобильном: крупнее, ниже, ноги мягко растворяются */
@media (max-width: 900px) {
  .hero-pic { height: 460px; }
  .hero-statue-box { top: 3%; bottom: 0; left: -6%; right: -6%; -webkit-mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,.6) 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,.6) 84%, transparent 100%); }
  .hero-statue-box .hero-statue { height: 100%; left: 50%; }
}
@media (max-width: 420px) { .hero-pic { height: 420px; } }
/* плеер на телефоне: заголовок сверху, кнопки одной строкой во всю ширину */
@media (max-width: 620px) {
  .player { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px; width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); box-sizing: border-box; }
  .player .ttl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player .ctl { justify-content: space-between; gap: 2px; min-width: 0; flex-wrap: nowrap; }
  .player .icon-btn { width: 36px; height: 36px; flex: none; }
  .player .skip { width: 30px; }
  .player .pl-act { height: 34px; padding: 0 7px; flex: none; }
  .player .pl-act + .pl-act { margin-left: 2px; }
  .player select { min-height: 32px; padding: 0 2px; flex: none; }
  .player .transcript { max-height: 32vh; font-size: .9rem; overflow-wrap: anywhere; }
  .player.min .pl-mini { max-width: calc(100vw - 24px); }
}
/* пока раздел не отрисован, подвал не показываем (не было «двойной шапки» при первой загрузке) */
#main:empty { min-height: 100vh; }
#main:empty ~ .site-footer { visibility: hidden; }
@media (max-width: 480px) {
  .era-nav { gap: 8px; }
  .era-nav .btn { padding-inline: 12px; font-size: .8rem; min-width: 0; white-space: normal; text-align: left; line-height: 1.25; }
  .era-nav .status { flex: none; }
}

/* список судов – карточками в несколько колонок под картой */
.map-layout, #courtCard { scroll-margin-top: 110px; }
.court-list.court-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; border-top: 0; max-height: none; overflow: visible; }
.court-grid button { border: 1px solid var(--line); padding: 14px 16px; align-content: start; background: transparent; transition: border-color .2s, background .2s; }
.court-grid button:hover { border-color: var(--gold); }
.court-grid button[aria-pressed="true"] { padding-left: 16px; background: var(--surface); border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 620px) { .court-list.court-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .court-grid button { padding: 11px 12px; } .court-grid b { font-size: .9rem; line-height: 1.3; } .court-grid small { font-size: .7rem; } }

/* председатели: блоки сведений (служба, этапы карьеры) */
.ch-sec { display: grid; gap: 12px; }
.ch-sec-t { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; letter-spacing: -.015em; }
.ch-sec ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ch-sec li { position: relative; padding-left: 20px; color: var(--muted); line-height: 1.85; }
.ch-sec li::before { content: ''; position: absolute; left: 0; top: .78em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.ch-sec li b { color: var(--ink); font-weight: 600; }

/* «След в истории правосудия»: фото и документы к биографиям */
.person-hd { display: flex; align-items: center; gap: 16px; }
.person-ph { flex: none; width: 84px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--line); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.person-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.person-ph:hover img { transform: scale(1.05); }
.person-docs { display: grid; gap: 8px; margin-top: 4px; }
.pd-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pd-strip button { padding: 0; aspect-ratio: 3 / 4; border: 1px solid var(--line); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.pd-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pd-strip button:hover { border-color: var(--gold); }
.pd-strip button:hover img { transform: scale(1.05); }
@media (min-width: 1100px) { .people.people-3:has(> .person:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* медиатека: фотографии проекта под афишей */
.pr-media { display: grid; gap: 8px; align-self: start; }
.pr-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pr-thumbs button { padding: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--soft); }
.pr-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pr-thumbs button:hover { border-color: var(--gold); }
.pr-thumbs button:hover img { transform: scale(1.05); }

/* листание изображений в просмотрщике: кнопки ← → */
.loupe-nav { position: absolute; top: 50%; z-index: 6; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,27,35,.78); color: #f3ead8; border: 1px solid rgba(217,187,132,.45); cursor: pointer; transition: background .2s, border-color .2s; }
.loupe-nav:hover, .loupe-nav:focus-visible { background: rgba(13,27,35,.95); border-color: var(--gold); }
.loupe-nav .icon { width: 20px; height: 20px; }
.loupe-nav.prev { left: 14px; } .loupe-nav.next { right: 14px; }
.loupe-tools ~ .loupe-nav.prev { left: 70px; }
@media (max-width: 620px) { .loupe-nav { width: 40px; height: 40px; } .loupe-tools ~ .loupe-nav.prev { left: 58px; } }

/* «Смоленский вектор» — оформленная панель направлений на странице председателя */
.ch-panel { position: relative; margin: 8px 0; padding: clamp(26px, 4vw, 44px) clamp(18px, 3.4vw, 40px); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); outline: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); outline-offset: 6px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--gold) 9%, var(--surface)) 0%, var(--surface) 60%); border-radius: 4px; }
.chp-c { position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); pointer-events: none; }
.chp-c.tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; } .chp-c.tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.chp-c.bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; } .chp-c.br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.chp-head { display: grid; justify-items: center; text-align: center; gap: 8px; margin-bottom: clamp(20px, 3vw, 30px); }
.chp-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink, var(--gold)); }
.chp-t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; }
.chp-rule { display: flex; align-items: center; gap: 10px; width: min(220px, 60%); }
.chp-rule::before, .chp-rule::after { content: ''; flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.chp-rule i { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.chp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: chp; }
.chp-card { counter-increment: chp; position: relative; display: grid; gap: 14px; align-content: start; padding: 20px 20px 22px; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 3px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.chp-card::after { content: counter(chp, decimal-leading-zero); position: absolute; top: 12px; right: 16px; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold); opacity: .28; }
.chp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); border-top-color: var(--gold); }
.chp-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold-ink, var(--gold)); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.chp-ico .icon { width: 22px; height: 22px; }
.chp-card b { display: block; padding-right: 40px; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
.chp-card span:not(.chp-ico) { display: block; color: var(--muted); line-height: 1.75; }
@media (max-width: 520px) { .chp-grid { grid-template-columns: 1fr; } .chp-card { padding: 18px 16px 20px; } }
@media (prefers-reduced-motion: reduce) { .chp-card, .chp-card:hover { transition: none; transform: none; } }
html.a11y-contrast .ch-panel { background: var(--surface); outline-color: var(--line); }
/* панель на всю ширину контентной зоны: 4 блока в ряд */
.ch-panel-wrap { margin-top: clamp(40px, 6vw, 72px); margin-bottom: clamp(24px, 4vw, 48px); }
.ch-panel-wrap .chp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ch-panel-wrap .chp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ch-panel-wrap .chp-grid { grid-template-columns: 1fr; } }
/* панель на всю ширину контентной зоны, после биографии; продолжение колонки текста ниже */
.person-page:has(+ .ch-panel-wrap) { padding-bottom: 0; }
.ch-panel-wrap { margin-top: clamp(36px, 5vw, 60px); margin-bottom: clamp(36px, 5vw, 56px); }
.ch-cont { padding-top: 0; }
@media (max-width: 900px) { .ch-cont-pad { display: none; } }
/* подписи в списках карьеры – обычным начертанием, как основной текст */
.ch-sec li b { font-weight: 400; }

.footer-contact { margin-top: 12px; }
.footer-contact a { color: var(--gold); white-space: nowrap; }
.footer-contact a:hover { text-decoration: underline; }
.reading-grid .copy p.about-mail { margin-top: -6px; font-size: 1.05rem; }
.reading-grid .copy p.about-mail a { color: var(--gold); }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { position: relative; padding-left: 20px; line-height: 1.9; color: var(--muted); margin-bottom: 8px; }
.about-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
