/* Шрифты лежат в проекте (assets/fonts, лицензия SIL OFL): сайт выглядит одинаково и без интернета */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/literata-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================================
   Цифровая красная книга России — стили демо-версии
   Дизайн-система: «современный полевой определитель и музейная этикетка».
   Размеры в rem: версия для слабовидящих масштабирует весь интерфейс.
   ========================================================================= */

/* ---------- 1. Токены ---------- */
:root {
  --bg: #F6F7F4;            /* Берёста */
  --surface: #FBFCFA;       /* карточки, этикетки */
  --surface-2: #E2E8E1;     /* Лишайник */
  --surface-3: #EEF2EA;     /* светлый мох */
  --surface-4: #F0F3EF;     /* наведение на строку */
  --field: #fff;
  --text: #1B2A24;          /* Хвоя */
  --text-2: #3D4B44;
  --text-3: #5C6862;
  --muted: #76817B;         /* Камень */
  --muted-2: #8B9792;
  --line: #D4DAD5;
  --line-2: #C5CCC7;
  --line-3: #B4BDB8;
  --line-4: #9DAAA2;
  --accent: #8E1B1F;        /* Переплёт */
  --accent-hover: #76161A;
  --accent-press: #5E1114;
  --accent-deep: #6E1417;
  --accent-soft: rgba(142, 27, 31, .15);
  --accent-disabled: #C7A3A4;
  --accent-fg: #fff;
  --moss: #4E6A2D;          /* Мох */
  --moss-hover: #3F5824;
  --moss-line: #CBD6C2;
  --moss-light: #E4EEDA;
  --moss-text: #2F4219;
  --water: #D3E2E8;         /* Вода */
  --water-line: #B9CDD5;
  --error: #C62828;
  --ok: #A9C98A;
  --dark: #1B2A24;
  --dark-fg: #F6F7F4;
  --footer-bg: #1B2A24;
  --footer-text: #DCE3DE;
  --footer-muted: #B9C3BD;
  --footer-line: #3C4B44;
  --footer-small: #8E9A93;
  --cat0: #3A3A3A; --cat1: #C62828; --cat2: #D8741C; --cat3: #BF9A1E; --cat4: #8B9792; --cat5: #3E8A5C;
  --shadow-pop: 0 18px 48px rgba(27, 42, 36, .22), 0 2px 6px rgba(27, 42, 36, .08);
  --shadow-toast: 0 12px 32px rgba(27, 42, 36, .25);
  --shadow-seg: 0 1px 2px rgba(27, 42, 36, .12);
  --r-photo: 4px; --r-card: 8px; --r-btn: 10px; --r-pop: 16px;
  --serif: Literata, Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 75rem;
  --gutter: 1rem;
  --hdr-h: 4rem;
  --tile: 2.5rem; --tile-gap: .25rem;
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; --tile: 2.125rem; --tile-gap: .1875rem; } }
@media (min-width: 1024px) { :root { --tile: 2.75rem; --tile-gap: .25rem; } }

/* ---------- 2. Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5rem;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
.i { width: 1.125rem; height: 1.125rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--s { width: 1rem; height: 1rem; }
.i--l { width: 1.5rem; height: 1.5rem; }
.i--xl { width: 2rem; height: 2rem; }
.i--xxl { width: 4rem; height: 4rem; stroke-width: 1.25; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 200; padding: .75rem 1rem; background: var(--dark); color: var(--dark-fg); border-radius: var(--r-btn); }
.skip:focus { top: .5rem; color: var(--dark-fg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

/* ---------- 3. Раскладка ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; padding-bottom: 1rem; }
.section { margin-top: 4rem; }
.section--l { margin-top: 5rem; }
@media (min-width: 1024px) { .section { margin-top: 6rem; } .section--l { margin-top: 7rem; } }
.g12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) {
  .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
  .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
  .o6 { grid-column: 6 / span 7; } .o7 { grid-column: 7 / span 6; } .o8 { grid-column: 8 / span 5; } .o9 { grid-column: 9 / span 4; }
}
.stack { display: flex; flex-direction: column; }
.gap-4 { gap: .25rem; } .gap-8 { gap: .5rem; } .gap-12 { gap: .75rem; } .gap-16 { gap: 1rem; } .gap-20 { gap: 1.25rem; } .gap-24 { gap: 1.5rem; } .gap-32 { gap: 2rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.cards-2, .cards-3, .cards-4 { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

/* ---------- 4. Типографика ---------- */
.h1 { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 2.375rem; letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 1.625rem; line-height: 2rem; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.75rem; }
.h4 { font-family: var(--serif); font-weight: 500; font-size: 1.1875rem; line-height: 1.5rem; }
@media (min-width: 768px) {
  .h1 { font-size: 2.75rem; line-height: 3.25rem; }
  .h2 { font-size: 2rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .h1 { font-size: 3.5rem; line-height: 4rem; }
  .h2 { font-size: 2.25rem; line-height: 2.75rem; }
  .h3 { font-size: 1.625rem; line-height: 2.125rem; }
}
.serif { font-family: var(--serif); }
.latin { font-family: var(--serif); font-style: italic; color: var(--text-3); }
.latin .auth { font-style: normal; }
.lead { font-family: var(--serif); font-size: 1.125rem; line-height: 1.875rem; text-wrap: pretty; max-width: 66ch; }
.lead--xl { font-size: 1.375rem; line-height: 2rem; }
@media (min-width: 1024px) { .lead--xl { font-size: 1.625rem; line-height: 2.375rem; } }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.25rem; }
.xsmall { font-size: .8125rem; line-height: 1.125rem; }
.tiny { font-size: .75rem; line-height: 1rem; }
.pretty { text-wrap: pretty; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 1rem; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.eyebrow { font-size: .875rem; color: var(--muted); }
.caption { font-size: .8125rem; line-height: 1.125rem; color: var(--muted); }
.caption a { color: inherit; }

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: var(--r-btn); border: 0;
  font-size: .9375rem; font-weight: 500; line-height: 1.25rem; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-fg); transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn:active { background: var(--accent-press); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--accent-disabled); cursor: not-allowed; }
.btn--lg { min-height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn--xl { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--sec { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--sec:hover { background: var(--text); color: var(--bg); }
.btn--sec:active { background: var(--surface-2); color: var(--text); }
.btn--sec[disabled] { background: transparent; color: var(--line-4); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--moss { background: var(--moss); color: #fff; }
.btn--moss:hover { background: var(--moss-hover); color: #fff; }
.btn--dark { background: var(--dark); color: var(--dark-fg); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--text { background: none; color: var(--text); padding: 0 .25rem; min-height: 2.75rem; text-decoration: underline; font-weight: 400; }
.btn--text:hover { background: none; color: var(--accent); }
.btn--sm { min-height: 2.25rem; padding: 0 .875rem; font-size: .875rem; }
.btn.is-loading { opacity: .8; pointer-events: none; }
.btn-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0;
  border-radius: var(--r-btn); background: transparent; color: var(--text);
}
.btn-icon:hover { background: var(--surface-2); }
.btn-icon--round { border-radius: 50%; background: rgba(251, 252, 250, .92); }
.btn-icon--round:hover { background: #fff; }
.link-more { display: inline-flex; align-items: center; gap: .375rem; color: var(--text); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.link-more:hover { color: var(--accent); }
.link-more .i { width: 1rem; height: 1rem; }

/* ---------- 6. Поля форм ---------- */
.field { display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; color: var(--text-2); }
.field__label { color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0 .875rem; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  background: var(--field); color: var(--text); font-size: 1rem;
}
.textarea { padding: .75rem .875rem; min-height: 6rem; resize: vertical; line-height: 1.5rem; }
.select { padding-right: 2.25rem; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.125rem) 50%, calc(100% - .8125rem) 50%; background-size: .3125rem .3125rem; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--text); outline-offset: 2px; border-color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border: 1.5px solid var(--error); }
.field__err { color: var(--error); font-size: .8125rem; }
.field__hint { color: var(--text-3); font-size: .8125rem; }
.input[disabled] { background: #EEF1EE; border-color: var(--line); color: var(--muted-2); }
.check { display: flex; align-items: center; gap: .625rem; min-height: 2.25rem; font-size: .875rem; cursor: pointer; color: var(--text); }
.check input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check.field { flex-direction: row; align-items: flex-start; color: var(--text); }
.check.field input { margin-top: .1875rem; }
.check.is-error { color: var(--error); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 7. Чипы, переключатели, метки ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.chip {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: 0 .75rem;
  border-radius: 1.125rem; border: 1px solid var(--line-2); background: transparent; font-size: .8125rem; color: var(--text); line-height: 1rem;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--dark); border-color: var(--dark); color: var(--dark-fg); }
.chip--cat { padding-left: .375rem; }
.chip--cat[aria-pressed="true"] { background: var(--field); color: var(--text); border-color: var(--text); }
.chip .n { color: var(--muted); font-size: .75rem; }
.chip[disabled] { opacity: .45; cursor: default; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--r-btn); }
.seg button { min-height: 2.25rem; padding: 0 .75rem; border: 0; border-radius: 8px; background: transparent; font-size: .875rem; color: var(--text); white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--field); font-weight: 600; box-shadow: var(--shadow-seg); }
.tag { display: inline-flex; align-items: center; padding: .1875rem .625rem; border-radius: 6px; border: 1px solid var(--line-4); color: var(--text-2); font-size: .8125rem; line-height: 1.125rem; white-space: nowrap; }
.tag--full { border-color: var(--accent); color: var(--accent); }
.demo-pill { display: inline-flex; align-items: center; padding: .125rem .5rem; border-radius: 6px; background: var(--dark); color: var(--dark-fg); font-size: .75rem; line-height: 1.125rem; white-space: nowrap; text-decoration: none; }
a.demo-pill:hover { color: #fff; background: #000; }
.status-btn { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .625rem; border: 1px dashed var(--line-4); border-radius: 6px; background: var(--field); font-size: .8125rem; color: var(--text); cursor: help; }

/* Бейдж категории: всегда цифра + цвет + текст */
.cat { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; line-height: 1.125rem; font-weight: 500; color: var(--text); }
.cat__n {
  width: 1.375rem; height: 1.375rem; border-radius: 4px; display: inline-grid; place-items: center; flex-shrink: 0;
  font-weight: 600; font-size: .8125rem; line-height: 1; background: var(--c, var(--cat3)); color: var(--cf, var(--text));
}
.cat--s { font-size: .75rem; gap: .375rem; font-weight: 400; }
.cat--s .cat__n { width: 1.25rem; height: 1.25rem; font-size: .75rem; }
.cat--m { font-size: .875rem; }
.cat--m .cat__n { width: 1.5rem; height: 1.5rem; }
.cat--l { font-size: 1rem; line-height: 1.375rem; gap: .75rem; }
.cat--l .cat__n { width: 2.25rem; height: 2.25rem; border-radius: 6px; font-size: 1.25rem; }
.cat--xl .cat__n { width: 3.5rem; height: 3.5rem; border-radius: 6px; font-size: 2rem; }
.cat__n--none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); }
.cat__n--round { border-radius: 50%; }
.c0 { --c: var(--cat0); --cf: #fff; } .c1 { --c: var(--cat1); --cf: #fff; } .c2 { --c: var(--cat2); --cf: #1B2A24; }
.c3 { --c: var(--cat3); --cf: #1B2A24; } .c4 { --c: var(--cat4); --cf: #1B2A24; } .c5 { --c: var(--cat5); --cf: #fff; }

/* ---------- 8. Фото ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-photo); isolation: isolate; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
.ph__fb { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; color: var(--muted); font-size: .875rem; text-align: center; }
.ph__fb .i { width: 3.5rem; height: 3.5rem; stroke-width: 1.25; opacity: .8; }
.ph--empty .ph__fb, .ph--fail .ph__fb { display: flex; }
.ph--fail img { display: none; }
.ph__alt { display: none; }
.ph--card { border-radius: var(--r-card); }
.gal__thumbs .ph__fb span, .sp-row .ph__fb span, .confuse__item .ph__fb span { display: none; }
.gal__thumbs .ph__fb .i, .sp-row .ph__fb .i { width: 1.75rem; height: 1.75rem; }
.ph--round { border-radius: 50%; }
.ph--round .ph__fb .i { width: 1.75rem; height: 1.75rem; }
.fig { display: flex; flex-direction: column; gap: .375rem; }
.over-credit { position: absolute; left: .5rem; bottom: .5rem; z-index: 2; max-width: calc(100% - 1rem); padding: .125rem .5rem; border-radius: 4px; background: rgba(15, 22, 19, .62); }
.over-credit .credit, .over-credit .credit a { color: #fff; }
.campaign .fig { height: 100%; }
.campaign .fig .ph { height: 100%; min-height: 15rem; }
@media (max-width: 559px) { .hdr .btn-a11y { display: none; } }
.credit { font-size: .75rem; line-height: 1rem; color: var(--muted-2); }
.credit a { color: inherit; }
.credit a:hover { color: var(--text); }
.avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; font-size: .9375rem; }
.avatar--l { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; }

/* ---------- 9. Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr__in { position: relative; height: var(--hdr-h); display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo__book { position: relative; width: 26px; height: 34px; background: var(--accent); border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 0 var(--accent-deep); flex-shrink: 0; }
.logo__book::after { content: ''; position: absolute; left: 8px; top: 9px; width: 10px; height: 16px; border: 1.5px solid #D9A9AA; border-radius: 0 100% 0 100%; transform: rotate(12deg); }
.logo__t { font-family: var(--serif); font-weight: 600; font-size: .875rem; line-height: 1rem; width: 8.75rem; }
@media (min-width: 768px) { .logo__t { font-size: .9375rem; line-height: 1.0625rem; width: 9.5rem; } }
.nav { display: none; gap: .25rem; font-size: .9375rem; }
.nav a { padding: .5rem .75rem; border-radius: var(--r-btn); white-space: nowrap; text-decoration: none; color: var(--text); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.hdr__sp { flex: 1; }
.hdr__search { display: none; flex: 0 1 12.5rem; min-width: 9rem; }
.btn-a11y { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); color: var(--text); font-size: .875rem; white-space: nowrap; }
.btn-a11y[aria-pressed="true"] { background: var(--dark); color: var(--dark-fg); border-color: var(--dark); }
.btn-a11y__t { display: none; }
.burger { display: inline-grid; }
@media (min-width: 768px) { .hdr__search { display: block; } }
@media (min-width: 1100px) { .nav { display: flex; } .burger { display: none; } }
@media (min-width: 1248px) { .btn-a11y__t { display: inline; } .hdr__in { gap: 1.5rem; } }
.hdr__demo { position: absolute; right: var(--gutter); top: calc(100% + .5rem); z-index: 1; }
@media (max-width: 767px) { .hdr__demo { position: static; } .hdr__in { gap: .5rem; } }
/* Мобильное меню */
.mnav { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: 1rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.mnav__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mnav__links a { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.1875rem; }
.mnav__links a[aria-current="page"] { color: var(--accent); }
body.menu-open { overflow: hidden; }
/* Панель версии для слабовидящих */
.a11y-bar { background: var(--surface); border-bottom: 2px solid var(--text); }
.a11y-bar__in { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
.a11y-grp { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.a11y-grp__t { font-weight: 600; font-size: .9375rem; }
.a11y-opt { min-height: 2.75rem; min-width: 2.75rem; padding: 0 .75rem; border: 2px solid var(--text); border-radius: var(--r-btn); background: var(--field); color: var(--text); font-weight: 600; }
.a11y-opt[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.a11y-opt--bw { background: #fff !important; color: #000 !important; border-color: #000 !important; }
.a11y-opt--wb { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.a11y-opt--blue { background: #9DD1FF !important; color: #063462 !important; border-color: #063462 !important; }
.a11y-opt--bw[aria-pressed="true"], .a11y-opt--wb[aria-pressed="true"], .a11y-opt--blue[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 10. Подвал ---------- */
.ftr { background: var(--footer-bg); color: var(--footer-text); font-size: .875rem; line-height: 1.25rem; margin-top: 6rem; }
.ftr__in { padding-top: 3.5rem; padding-bottom: 2.5rem; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .ftr__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ftr__in { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; } .ftr__about { grid-column: span 4; } .ftr__col { grid-column: span 2; } .ftr__col--first { grid-column: 5 / span 2; } }
.ftr .logo { color: var(--dark-fg); }
.ftr .logo__t { width: auto; font-size: 1rem; }
.ftr__about p { color: var(--footer-muted); max-width: 28.75rem; text-wrap: pretty; margin-top: 1rem; }
.ftr__h { color: var(--dark-fg); font-weight: 500; margin-bottom: .75rem; }
.ftr__col { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.ftr a, .ftr .ftr__link { color: var(--footer-muted); text-decoration: none; background: none; border: 0; padding: 0; font-size: .875rem; text-align: left; }
.ftr a:hover, .ftr .ftr__link:hover { color: #fff; }
.ftr__soc { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 100%; }
.ftr__soc button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--footer-line); border-radius: var(--r-btn); display: grid; place-items: center; background: none; color: var(--footer-text); }
.ftr__soc button:hover { border-color: var(--footer-muted); }
.ftr__bottom { grid-column: 1 / -1; border-top: 1px solid var(--footer-line); padding-top: 1.25rem; color: var(--footer-small); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- 11. Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs a { color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- 12. Поиск ---------- */
.search { position: relative; }
.search__box { display: flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); }
.search__box:focus-within { border-color: var(--text); outline: 2px solid var(--text); outline-offset: 1px; }
.search__box .i { color: var(--muted); }
.search__in { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: .9375rem; color: var(--text); }
.search__in::placeholder { color: var(--muted-2); }
.search__in::-webkit-search-cancel-button { display: none; }
.search--big .search__box { height: 3.5rem; padding: 0 1.25rem; gap: .75rem; }
.search--big .search__box .i { width: 1.375rem; height: 1.375rem; }
.search--big .search__in { font-size: 1.0625rem; }
@media (min-width: 768px) { .search--big .search__in { font-size: 1.125rem; } }
.search__pop { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 60; background: var(--field); border-radius: var(--r-btn); box-shadow: var(--shadow-pop); padding: .5rem; display: flex; flex-direction: column; max-height: 70vh; overflow-y: auto; min-width: 18rem; }
.hdr__search .search__pop { left: auto; width: 22rem; }
.search__grp { padding: .5rem .75rem .25rem; font-size: .8125rem; color: var(--muted); }
.search__opt { display: flex; align-items: baseline; gap: .625rem; padding: .625rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.search__opt:hover, .search__opt[aria-selected="true"] { background: var(--surface-4); color: var(--text); }
.search__opt .serif { font-size: 1.0625rem; }
.search__opt .latin { font-size: .9375rem; }
.search__opt .fd { color: var(--muted); font-size: .875rem; }
.search__empty { padding: .75rem; font-size: .9375rem; color: var(--text-2); }
.search__all { margin-top: .25rem; border-top: 1px solid var(--line); padding: .75rem; font-size: .875rem; color: var(--text); text-decoration: underline; }

/* ---------- 13. Плиточная карта ---------- */
.map { position: relative; background: var(--water); border-radius: var(--r-pop); }
.map__scroll { overflow-x: auto; overflow-y: hidden; padding: 1rem; scrollbar-width: thin; }
@media (min-width: 1024px) { .map__scroll { padding: 1.5rem; overflow: visible; } }
.map__deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map__deco ellipse { fill: none; stroke: var(--water-line); }
.tiles {
  position: relative; display: grid; list-style: none; margin: 0; padding: 0; width: max-content;
  grid-template-columns: repeat(18, var(--tile)); grid-template-rows: repeat(11, var(--tile)); gap: var(--tile-gap);
}
.tiles li { display: block; }
.tile {
  position: relative; display: grid; place-items: center; width: var(--tile); height: var(--tile); padding: 0;
  border-radius: 4px; border: 1px solid rgba(118, 129, 123, .45); background: var(--surface-2); color: var(--text-2);
  font-size: .6875rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; line-height: 1;
  transition: background-color 120ms, opacity 120ms, border-color 120ms;
}
@media (min-width: 768px) and (max-width: 1023px) { .tile { font-size: .625rem; } }
.tile:hover { color: var(--text-2); border-color: var(--text); }
.tile.is-on { background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); }
.tiles.has-hover .tile:not(.is-on) { opacity: .55; }
.tile__dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--bg); }
.tile[data-l="1"] { background: #C3D0C4; } .tile[data-l="2"] { background: #9DB3A2; }
.tile[data-l="3"] { background: #6F8C7A; color: #fff; } .tile[data-l="4"] { background: #3F5A4B; color: #fff; }
.tile[data-o="1"] { box-shadow: inset 0 0 0 1px var(--moss); } .tile[data-o="2"] { box-shadow: inset 0 0 0 2px var(--moss); } .tile[data-o="3"] { box-shadow: inset 0 0 0 3px var(--moss); }
.tile--mini { font-size: .625rem; font-weight: 600; color: #fff; cursor: default; border: 1px solid rgba(118, 129, 123, .35); }
.tile--mini.c-none { background: var(--surface-2); color: transparent; }
a.tile--mini { cursor: pointer; }
.tile--mini.c0, .tile--mini.c1, .tile--mini.c2, .tile--mini.c3, .tile--mini.c4, .tile--mini.c5 { background: var(--c); color: var(--cf); border-color: transparent; }
.tile--here { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.tiles--mini { --tile: 1.75rem; --tile-gap: 3px; }
@media (min-width: 1024px) { .tiles--mini { --tile: 1.875rem; } }
.tiles--micro { --tile: .875rem; --tile-gap: 2px; }
.tiles--micro .tile { font-size: 0; border-radius: 2px; border-width: 0; }

/* Всплывающая карточка региона */
.pop {
  position: absolute; z-index: 30; width: 22.5rem; max-width: calc(100vw - 2rem); background: var(--surface);
  border-radius: var(--r-pop); box-shadow: var(--shadow-pop); animation: popIn 160ms ease-out;
}
@keyframes popIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop__arrow { position: absolute; width: 16px; height: 16px; background: var(--surface); transform: rotate(45deg); border-radius: 2px; }
.pop__head { position: relative; border-top: 3px solid var(--accent); border-radius: var(--r-pop) var(--r-pop) 0 0; padding: 1rem 1.25rem .875rem; display: flex; flex-direction: column; gap: .25rem; }
.pop__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; }
.pop__slides { position: relative; height: 13.75rem; background: var(--surface-2); overflow: hidden; }
.pop__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.pop__slide.is-on { opacity: 1; }
.pop__slide .ph { position: absolute; inset: 0; border-radius: 0; }
.pop__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.pop__nav--prev { left: .5rem; } .pop__nav--next { right: .5rem; }
.pop__credit { padding: .375rem 1.25rem 0; }
.pop__body { padding: .625rem 1.25rem 0; display: flex; flex-direction: column; gap: .375rem; min-height: 7.375rem; }
.pop__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem; text-align: center; color: var(--text-3); font-size: .875rem; }
.pop__empty .i { width: 3rem; height: 3rem; stroke-width: 1.25; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: .375rem; padding: .75rem 0 .25rem; }
.dots button { width: 1.5rem; height: 1.5rem; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.dots span { display: block; height: 6px; width: 6px; border-radius: 3px; background: var(--line-3); transition: all 200ms; }
.dots .is-on span { width: 18px; background: var(--accent); }
.pop__foot { padding: .5rem 1.25rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pop__foot a:not(.btn) { font-size: .875rem; color: var(--text); text-align: right; }
@media (min-width: 380px) { .pop__foot { flex-wrap: nowrap; } }
.pop .tag { font-size: .75rem; line-height: 1.125rem; padding: .125rem .5rem; }
/* Нижняя панель (телефоны и планшеты) */
.sheet-bg { position: fixed; inset: 0; z-index: 92; background: rgba(27, 42, 36, .32); animation: fadeIn 160ms; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 93; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-pop) var(--r-pop) 0 0; box-shadow: 0 -12px 32px rgba(27, 42, 36, .2); padding: .5rem 0 1.75rem; animation: sheetUp 240ms ease-out; }
.sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto .75rem; }
.sheet .pop__head { border-top: 0; padding-top: .25rem; }
.sheet__close { position: absolute; right: .5rem; top: .5rem; }
@media (min-width: 640px) { .sheet { left: 50%; transform: translateX(-50%); width: 30rem; } @keyframes sheetUp { from { transform: translate(-50%, 40px); opacity: .4; } to { transform: translate(-50%, 0); opacity: 1; } } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Легенда и панель управления картой */
.legend { display: flex; flex-direction: column; gap: .625rem; }
.legend__row { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; line-height: 1.125rem; }
.legend__sw { width: 1.375rem; height: 1.375rem; border-radius: 4px; flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: .75rem; position: relative; }
.radio-list { display: flex; flex-direction: column; gap: 2px; }
.radio-list button { display: flex; align-items: center; gap: .625rem; min-height: 2.5rem; padding: 0 .625rem; border: 0; border-radius: 8px; background: transparent; font-size: .875rem; color: var(--text); text-align: left; }
.radio-list button:hover { background: var(--surface-2); }
.radio-list button[aria-checked="true"] { background: var(--surface-2); }
.radio-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--line-4); display: grid; place-items: center; flex-shrink: 0; }
.radio-dot::after { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: transparent; }
[aria-checked="true"] > .radio-dot, [aria-pressed="true"] > .radio-dot { border-color: var(--text); }
[aria-checked="true"] > .radio-dot::after, [aria-pressed="true"] > .radio-dot::after { background: var(--text); }

/* ---------- 13б. Настоящая карта России (SVG) ---------- */
.rmap { position: relative; border-radius: var(--r-pop); overflow: hidden; background: #C9DCE4; isolation: isolate; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1px rgba(27, 42, 36, .06); }
.rmap__svg { display: block; width: 100%; height: auto; cursor: grab; overflow: hidden; }
.rmap.is-drag .rmap__svg { cursor: grabbing; }
.rmap--compact { border-radius: var(--r-card); }
.rmap--compact .rmap__svg { cursor: default; }
.rm-grat { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: .6; vector-effect: non-scaling-stroke; pointer-events: none; }
.rm-land { fill: #F2F3EF; stroke: #D9DED9; stroke-width: .5; vector-effect: non-scaling-stroke; pointer-events: none; }
.rm-shadow { fill: #1B2A24; opacity: .2; pointer-events: none; }
.rm-coast { fill: none; stroke: #7F9B8B; stroke-width: .9; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.rmap--compact .rm-coast { stroke-width: .7; }
.rg { cursor: pointer; outline: none; }
.rg path { fill: var(--land); stroke: #FBFCFA; stroke-width: .75; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .5s ease, opacity .35s ease; }
.rg.is-pilot path { fill: #EAD3CC; }
.rg.is-here path { fill: var(--accent) !important; }
.rg:focus-visible path { stroke: var(--text); stroke-width: 2.5; }
.rmap.has-sel .rg:not(.is-sel) path { opacity: .55; }
.rm-hl path { pointer-events: none; vector-effect: non-scaling-stroke; }
.rm-hov { fill: rgba(142, 27, 31, .12); stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 3px 7px rgba(27, 42, 36, .32)); }
.rm-sel { fill: rgba(142, 27, 31, .18); stroke: var(--accent); stroke-width: 2.2; filter: drop-shadow(0 4px 14px rgba(142, 27, 31, .35)); }
.rm-river { fill: none; stroke: #8DB8C9; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.rm-river--minor { stroke-width: .55; opacity: .75; }
.rm-lbl { font-family: var(--serif); font-style: italic; font-size: calc(8.5px / var(--k, 1)); fill: #6A91A3; text-anchor: middle; pointer-events: none; letter-spacing: .02em; }
.rm-lbl--land { font-family: var(--sans); font-style: normal; font-size: calc(7px / var(--k, 1)); fill: #A2ACA6; text-transform: uppercase; letter-spacing: .14em; }
.rm-rl { font-family: var(--sans); font-size: calc(7.5px / var(--k, 1)); font-weight: 500; fill: #3D4B44; text-anchor: middle; pointer-events: none; opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: rgba(246, 247, 244, .85); stroke-width: calc(2.4px / var(--k, 1)); stroke-linejoin: round; }
.rm-rl.is-on { opacity: 1; }
.rm-city { cursor: pointer; }
.rm-city circle { fill: #fff; stroke: var(--text); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.rm-city text { font-family: var(--sans); font-size: 8px; font-weight: 600; fill: var(--text); opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 2.6px; stroke-linejoin: round; }
.rm-city.is-lbl text, .rm-city:hover text { opacity: 1; }
.rm-pulse { pointer-events: none; }
.rm-pulse circle { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: rmPulse 2.6s ease-out infinite; }
.rm-pulse circle:nth-child(2) { animation-delay: 1.3s; }
@keyframes rmPulse { from { transform: scale(.35); opacity: .95; } to { transform: scale(2.8); opacity: 0; } }
.rm-mk { cursor: pointer; outline: none; }
.rm-mk__in { transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 3px 6px rgba(27, 42, 36, .38)); }
.rm-mk:hover .rm-mk__in, .rm-mk:focus-visible .rm-mk__in { transform: scale(1.3); }
.rm-mk__ring { fill: #fff; }
.rm-mk:focus-visible .rm-mk__ring { fill: var(--accent); }
.rm-mk__bg { fill: #E2E8E1; }
.rm-mk__ic { fill: none; stroke: #3D4B44; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rmap.is-intro .rg path { animation: rgIn .75s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d); }
@keyframes rgIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.rmap.is-intro .rm-grat, .rmap.is-intro .rm-land { animation: fadeIn 1.1s both; }
.rmap.is-intro .rm-shadow, .rmap.is-intro .rm-coast { animation: fadeIn .9s .7s both; }
.rmap.is-intro .rm-river, .rmap.is-intro .rm-labels, .rmap.is-intro .rm-cities { animation: fadeIn .9s 1.1s both; }
.rmap.is-intro .rm-mk__in { animation: mkIn .65s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(1.25s + var(--i) * .09s); }
.rmap.is-intro .rm-pulses { animation: fadeIn .6s 1.6s both; }
@keyframes mkIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rmap__ctrl { position: absolute; right: .75rem; top: .75rem; z-index: 3; display: flex; flex-direction: column; border-radius: var(--r-btn); overflow: hidden; box-shadow: 0 2px 10px rgba(27, 42, 36, .18); transition: right .3s, left .3s; }
.rmap__btn { width: 2.5rem; height: 2.5rem; border: 0; border-bottom: 1px solid var(--line); background: rgba(251, 252, 250, .96); color: var(--text); display: grid; place-items: center; padding: 0; }
.rmap__btn:last-child { border-bottom: 0; }
.rmap__btn:hover { background: #fff; }
.rmap.has-panel .rmap__ctrl { right: auto; left: .75rem; }
.rmap__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; padding: .75rem 1rem; border-radius: var(--r-btn); background: rgba(27, 42, 36, .84); color: #fff; font-size: .875rem; pointer-events: none; text-align: center; animation: fadeIn .2s; }
.rmap__tip { position: absolute; z-index: 5; max-width: 18rem; padding: .625rem .75rem; border-radius: var(--r-btn); background: rgba(251, 252, 250, .97); box-shadow: var(--shadow-pop); pointer-events: none; display: flex; flex-direction: column; gap: .1875rem; font-size: .8125rem; line-height: 1.125rem; color: var(--text-3); }
.rmap__tip b { font-family: var(--serif); font-size: 1rem; line-height: 1.375rem; color: var(--text); font-weight: 600; }
.rmap__thumbs { display: flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.rmap__th { width: 1.75rem; height: 1.75rem; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 2px #fff; }
.rmap__th img { width: 100%; height: 100%; object-fit: cover; }
.rmap__th .i { width: 1rem; height: 1rem; }
.rmap__thn { margin-left: .375rem; font-size: .75rem; line-height: 1rem; }
.rmap__more { color: var(--accent); font-weight: 500; margin-top: .25rem; }
.rmap__dot { display: inline-block; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--accent); margin-right: .375rem; vertical-align: middle; }
.rmap__panel { position: absolute; right: .75rem; top: .75rem; bottom: .75rem; z-index: 6; width: 22.5rem; max-width: calc(100% - 1.5rem); overflow-y: auto; border-radius: var(--r-pop); background: var(--surface); box-shadow: var(--shadow-pop); animation: panelIn .38s cubic-bezier(.2, .8, .2, 1); }
.rmap__panel .pop__head { padding-right: 3rem; }
.rmap__panel-x { position: absolute; right: .375rem; top: .5rem; z-index: 2; }
@keyframes panelIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
/* 3D-карта */
.rmap--3d { height: 38rem; background: radial-gradient(120% 95% at 50% 36%, #FBFCFA 0%, #EEF2EE 52%, #DFE7E3 100%); }
@media (max-width: 1023px) { .rmap--3d { height: 34rem; } }
@media (max-width: 767px) { .rmap--3d { height: 22rem; } }
.m3__stage { position: absolute; inset: 0; }
.m3__load { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .625rem; padding: .625rem 1rem; border-radius: 999px; background: rgba(251, 252, 250, .92); box-shadow: 0 4px 16px rgba(27, 42, 36, .14); font-size: .875rem; color: var(--text-2); transition: opacity .4s; }
.m3__spin { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(47, 93, 70, .25); border-top-color: var(--moss); animation: spin .8s linear infinite; }
.rmap--3d.is-ready .m3__load { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.m3__stage canvas { display: block; width: 100% !important; height: 100% !important; outline: none; }
.m3__ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.m3-mk { position: absolute; left: 0; top: 0; pointer-events: none; text-decoration: none; will-change: transform; transition: opacity .3s; }
.m3-mk::after { content: ""; position: absolute; left: -.5rem; top: -.1875rem; width: 1rem; height: .375rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 40, 34, .5), rgba(20, 40, 34, 0)); }
.m3-mk__pin { position: absolute; left: 0; bottom: 0; animation: mkBob 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
.m3-mk__pin::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: 1.125rem; border-radius: 1px; background: #fff; box-shadow: 0 0 2px rgba(20, 40, 34, .35); }
.m3-mk__in { position: absolute; left: 0; bottom: .875rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: var(--surface-2); color: var(--text-2); pointer-events: auto;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(27, 42, 36, .32), 0 2px 4px rgba(27, 42, 36, .2);
  transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.m3-mk__in img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.m3-mk:hover { --s: 1.3; z-index: 3; }
.m3-mk__name { position: absolute; left: 0; top: .5rem; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; font-weight: 500; color: var(--text); background: rgba(251, 252, 250, .94); padding: .125rem .5rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(27, 42, 36, .15); opacity: 0; transition: opacity .2s; pointer-events: none; }
.m3-mk:hover .m3-mk__name { opacity: 1; }
.m3-mk.is-dim { opacity: .3; }
.m3-mk.is-hid { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.m3--s .m3-mk__in { width: 2rem; height: 2rem; border-width: 2px; bottom: .625rem; }
.m3--s .m3-mk__pin::before { height: .75rem; }
@keyframes mkBob { 50% { transform: translateY(-3px); } }
.rmap--3d.is-intro .m3-mk__in { animation: mk3In .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(2.2s + var(--i) * .09s); }
.rmap--3d.is-intro .m3-mk::after, .rmap--3d.is-intro .m3-mk__pin::before { animation: fadeIn .4s both; animation-delay: calc(2.2s + var(--i) * .09s); }
@keyframes mk3In { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .m3-mk__pin { animation: none; } }
.m3-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1.15; pointer-events: none; will-change: transform; transition: opacity .3s; }
.m3-lbl.is-off { opacity: 0; }
.m3-lbl--sea { font-family: var(--serif); font-style: italic; font-size: .8125rem; color: #2E5B6E; letter-spacing: .02em; text-shadow: 0 0 6px rgba(222, 238, 243, .9); }
.m3-lbl--land { font-size: .6875rem; text-transform: uppercase; letter-spacing: .16em; color: #929E98; }
.rmap--3d.is-intro .m3-lbl { opacity: 0; }
.m3-rl { position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1.15; pointer-events: none; font-size: .75rem; font-weight: 600; color: #22312A; text-shadow: 0 0 3px #fff, 0 0 7px rgba(255, 255, 255, .95); opacity: 0; transition: opacity .35s; will-change: transform; }
.m3-rl.is-on { opacity: 1; }
.m3__modes { position: absolute; left: .75rem; bottom: .75rem; z-index: 3; display: flex; gap: .5rem; }
.m3__mode { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.5rem; padding: 0 .875rem; border: 0; border-radius: var(--r-btn); background: rgba(251, 252, 250, .95); color: var(--text); font-size: .8125rem; font-weight: 600; box-shadow: 0 2px 10px rgba(27, 42, 36, .18); }
.m3__mode:hover { background: #fff; }
.rmap--3d.is-fullscreen { position: fixed; inset: 0; z-index: 90; height: auto; margin: 0; border-radius: 0; }
/* Приглашение в 3D на плоской карте */
@property --cta-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.m3-cta { position: absolute; left: .75rem; bottom: .75rem; z-index: 5; display: flex; align-items: center; gap: .75rem; padding: .375rem .5rem .375rem .375rem; border: 0; border-radius: 1rem; background: rgba(251, 252, 250, .97);
  box-shadow: 0 12px 32px rgba(27, 42, 36, .24), 0 2px 6px rgba(27, 42, 36, .12); color: var(--text); text-align: left; cursor: pointer; isolation: isolate; overflow: visible;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; animation: ctaIn .6s 1.2s cubic-bezier(.3, 1.4, .5, 1) both; }
.m3-cta::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(1rem + 2px); padding: 2px;
  background: conic-gradient(from var(--cta-a), #8E1B1F, #D4A23A, #4E6A2D, #2E5B6E, #8E1B1F);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ctaSpin 5s linear infinite; }
.m3-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(27, 42, 36, .3), 0 3px 8px rgba(27, 42, 36, .14); }
.m3-cta:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.m3-cta__pic { position: relative; width: 7rem; height: 3.5rem; border-radius: .625rem; overflow: hidden; background: #E3EAE6; perspective: 260px; flex-shrink: 0; }
.m3-cta__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 70%; animation: ctaTilt 7s ease-in-out infinite; }
.m3-cta__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: ctaShine 5s 2s ease-in-out infinite; }
.m3-cta:hover .m3-cta__pic img { animation-duration: 2.4s; }
.m3-cta__txt { display: flex; flex-direction: column; gap: .125rem; line-height: 1.2; }
.m3-cta__txt b { font-size: .9375rem; font-weight: 600; }
.m3-cta__txt span { font-size: .75rem; color: var(--text-2); }
.m3-cta__go { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-left: .25rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; animation: ctaPulse 2.4s ease-out infinite; }
.m3-cta__new { position: absolute; left: .75rem; top: -.625rem; padding: .0625rem .5rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.125rem; box-shadow: 0 2px 6px rgba(142, 27, 31, .35); }
@keyframes ctaSpin { to { --cta-a: 360deg; } }
@keyframes ctaTilt { 0%, 100% { transform: scale(1.16) rotateX(10deg) rotateY(-7deg); } 50% { transform: scale(1.16) rotateX(18deg) rotateY(7deg); } }
@keyframes ctaShine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(142, 27, 31, .45); } 70%, 100% { box-shadow: 0 0 0 .75rem rgba(142, 27, 31, 0); } }
@keyframes ctaIn { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .m3-cta { gap: .5rem; padding-right: .375rem; } .m3-cta__pic { width: 5rem; height: 2.5rem; } .m3-cta__txt span { display: none; } .m3-cta__txt b { font-size: .8125rem; } .m3-cta__go { width: 2.25rem; height: 2.25rem; } }
@media (prefers-reduced-motion: reduce) { .m3-cta, .m3-cta::before, .m3-cta__pic img, .m3-cta__pic::after, .m3-cta__go { animation: none; } }
.rmap.is-zoomed .m3-cta, .rmap.has-sel .m3-cta { opacity: .92; }
.rmap--3d.has-panel .m3__modes { bottom: .75rem; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.map-toolbar .seg { min-width: 17rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: .625rem 1.5rem; align-items: center; font-size: .8125rem; line-height: 1.125rem; color: var(--text-2); }
.map-legend .legend__row { gap: .5rem; }
.map-legend__hint { flex-basis: 100%; color: var(--text-3); }
.lg-mk { width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(27, 42, 36, .35); display: grid; place-items: center; }
.lg-mk::after { content: ''; width: 1rem; height: 1rem; border-radius: 50%; background: linear-gradient(135deg, #9DB3A2, #6F8C7A); }
.lg-pulse { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: inset 0 0 0 4px rgba(142, 27, 31, .15); }
@media (max-width: 767px) {
  .rmap--home { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .rmap--home .rmap__svg { height: 20rem; }
  .rmap__panel { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .rmap__panel { display: none; } }

/* ---------- 14. Карточки видов ---------- */
.sp-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.sp-card:hover { color: var(--accent); }
.sp-card .ph { aspect-ratio: 4 / 3; }
.sp-card__body { margin-top: .625rem; padding: .75rem .875rem .875rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.sp-card__meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted-2); }
.sp-card__name { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5625rem; font-weight: 500; }
.sp-card__latin { font-family: var(--serif); font-style: italic; font-size: .875rem; color: var(--text-3); }
.sp-card__cats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .375rem; padding-top: .5rem; border-top: 1px dashed var(--line-2); font-size: .75rem; color: var(--text-2); align-items: center; }
.sp-card__cats > span { display: inline-flex; align-items: center; gap: .375rem; }
.fl-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.fl-card:hover { color: var(--accent); }
.fl-card .ph { height: 15rem; border-radius: var(--r-card) var(--r-card) 0 0; }
@media (min-width: 1024px) { .fl-card .ph { height: 18.75rem; } }
.fl-card__body { padding: 1.125rem 1.25rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 var(--r-card) var(--r-card); display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.fl-card__name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.75rem; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
.sp-card__name, .mini-card__name, .label__name, .h1, .h2 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 1024px) { .fl-card__name { font-size: 1.5rem; line-height: 1.875rem; } }
.fl-card__line { font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); margin-top: .375rem; }
.fl-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .fl-grid--5 { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 1rem; } .fl-grid--5 .fl-card__name { font-size: 1.125rem; line-height: 1.5rem; } .fl-grid--5 .fl-card .ph { height: 20rem; } .fl-grid--5 .fl-card__body { padding: .875rem 1rem 1rem; } }
.mini-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--text); }
.mini-card:hover { color: var(--accent); }
.mini-card .ph { height: 9.375rem; }
.mini-card__name { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.375rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 13.75rem; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.sp-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem 1.25rem; align-items: center; padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sp-row:hover { background: var(--surface-4); color: var(--text); }
.sp-row .ph { width: 4.5rem; height: 3.375rem; }
.sp-row__name { font-family: var(--serif); font-size: 1.125rem; line-height: 1.5rem; }
.sp-row__extra { grid-column: 2; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8125rem; color: var(--text-3); }
@media (min-width: 768px) { .sp-row { grid-template-columns: 4.5rem minmax(0, 1fr) 11.25rem 13.75rem; } .sp-row__extra { display: contents; } .sp-row__grp { font-size: .875rem; color: var(--text-3); } }
.empty { padding: 3rem 1.5rem; border: 1px dashed var(--line-3); border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.empty .i { width: 3.5rem; height: 3.5rem; color: var(--line-4); stroke-width: 1.25; }

/* ---------- 15. Главная ---------- */
.home-top { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }
@media (min-width: 1024px) { .home-top { padding-top: 2.5rem; } }
.home-top > * { min-width: 0; }
/* Обёртка карты: панель слоёв, карта и легенда; целиком разворачивается на весь экран */
.map-shell { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.map-shell > * { min-width: 0; }
.map-shell.is-fs { gap: .75rem; padding: .75rem max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); overflow: hidden; }
.map-shell.is-fs-css { position: fixed; inset: 0; z-index: 90; }
.map-shell:fullscreen { width: 100%; height: 100%; }
.map-shell.is-fs #map-area { position: relative; min-height: 0; }
.map-shell.is-fs #map-area > .rmap { height: 100%; margin: 0; }
.map-shell.is-fs .rmap--home .rmap__svg { height: 100%; }
.map-shell.is-fs .map-toolbar .seg, .map-shell.is-fs .map-legend__hint { display: none; }
.map-shell.is-fs .map-legend { font-size: .75rem; gap: .375rem 1.25rem; }
.rmap__fs .i-min, .map-shell.is-fs .rmap__fs .i-max { display: none; }
.map-shell.is-fs .rmap__fs .i-min { display: contents; }
.rmap__fs .i-max, .rmap__fs .i-min { line-height: 0; }
.home-hero { display: grid; gap: 1rem; align-items: end; }
@media (min-width: 1024px) { .home-hero { grid-template-columns: minmax(0, 1fr) 25rem; gap: 2rem; } }
.home-hero p { font-size: 1rem; line-height: 1.5rem; color: var(--text-2); text-wrap: pretty; }
/* Ссылка «Новое» над заголовком главной */
.hero-new { align-self: flex-start; display: inline-flex; align-items: center; gap: .625rem; max-width: 100%; padding: .3125rem .875rem .3125rem .3125rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(142, 27, 31, .28), 0 2px 10px rgba(142, 27, 31, .1); color: var(--text); font-size: .875rem; font-weight: 500; line-height: 1.25rem; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.hero-new:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), 0 4px 16px rgba(142, 27, 31, .18); transform: translateY(-1px); }
.hero-new__tag { flex-shrink: 0; padding: .125rem .625rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; }
.hero-new .i { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--accent); transition: transform .2s; }
.hero-new:hover .i { transform: translateX(3px); }
/* Страница «Сценарий показа» */
.sc-prep { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface-3); border: 1px solid var(--moss-line); }
.sc-check { display: grid; gap: .5rem; margin-top: .75rem; padding-left: 1.25rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
@media (min-width: 900px) { .sc-check { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.sc-route { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: sc; }
.sc-route > li { counter-increment: sc; display: grid; gap: .75rem 2.5rem; padding: 1.25rem 0 1.25rem 3.25rem; border-top: 1px solid var(--line); position: relative; }
.sc-route > li::before { content: counter(sc); position: absolute; left: 0; top: 1.25rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (min-width: 900px) { .sc-route > li { grid-template-columns: 5fr 7fr; } }
.sc-route__do { display: flex; flex-direction: column; gap: .25rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.sc-route__do b { font-size: 1.0625rem; color: var(--text); }
.sc-route__do a { align-self: flex-start; margin-top: .25rem; font-size: .875rem; }
.sc-route__time { font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.sc-route__say { font-family: var(--serif); font-size: 1.125rem; line-height: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--line-2); align-self: start; }
.sc-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
@media (min-width: 640px) { .sc-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-nums b { display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 2.5rem; color: var(--accent); }
.sc-nums span { font-size: .9375rem; color: var(--text-2); }
.sc-faq { display: grid; gap: .5rem; }
.sc-faq details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.sc-faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.sc-faq p { margin-top: .5rem; color: var(--text-2); font-size: .9375rem; line-height: 1.5rem; }
@media print { .sc-faq details { break-inside: avoid; } .sc-faq details > p { display: block; } .sc-route > li { break-inside: avoid; } }
/* Кнопка экскурсии на главной */
.tour-invite { display: grid; gap: 1rem 2rem; align-items: center; padding: 1.25rem 1.5rem; background: var(--surface-3); border: 1px solid var(--line-2); border-left: 4px solid var(--accent); border-radius: var(--r-card); }
.tour-invite__body { min-width: 0; }
.tour-invite__meta { color: var(--accent); font-size: .8125rem; line-height: 1.25rem; font-weight: 600; }
.tour-invite h2 { margin: .25rem 0 .5rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; font-weight: 500; text-wrap: balance; }
.tour-invite__text { max-width: 48rem; color: var(--text-2); font-size: .9375rem; line-height: 1.5rem; text-wrap: pretty; }
.tour-invite__action { display: grid; gap: .5rem; text-align: center; }
.tour-invite__action > span { color: var(--text-3); font-size: .75rem; line-height: 1.125rem; }
.tour-invite__action .btn { white-space: normal; }
@media (min-width: 900px) { .tour-invite { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 639px) { .tour-invite { padding: 1rem; } .tour-invite h2 { font-size: 1.25rem; } }
html[data-a11y="1"] .tour-invite { grid-template-columns: minmax(0, 1fr); }
/* Экскурсия */
.tour-hl { position: fixed; z-index: 150; border-radius: 14px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 200vmax rgba(15, 24, 20, .38); pointer-events: none; }
.tour-card { position: fixed; z-index: 151; width: 23rem; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1rem 1.125rem .875rem; border-radius: var(--r-pop); background: var(--surface); box-shadow: 0 18px 48px rgba(15, 24, 20, .35); color: var(--text); }
.tour-card.is-in { animation: rise .25s ease-out; }
.tour-card.is-sheet { left: 1rem !important; right: 1rem; top: auto !important; bottom: 1rem; width: calc(100vw - 2rem); max-width: calc(100vw - 2rem); }
.tour-card.is-final { left: 50% !important; right: auto; bottom: auto; top: 50% !important; transform: translate(-50%, -50%); width: 26rem; max-width: calc(100vw - 2rem); animation: none; }
.tour-card__n { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); text-transform: uppercase; }
.tour-card__t { margin-top: .25rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.625rem; font-weight: 600; }
.tour-card__d { margin: .375rem 0 .75rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.tour-card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.tour-card__nav { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 100%; }
.tour-card__nav .btn .i, .tour-card__bar .btn .i { width: 1rem; height: 1rem; }
.tour-card__end { padding: .25rem 0; border: 0; background: none; color: var(--text-3); font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tour-card__end:hover { color: var(--text); }
.tour-card__chapter { display: grid; gap: .25rem; margin-bottom: .75rem; font-size: .75rem; color: var(--text-3); }
.tour-card__chapter select { width: 100%; min-width: 0; font: inherit; font-size: .875rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: .4rem; }
.tour-card__note { font-size: .8125rem; line-height: 1.25rem; padding: .5rem; background: var(--surface-2); border-left: 3px solid var(--accent); margin-bottom: .75rem; }
.tour-card__collapse { margin-bottom: .75rem; }
.tour-card.is-collapsed .tour-card__details, .tour-card.is-collapsed .tour-card__chapter { display: none; }
.tour-card__progress { height: 3px; background: var(--line-2); margin-top: .75rem; border-radius: 3px; overflow: hidden; }
.tour-card__progress span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 699px) { .tour-card:not(.is-final) { max-height: 58dvh; } }
.slides:has(.tour-card) .slides__bar { order: -1; }
.slides:has(.tour-card) .slides__stage { min-height: 0; }
@media (min-width: 700px) {
  .slides:has(.tour-card) .slides__stage { padding-right: calc(var(--tour-width, 23rem) + 3rem); }
  .modal-bg:has(.tour-card) { padding-right: calc(var(--tour-width, 23rem) + 3rem); }
}
@media (max-width: 699px) {
  .slides:has(.tour-card) .slides__stage { padding-bottom: var(--tour-height, 24rem); }
  .modal:has(.tour-card) { max-height: calc(100dvh - var(--tour-height, 24rem) - 1rem); margin-bottom: var(--tour-height, 24rem); }
}
.tour-card__dots { display: flex; gap: .25rem; margin-top: .75rem; }
.tour-card__dots i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.tour-card__dots i.is-done { background: var(--line-3); }
.tour-card__dots i.is-on { background: var(--accent); }
@media print { .tour-hl, .tour-card, .tour-invite { display: none !important; } }
/* Блок «3D-модели» на главной */
.m3show { scroll-margin-top: 5.5rem; display: grid; gap: 2rem; }
.m3show__head { display: grid; gap: .75rem; max-width: 46rem; }
.m3show__tag { justify-self: start; padding: .125rem .75rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.5rem; }
.m3show__head p { font-size: 1.0625rem; line-height: 1.625rem; }
.m3show__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .m3show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m3card { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 28px rgba(27, 42, 36, .08); color: var(--text); text-decoration: none; transition: box-shadow .25s, transform .25s; }
.m3card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px rgba(27, 42, 36, .14); }
.m3card:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.m3card__stage { position: relative; display: block; aspect-ratio: 4 / 3; background-color: #EEF2EE; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.m3card__stage.is-scrub { cursor: ew-resize; }
.m3card__3d { position: absolute; left: 1rem; top: 1rem; padding: .125rem .75rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.75rem; box-shadow: 0 2px 10px rgba(142, 27, 31, .3); }
.m3card__hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 999px; background: rgba(27, 42, 36, .72); color: #fff; font-size: .8125rem; white-space: nowrap; transition: opacity .3s; }
.m3card__hint .i { width: 1rem; height: 1rem; }
.m3card__stage.is-scrub .m3card__hint { opacity: 0; }
.m3card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.m3card__grp { font-size: .8125rem; color: var(--muted); }
.m3card__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.875rem; font-weight: 600; }
.m3card__body .latin { margin-top: -.25rem; }
.m3card__line { font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.m3card__feats { display: flex; flex-wrap: wrap; gap: .375rem .5rem; margin-top: .25rem; }
.m3card__feats > span { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .625rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: .8125rem; line-height: 1.25rem; }
.m3card__feats .i { width: .875rem; height: .875rem; color: var(--moss); }
.m3card__btn { margin-top: auto; }
.m3card__body > .m3card__btn { margin-top: .75rem; }
.m3card__btn .i { width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.m3card:hover .m3card__btn { background: var(--accent-hover, #75161A); }
.m3card:hover .m3card__btn .i { transform: translateX(3px); }
@media (max-width: 639px) { .m3card__name { font-size: 1.3125rem; line-height: 1.625rem; } .m3card__body { padding: 1rem 1.125rem 1.25rem; } .m3card__btn { align-self: stretch; justify-content: center; } }
.home-aside { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1200px) { .home-aside { padding-top: 13rem; } }
@media (min-width: 768px) and (max-width: 1199px) { .home-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .home-aside .legend-box { grid-row: span 2; } }
.map-hint { font-size: .8125rem; line-height: 1.125rem; color: var(--text-3); text-wrap: pretty; }
.region-list { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-pop); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: 20rem; }
@media (min-width: 768px) { .region-list { padding: 1.5rem; } }
.region-list__cols { columns: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .region-list__cols { columns: 2; } }
@media (min-width: 1024px) { .region-list__cols { columns: 3; } }
.region-list__cols a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem; border-radius: 6px; text-decoration: none; color: var(--text); font-size: .9375rem; line-height: 1.25rem; break-inside: avoid; }
.region-list__cols a:hover { background: var(--surface-4); }
.region-list__cols .n { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.region-list__cols .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: .375rem; vertical-align: middle; }
.week { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 1024px) { .week { grid-template-columns: 7fr 5fr; } }
.week .ph { height: 17.5rem; }
@media (min-width: 768px) { .week .ph { height: 28.75rem; } }
.week__info { display: flex; flex-direction: column; gap: 1rem; border-top: 3px solid var(--accent); padding-top: 1.5rem; }
@media (min-width: 1024px) { .week__info { padding-bottom: 2.5rem; } }
.campaign { background: var(--surface-2); border-radius: var(--r-card); display: grid; overflow: hidden; }
@media (min-width: 900px) { .campaign { grid-template-columns: 26.25rem minmax(0, 1fr); } }
.campaign .ph { min-height: 15rem; border-radius: 0; height: 100%; }
.campaign__body { padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .campaign__body { padding: 2.5rem 3rem; } }
.campaign__rules { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
@media (min-width: 640px) { .campaign__rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.campaign__rules li { border-top: 1px solid var(--line-4); padding-top: .75rem; font-size: 1rem; line-height: 1.5rem; }
.lessons { list-style: none; padding: 0; display: flex; flex-direction: column; }
.lessons li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; padding: 1.25rem 0; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .lessons li { grid-template-columns: 3.5rem minmax(0, 1fr) auto; } }
.lessons__n { font-family: var(--serif); font-size: 1.625rem; color: var(--accent); }
.lessons__t { font-family: var(--serif); font-size: 1.25rem; line-height: 1.75rem; }
@media (min-width: 1024px) { .lessons__t { font-size: 1.375rem; line-height: 1.875rem; } }
.lessons__time { font-size: .875rem; color: var(--muted); grid-column: 2; }
@media (min-width: 640px) { .lessons__time { grid-column: auto; } }
.act-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border-radius: var(--r-card); background: var(--surface-3); border: 1px solid var(--moss-line); text-decoration: none; color: var(--text); min-height: 10rem; }
.act-card:hover { border-color: var(--moss); color: var(--text); }
.act-card .i { width: 2rem; height: 2rem; color: var(--moss); }
.act-card__t { font-family: var(--serif); font-size: 1.25rem; line-height: 1.75rem; text-wrap: pretty; }
.act-card--row { flex-direction: row; gap: .875rem; min-height: 0; padding: 1.25rem; }
.act-card--row .i { width: 1.5rem; height: 1.5rem; }
.act-card--row .act-card__t { font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; }
.act-dark { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--r-card); background: var(--moss); color: #fff; min-height: 7rem; }
.act-dark .i { width: 1.75rem; height: 1.75rem; color: var(--moss-light); }
.act-dark span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.75rem; }
.principles > div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; }
.principles b { font-size: 1.0625rem; font-weight: 500; }
.principles span { font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partners span { height: 3.5rem; border-radius: var(--r-card); background: #E4E7E5; display: grid; place-items: center; font-size: .8125rem; color: var(--muted); border: 1px dashed var(--line-3); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1.5rem; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 2.5rem; font-weight: 600; color: var(--accent); }
.stat span { font-size: .875rem; color: var(--text-3); }

/* ---------- 16. Страница региона ---------- */
.hero { position: relative; }
.hero .ph { height: 15rem; }
@media (min-width: 768px) { .hero .ph { height: 22rem; } }
@media (min-width: 1024px) { .hero .ph { height: 26.25rem; } }
.cover { position: relative; height: 15rem; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); }
@media (min-width: 768px) { .cover { height: 22rem; } }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__code { position: absolute; left: 1.5rem; bottom: 1rem; font-family: var(--serif); font-weight: 600; font-size: 5rem; line-height: 1; color: var(--accent); opacity: .9; letter-spacing: .02em; }
@media (min-width: 768px) { .cover__code { left: 2.5rem; bottom: 1.5rem; font-size: 9rem; } }
.cover__note { position: absolute; right: 1rem; top: 1rem; }
.reg-head { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .reg-head { grid-template-columns: 7fr 1fr 4fr; } .reg-head__side { grid-column: 3; padding-top: 2.25rem; } }
.reg-head__side { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; line-height: 1.25rem; }
.person { display: flex; gap: .75rem; align-items: center; }
.person > .stack { min-width: 0; overflow-wrap: anywhere; }
.person__role { color: var(--muted); }
.person__name { font-weight: 500; font-size: 1rem; }
.statbar { margin-top: 2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line-2); font-size: 1rem; line-height: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.statbar b { font-weight: 600; }
.statbar > span:first-child { flex: 1 1 0; min-width: 16rem; }
.locator { display: flex; gap: .75rem; align-items: center; }
.catalog { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .catalog { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2.5rem; } }
.filters { display: flex; flex-direction: column; gap: 1.75rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.filters legend { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; padding: 0; }
.grp-btn { display: flex; align-items: center; gap: .625rem; min-height: 2.25rem; padding: 0 .625rem; border-radius: 8px; border: 0; background: transparent; font-size: .875rem; color: var(--text); text-align: left; width: 100%; }
.grp-btn:hover { background: var(--surface-2); }
.grp-btn[aria-pressed="true"] { background: var(--surface-2); font-weight: 600; }
.grp-btn .t { flex: 1; }
.grp-btn .n { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.grp-btn[disabled] { opacity: .45; cursor: default; }
.grp-btn[disabled]:hover { background: transparent; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.results__tools { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.results__tools label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-3); }
.results__tools .select { min-height: 2.5rem; width: auto; font-size: .875rem; }
.sp-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-list { display: flex; flex-direction: column; border-top: 1px solid var(--text); }
.filters-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
@media (max-width: 1023px) {
  .filters-panel { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; animation: sheetUp 240ms ease-out; }
  .filters-panel:not(.is-open) { display: none; }
  .filters-panel__head { height: 3.5rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem 0 var(--gutter); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.0625rem; }
  .filters-panel__body { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); }
  .filters-panel__foot { padding: .75rem var(--gutter) 1.5rem; border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) { .filters-panel__head, .filters-panel__foot { display: none; } }
.eco { display: flex; flex-direction: column; gap: .875rem; }
.eco .ph { height: 15rem; }
.eco__deps { font-size: .875rem; line-height: 1.25rem; border-top: 1px solid var(--line); padding-top: .625rem; }
.eco__deps a { color: var(--text); }
.oopt-map { background: var(--water); border-radius: var(--r-card); padding: 1.5rem; }
.oopt-map svg { width: 100%; height: auto; }
@media (min-width: 1024px) { .oopt-map { position: sticky; top: 6rem; } }
.print-only { display: none; }
@media print { .print-only { display: block; font-size: 9pt; color: #5C6862; border-bottom: 1px solid #C5CCC7; padding-bottom: 4pt; margin-bottom: 8pt; } }
.oopt-map polygon { fill: var(--surface-2); stroke: #C5CFC6; }
.oopt-map svg { display: block; max-height: 34rem; }
.oopt-land { fill: #EEEBE2; stroke: none; }
.oopt-nb { fill: #E6EAE3; stroke: #FFFFFF; stroke-width: 1; vector-effect: non-scaling-stroke; }
.oopt-reg { fill: #CFE0C4; stroke: #6F8C5A; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.oopt-lead { stroke: var(--text-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.oopt-dot { fill: var(--text-2); }
.oopt-mark circle { vector-effect: non-scaling-stroke; }
.oopt-mark--zak circle { stroke: #8A6D2E; }
.oopt-row__n--np { border-color: var(--accent); }
.oopt-row__n--zak { border-color: #8A6D2E; }
.oopt-mark { cursor: pointer; }
.oopt-mark circle { fill: var(--surface); stroke: var(--moss); stroke-width: 1.5; stroke-dasharray: 4 2.5; transition: fill 150ms; }
.oopt-mark text { font-family: var(--sans); font-weight: 600; fill: var(--text); pointer-events: none; }
.oopt-mark.is-on circle { fill: var(--moss-light); stroke-width: 2.5; stroke-dasharray: none; }
.oopt-mark--np circle { stroke: var(--accent); }
.oopt-list { display: flex; flex-direction: column; }
.oopt-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem 1rem; align-items: start; padding: 1rem .75rem; border-top: 1px solid var(--line); border-radius: 4px; }
@media (min-width: 640px) { .oopt-row { grid-template-columns: 2rem minmax(0, 1fr) auto; } }
.oopt-row.is-on { background: var(--surface-3); }
.oopt-row__n { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px dashed var(--moss); display: grid; place-items: center; font-size: .8125rem; font-weight: 600; }

.oopt-row__name { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5rem; }
.oopt-row__meta { font-size: .875rem; line-height: 1.25rem; color: var(--text-3); }
.oopt-row a { font-size: .875rem; white-space: nowrap; color: var(--text); }
.teach-box { background: var(--surface-2); border-radius: var(--r-card); padding: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .teach-box { padding: 3rem; grid-template-columns: 6fr 1fr 5fr; } .teach-box > :last-child { grid-column: 3; } }
.kit { list-style: none; padding: 0; display: flex; flex-direction: column; }
.kit li { border-bottom: 1px solid #C5CFC6; }
.kit a, .kit button { display: flex; align-items: center; gap: .875rem; padding: .75rem 0; width: 100%; background: none; border: 0; text-align: left; color: var(--text); text-decoration: none; font-size: 1rem; }
.kit a:hover .t, .kit button:hover .t { text-decoration: underline; }
.kit .t { flex: 1; }
.kit .f { font-size: .8125rem; color: var(--muted); }
.report-box { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: var(--r-card); align-self: end; }
.report-box__c { font-size: .875rem; line-height: 1.25rem; color: var(--text-2); display: flex; flex-direction: column; gap: .625rem; }
.report-box__c b { display: block; font-weight: 500; color: var(--text); }
.sources { border-top: 1px solid var(--text); padding-top: 1.5rem; display: grid; gap: 1rem 1.5rem; font-size: .875rem; line-height: 1.375rem; }
@media (min-width: 1024px) { .sources { grid-template-columns: 3fr 6fr 3fr; } }
.sources ul { padding-left: 1.125rem; display: flex; flex-direction: column; gap: .375rem; margin: 0; }
.prep-box { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface-2); display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .prep-box { padding: 2.5rem; } }
.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; line-height: 1.375rem; }
.bullets li { display: flex; gap: .625rem; }
.bullets li::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--moss); margin-top: .4375rem; flex-shrink: 0; }
.side-card { padding: 1.75rem; border: 1px solid var(--line-2); border-radius: var(--r-card); display: flex; flex-direction: column; gap: .75rem; }
.ok-note { display: flex; gap: .625rem; align-items: center; padding: .75rem .875rem; border-radius: var(--r-btn); background: var(--surface-3); color: var(--moss-text); font-size: .9375rem; }
.ok-note .i { color: var(--moss); }

/* ---------- 17. Карточка вида ---------- */
.sp-top { display: grid; gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .sp-top { grid-template-columns: 7fr 5fr; } }
.gal__main { position: relative; height: 18rem; border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); }
@media (min-width: 768px) { .gal__main { height: 32.5rem; } }
.gal__main .ph { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: opacity 300ms; }
.gal__main .ph.is-on { opacity: 1; }
/* 3D-модель в галерее */
.gal__3d { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 95% at 50% 38%, #FDFEFC 0%, #EEF2EE 52%, #D9E1DC 100%); }
.gal__main.is-3d .ph { opacity: 0; }
.v3d { position: absolute; inset: 0; overflow: hidden; }
.v3d__stage { position: absolute; inset: 0; }
.v3d__stage canvas { display: block; width: 100% !important; height: 100% !important; outline: none; cursor: grab; }
.v3d__stage canvas:active { cursor: grabbing; }
.v3d__ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.v3d__load { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .625rem; padding: .625rem 1rem; border-radius: 999px; background: rgba(251, 252, 250, .94); box-shadow: 0 4px 16px rgba(27, 42, 36, .14); font-size: .875rem; color: var(--text-2); transition: opacity .4s; }
.v3d__load .i { width: 1.125rem; height: 1.125rem; color: var(--accent); }
.v3d.is-ready .v3d__load { opacity: 0; pointer-events: none; }
.v3d__ctrl { opacity: 0; transition: opacity .4s; }
.v3d.is-ready .v3d__ctrl { opacity: 1; }
.v3d__badge { position: absolute; left: .75rem; top: .75rem; z-index: 3; padding: .125rem .625rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5rem; box-shadow: 0 2px 8px rgba(142, 27, 31, .3); }
.v3d__hint { position: absolute; left: 50%; bottom: .875rem; z-index: 3; transform: translateX(-50%); padding: .375rem .875rem; border-radius: 999px; background: rgba(27, 42, 36, .72); color: #fff; font-size: .8125rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.v3d.is-ready:not(.hint-done) .v3d__hint { opacity: 1; animation: v3dHint 6s 1.8s both; }
.v3d.show-hint .v3d__hint { opacity: 1; animation: none; }
@keyframes v3dHint { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.v3d__hs { position: absolute; left: 0; top: 0; width: 1.875rem; height: 1.875rem; margin: -.9375rem 0 0 -.9375rem; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1; pointer-events: auto; cursor: pointer; box-shadow: 0 3px 10px rgba(27, 42, 36, .35); transition: opacity .3s, background .2s; will-change: transform; }
.v3d__hs::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(142, 27, 31, .6); animation: v3dPulse 2.4s ease-out infinite; animation-delay: calc(var(--i) * .4s); pointer-events: none; }
.v3d__hs:hover, .v3d__hs.is-on { background: #fff; color: var(--accent); }
.v3d__hs.is-behind { opacity: .35; }
.v3d__hs.is-behind::after { animation: none; opacity: 0; }
.v3d__hs:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
@keyframes v3dPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.v3d:not(.is-ready) .v3d__hs { opacity: 0; }
.v3d__card { position: absolute; left: 0; top: 0; z-index: 5; width: 18rem; max-width: calc(100% - 1.5rem); padding: .75rem .875rem .875rem 1rem; border-radius: var(--r-card); background: rgba(251, 252, 250, .97); box-shadow: var(--shadow-pop); font-size: .875rem; line-height: 1.3rem; color: var(--text-2); animation: fadeIn .2s; }
.v3d__card-h { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; color: var(--text); font-size: 1rem; }
.v3d__card-h .i { width: 1.125rem; height: 1.125rem; color: var(--accent); flex-shrink: 0; }
.v3d__card-h b { font-weight: 600; flex: 1; }
.v3d__card-x { width: 2rem; height: 2rem; margin: -.25rem -.375rem -.25rem 0; }
.v3d__card p { margin: 0; }
.v3d .i-min, .v3d.is-fs .i-max { display: none; }
.v3d.is-fs .i-min { display: contents; }
.v3d .i-max { display: contents; }
.v3d.is-fs { background: radial-gradient(120% 95% at 50% 38%, #FDFEFC 0%, #EEF2EE 52%, #D9E1DC 100%); }
.v3d.is-fs-css { position: fixed; inset: 0; z-index: 90; }
.v3d.is-fs .v3d__card { width: 21rem; }
.gal__t3d { position: relative; height: 4.5rem; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-photo); overflow: hidden; background: #E9EEEA; cursor: pointer; }
@media (min-width: 768px) { .gal__t3d { height: 6rem; } }
.gal__t3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__t3d[aria-current="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.gal__t3d .lbl { position: absolute; left: .25rem; bottom: .25rem; padding: 0 .375rem; border-radius: 4px; background: rgba(27, 42, 36, .7); color: #fff; font-size: .6875rem; line-height: 1.125rem; }
.gal__t3d-b { position: absolute; right: .25rem; top: .25rem; padding: 0 .375rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .625rem; font-weight: 700; line-height: 1.125rem; }
.ph__3d { position: absolute; right: .5rem; top: .5rem; z-index: 2; padding: 0 .5rem; border-radius: 999px; background: rgba(142, 27, 31, .92); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.375rem; box-shadow: 0 2px 6px rgba(27, 42, 36, .25); pointer-events: none; }
.gal__full { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; background: rgba(251, 252, 250, .94); color: var(--text); }
.gal__full:hover { background: #fff; color: var(--text); }
.gal__cap { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); margin-top: .75rem; }
.gal__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
@media (min-width: 768px) { .gal__thumbs:has(.gal__t3d) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gal__thumbs button { height: 4.5rem; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-photo); overflow: hidden; background: var(--surface-2); position: relative; }
@media (min-width: 768px) { .gal__thumbs button { height: 6rem; } }
.gal__thumbs button[aria-current="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.gal__thumbs .ph { position: absolute; inset: 0; border-radius: 0; }
.gal__thumbs span.lbl { position: absolute; left: .25rem; bottom: .25rem; padding: 0 .375rem; border-radius: 4px; background: rgba(27, 42, 36, .7); color: #fff; font-size: .6875rem; line-height: 1.125rem; }
.label { background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: var(--r-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .label { padding: 1.75rem; } }
.label__name { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 2.375rem; }
@media (min-width: 1024px) { .label__name { font-size: 3rem; line-height: 3.5rem; } }
.label__latin { font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.625rem; color: var(--text-2); }
@media (min-width: 1024px) { .label__latin { font-size: 1.25rem; line-height: 1.75rem; } }
.label__sec { border-top: 1px solid var(--line); padding-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.label__row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .9375rem; }
.label__row a { color: var(--text); }
.label__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.label__check { font-size: .8125rem; line-height: 1.125rem; color: var(--text-3); border-top: 1px dashed var(--line-2); padding-top: .75rem; }
.tip-wrap { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
.tip { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 20; width: min(19rem, 100%); padding: .75rem .875rem; border-radius: var(--r-card); background: var(--dark); color: var(--dark-fg); font-size: .875rem; line-height: 1.25rem; box-shadow: 0 8px 24px rgba(27, 42, 36, .25); }
.sp-body { display: grid; gap: 3.5rem; margin-top: 4rem; align-items: start; }
@media (min-width: 1024px) { .sp-body { grid-template-columns: 13.75rem minmax(0, 1fr); gap: 3.5rem; margin-top: 5rem; } }
.toc { display: none; position: sticky; top: 6rem; flex-direction: column; gap: 2px; font-size: .9375rem; }
@media (min-width: 1024px) { .toc { display: flex; } }
.toc a { display: flex; align-items: center; min-height: 2.25rem; padding: 0 .75rem; border-left: 2px solid var(--line); color: var(--text-3); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.is-on { border-color: var(--accent); color: var(--text); font-weight: 600; }
.sp-sections { display: flex; flex-direction: column; gap: 4rem; max-width: 56.25rem; min-width: 0; }
@media (min-width: 1024px) { .sp-sections { gap: 6rem; } }
.sp-sec { display: flex; flex-direction: column; gap: 1.5rem; scroll-margin-top: 5.5rem; }
.traits { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .traits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trait { display: flex; flex-direction: column; gap: .75rem; }
.trait__pic { height: 7.5rem; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); display: grid; place-items: center; color: var(--text); }
@media (min-width: 1024px) { .trait__pic { height: 10rem; } }
.trait__pic .i { width: 4rem; height: 4rem; stroke-width: 1.1; opacity: .75; }
.trait__t { font-family: var(--serif); font-size: 1.1875rem; font-weight: 500; }
.trait__d { font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.confuse { background: var(--surface-2); border-radius: var(--r-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.confuse__grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .confuse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.confuse__item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
.confuse__item .ph { height: 6rem; background: #D4DCD4; }
.where { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .where { grid-template-columns: minmax(0, 1fr) 21.25rem; } }
.hexmap { background: var(--water); border-radius: var(--r-card); padding: 1.25rem; }
.hexmap svg { width: 100%; height: auto; }
.hexmap__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; font-size: .8125rem; }
.hexmap__legend span { display: flex; align-items: center; gap: .5rem; }
.hex-sw { width: .875rem; height: .875rem; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hex-on { fill: rgba(142, 27, 31, .78); stroke: var(--bg); }
.hex-off { fill: var(--surface-2); stroke: #C5CFC6; }
.where__note { display: flex; flex-direction: column; gap: 1rem; }
.where__note .i { width: 2rem; height: 2rem; color: var(--accent); }
.where__note .big { font-family: var(--serif); font-size: 1.375rem; line-height: 2rem; text-wrap: pretty; }
@media (min-width: 1024px) { .where__note .big { font-size: 1.5rem; line-height: 2.125rem; } }
.season { display: grid; grid-template-columns: 7.5rem repeat(12, minmax(0, 1fr)); gap: .25rem 2px; align-items: center; font-size: .8125rem; overflow-x: auto; }
@media (min-width: 768px) { .season { grid-template-columns: 10rem repeat(12, minmax(0, 1fr)); } }
.season__m { text-align: center; color: var(--muted); padding-bottom: .25rem; font-size: .75rem; }
.season__l { font-size: .875rem; padding-right: .5rem; line-height: 1.125rem; }
.season__c { height: 1.5rem; border-radius: 3px; background: #E7ECE6; }
.season__c.green { background: #9DB38A; } .season__c.pink { background: #D9A2A4; } .season__c.red { background: #C62828; }
.season__c.blue { background: #8FB3C4; } .season__c.gray { background: #B4BDB8; } .season__c.yellow { background: #D9C27A; }
.threats { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .threats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.threat { display: flex; gap: .875rem; align-items: flex-start; border-top: 1px solid var(--text); padding-top: 1rem; }
.threat .i { width: 1.75rem; height: 1.75rem; }
.threat b { display: block; font-size: 1.0625rem; font-weight: 500; margin-bottom: .25rem; }
.threat span { font-size: .875rem; line-height: 1.25rem; color: var(--text-2); }
.protect { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .protect { grid-template-columns: minmax(0, 1fr) 13.75rem; } }
.protect .map { border-radius: var(--r-card); }
.reg-cats { display: flex; flex-direction: column; gap: .5rem; font-size: .9375rem; }
.reg-cats a { color: var(--text); }
.sp-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .75rem var(--gutter) 1rem; background: linear-gradient(rgba(246, 247, 244, 0), var(--bg) 35%); }
@media (min-width: 1024px) { .sp-mobile-cta { display: none; } }
/* Полноэкранный просмотр фото */
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 19, .95); display: flex; flex-direction: column; animation: fadeIn 160ms; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; color: #DCE3DE; font-size: .875rem; }
.viewer__bar a { color: inherit; }
.viewer__bar .btn-icon { color: #fff; background: rgba(255, 255, 255, .1); }
.viewer__img { flex: 1; position: relative; margin: 0 1rem 1.5rem; }
@media (min-width: 768px) { .viewer__img { margin: 0 5rem 2.5rem; } }
.viewer__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.viewer__nav--prev { left: .5rem; } .viewer__nav--next { right: .5rem; }

/* ---------- 18. Модальные окна, мастер, уведомления ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 95; background: rgba(27, 42, 36, .5); display: grid; place-items: center; padding: 1rem; animation: fadeIn 160ms; overflow-y: auto; }
.modal { width: 100%; max-width: 40rem; max-height: calc(100vh - 2rem); overflow: auto; background: var(--surface); border-radius: var(--r-pop); box-shadow: 0 24px 64px rgba(27, 42, 36, .3); display: flex; flex-direction: column; animation: rise 200ms ease-out; }
.modal--s { max-width: 35rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal__head { padding: 1.5rem 1.75rem 1rem; border-top: 3px solid var(--accent); border-radius: var(--r-pop) var(--r-pop) 0 0; display: flex; flex-direction: column; gap: .875rem; }
.modal__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal__title .btn-icon { margin: -.5rem -.5rem 0 0; }
.modal__body { padding: .5rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; min-height: 12rem; }
.modal__foot { padding: 1rem 1.75rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 560px) { .modal__head, .modal__body, .modal__foot { padding-left: 1.25rem; padding-right: 1.25rem; } }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; }
.steps li { display: flex; flex-direction: column; gap: .375rem; font-size: .75rem; line-height: 1rem; color: var(--muted); }
.steps li::before { content: ''; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.is-done::before { background: var(--accent); }
.steps li.is-cur { color: var(--text); }
@media (max-width: 560px) { .steps li span { display: none; } .steps li.is-cur span { display: inline; position: absolute; } }
.opt { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .5rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); background: transparent; font-size: .9375rem; color: var(--text); text-align: left; width: 100%; }
.opt:hover { border-color: var(--text-3); }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--text); background: var(--field); }
.letter { padding: 1rem; border-radius: var(--r-card); background: var(--field); border: 1px solid var(--line-2); font-family: var(--serif); font-size: .9375rem; line-height: 1.5rem; white-space: pre-line; }
.dest { padding: 1rem; border: 1px solid var(--line-2); border-radius: var(--r-card); display: flex; flex-direction: column; gap: .25rem; }
.dest b { font-weight: 500; }
.dest span { font-size: .875rem; color: var(--text-3); }
.upload { position: relative; height: 11.25rem; border-radius: var(--r-card); border: 1.5px dashed var(--line-3); background: var(--surface-2); display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: .875rem; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; border-radius: var(--r-btn); background: var(--dark); color: #fff; font-size: .9375rem; box-shadow: var(--shadow-toast); max-width: calc(100vw - 2rem); animation: rise 200ms ease-out; }
.toast .i { color: var(--ok); }

/* ---------- 19. Учителям, уроки, викторина ---------- */
.teach-hero { display: grid; gap: 2rem; padding-top: 1.5rem; }
@media (min-width: 1024px) { .teach-hero { grid-template-columns: 7fr 5fr; align-items: end; padding-top: 2.5rem; } }
.picker { background: var(--surface-2); border-radius: var(--r-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.materials { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .materials { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mat { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); text-decoration: none; color: var(--text); }
.mat:hover { border-color: var(--text); color: var(--text); }
.mat .i { width: 1.75rem; height: 1.75rem; }
.mat b { font-family: var(--serif); font-size: 1.1875rem; font-weight: 500; }
.mat span { font-size: .8125rem; color: var(--muted); }
.lesson-card { padding: 1.5rem; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 var(--r-card) var(--r-card); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
.lesson-card ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.counter { display: flex; align-items: baseline; gap: .75rem; }
.counter b { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); }
/* Печатные материалы */
.doc-bar { position: sticky; top: var(--hdr-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
body[data-page="lesson"] .hdr__demo { display: none; }
.paper .muted-line { color: #5C6862; font-size: .875rem; }
.paper .key { border: 1px dashed #9DAAA2; border-radius: 6px; padding: .75rem 1rem; font-size: .875rem; }
.pb { break-before: page; }
.paper .ph img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.poster-title { font-family: var(--serif); font-size: 3rem; line-height: 3.5rem; font-weight: 600; }
.poster-card { border: 1px solid #C5CCC7; border-top: 3px solid #8E1B1F; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.poster-card .ph { height: 9rem; border-radius: 0; }
.poster-card div.b { padding: .625rem .75rem .75rem; display: flex; flex-direction: column; gap: .25rem; }
@media print { .cat__n { print-color-adjust: exact; -webkit-print-color-adjust: exact; } .season__c, .hex-on { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.doc-bar__in { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
.doc-bar .seg { display: flex; flex-wrap: wrap; max-width: 100%; }
.paper { background: #fff; color: #1B2A24; max-width: 52.5rem; margin: 2rem auto; padding: 2.5rem 2rem; box-shadow: 0 1px 3px rgba(27, 42, 36, .12), 0 8px 24px rgba(27, 42, 36, .08); border-radius: 4px; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .paper { padding: 3.5rem 4rem; } }
.paper h1 { font-family: var(--serif); font-size: 2rem; line-height: 2.5rem; }
.paper h2 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.75rem; margin-top: .75rem; }
.paper table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.paper th, .paper td { border: 1px solid #9DAAA2; padding: .5rem .625rem; text-align: left; vertical-align: top; }
.paper th { background: #EEF2EA; font-weight: 600; }
@media screen and (max-width: 640px) {
  .paper table { display: block; max-width: 100%; overflow-x: auto; }
}
.paper .write { height: 2rem; border-bottom: 1px solid #9DAAA2; }
.paper .draw { height: 12rem; border: 1px dashed #9DAAA2; border-radius: 6px; }
.paper .ph { height: 10rem; }
.paper--a3 { max-width: 60rem; }
.poster-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slides { position: fixed; inset: 0; z-index: 100; background: #0F1613; color: #F6F7F4; display: flex; flex-direction: column; }
.slides__stage { flex: 1; display: grid; place-items: center; padding: 1rem; }
.slide { width: min(100%, calc((100vh - 7rem) * 16 / 9)); aspect-ratio: 16 / 9; background: var(--bg); color: var(--text); border-radius: 6px; overflow: hidden; display: grid; container-type: inline-size; }
.slide__in { padding: 6cqw 7cqw; display: flex; flex-direction: column; gap: 2cqw; justify-content: center; font-size: 2.2cqw; line-height: 1.4; }
.slide h2 { font-family: var(--serif); font-size: 4.6cqw; line-height: 1.15; }
.slide--split { grid-template-columns: 1fr 1fr; }
.slide--split .ph { border-radius: 0; height: 100%; }
.slide--dark { background: var(--dark); color: var(--dark-fg); }
.slide .cat { font-size: 2cqw; line-height: 1.2; gap: .8cqw; }
.slide .cat__n { width: 3.4cqw; height: 3.4cqw; font-size: 2cqw; }
.slides__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; font-size: .875rem; color: #B9C3BD; }
.slides__bar .btn-icon { color: #fff; background: rgba(255, 255, 255, .1); }
.quiz { max-width: 45rem; display: flex; flex-direction: column; gap: 1.5rem; }
.quiz__progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; background: var(--accent); transition: width 300ms; }
.quiz__q { font-family: var(--serif); font-size: 1.5rem; line-height: 2rem; text-wrap: pretty; }
.quiz__opts { display: flex; flex-direction: column; gap: .625rem; }
.quiz__opt { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .625rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); text-align: left; font-size: 1rem; color: var(--text); }
.quiz__opt:hover:not([disabled]) { border-color: var(--text); }
.quiz__opt .mk { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex-shrink: 0; font-size: .75rem; font-weight: 600; }
.quiz__opt.is-right { border-color: var(--cat5); background: #EAF4EE; }
.quiz__opt.is-right .mk { background: var(--cat5); border-color: var(--cat5); color: #fff; }
.quiz__opt.is-wrong { border-color: var(--error); background: #FBECEC; }
.quiz__opt.is-wrong .mk { background: var(--error); border-color: var(--error); color: #fff; }
.quiz__opt[disabled] { cursor: default; }
.quiz__fb { padding: 1rem 1.25rem; border-radius: var(--r-card); background: var(--surface-2); font-size: .9375rem; line-height: 1.375rem; }

/* ---------- 20. О проекте, Как помочь ---------- */
.page-head { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .page-head { padding-top: 2.5rem; } }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.help-sec { display: grid; gap: 1.5rem; scroll-margin-top: 5.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-2); }
@media (min-width: 1024px) { .help-sec { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.help-sec__icon { width: 3.5rem; height: 3.5rem; border-radius: var(--r-card); background: var(--surface-3); border: 1px solid var(--moss-line); display: grid; place-items: center; color: var(--moss); }
.help-sec__icon .i { width: 1.75rem; height: 1.75rem; }
.do-dont { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .do-dont { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.do-dont > div { padding: 1.25rem; border-radius: var(--r-card); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .5rem; }
.do-dont h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.do-dont .do h3 .i { color: var(--cat5); } .do-dont .dont h3 .i { color: var(--error); }
.do-dont ul { padding-left: 1.125rem; display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text-2); }
.team { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); } }
.steps-v { list-style: none; padding: 0; counter-reset: s; display: flex; flex-direction: column; }
.steps-v li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line-2); }
.steps-v li::before { content: counter(s); font-family: var(--serif); font-size: 1.625rem; color: var(--accent); }
.steps-v b { display: block; font-size: 1.0625rem; font-weight: 500; margin-bottom: .25rem; }
.steps-v span { color: var(--text-2); font-size: .9375rem; line-height: 1.375rem; }
.note-box { padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--surface-2); font-size: .9375rem; line-height: 1.375rem; display: flex; gap: .75rem; }
.note-box .i { margin-top: .125rem; }

/* ---------- 21. Страница дизайн-системы ---------- */
.ds-sec { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--line-2); }
.ds-palette { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .ds-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-palette { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.ds-sw { height: 7.5rem; border-radius: var(--r-card); border: 1px solid rgba(27, 42, 36, .12); }
.ds-type > div { display: grid; gap: .5rem 1.5rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .ds-type > div { grid-template-columns: 12.5rem minmax(0, 1fr); } }
.ds-states { display: grid; gap: 1rem .75rem; align-items: center; font-size: .8125rem; color: var(--text-3); overflow-x: auto; grid-template-columns: 8rem repeat(7, minmax(8.5rem, 1fr)); }
.ds-grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 5rem; }
.ds-grid12 span { background: rgba(142, 27, 31, .12); border-radius: 2px; }
.ds-radii { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; font-size: .75rem; color: var(--text-3); }
.ds-radii span { display: block; height: 3.5rem; background: var(--surface-2); margin-bottom: .375rem; }
.skel { background: var(--surface-2); border-radius: 4px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- 22. Версия для слабовидящих ---------- */
html[data-a11y="1"] { font-size: 125%; }
html[data-a11y="1"][data-fs="2"] { font-size: 150%; }
html[data-a11y="1"][data-fs="3"] { font-size: 175%; }
html[data-a11y="1"] {
  --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #fff; --surface-4: #EDEDED; --field: #fff;
  --text: #000; --text-2: #000; --text-3: #000; --muted: #1a1a1a; --muted-2: #1a1a1a;
  --line: #000; --line-2: #000; --line-3: #000; --line-4: #000;
  --accent: #000; --accent-hover: #333; --accent-press: #000; --accent-deep: #000; --accent-soft: #E0E0E0; --accent-disabled: #777; --accent-fg: #fff;
  --moss: #000; --moss-hover: #333; --moss-line: #000; --moss-light: #fff; --moss-text: #000;
  --water: #fff; --water-line: #000; --dark: #000; --dark-fg: #fff;
  --footer-bg: #000; --footer-text: #fff; --footer-muted: #fff; --footer-line: #fff; --footer-small: #fff;
  --shadow-pop: 0 0 0 2px #000; --shadow-toast: 0 0 0 2px #fff; --shadow-seg: none;
}
html[data-a11y="1"][data-scheme="wb"] {
  --bg: #000; --surface: #000; --surface-2: #000; --surface-3: #000; --surface-4: #262626; --field: #000;
  --text: #fff; --text-2: #fff; --text-3: #fff; --muted: #e6e6e6; --muted-2: #e6e6e6;
  --line: #fff; --line-2: #fff; --line-3: #fff; --line-4: #fff;
  --accent: #fff; --accent-hover: #ddd; --accent-press: #fff; --accent-deep: #fff; --accent-soft: #333; --accent-disabled: #888; --accent-fg: #000;
  --moss: #fff; --moss-hover: #ddd; --moss-line: #fff; --moss-light: #000; --moss-text: #fff;
  --water: #000; --water-line: #fff; --dark: #fff; --dark-fg: #000;
  --footer-bg: #000; --footer-text: #fff; --footer-muted: #fff; --footer-line: #fff; --footer-small: #fff;
  --shadow-pop: 0 0 0 2px #fff; --shadow-toast: 0 0 0 2px #fff;
}
html[data-a11y="1"][data-scheme="blue"] {
  --bg: #9DD1FF; --surface: #9DD1FF; --surface-2: #9DD1FF; --surface-3: #9DD1FF; --surface-4: #B8DEFF; --field: #C7E5FF;
  --text: #063462; --text-2: #063462; --text-3: #063462; --muted: #063462; --muted-2: #063462;
  --line: #063462; --line-2: #063462; --line-3: #063462; --line-4: #063462;
  --accent: #063462; --accent-hover: #0A4A8A; --accent-press: #063462; --accent-deep: #063462; --accent-soft: #B8DEFF; --accent-disabled: #5A7FA6; --accent-fg: #9DD1FF;
  --moss: #063462; --moss-hover: #0A4A8A; --moss-line: #063462; --moss-light: #9DD1FF; --moss-text: #063462;
  --water: #9DD1FF; --water-line: #063462; --dark: #063462; --dark-fg: #9DD1FF;
  --footer-bg: #063462; --footer-text: #9DD1FF; --footer-muted: #9DD1FF; --footer-line: #9DD1FF; --footer-small: #9DD1FF;
  --shadow-pop: 0 0 0 2px #063462; --shadow-toast: 0 0 0 2px #063462;
}
html[data-a11y="1"][data-ls="1"] body { letter-spacing: .12em; word-spacing: .16em; }
html[data-a11y="1"] body { line-height: 1.6; overflow-wrap: anywhere; }
html[data-a11y="1"] a { text-decoration: underline; }
html[data-a11y="1"] :focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
html[data-a11y="1"] .label, html[data-a11y="1"] .sp-card__body, html[data-a11y="1"] .fl-card__body, html[data-a11y="1"] .campaign,
html[data-a11y="1"] .teach-box, html[data-a11y="1"] .prep-box, html[data-a11y="1"] .confuse, html[data-a11y="1"] .picker,
html[data-a11y="1"] .note-box, html[data-a11y="1"] .map, html[data-a11y="1"] .hexmap, html[data-a11y="1"] .oopt-map { border: 2px solid var(--text); }
html[data-a11y="1"] .tile { border: 2px solid var(--text); color: var(--text); font-weight: 700; }
html[data-a11y="1"] .tile.is-on { background: var(--text); color: var(--bg); }
html[data-a11y="1"] .tile[data-l] { color: var(--text); }
html[data-a11y="1"] .ph img { filter: none; }
html[data-a11y="1"] .map__deco, html[data-a11y="1"] .hdr__demo { display: none; }
html[data-a11y="1"] .hdr { position: static; }
html[data-a11y="1"] .hdr__in { height: auto; min-height: var(--hdr-h); flex-wrap: wrap; row-gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
html[data-a11y="1"] .nav { flex-wrap: wrap; }
html[data-a11y="1"] .hdr__search { flex: 1 1 14rem; }
html[data-a11y="1"] .btn-a11y__t { display: inline; }
html[data-a11y="1"] .toc, html[data-a11y="1"] .doc-bar { position: static; }
html[data-a11y="1"] .home-top, html[data-a11y="1"] .home-hero, html[data-a11y="1"] .week, html[data-a11y="1"] .campaign,
html[data-a11y="1"] .sp-top, html[data-a11y="1"] .sp-body, html[data-a11y="1"] .reg-head, html[data-a11y="1"] .catalog,
html[data-a11y="1"] .where, html[data-a11y="1"] .protect, html[data-a11y="1"] .teach-box, html[data-a11y="1"] .teach-hero,
html[data-a11y="1"] .help-sec, html[data-a11y="1"] .g12, html[data-a11y="1"] .sources { grid-template-columns: minmax(0, 1fr) !important; }
html[data-a11y="1"] .g12 > *, html[data-a11y="1"] .teach-box > *, html[data-a11y="1"] .reg-head > * { grid-column: auto !important; }
html[data-a11y="1"] .home-aside, html[data-a11y="1"] .reg-head__side { padding-top: 0; }
html[data-a11y="1"] .toc { display: none; }
html[data-a11y="1"] .sp-grid, html[data-a11y="1"] .cards-3, html[data-a11y="1"] .cards-4, html[data-a11y="1"] .fl-grid, html[data-a11y="1"] .materials,
html[data-a11y="1"] .traits, html[data-a11y="1"] .threats, html[data-a11y="1"] .team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)) !important; }
html[data-a11y="1"] .fl-grid--5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)) !important; }
html[data-a11y="1"] .seg { display: flex; flex-wrap: wrap; min-width: 0; }
html[data-a11y="1"] .seg button { white-space: normal; flex: 1 1 auto; }
html[data-a11y="1"] .results__tools, html[data-a11y="1"] .results__tools label { flex-wrap: wrap; min-width: 0; max-width: 100%; }
html[data-a11y="1"] .results__tools .select { max-width: 100%; min-width: 0; }
html[data-a11y="1"] .region-list a { flex-wrap: wrap; }
html[data-a11y="1"] .statbar > span:first-child { min-width: 0; flex-basis: 100%; }
html[data-a11y="1"] .label__row { flex-wrap: wrap; }
html[data-a11y="1"] .kit a { flex-wrap: wrap; }
html[data-a11y="1"] .act-dark span { min-width: 0; overflow-wrap: anywhere; }
html[data-a11y="1"] .m3card__hint { max-width: calc(100% - 1rem); white-space: normal; text-align: center; }
html[data-a11y="1"][data-img="off"] .ph img, html[data-a11y="1"][data-img="off"] .viewer__img img, html[data-a11y="1"][data-img="off"] .upload img { display: none; }
html[data-a11y="1"][data-img="off"] .ph { background: transparent; border: 2px dashed var(--text); min-height: 3.5rem; height: auto !important; aspect-ratio: auto !important; }
html[data-a11y="1"][data-img="off"] .ph .ph__fb { display: none; }
html[data-a11y="1"][data-img="off"] .ph__alt { display: block; padding: .75rem 1rem; font-size: .9375rem; }
html[data-a11y="1"][data-img="off"] .gal__main, html[data-a11y="1"][data-img="off"] .pop__slides { height: auto; min-height: 4rem; }
html[data-a11y="1"][data-img="off"] .gal__main .ph:not(.is-on), html[data-a11y="1"][data-img="off"] .pop__slide:not(.is-on) { display: none; }
html[data-a11y="1"][data-img="off"] .gal__main .ph.is-on, html[data-a11y="1"][data-img="off"] .pop__slide.is-on, html[data-a11y="1"][data-img="off"] .pop__slide .ph { position: relative; }
html[data-a11y="1"][data-img="off"] .gal__thumbs, html[data-a11y="1"][data-img="off"] .cover svg { display: none; }
html[data-a11y="1"] .cat__n { box-shadow: 0 0 0 1px var(--text); }
html[data-a11y="1"] .season__c { box-shadow: inset 0 0 0 1px var(--text); }

/* ---------- 23. Печать ---------- */
@media print {
  @page { margin: 14mm; }
  html { font-size: 11pt; }
  body { background: #fff; }
  .hdr, .ftr, .a11y-bar, .skip, .toc, .sp-mobile-cta, .label__actions, .gal__full, .gal__thumbs, .no-print, .toast, .doc-bar, .mnav { display: none !important; }
  .sp-top { grid-template-columns: 1fr 1fr !important; }
  .gal__main { height: 9cm; }
  .sp-body { grid-template-columns: 1fr !important; margin-top: 1.5rem; }
  .sp-sections { gap: 1.25rem; }
  .sp-sec { break-inside: avoid; gap: .75rem; }
  .rail, #s-similar { display: none !important; }
  .paper { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .paper--a3 { page: a3; }
  a { color: inherit; text-decoration: none; }
}
@page a3 { size: A3 portrait; margin: 12mm; }

/* ---------- 24. Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
