/* Локальные шрифты направления B: Alegreya (заголовки) и Alegreya Sans (текст). OFL, файлы в fonts/.
   Источник: Google Fonts (woff2, подмножества cyrillic и latin), версии см. fonts/fonts.json. */
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-400-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-400-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; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-400-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: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-700-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: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-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; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-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: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-500-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: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-700-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; }

/* Переменные оформления. Направление B «Путеводитель» (DEC-022), обновлено по DEC-031 (27.10.2026).
   Палитра — из переменных Figma раздела B: бумага, открытка, чернила, приглушённый, линия, мох, ягода, солома.
   Шрифты — локальные Alegreya (заголовки) и Alegreya Sans (текст), см. fonts.css. */
:root {
  --font-body: "Alegreya Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Alegreya", Georgia, "Times New Roman", serif;

  --fs-base: 18px;
  --lh-base: 1.5;
  --fs-h1: clamp(34px, 4.6vw, 54px);
  --fs-h2: clamp(27px, 3.2vw, 38px);
  --fs-h3: 22px;
  --fs-small: 15px;
  --fs-tiny: 13px;

  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 56px;
  --space-6: 88px;

  --gutter: 16px;
  --container: 1180px;
  --radius: 3px;          /* почти прямые углы (DEC-031) */
  --radius-lg: 4px;
  --tap: 44px;

  /* Палитра DEC-031 (27.10.2026): развитие «Путеводителя» по концепции GPT с поправками управляющего.
     Тёплая бумага, тёмные чернила, оливковый акцент, терракотовая главная кнопка, тонкие линии.
     Контраст (WCAG): чернила к бумаге 11,2:1; приглушённый текст 5,7:1; олива 5,2:1;
     терракота к бумаге 5,2:1, белый текст на терракоте 5,9:1; граница полей 3,6:1; фокус 5,6:1. */
  --b-paper: #f5f1e7;
  --b-card: #fbf9f3;
  --b-ink: #23372e;
  --b-muted: #5a6156;
  --b-line: #d6cfbd;
  --b-olive: #5e6a3a;
  --b-olive-deep: #4a5530;
  --b-terracotta: #9e4d39;
  --b-straw: #c4993a;

  --c-bg: var(--b-paper);
  --c-surface: var(--b-card);
  --c-surface-2: #ece6d7;
  --c-text: var(--b-ink);
  --c-muted: var(--b-muted);
  --c-line: var(--b-line);
  --c-field-line: #857e6c;            /* границы полей формы: 3,6:1 к бумаге */
  --c-accent: var(--b-ink);           /* номера домов, вкладки — чернила */
  --c-accent-text: #ffffff;
  --c-accent-soft: #e4e3cc;           /* выделение выбранного в списке */
  --c-olive: var(--b-olive);          /* спокойный акцент: активная вкладка, мелкие метки */
  --c-action: var(--b-terracotta);    /* главное действие: проверить даты */
  --c-link: var(--b-olive-deep);      /* ссылки в тексте: 7,1:1 к бумаге */
  --c-focus: var(--b-straw);          /* декоративная солома (рамки черновиков) */
  /* Обводка фокуса: тёмная снаружи + светлый зазор внутри. #7a5a12 к бумаге 5,64:1, к карточке 6,05:1. */
  --c-focus-ring: #7a5a12;
  --c-focus-halo: #ffffff;
  --c-danger: var(--b-terracotta);
  --c-repair-bg: #f3e7d6;             /* фон пометки «Сейчас на ремонте» (DEC-035): чернила на нём 10,4:1 */
  --c-footer: var(--b-ink);
  --c-footer-text: #f5f1e7;

  /* статусы данных (режим проверки) */
  --st-confirmed: #3f5a30;
  --st-source: #2f4f74;
  --st-assumption: #8a5a12;
  --st-unknown: #5a6b78;
  --st-plan: #6b4b8a;
  --st-historical: #7a5d3b;
  --st-review-bg: #f6ecc9;

  --shadow: 0 6px 20px rgba(35, 55, 46, 0.10);
}

/* Базовые правила: сброс, типографика, сетка, доступность. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 700; letter-spacing: 0; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: var(--space-4); }
h3 { font-size: var(--fs-h3); margin-top: var(--space-3); }
p, ul, ol, dl { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.3em; }
a { color: var(--c-link, var(--c-accent)); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
small, .small { font-size: var(--fs-small); color: var(--c-muted); }
.muted { color: var(--c-muted); }
.unknown { color: var(--c-muted); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--space-4) 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { font-weight: 600; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--c-surface-2); padding: 1px 5px; border-radius: 4px; }

/* фокус виден всегда */
:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 3px; box-shadow: 0 0 0 4px var(--c-focus-halo); border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* сетка */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-5); }
.section-tight { padding-block: var(--space-4); }
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.flow > * + * { margin-top: var(--space-2); }
.stack { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* пропуск к содержимому */
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 14px; background: var(--c-surface); border: 2px solid var(--c-accent); border-radius: var(--radius); }
.skip-link:focus { top: var(--space-2); }

/* только при включённом JavaScript */
.js-only { display: none !important; }
html.js .js-only:not([hidden]) { display: revert !important; }
html.js .no-js-only { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Компоненты. Направление B «Путеводитель»: бумага, чернила, открытки, легенда с номерами. */

/* шапка и навигация */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; gap: var(--space-3); min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--c-text); font-size: 24px; line-height: 1.1; margin-right: auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--c-muted); font-size: var(--fs-tiny); margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; min-height: var(--tap); display: inline-flex; align-items: center; text-decoration: none; border-radius: var(--radius); color: var(--c-text); font-size: 17px; }
.nav a:hover { background: var(--c-accent-soft); }
.nav a[aria-current="page"] { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 400; }
.nav a.nav-cta { background: var(--c-accent); color: var(--c-accent-text); padding-inline: 18px; margin-left: 8px; font-weight: 400; }
.nav a.nav-cta:hover { filter: brightness(1.12); }
.nav-toggle { display: none !important; }
@media (max-width: 760px) {
  html.js .nav-toggle { display: inline-flex !important; }
  html.js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  html.js .nav.open { display: flex; }
  html.js .nav a { width: 100%; border-radius: var(--radius); }
  html.js .nav a.nav-cta { margin: 6px 0 0; justify-content: center; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: var(--radius); border: 1px solid var(--c-accent); background: var(--c-accent); color: var(--c-accent-text); font: inherit; font-weight: 400; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { filter: brightness(1.12); }
.btn-action { background: var(--c-action); border-color: var(--c-action); }
.btn-outline { background: transparent; color: var(--c-accent); }
.btn-outline:hover { background: var(--c-accent-soft); filter: none; }
.btn-quiet { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); font-weight: 400; }
.btn-quiet:hover { border-color: var(--c-text); filter: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
a { color: var(--c-link); }

/* панели и подписи */
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-3); }
.notice { background: var(--c-surface); border-left: 3px solid var(--c-accent); padding: var(--space-2) var(--space-3); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-small); }
.notice-warn { border-left-color: var(--c-focus); background: var(--st-review-bg); }
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); font-size: var(--fs-tiny); color: var(--c-muted); }
.badge-soon { background: var(--st-review-bg); color: #6b4e00; border-color: #e3cf8c; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.eyebrow { font-size: var(--fs-tiny); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.num-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); color: #fff; font: 700 13px var(--font-body); }

/* герой и главная */
.hero { padding-block: var(--space-4) var(--space-3); }
.hero p.lead { font-size: 1.1em; max-width: 50ch; }
.home-top { display: grid; gap: var(--space-4); grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; padding-block: var(--space-4) var(--space-3); }
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; } }
.home-top h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 8px; }
.home-top .lead { font-size: 17px; color: var(--c-muted); max-width: 40ch; }
.dates-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); margin-top: var(--space-3); overflow: hidden; }
.dates-bar .field { padding: 10px 16px; border-right: 1px solid var(--c-line); }
.dates-bar .field label { display: block; font-size: var(--fs-tiny); color: var(--c-muted); margin-bottom: 2px; }
.dates-bar .field input, .dates-bar .field select { border: 0; background: transparent; padding: 0; min-height: 30px; font: inherit; font-size: 18px; width: 100%; color: var(--c-text); }
.dates-bar .go { display: flex; align-items: stretch; }
.dates-bar .go .btn { border-radius: 0; height: 100%; padding-inline: 24px; }
.dates-bar + .small { margin-top: 8px; }
@media (max-width: 760px) { .dates-bar { grid-template-columns: 1fr 1fr; } .dates-bar .field:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--c-line); } .dates-bar .go { grid-column: 1 / -1; } .dates-bar .go .btn { width: 100%; } }

/* территории */
.terr-list { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.terr-card { display: block; padding: var(--space-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; }
.terr-card:hover { border-color: var(--c-text); }
.terr-card h3 { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills a, .pills button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); text-decoration: none; font: inherit; font-size: var(--fs-small); cursor: pointer; }
.pills a[aria-current="true"], .pills button[aria-selected="true"] { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.pills .count { color: inherit; opacity: .7; }

/* дома-открытки */
.house-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 1px 0 rgba(30,50,69,.06); }
.house-card:hover { border-color: var(--c-muted); }
.house-card .photo { aspect-ratio: 4 / 3; background: var(--c-surface-2); display: grid; place-items: center; color: var(--c-muted); font-size: var(--fs-small); text-align: center; padding: var(--space-2); margin: 10px 10px 0; border-radius: var(--radius); overflow: hidden; }
.house-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.house-card .num-badge { position: absolute; top: 18px; left: 18px; z-index: 1; box-shadow: 0 1px 4px rgba(0,0,0,.3); border: 2px solid #fff; }
.house-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.house-card h3 { margin: 0; font-size: 22px; }
.house-card h3 a { color: inherit; text-decoration: none; }
.house-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.house-card .eyebrow { margin-bottom: 0; }
.house-meta { font-size: var(--fs-small); color: var(--c-muted); }
.house-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 8px; font-size: var(--fs-small); }
.house-card .actions a, .house-card .actions button { color: var(--c-link); background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.house-card .actions a:hover, .house-card .actions button:hover { color: var(--c-text); }
.no-photo { display: grid; place-items: center; min-height: 160px; background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 10px, #e9ede1 10px 20px); color: var(--c-muted); font-size: var(--fs-small); text-align: center; padding: var(--space-3); border-radius: var(--radius); }

/* страница дома */
.house-head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; }
.gallery { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; }
.gallery .main { grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface-2); }
.gallery .main img, .gallery .thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .thumb { border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .main { grid-column: span 2; grid-row: auto; } }
.gallery-more { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 10px; }
.gallery-more img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.photo-note { font-size: var(--fs-tiny); color: var(--c-muted); margin-top: 6px; }
.house-layout { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .house-layout { grid-template-columns: 1fr; } }
.facts dt { font-weight: 600; margin-top: var(--space-2); }
.facts dd { margin: 2px 0 0; }
.variant { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-2); background: var(--c-surface); }
.variant h3 { margin-top: 0; font-size: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; padding: 0; list-style: none; }
.features li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px dotted var(--c-line); padding: 5px 0; font-size: var(--fs-small); }
.booking-aside { position: sticky; top: var(--space-2); }

/* форма */
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 4px; }
.field input, .field select { width: 100%; min-height: var(--tap); padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); font: inherit; color: inherit; }
.form-error { color: var(--c-danger); font-size: var(--fs-small); min-height: 1.4em; margin-top: 6px; }
.bnovo-frame { width: 100%; height: 820px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; margin-top: var(--space-3); }
textarea.draft { width: 100%; min-height: 220px; font: inherit; font-size: var(--fs-small); padding: 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }

/* место карты и будущие карты */
.map-stage { position: relative; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); }
.map-stage.placeholder { display: grid; place-items: center; padding: var(--space-3); text-align: center; }
.map-stage .map-caption { position: absolute; left: var(--space-2); bottom: var(--space-2); background: rgba(245,241,231,.9); padding: 3px 10px; border-radius: var(--radius); font-size: var(--fs-tiny); color: var(--c-muted); max-width: calc(100% - 24px); }
.map-stage.future { display: grid; place-items: center; min-height: 300px; }
.map-stage.future::before { content: ""; position: absolute; inset: -30px; filter: blur(14px); opacity: 0.6; background: repeating-radial-gradient(ellipse at 35% 60%, transparent 0 22px, #b9c3ac 24px 30px, transparent 32px 70px), linear-gradient(160deg, #e8e4d6, #cfd8c3); pointer-events: none; }
.map-stage.future .veil { position: relative; z-index: 1; background: rgba(245,241,231,.94); border-radius: var(--radius-lg); padding: var(--space-3); max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-2); }
.map-tabs button { min-height: 38px; padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface); font: inherit; font-size: var(--fs-small); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.map-tabs button[aria-selected="true"] { background: var(--c-accent); color: var(--c-accent-text); border-color: var(--c-accent); }
.map-house-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 0; list-style: none; margin: var(--space-2) 0 0; }
.map-house-list a { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.map-house-list .num { font-size: var(--fs-tiny); color: var(--c-muted); min-width: 1.6em; }

/* карта основного Хутора */
.map-layout { display: grid; gap: var(--space-3); grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map-main { order: -1; } }
.map-scene { position: relative; padding: 0; min-height: 0; aspect-ratio: 1320 / 750; background: var(--c-surface); }
.scene-svg { display: block; width: 100%; height: 100%; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.marker, .sign { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; text-decoration: none; }
.marker { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c-text); color: #fff; font: 700 13px var(--font-body); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.marker.is-selected { background: var(--c-action); }
.marker:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; box-shadow: 0 0 0 3px var(--c-focus-halo); }
.marker::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
@media (max-width: 760px) { .marker { width: 28px; height: 28px; font-size: 12px; } .marker::after { inset: -9px; } }
.sign { background: #e7d3a8; color: #3a2d1f; border: 1px solid #8a6b47; border-radius: 4px; padding: 3px 8px; font: 600 12px var(--font-body); white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.sign:hover { background: #f1e2bf; }
.sign-2 { transform: translate(-50%, 70%); }
@media (max-width: 760px) { .sign { font-size: 11px; padding: 2px 6px; } }
.map-scene .tod { fill: #0b1a33; opacity: 0; pointer-events: none; transition: opacity .6s; }
.map-scene.is-night .tod { opacity: .38; }
.map-scene.is-evening .tod { fill: #5a3410; opacity: .16; }
.map-scene .lights { opacity: 0; transition: opacity .6s; pointer-events: none; }
.map-scene.is-night .lights, .map-scene.is-evening .lights { opacity: 1; }
.map-scene .glow-win { fill: #ffd27a; }
.map-scene .smoke circle { fill: #e9e9e6; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.map-scene.is-night .smoke circle, .map-scene.is-evening .smoke circle, .map-scene[data-season="winter"] .smoke circle { animation: smoke 4.5s linear infinite; }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .55; } 100% { opacity: 0; transform: translate(6px, -40px) scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .map-scene .smoke circle { animation: none !important; } }
.map-tools { position: absolute; top: var(--space-2); left: var(--space-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 760px) { .map-tools { position: static; padding: 8px; background: var(--c-surface); border-top: 1px solid var(--c-line); } .map-scene { aspect-ratio: auto; } .map-scene .scene-svg { aspect-ratio: 1320 / 750; height: auto; } .markers { bottom: auto; aspect-ratio: 1320 / 750; } }
.map-tools button { min-height: 34px; padding: 5px 12px; border-radius: var(--radius); border: 1px solid var(--c-line); background: rgba(245,241,231,.92); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.map-tools button[aria-pressed="true"] { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.map-now { font-size: var(--fs-tiny); color: var(--c-muted); background: rgba(245,241,231,.9); padding: 4px 10px; border-radius: var(--radius); }
.map-status { font-size: var(--fs-small); margin-top: var(--space-2); }

/* легенда с номерами */
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legend a { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "n name" "n g"; column-gap: 10px; align-items: center; min-height: var(--tap); padding: 6px 10px; border-bottom: 1px dotted var(--c-line); text-decoration: none; color: inherit; border-radius: var(--radius); }
.legend a:hover { background: var(--c-surface); }
.legend a.selected { background: var(--c-accent-soft); }
.legend .num { grid-area: n; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.legend .name { grid-area: name; font-size: 17px; line-height: 1.2; }
.legend .g { grid-area: g; font-size: var(--fs-tiny); color: var(--c-muted); }
.legend .g .st { font-size: 10.5px; }

/* мобильные варианты: лента */

/* быстрая карточка: на компьютере — открытка с фото слева, на телефоне — нижняя карточка */
dialog.quick { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(760px, 94vw); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow); }
dialog.quick::backdrop { background: rgba(30, 50, 69, 0.55); }
dialog.quick .q-grid { display: grid; grid-template-columns: 1fr 1fr; }
dialog.quick .q-photo { background: var(--c-surface-2); min-height: 260px; }
dialog.quick .q-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
dialog.quick .q-photo.no-photo { min-height: 200px; }
dialog.quick .q-body { padding: var(--space-4) var(--space-3) var(--space-3); display: grid; gap: 10px; align-content: start; }
dialog.quick .q-body h2 { margin: 0; font-size: 30px; }
dialog.quick .q-close { position: absolute; top: 10px; right: 10px; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); font-size: 22px; cursor: pointer; color: var(--c-text); }
@media (max-width: 760px) {
  dialog.quick { width: 100%; max-width: 100%; margin: auto 0 0; position: fixed; bottom: 0; top: auto; max-height: 88dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: auto; overscroll-behavior: contain; }
  dialog.quick .q-grid { grid-template-columns: 1fr; }
  dialog.quick .q-photo { aspect-ratio: 16 / 9; min-height: 0; }
}

/* альманах и прочие блоки главной */
.almanac { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.almanac h3 { font-size: 24px; margin-top: 0; }
.almanac ul { list-style: none; padding: 0; margin: 0; }
.almanac li { border-bottom: 1px dotted var(--c-line); padding: 8px 0; font-size: var(--fs-small); }
.band { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.old-map { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.old-map img { width: 100%; height: auto; display: block; }

/* режим проверки */
.review-bar { background: var(--st-review-bg); border-bottom: 1px solid #e3cf8c; font-size: var(--fs-small); }
.review-bar .container { padding-block: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.review-bar details { display: inline-block; }
.review-bar summary { cursor: pointer; font-weight: 600; }
.review-bar .legend-st { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.st { display: inline; font-size: 11.5px; line-height: 1.6; padding: 1px 7px; border-radius: var(--radius); margin-left: 4px; vertical-align: middle; color: #fff; background: var(--st-unknown); white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; }
.st-confirmed { background: var(--st-confirmed); }
.st-source { background: var(--st-source); }
.st-assumption { background: var(--st-assumption); }
.st-unknown { background: var(--st-unknown); }
.st-plan { background: var(--st-plan); }
.st-historical { background: var(--st-historical); }
.st-review { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.review-only { border: 1px dashed var(--c-focus); border-radius: var(--radius); padding: var(--space-2) var(--space-3); background: var(--st-review-bg); font-size: var(--fs-small); }

/* подвал */
.site-footer { margin-top: var(--space-6); background: var(--c-footer); color: var(--c-footer-text); padding-block: var(--space-5) var(--space-4); font-size: var(--fs-small); }
.site-footer .container { display: grid; gap: var(--space-4); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer .footer-brand { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: #fff; }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--c-footer-text); }
.site-footer p { color: #b9c4cc; }
.site-footer .btn-quiet { background: transparent; color: #fff; border-color: #51657a; }

/* прочее */
.notfound { text-align: center; padding-block: var(--space-6); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--c-accent); color: var(--c-accent-text); padding: 12px 20px; border-radius: var(--radius); font-size: var(--fs-small); z-index: 50; display: none; max-width: 90vw; }
.toast.visible { display: block; }
.house-card.selected { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent-soft); }
.selected-badge { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; align-self: flex-start; }
img, svg, iframe, table { max-width: 100%; }
.house-head h1, .house-card h3 { overflow-wrap: anywhere; }

/* тексты владельца */
.owner-text h2 { font-size: var(--fs-h2); margin-top: var(--space-4); }
.owner-text h3 { margin-top: var(--space-3); }
.owner-text p, .owner-text li { max-width: 70ch; }
.draft-note { font-size: var(--fs-tiny); color: #6b4e00; background: var(--st-review-bg); border: 1px dashed var(--c-focus); border-radius: var(--radius); padding: 4px 10px; display: inline-block; margin-top: 6px; }
dialog.quick .q-intro { font-size: var(--fs-small); color: var(--c-muted); margin: 0; }

/* === Исправления по независимой проверке 27.10.2026 === */
/* Холст схемы: на компьютере — во всю ширину; на телефоне прокручивается вбок, чтобы номера не наезжали. */
.map-canvas { position: relative; width: 100%; aspect-ratio: 1320 / 750; }
.map-canvas .scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-canvas .markers { position: absolute; inset: 0; }
.map-scene { aspect-ratio: auto; }
@media (max-width: 760px) {
  .map-scene { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .map-canvas { width: 860px; max-width: none; }
  .map-main, .map-layout > * { min-width: 0; }
  .map-scene { max-width: 100%; }
  .map-scene .map-tools, .map-scene .map-caption { position: sticky; left: 0; display: flex; width: calc(100vw - 2 * var(--gutter) - 2px); max-width: 100%; }
  .map-scene .map-tools { flex-wrap: wrap; padding: 8px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
  .map-scene .map-tools button { min-height: var(--tap); }
  .map-scene .map-caption { background: var(--c-surface); border-radius: 0; padding: 6px 10px; bottom: auto; }
  .marker { width: 30px; height: 30px; font-size: 13px; }
  .marker::after { inset: -7px; }
}
[hidden] { display: none !important; }
/* Цели нажатия не меньше 44 px. */
.house-card .actions a, .house-card .actions button { min-height: var(--tap); display: inline-flex; align-items: center; }
.dates-bar .field input, .dates-bar .field select { min-height: var(--tap); }
.map-tabs button, .pills a, .pills button { min-height: var(--tap); }
.review-bar summary { display: inline-flex; align-items: center; min-height: var(--tap); }
.sign { min-height: 32px; }
.photo-link { display: block; width: 100%; height: 100%; }

/* ---------- Карта по 3D-модели (DEC-025, 27.10.2026) ---------- */
.map-3d { background: var(--c-surface); }
.map-3d .map-canvas { overflow: hidden; }
/* Искажённый лесной край модели уходит под мягкую виньетку в цвет бумаги. */
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 62%, transparent 100%); }
.map-3d .map-canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--c-line), inset 0 0 40px 10px var(--c-surface); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.leaders line { stroke: #fff; stroke-width: 1.5; }
.leaders circle { fill: #fff; stroke: var(--c-text); stroke-width: 1; }
.landmark { position: absolute; transform: translate(-50%, -50%); pointer-events: none; font: 600 12px/1.2 var(--font-body); color: #2c2418; background: rgba(246,241,226,.86); border: 1px solid rgba(138,107,71,.55); border-radius: 3px; padding: 1px 6px; white-space: nowrap; font-style: italic; }
.landmark-out { font-style: normal; background: rgba(246,241,226,.7); }
.marker-out { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: var(--radius); background: rgba(245,241,231,.95); border: 1px solid var(--c-line); box-shadow: 0 2px 6px rgba(0,0,0,.2); color: var(--c-text); font: 600 13px var(--font-body); text-decoration: none; white-space: nowrap; }
.marker-out .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-text); color: #fff; font-size: 13px; }
.marker-out.is-selected .n { background: var(--c-action); }
.map-3d .sign { min-height: 44px; transform: translate(-50%, -50%); }
.north { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(246,241,226,.92); border: 1px solid #8a6b47; font: 700 13px var(--font-head); color: #3a2d1f; padding-top: 14px; }
.north-arrow { position: absolute; left: 50%; top: 50%; width: 2px; height: 34px; margin: -17px 0 0 -1px; transform: rotate(var(--north)); }
.north-arrow::before { content: ""; position: absolute; left: -5px; top: 0; border: 6px solid transparent; border-bottom: 12px solid #a33a2c; border-top: 0; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.map-3d .map-bar .map-caption { position: static; background: none; padding: 0; }
.btn-small { min-height: var(--tap); padding: 6px 14px; font-size: var(--fs-small); }
.terr-map { margin-top: var(--space-3); }
@media (max-width: 760px) {
  .map-3d .map-bar { position: sticky; left: 0; width: calc(100vw - 2 * var(--gutter) - 2px); max-width: 100%; }
  .landmark { font-size: 11px; }
  .marker-out { font-size: 12px; }
}

/* ---------- Страница «Хутор в 3D» ---------- */
.hero-tight { padding-bottom: 0; }
.v3d { position: relative; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #eef0e6, #d9dccb); }
.v3d-stage { position: relative; height: min(72vh, 680px); min-height: 360px; touch-action: none; }
.v3d-stage canvas { display: block; width: 100%; height: 100%; }
.v3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3d-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 6px; border-radius: var(--radius); background: rgba(245,241,231,.94); border: 1px solid var(--c-line); box-shadow: 0 2px 6px rgba(0,0,0,.2); color: var(--c-text); font: 600 13px var(--font-body); text-decoration: none; white-space: nowrap; }
.v3d-label .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-text); color: #fff; font-size: 12px; }
.v3d-tools { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.v3d-tools .btn[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-text); }
.v3d-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: min(440px, calc(100% - 32px)); background: rgba(245,241,231,.96); border-radius: var(--radius-lg); padding: var(--space-3); text-align: center; box-shadow: var(--shadow); }
.v3d-status p { margin: 0 0 8px; }
.v3d-status progress { width: 100%; }
.v3d.is-ready .v3d-status { top: auto; bottom: 10px; transform: translateX(-50%); padding: 6px 12px; font-size: var(--fs-small); }
.v3d.is-ready .v3d-status p { margin: 0; }
@media (max-width: 760px) { .v3d-stage { height: 70vh; min-height: 320px; } .v3d-label { font-size: 12px; } }
.map-3d .sign { white-space: nowrap; }
.map-3d .at-r { transform: translate(-100%, -50%); }
.map-3d .at-l { transform: translate(0, -50%); }
.map-3d .at-t { transform: translate(-50%, 0); }
.map-3d .at-r.at-t { transform: translate(-100%, 0); }
.map-3d .at-r.at-b { transform: translate(-100%, -100%); }
.north { padding-top: 0; }
.north-arrow { height: 40px; margin-top: -20px; }
/* В 3D — только номер; название появляется при наведении и фокусе (метки рядом стоящих домов не перекрываются). */
.v3d-label { padding: 0; min-height: 0; gap: 0; background: none; border: 0; box-shadow: none; }
.v3d-label .n { width: 30px; height: 30px; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.v3d-label::after { content: ""; position: absolute; left: -7px; top: -7px; width: 44px; height: 44px; border-radius: 50%; }
.v3d-label .nm { display: none; margin-left: 6px; padding: 3px 10px; border-radius: var(--radius); background: rgba(245,241,231,.95); border: 1px solid var(--c-line); }
.v3d-label:hover .nm, .v3d-label:focus-visible .nm { display: inline-block; }
.v3d-label:hover, .v3d-label:focus-visible { z-index: 2; }
/* Зона нажатия номера на карте (указание №11): круг радиусом --hit от центра кружка, считается сборкой
   (половина расстояния до ближайшего номера, 22–28 px). Кружок 30 px с рамкой 2 px: центр — в 13 px от края
   внутренней области, от которой отсчитывается ::after. */
.map-3d .marker::after, .map-3d .marker:hover::after { inset: calc(13px - var(--hit, 22px)); border-radius: 50%; }
@media (max-width: 760px) { .map-3d .marker { width: 30px; height: 30px; } .map-3d .marker::after { inset: calc(13px - var(--hit, 22px)); } }
/* Слой номеров совпадает с картинкой по высоте (старое правило схемы задавало .markers пропорцию 1320/750
   на телефоне, и номера съезжали по вертикали). */
.map-3d .markers { aspect-ratio: auto; bottom: 0; }
/* Режим проверки: фото, исключённое с публичного сайта (content/photos.md, DEC-028). */
.photo-link { position: relative; }
.photo-excluded { position: absolute; left: 6px; right: 6px; bottom: 6px; background: #8f1d14; color: #fff; font-size: var(--fs-tiny); padding: 3px 8px; border-radius: 4px; }
/* 3D: после загрузки строка состояния уходит с экрана, но остаётся для экранного диктора (указание №15). */
.v3d.is-quiet .v3d-status { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; box-shadow: none; }
.v3d.is-failed .v3d-stage, .v3d.is-failed .v3d-tools, .v3d.is-failed .v3d-labels { display: none; }
.v3d.is-failed .v3d-status { position: static; transform: none; max-width: none; margin: 0; box-shadow: none; border-radius: 0; }
.v3d-fallback { margin-top: var(--space-3); }
.v3d-fallback .map-3d-link { display: none; }
/* Каталог: фильтр «Сезон поездки» (DEC-030). */
.season-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--space-2); }
.season-filter .btn[aria-pressed="true"] { background: var(--c-accent); color: var(--c-accent-text); }
.season-filter [data-season-count] { flex-basis: 100%; margin: 0; }
.house-card[hidden] { display: none !important; }
.plan-img { max-width: min(100%, 720px); background: #fff; }
.season-filter select { min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); font: inherit; }

/* Новое оформление (DEC-031): главная с панелью дома, страница дома, форма дат (указание №17),
   остальные страницы — каталог, территории, информационные, 3D, 404 (указание №18, DEC-035).
   Подключается после components.css.
   Цвета — только через переменные tokens.css. */

/* ---------- шапка (общая для всех страниц) ---------- */
.site-header { background: var(--c-bg); }
.site-header .container { min-height: 76px; }
.brand { font-size: 27px; }
.brand small { font-family: var(--font-head); font-style: italic; font-size: 16px; color: var(--c-muted); }
.nav { gap: 4px; }
.nav a { font-size: 16px; padding-inline: 12px; }
.nav a:hover { background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--c-olive); }
.nav a.nav-cta { background: var(--c-action); color: #fff; margin-left: var(--space-3); padding-inline: 22px; }
.nav a.nav-cta:hover { filter: brightness(1.1); text-decoration: none; }
@media (max-width: 760px) {
  .site-header .container { min-height: 64px; }
  .brand { font-size: 23px; }
  .brand small { font-size: 14px; }
  html.js .nav a.nav-cta { margin-left: 0; }
}

/* ---------- общие мелочи новых экранов ---------- */
.hm-meta { font-size: var(--fs-small); color: var(--c-muted); margin: 0; }
.hm-facts { font-size: var(--fs-small); margin: 0; }
.hm-nophoto { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: var(--c-muted); font-size: var(--fs-small); background: var(--c-surface-2); text-align: center; padding: 8px; }
.hm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--c-line); padding-top: var(--space-4); margin-bottom: var(--space-3); }
.hm-head h2 { margin: 0; }
.hm-all { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--c-action); font-size: var(--fs-small); }

/* ---------- главная: заголовок ---------- */
.hm-hero { padding-block: var(--space-4) var(--space-3); }
.hm-kicker { font-size: var(--fs-tiny); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 10px; }
.hm-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin: 0 0 14px; max-width: 16ch; }
.hm-lead { font-size: 19px; max-width: 46ch; margin: 0; }
@media (min-width: 1000px) {
  .hm-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--space-5); align-items: end; }
  .hm-kicker { grid-column: 1 / -1; }
  .hm-lead { padding-bottom: 10px; }
}

/* ---------- главная: вкладки территорий ---------- */
html.js .hm-tabs.js-only { display: grid !important; }
.hm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; max-width: calc(100% - 352px); }
.hm-tabs button { min-height: var(--tap); border-radius: var(--radius); border: 1px solid var(--c-field-line); background: transparent; color: var(--c-text); font: inherit; font-size: var(--fs-small); padding: 6px 12px; cursor: pointer; }
.hm-tabs button[aria-selected="true"] { background: var(--c-olive); border-color: var(--c-olive); color: #fff; }
.hm-tab-note { color: var(--c-muted); font-size: var(--fs-tiny); }
.hm-tabs button[aria-selected="true"] .hm-tab-note { color: inherit; }
.hm-tabs .badge { display: none; }
@media (max-width: 1000px) { .hm-tabs { max-width: none; } }
@media (max-width: 560px) {
  .hm-tabs { gap: 6px; }
  .hm-tabs button { padding: 6px 6px; font-size: 14px; line-height: 1.2; }
  .hm-tab-note { display: none; }
}

/* ---------- главная: карта и панель дома ---------- */
.hm-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.hm-map .map-3d { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.hm-map .map-bar { border-top: 0; background: var(--c-bg); padding: 8px 0 0; font-size: var(--fs-small); color: var(--c-muted); }
.hm-map .map-3d { background: var(--c-bg); }
.hm-map .map-3d .map-canvas { background: var(--c-surface); }
.map-bar-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
html.js .hm-full-btn.js-only { display: none !important; }
.hm-side { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); min-height: 100%; }
.hm-list { padding: 14px 14px 10px; }
.hm-side-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 0 0 2px; }
.hm-side-hint { font-size: var(--fs-tiny); color: var(--c-muted); margin: 0 0 8px; }
.hm-side .legend { gap: 0; }
.hm-side .legend a { border-bottom: 1px solid var(--c-line); padding: 6px 4px; border-radius: 0; }
.hm-side .legend li:last-child a { border-bottom: 0; }
.hm-side .legend a:hover { background: var(--c-bg); }
.hm-side .legend a.selected { background: var(--c-accent-soft); }
.hm-side .legend .num { background: var(--c-text); }
.hm-side .legend .name { font-size: 17px; }
.hm-side .hm-all { margin-top: 4px; }
.hm-pick { display: grid; outline-offset: -3px; }
.hm-pick-photo { aspect-ratio: 4 / 3; background: var(--c-surface-2); overflow: hidden; }
.hm-pick-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-pick-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.hm-pick-body h3 { margin: 0; font-size: 28px; }
.hm-actions { display: grid; gap: 8px; margin: 6px 0 0; }
.hm-actions .btn { width: 100%; }
.hm-back { justify-self: start; min-height: var(--tap); border: 0; background: none; padding: 0 2px; font: inherit; font-size: var(--fs-small); color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map-3d .marker.is-selected { background: var(--c-action); }
@media (max-width: 1000px) {
  .hm-stage { grid-template-columns: 1fr; }
  .hm-side { min-height: 0; }
  .hm-side .legend { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 16px; }
  .hm-side .legend li:last-child a { border-bottom: 1px solid var(--c-line); }
  .hm-pick { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .hm-pick-photo { aspect-ratio: auto; min-height: 100%; }
  .hm-actions { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
@media (max-width: 760px) {
  html.js .hm-full-btn.js-only:not([hidden]) { display: inline-flex !important; }
  .hm-map .map-bar { position: static; width: auto; padding: 8px 0 0; }
  /* Обзор (со скриптом): полотно 860 px сжато до ширины рамки, прокрутки нет. */
  .hm-map .map-3d.is-overview { overflow: hidden; cursor: zoom-in; }
  .hm-map .map-3d.is-overview .map-canvas { width: 860px; }
  .hm-side .legend { grid-template-columns: 1fr; }
  .hm-side .legend a { min-height: var(--tap); grid-template-areas: "n name g"; grid-template-columns: 30px minmax(0, 1fr) auto; }
  .hm-side .legend .g { font-size: var(--fs-tiny); }
  .hm-side .legend .name { font-size: 16px; }
  .hm-list { padding: 10px 12px 6px; }
  .hm-side-title { font-size: 20px; }
  /* Полоска выбранного дома под картой. */
  .hm-pick { grid-template-columns: 112px minmax(0, 1fr); }
  .hm-pick-photo { aspect-ratio: auto; min-height: 0; }
  .hm-pick-body { padding: 10px 12px 12px; gap: 6px; }
  .hm-pick-body h3 { font-size: 22px; }
  .hm-actions { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .hm-pick { grid-template-columns: 1fr; }
  .hm-pick-photo { aspect-ratio: 16 / 9; }
}

/* Полноэкранная карта на телефоне. */
html.map-full-open { overflow: hidden; }
dialog.map-full { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--c-bg); color: var(--c-text); }
dialog.map-full[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog.map-full::backdrop { background: rgba(35, 55, 46, 0.6); }
.mf-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.mf-bar h2 { margin: 0 auto 0 0; font-size: 20px; }
.mf-zoom { display: inline-flex; gap: 6px; }
.mf-zoom .btn { width: var(--tap); padding: 0; font-size: 22px; }
.mf-area { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--c-surface); }
.mf-area .map-canvas { width: 860px; max-width: none; }
.mf-hint { margin: 0; padding: 8px 12px; font-size: var(--fs-tiny); color: var(--c-muted); border-top: 1px solid var(--c-line); background: var(--c-surface); }

/* ---------- главная: даты и состав ---------- */
.hm-dates-wrap { margin-top: var(--space-4); }
.hm-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(200px, auto); gap: 12px 16px; align-items: end; padding: 16px 20px; margin: 0; background: var(--c-surface); border: 1px solid var(--c-field-line); border-radius: var(--radius); overflow: visible; }
.hm-dates .field, .hm-dates .field:nth-child(3) { padding: 0; border: 0; grid-column: auto; }
.hm-dates .field label { font-size: var(--fs-small); color: var(--c-text); margin-bottom: 4px; display: block; }
.hm-dates .field input, .hm-dates .field select { width: 100%; min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--c-field-line); border-radius: var(--radius); background: var(--c-bg); font: inherit; font-size: 17px; color: var(--c-text); }
.hm-dates .go .btn { width: 100%; border-radius: var(--radius); height: auto; min-height: var(--tap); }
.hm-ages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 16px; }
.hm-note { grid-column: 5; margin: -6px 0 0; font-size: var(--fs-tiny); color: var(--c-muted); text-align: center; }
@media (max-width: 1000px) {
  .hm-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-dates .go, .hm-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .hm-dates { padding: 14px; gap: 10px 12px; } .hm-ages { grid-template-columns: 1fr 1fr; } }

/* ---------- главная: три территории ---------- */
.hm-terr, .hm-houses, .hm-more { margin-top: var(--space-5); }
.hm-terr-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-terr-list li + li { border-left: 1px solid var(--c-line); }
.hm-terr-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding: 4px 24px 8px; color: inherit; text-decoration: none; height: 100%; }
.hm-terr-list li:first-child a { padding-left: 0; }
.hm-num { font-family: var(--font-head); font-size: 44px; line-height: 1; color: var(--c-olive); }
.hm-terr-body { display: grid; gap: 4px; align-content: start; }
.hm-terr-body strong { font-family: var(--font-head); font-size: 25px; line-height: 1.15; }
.hm-sub { font-size: var(--fs-small); color: var(--c-muted); }
.hm-text { font-size: var(--fs-small); margin-top: 6px; }
.hm-go { color: var(--c-action); font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.hm-terr-list a:hover .hm-go { text-decoration-thickness: 2px; }
.hm-chev { display: none; }
@media (max-width: 900px) {
  .hm-terr-list { grid-template-columns: 1fr; }
  .hm-terr-list li + li { border-left: 0; border-top: 1px solid var(--c-line); }
  .hm-terr-list a, .hm-terr-list li:first-child a { grid-template-columns: 56px minmax(0, 1fr) 20px; padding: 12px 0; align-items: center; }
  .hm-num { font-size: 36px; }
  .hm-terr-body strong { font-size: 22px; }
  .hm-text { margin-top: 0; }
  .hm-go { display: none; }
  .hm-chev { display: block; font-size: 28px; color: var(--c-action); line-height: 1; }
}

/* ---------- главная: дома с характером ---------- */
.hm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-tile { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hm-tile-photo { display: block; aspect-ratio: 3 / 2; background: var(--c-surface-2); overflow: hidden; }
.hm-tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hm-tile:hover .hm-tile-photo img { transform: scale(1.02); }
.hm-tile-body { padding: 14px 16px 12px; display: grid; gap: 4px; flex: 1; align-content: start; }
.hm-tile-body h3 { margin: 0; font-size: 25px; }
.hm-tile-body h3 a { color: inherit; text-decoration: none; }
.hm-tile-body h3 a:hover { text-decoration: underline; }
.hm-links { display: flex; flex-wrap: wrap; margin: 8px 0 0; border-top: 1px solid var(--c-line); padding-top: 4px; }
.hm-links a { flex: 1 1 auto; min-height: var(--tap); display: inline-flex; align-items: center; color: var(--c-action); font-size: var(--fs-small); }
.hm-links a + a { justify-content: flex-end; border-left: 1px solid var(--c-line); padding-left: 12px; }
.hm-all-bottom { display: none; margin-top: 16px; }
.hm-all-bottom .btn { color: var(--c-action); border-color: var(--c-action); }
@media (max-width: 900px) { .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-houses .hm-tile:nth-child(n+3) { display: none; } .hm-all-top { display: none; } .hm-all-bottom { display: block; } }
@media (max-width: 560px) { .hm-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hm-tile-photo img { transition: none; } }

/* ---------- главная: сезоны и короткие ссылки ---------- */
.hm-more { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 1.2fr); gap: 24px; border-top: 1px solid var(--c-line); padding-top: var(--space-4); }
.hm-seasons-head h2 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 34px); }
.hm-seasons-head p { font-size: var(--fs-small); color: var(--c-muted); }
.hm-season-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
.hm-season-list a { display: grid; gap: 4px; padding: 6px 16px 10px; color: inherit; text-decoration: none; border-top: 1px solid var(--c-line); margin-inline: 8px; height: 100%; align-content: start; }
.hm-season-list strong { font-family: var(--font-head); font-size: 23px; }
.hm-season-list span { font-size: var(--fs-small); color: var(--c-muted); }
.hm-season-list .hm-go { color: var(--c-action); }
.hm-links-list, .hm-more .hm-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 0; }
.hm-more .hm-links li { display: grid; gap: 2px; padding: 4px 0 10px; border-bottom: 1px solid var(--c-line); }
.hm-more .hm-links li:last-child { border-bottom: 0; }
.hm-more .hm-links a { font-weight: 600; color: var(--c-text); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; border: 0; padding: 0; font-size: 17px; }
.hm-more .hm-links a + a { border: 0; padding: 0; }
.hm-more .hm-links span { font-size: var(--fs-small); color: var(--c-muted); }
.hm-more .hm-links span a { display: inline; min-height: 0; font-weight: 400; font-size: inherit; color: var(--c-link); }
@media (max-width: 1000px) {
  .hm-more { grid-template-columns: 1fr; }
  .hm-season-list { border: 0; }
  .hm-season-list a { margin-inline: 0 12px; padding-inline: 0; }
}
@media (max-width: 560px) {
  .hm-season-list { grid-template-columns: 1fr; }
  .hm-season-list a { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; margin: 0; padding: 8px 0; min-height: var(--tap); }
  .hm-season-list .hm-go { display: none; }
}

/* ---------- страница дома ---------- */
.hs-hero { padding-block: var(--space-3) var(--space-2); }
.hs-crumbs { font-size: var(--fs-small); color: var(--c-muted); margin: 0 0 6px; }
.hs-crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.hs-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 0; }
.hs-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-4); align-items: start; }
.hs-gallery .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hs-gallery .gallery .main { grid-column: 1 / -1; grid-row: auto; border-radius: var(--radius); }
.hs-gallery .gallery .main img { aspect-ratio: 3 / 2; }
.hs-gallery .gallery .thumb img { aspect-ratio: 4 / 3; }
.hs-more-photos { margin-top: 10px; }
.hs-more-photos summary { display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer; color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
.hs-passport { position: sticky; top: var(--space-2); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px 20px; }
.hs-passport h2 { margin: 0 0 6px; font-size: 26px; }
.hs-lines { margin: 0 0 12px; }
.hs-lines > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.hs-lines dt { font-size: var(--fs-small); color: var(--c-muted); }
.hs-lines dd { margin: 0; font-size: var(--fs-small); }
.hs-unknown { font-size: var(--fs-small); background: var(--c-bg); border-left: 3px solid var(--c-olive); padding: 8px 12px; }
.hs-passport .btn { margin: 4px 0 10px; }
.hs-passport .small { margin-bottom: 8px; }
.hs-more { margin-top: var(--space-4); max-width: 820px; }
.hs-more > h2:first-child { margin-top: 0; }
.hs-more .variant { border-top: 1px solid var(--c-line); padding-top: 8px; }
@media (max-width: 1000px) {
  .hs-top { grid-template-columns: 1fr; }
  .hs-passport { position: static; }
}
@media (max-width: 560px) {
  .hs-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-lines > div { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .hs-passport { padding: 14px 14px 16px; }
}

/* ---------- выбор дат и переход в Bnovo ---------- */
.bk-page .field input, .bk-page .field select { border-color: var(--c-field-line); background: var(--c-bg); }
.bk-page .panel { border-radius: var(--radius); }
.bk-page #booking-form { background: var(--c-surface); border: 1px solid var(--c-field-line); border-radius: var(--radius); padding: 18px 20px; }
.bk-page #booking-form .btn[type="submit"] { background: var(--c-action); border-color: var(--c-action); }
.bk-page #booking-result .notice { border-left-color: var(--c-olive); }
.bk-page #bnovo-open { background: var(--c-action); border-color: var(--c-action); }
.bk-hero .hm-lead { margin-top: 10px; }
.bk-aside { background: transparent; border: 0; border-left: 1px solid var(--c-line); border-radius: 0; padding: 0 0 0 var(--space-3); }
.bk-aside h2 { font-size: 24px; }
.bk-aside ul { padding-left: 1.1em; display: grid; gap: 8px; }
@media (max-width: 900px) { .bk-aside { border-left: 0; border-top: 1px solid var(--c-line); padding: var(--space-3) 0 0; } }
/* Цели нажатия от 44 px: заголовки-ссылки карточек и название сайта. */
.hm-tile-body h3 a { display: inline-flex; align-items: center; min-height: var(--tap); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: var(--tap); }
html.js .bk-page .form-grid.js-only { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bk-page .form-grid .field label { font-weight: 400; }
.bk-page .ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
@media (max-width: 300px) { html.js .bk-page .form-grid.js-only { grid-template-columns: 1fr; } }
/* 320–380 px: дата целиком помещается в половину ширины (сетка 2×2 сохраняется). */
@media (max-width: 380px) {
  .hm-dates .field input, .hm-dates .field select, .bk-page .field input, .bk-page .field select { font-size: 15px; padding: 6px 6px; }
  .hm-dates { padding: 12px; gap: 10px 8px; }
  .bk-page #booking-form { padding: 14px 12px; }
  html.js .bk-page .form-grid.js-only { gap: 12px 8px; }
}

/* ---------- остальные страницы (указание №18, DEC-031 этап 2) ---------- */
.pg-hero .hm-lead { margin-top: 10px; }
.pg-badge { margin: 12px 0 0; }
.pg-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-5); align-items: start; margin-top: var(--space-3); }
.pg-body:not(:has(.pg-side)) { grid-template-columns: minmax(0, 820px); }
.pg-text { max-width: 760px; }
.pg-text > :first-child, .pg-text .owner-text > :first-child { margin-top: 0; }
.pg-text h2 { font-size: clamp(24px, 2.4vw, 30px); border-top: 1px solid var(--c-line); padding-top: var(--space-3); margin-top: var(--space-4); }
.pg-text .owner-text h2:first-child { border-top: 0; padding-top: 0; }
.pg-side { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: var(--space-2); }
.pg-side h2 { font-size: 22px; margin: 0 0 10px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-3) 0 0; }
.pg-side .pg-actions { display: grid; margin-top: 0; }
.pg-ask { font-size: var(--fs-small); background: var(--c-surface); border-left: 3px solid var(--c-olive); padding: 10px 14px; margin-top: var(--space-3); }
.pg-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: var(--space-3); }
.pg-card h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 22px; }
.pg-card p { margin: 0; }
.pg-note { font-size: var(--fs-small); color: var(--c-muted); margin-top: 10px; }
.pg-houselist { list-style: none; padding: 0; margin: 0; }
.pg-houselist a { display: grid; min-height: var(--tap); padding: 6px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); }
.pg-houselist li:last-child a { border-bottom: 0; }
.pg-houselist .nm { font-size: 17px; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; }
.pg-houselist a:hover .nm { text-decoration-color: currentColor; }
.pg-houselist .tr { font-size: var(--fs-tiny); color: var(--c-muted); }
.pg-contact { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: var(--space-3); }
.pg-contact-label { font-size: var(--fs-small); color: var(--c-muted); margin: 0; }
.pg-phone { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 700; margin: 2px 0 10px; }
.pg-phone a { color: var(--c-text); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.pg-phone a:hover { text-decoration: underline; }
.pg-contact .hs-lines a { display: inline-flex; align-items: center; min-height: var(--tap); }
.pg-contact .hs-lines > div { align-items: center; }
.pg-contact .hs-lines > div:last-child { border-bottom: 0; }
.pg-map { margin-top: var(--space-4); }
.pg-map .map-stage.future { min-height: 220px; }
.pg-houses { margin-top: var(--space-5); }
.pg-houses .hm-head { margin-bottom: var(--space-3); }
.pg-houses .hm-head .hm-sub { margin: 4px 0 0; }
.pg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-tiles { grid-template-columns: 1fr; } }
.pg-filter { display: grid; gap: 10px; margin-top: var(--space-3); padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-field-line); border-radius: var(--radius); }
html.js .pg-filter.js-only { display: grid !important; }
.pg-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-filter-label { font-size: var(--fs-small); min-width: 120px; }
.pg-filter .btn { min-height: var(--tap); }
.pg-filter .btn[aria-pressed="true"] { background: var(--c-olive); border-color: var(--c-olive); color: #fff; }
.pg-filter select { min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--c-field-line); border-radius: var(--radius); background: var(--c-bg); font: inherit; color: var(--c-text); }
.pg-filter [data-season-count] { margin: 0; }
.pg-filter [data-season-count]:empty { display: none; }
.hm-tile.selected { border-color: var(--c-olive); box-shadow: 0 0 0 1px var(--c-olive); }
.hm-tile .selected-badge { justify-self: start; }
.hm-repair { font-size: var(--fs-small); margin: 4px 0 0; padding: 6px 10px; background: var(--c-repair-bg); border-left: 3px solid var(--c-action); color: var(--c-text); }
.hm-repair a { color: var(--c-text); }
.hs-hero .hm-repair { display: inline-block; margin-top: 10px; font-size: 16px; }
.pg-3d .v3d { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.pg-3d .v3d-fallback h2 { margin-top: 0; }
.pg-404 { padding-block: var(--space-6); text-align: center; display: grid; justify-items: center; }
.pg-404 h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 12px; }
.pg-404 .pg-actions { justify-content: center; }
@media (max-width: 900px) {
  .pg-body { grid-template-columns: 1fr; gap: var(--space-4); }
  .pg-side { position: static; }
}
@media (max-width: 560px) {
  .pg-filter-label { min-width: 0; flex-basis: 100%; }
  .pg-contact { padding: 14px; }
  .pg-404 { padding-block: var(--space-5); }
}

/* Указание №18б: красным выделен только выбранный дом. Наведение — кольцо цвета чернил, а не заливка. */
.marker:hover:not(.is-selected), .marker-out:hover:not(.is-selected) .n { background: var(--c-text); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-text); }
.v3d-label:hover .n { background: var(--c-text); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-text); }

/* DEC-075: локальное развитие эскиза. Оригинальные фотографии и карта. */
:root{--font-body:"Alegreya Sans",system-ui,sans-serif;--font-head:Georgia,"Times New Roman",serif;--c-bg:#f6f3eb;--c-surface:#faf8f1;--c-surface-2:#e7e8d8;--c-text:#29352c;--c-muted:#5b6257;--c-line:#dcd8cb;--c-field-line:#989b88;--c-action:#626d38;--c-olive:#626d38;--c-link:#4e5c2e;--c-accent:#626d38;--radius:12px;--radius-lg:16px;--container:1320px;--gutter:44px;--fs-h2:clamp(28px,3vw,42px)}
[hidden]{display:none!important}h1,h2,h3,h4{font-weight:400;letter-spacing:-.035em}a,button{-webkit-tap-highlight-color:transparent}.btn{border-radius:25px;padding:10px 22px}.btn-action:hover,.nav .nav-cta:hover{background:#4c592c}.brand{font-family:var(--font-head);font-weight:400;letter-spacing:-.04em;font-size:29px}.brand small{display:none}.site-header{border:0;background:var(--c-bg)}.site-header .container{min-height:92px}.site-header .nav{gap:12px}.nav a{font-size:17px}.nav a.nav-cta{border-radius:24px;margin-left:24px}.rd-home .site-header{position:absolute;left:0;right:0;top:0;z-index:8;background:transparent;color:#fff}.rd-home .site-header a:not(.nav-cta){color:#fff}.rd-home .nav a[aria-current=page]{box-shadow:none}.rd-hero{position:relative;isolation:isolate;min-height:540px;background:#223227;overflow:hidden;color:#fff}.rd-hero-photo{position:absolute;z-index:-3;right:0;top:0;width:72%;height:100%;object-fit:cover;object-position:center 31%}.rd-hero-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#223227 0%,rgba(26,43,28,.95) 18%,rgba(26,43,28,.72) 37%,rgba(26,43,28,.12) 68%,transparent 100%),linear-gradient(0deg,rgba(20,31,22,.25),transparent 45%)}.rd-hero-content{padding-block:155px 66px;position:relative}.rd-hero h1{font-size:clamp(48px,5.3vw,76px);line-height:1.07;max-width:740px;margin:0 0 28px;letter-spacing:-.05em;text-wrap:balance}.rd-hero p{font-size:21px;line-height:1.4;max-width:400px;margin:0 0 28px}.rd-hero .btn{gap:28px;min-width:180px}.rd-home .hm-dates-wrap{margin-top:24px}.hm-dates{grid-template-columns:1.1fr 1.1fr .65fr .65fr 1fr;padding:20px 28px 14px;border:1px solid var(--c-line);border-radius:18px;background:transparent;gap:6px 24px}.hm-dates .field input,.hm-dates .field select{border:0;border-radius:4px;padding:6px 0;background:transparent}.hm-dates>.field{border-right:1px solid var(--c-line);padding-right:20px}.hm-dates .field label{font-size:15px}.hm-dates .go .btn{border-radius:22px}.hm-note{grid-column:1/-1;margin:2px 0 0;text-align:left;font-size:14px}.rd-home .hm-map{position:relative;margin-top:48px;scroll-margin-top:24px}.rd-map-heading{margin-bottom:24px;max-width:55%}.rd-map-heading h2{margin:0 0 8px;font-size:clamp(28px,3vw,42px)}.rd-map-heading p{color:var(--c-muted);font-size:19px;margin:0}.rd-home .hm-tabs{position:absolute;right:0;top:6px;max-width:44%;width:550px;grid-template-columns:.7fr 1fr 1.1fr;gap:10px}.hm-tabs button{border:0;font-size:16px;border-radius:24px;line-height:1.2;padding:9px 10px}.hm-tab-note{display:block;font-size:12px;margin-top:4px}.hm-stage{grid-template-columns:minmax(0,1fr) minmax(275px,29%);gap:20px;align-items:stretch}.hm-side{border-radius:16px;overflow:hidden;background:transparent}.hm-pick{height:100%}.hm-pick-photo{aspect-ratio:3/2}.hm-pick-body{padding:18px 22px;gap:8px}.hm-pick-body h3{font-size:32px;line-height:1.08}.hm-pick .hm-meta{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.hm-pick .hm-facts{font-size:19px}.hm-back{font-size:15px;min-height:36px}.hm-pick .hm-actions{margin-top:auto;gap:9px}.hm-actions .btn{font-size:17px;min-height:44px;border-radius:24px}.hm-map .map-3d{height:100%;border:0;border-radius:16px;background:var(--c-bg);min-height:0}.map-canvas{overflow:hidden}.hm-map .map-3d .map-canvas{background:#77846c}.rd-home .map-bar{padding:12px!important;background:var(--c-surface)!important;border-radius:0 0 16px 16px}.map-bar-actions{width:100%;justify-content:space-between}.rd-home .hm-full-btn.js-only:not([hidden]){display:inline-flex!important}.map-bar .btn{min-height:42px;font-size:15px;padding:7px 17px;background:var(--c-surface)}.map-bar .map-3d-link{background:var(--c-action);color:#fff;border-color:var(--c-action)}.map-3d .marker{background:#faf8ef;color:var(--c-text);border-color:#fff;box-shadow:0 2px 9px #0004}.map-3d .marker.is-selected{background:var(--c-olive);color:#fff}.map-3d .landmark{font-style:normal;border:0;background:#faf8efe6;border-radius:8px;padding:3px 7px}.map-3d .sign,.map-3d .marker-out{border-radius:15px;background:#faf8efee}.rd-legend{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;max-width:100%;justify-content:center}.rd-legend a{display:flex;align-items:center;gap:7px;color:var(--c-text);text-decoration:none;font-size:15px;min-height:44px}.rd-legend a span{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--c-field-line);border-radius:50%;font-size:13px}.rd-legend a.selected span{background:var(--c-olive);color:white}.rd-home .hm-houses{margin-top:40px}.hm-head{border-top:1px solid var(--c-line);padding-top:28px;margin-bottom:25px}.hm-head h2{font-size:clamp(28px,3vw,42px)}.hm-tile{border:0;background:transparent;overflow:visible}.hm-tile-photo{border-radius:16px;aspect-ratio:1.55}.hm-tile-body{padding:14px 3px;gap:5px}.hm-tile-body h3{font-size:28px}.hm-tile-body .hm-meta{font-size:13px}.hm-tile-body .hm-facts{font-size:16px}.hm-tile-body .hm-links{font-size:15px;margin-top:10px}.hm-tile-body .selected-badge{display:none}.hm-tile-photo img{transition:transform .25s}.rd-prep{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:22px;background:#e3e5d3;border-radius:18px;padding:28px 30px;margin-top:30px;align-items:center}.rd-prep h2{font-size:34px;margin:0}.rd-prep>div{border-left:1px solid #c2c7ae;padding-left:24px;font-size:16px}.rd-prep p{margin:5px 0 0}.rd-prep a{color:inherit}.rd-prep small{font-size:14px}.rd-explore{display:flex;flex-wrap:wrap;gap:18px 30px;margin-top:28px;margin-bottom:18px;font-size:16px}.site-footer{background:var(--c-bg);color:var(--c-text);border-top:1px solid var(--c-line);padding-block:28px;margin-top:32px}.site-footer a,.site-footer .small{color:var(--c-muted)}.site-footer .container{gap:24px}.site-footer .footer-brand{font-weight:400;font-size:26px;font-family:var(--font-head)}.site-footer p,.site-footer li{font-size:14px}.site-footer .btn{color:var(--c-text);border:1px solid var(--c-line);font-size:14px}.pg-hero{padding-top:32px}.pg-hero h1,.hs-hero h1{font-size:clamp(38px,5vw,64px)}.hs-gallery img,.pg-photo img{border-radius:14px}.rd-viewer{min-height:100%;border:0;border-radius:16px;background:#c4cbb9}.rd-viewer .v3d-stage{height:clamp(410px,38vw,580px);min-height:410px}.rd-viewer .v3d-tools{z-index:5;gap:6px;left:12px;right:12px;top:auto;bottom:12px}.v3d-tools .btn{font-size:14px;min-height:40px;padding:7px 12px;background:#faf8efed;border:1px solid #d3d7c3;border-radius:20px}.rd-viewer .v3d-label .n{background:#faf8ef;color:var(--c-text);border-color:#fff}.rd-viewer .v3d-label.selected .n{background:var(--c-olive);color:#fff}.rd-viewer.is-failed{min-height:120px}.rd-viewer.is-failed .v3d-status{position:static;transform:none;max-width:none}.rd-viewer:fullscreen,.rd-viewer.rd-fullscreen{border-radius:0;width:100vw;height:100dvh;background:#c4cbb9}.rd-viewer:fullscreen .v3d-stage,.rd-viewer.rd-fullscreen .v3d-stage{height:100dvh}.rd-viewer.rd-fullscreen{position:fixed;inset:0;z-index:100}.rd-lock{overflow:hidden}.rd-viewer .v3d-status{z-index:6;font-size:17px}.rd-viewer.is-ready .v3d-status{bottom:70px}.rd-viewer .v3d-labels{z-index:3}.rd-home .hm-list .legend{display:grid;grid-template-columns:1fr}.rd-home .map-panel[hidden]{display:none!important}
@media(min-width:761px) and (max-width:1100px){.hm-stage{grid-template-columns:minmax(0,1fr) 270px}.hm-pick{display:flex;flex-direction:column}.hm-pick-photo{aspect-ratio:1.5;min-height:0}.hm-pick-body{padding:14px;flex:1}.hm-pick-body h3{font-size:28px}.hm-actions{grid-template-columns:1fr}.rd-map-heading{max-width:50%}.rd-map-heading h2{font-size:32px}.rd-home .hm-tabs{max-width:48%}.rd-viewer .v3d-stage{min-height:420px}.rd-hero h1{font-size:60px}.site-header .nav{gap:0}.nav a.nav-cta{margin-left:4px}.nav a{padding-inline:8px}.brand{font-size:25px}}
@media(max-width:1000px){:root{--gutter:28px}.hm-dates{grid-template-columns:1fr 1fr .7fr .7fr;gap:8px 16px}.hm-dates .go{grid-column:1/-1}.hm-note{grid-column:1/-1}.rd-prep{grid-template-columns:1fr 1fr}.rd-prep>div{border-left:0;padding-left:0}.rd-prep h2{font-size:30px}}
@media(max-width:760px){:root{--gutter:20px;--fs-base:18px}.site-header .container{min-height:76px}.brand{font-size:24px}.rd-home .nav-toggle{color:white;border-color:#fff8}.rd-home .nav.open{background:#f6f3eb;box-shadow:0 5px 20px #0003;padding:12px;border-radius:12px;top:65px}.rd-home .nav.open a:not(.nav-cta){color:var(--c-text)}.rd-hero{min-height:600px}.rd-hero-photo{width:100%;height:100%;object-position:60% center}.rd-hero-shade{background:linear-gradient(0deg,rgba(22,36,24,.95) 0%,rgba(22,36,24,.8) 20%,rgba(22,36,24,.05) 75%),linear-gradient(180deg,rgba(22,36,24,.55),transparent 24%)}.rd-hero-content{padding-top:315px;padding-bottom:36px}.rd-hero h1{font-size:clamp(38px,8vw,56px);max-width:520px;line-height:1.08;margin-bottom:18px}.rd-hero p{font-size:18px;max-width:330px;margin-bottom:20px}.rd-hero .btn{font-size:17px;min-height:44px}.rd-home .hm-dates-wrap{margin-top:20px}.hm-dates{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;gap:10px 16px}.hm-dates>.field{padding-right:0;border-right:0;min-width:0}.hm-dates .field input,.hm-dates .field select{width:100%;min-width:0;font-size:17px;border-bottom:1px solid var(--c-line)}.hm-dates .go,.hm-note{grid-column:1/-1}.hm-note{font-size:13px}.hm-ages{grid-template-columns:1fr}.rd-home .hm-map{margin-top:34px}.rd-map-heading{max-width:none;margin-bottom:20px}.rd-map-heading h2{font-size:32px;max-width:100%;line-height:1.15}.rd-map-heading p{font-size:17px}.rd-home .hm-tabs{position:static;max-width:none;width:100%;gap:4px;margin-bottom:16px;grid-template-columns:1fr 1fr 1.2fr}.hm-tabs button{font-size:14px;padding:8px 6px}.hm-tab-note{display:block;font-size:10px}.hm-stage{grid-template-columns:1fr;gap:14px}.hm-map .map-3d{height:auto}.rd-home .map-bar{padding:10px!important}.map-bar .btn{font-size:13px;padding:6px 12px}.hm-pick{grid-template-columns:110px minmax(0,1fr);height:auto}.hm-pick-photo{aspect-ratio:auto;min-height:100%;border-radius:0}.hm-pick-body{padding:14px;gap:6px}.hm-pick-body h3{font-size:27px}.hm-pick .hm-facts{font-size:17px}.hm-pick .hm-actions{grid-template-columns:1fr}.hm-actions .btn{font-size:15px;padding:6px 12px}.hm-pick .hm-meta{font-size:10px}.hm-back{min-height:32px;font-size:14px}.rd-legend{justify-content:start;gap:0 10px;display:grid;grid-template-columns:1fr 1fr;margin-top:10px}.rd-legend a{font-size:14px;line-height:1.2}.rd-legend a span{width:23px;height:23px;flex:none}.rd-home .hm-houses{margin-top:30px}.hm-head{padding-top:24px;margin-bottom:20px}.hm-head h2{font-size:32px;line-height:1.14}.hm-tiles{grid-template-columns:1fr;gap:24px}.hm-tile-photo{aspect-ratio:1.45}.hm-tile-body h3{font-size:29px}.hm-tile-body{padding-top:12px}.hm-tile-body .hm-meta{font-size:14px}.hm-tile-body .hm-facts{font-size:17px}.hm-tile-body .hm-links{font-size:16px}.rd-prep{grid-template-columns:1fr;padding:24px;gap:18px;margin-top:20px}.rd-prep>div{border-top:1px solid #c2c7ae;padding-top:15px}.rd-prep h2{font-size:32px}.rd-explore{gap:10px 20px;font-size:16px}.site-footer .container{grid-template-columns:1fr 1fr}.site-footer .container>div:first-child{grid-column:1/-1}.site-footer .container>div:last-child{grid-column:1/-1}.rd-viewer .v3d-stage{height:460px;min-height:420px}.rd-viewer .v3d-tools{left:8px;right:8px;bottom:8px;gap:5px}.v3d-tools .btn{font-size:13px;padding:5px 10px;min-height:44px}.rd-viewer.is-ready .v3d-status{bottom:110px}.rd-home .hm-list .legend{grid-template-columns:1fr 1fr}.rd-home .hm-list .legend a{font-size:14px}.rd-home .hm-list .legend .name{font-size:15px}}
@media(max-width:360px){:root{--gutter:15px}.brand{font-size:21px}.rd-hero h1{font-size:38px}.hm-pick{grid-template-columns:1fr}.hm-pick-photo{aspect-ratio:1.8;min-height:0}.rd-legend{gap:0 6px}.rd-legend a{font-size:13px}.site-footer .container{grid-template-columns:1fr}.site-footer .container>div{grid-column:1}.hm-tabs button{font-size:13px}.hm-tab-note{font-size:10px}}
.hm-tabs button{display:block}.v3d-tools .btn{color:var(--c-text)}.v3d-tools .btn[aria-pressed="true"]{color:#fff}.v3d-tools .btn:disabled{opacity:.5}
.rd-home .nav-toggle{background:var(--c-surface);color:var(--c-text);border:1px solid var(--c-line)}
.site-footer strong,.site-footer .footer-brand{color:var(--c-text)}.site-footer p{color:var(--c-muted)}
@media(min-width:761px){.rd-hero-shade{background:linear-gradient(90deg,#223227 0%,#223227 28%,rgba(34,50,39,.83) 40%,rgba(34,50,39,.1) 70%,transparent 100%),linear-gradient(0deg,rgba(20,31,22,.25),transparent 45%)}}

/* DEC-081: бронирование открыто сразу, параметры и справка вторичны. */
.bk-page .house-layout{grid-template-columns:minmax(0,1fr);gap:20px}
.bk-page #booking-form{padding:0;border:0;background:transparent}
.redesign .bk-page #booking-form{padding:0}
.redesign .bk-page{padding-top:12px}
#booking-settings{margin:0 0 14px;border:1px solid var(--c-line);border-radius:14px;padding:0 18px;background:var(--c-surface)}
#booking-settings>summary{min-height:48px;padding:12px 0;cursor:pointer;font-size:18px}
#booking-settings[open]{padding-bottom:18px}
#booking-settings .form-grid{margin-top:12px}
#booking-form>.stack:has([hidden]){display:none}
#booking-form>.form-error:empty{display:none}
.bk-page .bnovo-frame{display:block;width:100%;height:1100px;min-height:700px;border:0;background:#fff;border-radius:14px}
.bk-aside>details>summary{cursor:pointer;min-height:44px;padding:8px 0;font-size:20px}
@media(max-width:760px){.bk-page #booking-form{padding:0}.bk-page .bnovo-frame{height:1200px;border-radius:12px}#booking-settings>summary{font-size:17px}.bk-hero{padding-bottom:12px}}

/* DEC-082: официальные формы Bnovo, адаптивная высота SDK. */
.redesign .bk-hero {padding-top:24px;padding-bottom:18px}
.redesign .bk-hero h1 {font-size:clamp(28px,3vw,44px);line-height:1.15;margin:14px 0 10px}
.redesign .bk-hero .hm-lead {font-size:17px;max-width:none;margin:0}
.redesign .bk-page {padding-top:0}
#booking-form>.stack:has([hidden]),#form-error:empty,#booking-result:empty {display:none}
.official-booking {position:relative;padding:12px 12px 36px;background:#fff;border:1px solid #e4e1d7;border-radius:18px;min-width:0}
.official-booking[hidden] {display:none}
.official-booking>iframe {display:block;width:100%;border:0}
#bn_iframe {position:absolute;right:16px;bottom:12px;font:11px Arial,sans-serif;opacity:.65}
.official-dates {position:relative;margin-top:20px;margin-bottom:24px;z-index:12}
.official-widget-shell {position:relative;min-height:85px}
#hutor-bnovo-widget {position:absolute;left:0;top:0;width:100%;height:100px;border:0;z-index:12;background:transparent}
.official-widget-credit {position:absolute;right:38px;bottom:0;font:9px Arial,sans-serif;opacity:.5}
@media(max-width:760px){
 .redesign.ma-ready .official-dates {display:block}
 .redesign.rd-home .ma-trip-bar {display:none}
 .official-widget-shell {min-height:240px}
 .official-booking {padding:6px 4px 32px;border-radius:14px}
 .redesign .bk-hero {padding-top:10px;padding-bottom:14px}
 .redesign .bk-hero .ma-booking-title {display:none}
 .redesign .bk-hero #booking-title {display:block;font-size:28px}
}

.bk-single .bk-hero,.bk-single .bk-page {max-width:960px}

.bk-other-houses {display:inline-block;margin-top:10px;font-size:14px}

/* DEC-076. Мобильное продолжение принятой молочно-оливковой композиции. */
.ma-nav,.ma-trip-bar,.ma-toast,.ma-booking-title,.ma-catalog-lead,.ma-gallery-open{display:none}.ma-sheet:not([open]){display:none}.ma-rules>summary{display:none}.ma-rules{border:0;margin:0;padding:0}
.ma-sheet{border:0;padding:0;color:var(--c-text);background:var(--c-bg);width:min(100% - 24px,460px);max-height:90dvh;border-radius:28px;box-shadow:0 20px 80px #17251b38}
.ma-sheet::backdrop{background:#17251b70;backdrop-filter:blur(4px)}
.ma-sheet svg,.ma-trip-bar svg,.ma-nav svg{width:23px;height:23px;flex:none}
.ma-sheet header{display:flex;justify-content:space-between;align-items:center;padding:12px 24px 20px;border-bottom:1px solid var(--c-line)}
.ma-sheet-grip{width:36px;height:4px;border-radius:4px;background:#bfc3b0;margin:12px auto 0}
.ma-eyebrow{font-size:11px;letter-spacing:.16em;color:var(--c-muted);margin:0 0 6px}.ma-sheet h2{font-size:32px;margin:0;line-height:1.15}
.ma-icon{display:grid;place-items:center;border:1px solid var(--c-line);border-radius:50%;background:transparent;width:44px;height:44px;color:inherit;flex:none}
.ma-sheet-body{padding:0 24px 12px;overflow:auto;overscroll-behavior:contain}.ma-chosen{font-size:15px;margin:18px 0;color:var(--c-muted)}
.ma-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ma-date-grid label,.ma-ages label{font-size:14px;font-weight:500;min-width:0}
.ma-date-grid input,.ma-ages select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:52px;font-size:16px;margin-top:7px;border:1px solid #c6cab6;border-radius:12px;background:#fffdf7;color:var(--c-text);padding:10px}
.ma-step-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 0;border-bottom:1px solid var(--c-line)}.ma-step-row strong{font-weight:500;font-size:19px}.ma-step-row small{display:block;font-size:14px;color:var(--c-muted)}
.ma-step{display:flex;align-items:center;gap:8px}.ma-step button{width:44px;height:44px;border-radius:50%;border:1px solid #b9c0a6;background:transparent;font-size:24px;color:var(--c-text)}.ma-step button:disabled{opacity:.3}.ma-step output{min-width:22px;text-align:center;font-size:20px;font-variant-numeric:tabular-nums}
.ma-ages{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.ma-error{color:#8a3225;font-size:16px;margin:10px 0}.ma-error:empty{display:none}.ma-note{font-size:14px;color:var(--c-muted);margin:16px 0 4px;line-height:1.4}
.ma-sheet footer{padding:14px 24px max(18px,env(safe-area-inset-bottom));border-top:1px solid var(--c-line);background:var(--c-bg)}.ma-sheet footer .btn{width:100%;display:flex;gap:20px;align-items:center;justify-content:center;min-height:52px;font-size:18px}.ma-book{display:block;text-align:center;padding:13px 0 0;min-height:44px;font-size:16px;color:var(--c-link)}
.ma-modal-open{overflow:hidden}.ma-sheet form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.ma-sheet[open]{display:flex;flex-direction:column;animation:ma-enter .22s ease-out}
@keyframes ma-enter{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){
 :root{--gutter:20px;--fs-base:18px}html{scroll-padding-top:88px;scroll-padding-bottom:100px}body.ma-ready{padding-bottom:calc(82px + env(safe-area-inset-bottom))}button,a,input,select{touch-action:manipulation}button:active,.btn:active{transform:translateY(1px)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #75814b;outline-offset:3px}
 .ma-ready .ma-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:25;bottom:0;left:0;right:0;padding:8px 12px max(9px,env(safe-area-inset-bottom));background:#faf8f1f5;backdrop-filter:blur(18px);border-top:1px solid #d5d9c8;box-shadow:0 -5px 25px #29352c08}
 .ma-nav a,.ma-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#676e60;text-decoration:none;font:inherit;font-size:12px;font-weight:500;min-height:52px;padding:5px 0;border:0;background:transparent;border-radius:15px}
 .ma-nav [aria-current]{background:#e6ead7;color:#46542d}.ma-nav i{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--c-action);top:5px;right:calc(50% - 17px)}
 .site-header,.rd-home .site-header{position:sticky;top:0;z-index:20;background:#f6f3ebf5;color:var(--c-text);backdrop-filter:blur(14px);border-bottom:1px solid #e3e2d7}.site-header .container{min-height:67px;gap:10px}.brand{font-size:24px;letter-spacing:-.05em}.rd-home .site-header a:not(.nav-cta){color:var(--c-text)}.nav-toggle,.rd-home .nav-toggle{min-height:44px;min-width:64px;border-radius:24px;font-size:14px;padding:7px 14px;background:transparent;border:1px solid #cdd0c0;color:var(--c-text)}
 .rd-home .nav.open,.nav.open{position:absolute;top:65px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 165px);overflow:auto;border:1px solid var(--c-line);border-radius:20px;padding:12px;background:var(--c-bg);box-shadow:0 15px 40px #29352c20}.nav.open a{min-height:48px;padding:12px 16px}.nav.open .nav-cta{margin:4px 0 0}
 .rd-hero{margin:12px 12px 0;border-radius:24px;min-height:440px;isolation:isolate}.rd-hero-photo{object-position:57% 35%}.rd-hero-content{padding:240px 22px 26px;width:100%}.rd-hero h1{font-size:43px;line-height:1.02;letter-spacing:-.045em;margin-bottom:13px}.rd-hero p{font-size:17px;line-height:1.35;margin-bottom:18px;max-width:300px}.rd-hero .btn{min-height:46px;padding:10px 20px}.rd-hero-shade{background:linear-gradient(0deg,#1e3024f5 0%,#203528aa 35%,transparent 80%)}
 .ma-ready .hm-dates-wrap{display:none}.ma-ready .ma-trip-bar{display:block;margin-top:14px}.ma-trip-bar>button{display:flex;align-items:center;gap:13px;width:100%;min-height:82px;border:1px solid #d7dbca;border-radius:20px;background:#eeefe3;padding:15px;text-align:left;color:var(--c-text)}.ma-trip-bar strong{display:block;font-size:19px;font-weight:500;line-height:1.2}.ma-trip-bar small{display:block;font-size:13px;color:var(--c-muted);margin-top:5px}.ma-trip-edit{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:0}.ma-trip-edit svg{width:20px}
 .rd-home .hm-map{margin-top:32px;scroll-margin-top:83px}.rd-map-heading{margin-bottom:18px}.rd-map-heading h2{font-size:30px;line-height:1.08;max-width:300px}.rd-map-heading p{margin-top:9px;font-size:16px}.rd-home .hm-tabs{display:grid;grid-template-columns:.8fr .9fr 1.3fr;gap:4px;padding:5px;border:1px solid #dcdfcf;border-radius:18px;background:#eceee1}.hm-tabs button{border-radius:13px;min-height:56px;font-size:14px;padding:7px 4px}.hm-tab-note{font-size:10px;line-height:1.2}.hm-stage{gap:12px}.hm-map .map-3d{border-radius:19px}.rd-home .map-bar{background:#eeefe4!important;border-radius:0 0 19px 19px}.map-bar .btn{min-height:44px;font-size:14px}
 .rd-viewer{border-radius:19px}.rd-viewer .v3d-stage{height:350px;min-height:350px}.rd-viewer .v3d-tools{gap:5px}.rd-viewer .v3d-tools .btn{min-height:44px;padding:6px 10px;font-size:12px}.rd-viewer .v3d-label .nm{display:none}.rd-viewer .v3d-label .n{min-width:34px;min-height:34px;font-size:13px}.rd-viewer .v3d-label{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}.rd-viewer:fullscreen .v3d-stage,.rd-viewer.rd-fullscreen .v3d-stage{height:100dvh}.rd-viewer .v3d-status{max-width:90%;font-size:16px}
 .hm-side{border:1px solid #d9ddcd;border-radius:20px;background:#fffdf7}.hm-pick{display:grid;grid-template-columns:104px minmax(0,1fr);min-height:216px}.hm-pick-photo{aspect-ratio:auto;height:100%;min-height:100%;border-radius:0}.hm-pick-body{padding:16px 14px;gap:8px}.hm-pick-body h3{font-size:27px;line-height:1.03}.hm-pick .hm-meta{font-size:9px;letter-spacing:.07em;line-height:1.3}.hm-pick .hm-facts{font-size:16px;line-height:1.3}.hm-pick .hm-actions{gap:6px}.hm-pick .btn{min-height:44px;padding:7px 10px;font-size:15px}.hm-pick .hm-back{min-height:36px;margin-top:0;font-size:13px}
 .rd-legend{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow:auto;scroll-snap-type:x proximity;scrollbar-width:none;gap:7px;padding:2px 0 8px;margin-top:10px}.rd-legend li{flex:none;scroll-snap-align:start}.rd-legend a{border:1px solid #d5daca;border-radius:24px;padding:7px 12px 7px 8px;min-height:44px;font-size:13px;white-space:nowrap;background:#faf8f1}.rd-legend a.selected{background:#e5ead6;border-color:#a8b48d}.rd-legend a span{width:25px;height:25px}
 .hm-head h2{font-size:30px;line-height:1.1}.hm-head{padding-top:26px}.rd-home .hm-houses{margin-top:24px}.rd-home .hm-tiles{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 20px 12px;margin:0 -20px;scroll-padding-inline:20px}.rd-home .hm-tile{flex:0 0 87%;scroll-snap-align:start;border:1px solid #dce0d0;border-radius:21px;background:#fbfaf3;overflow:hidden}.hm-tile-photo{border-radius:20px 20px 0 0;aspect-ratio:1.3}.hm-tile-body{padding:16px;gap:8px}.hm-tile-body h3{font-size:28px;line-height:1.08}.hm-tile-body .hm-links{gap:0;margin-top:10px;display:flex;align-items:center;justify-content:space-between}.hm-tile-body .hm-links a{min-height:44px;display:flex;align-items:center;font-size:14px;padding:4px 0}.hm-tile-body .hm-links a+a{border-left:0}.hm-tile-body .hm-facts{font-size:16px}.hm-all-bottom{margin-top:8px}.hm-all-bottom .btn{min-height:48px;border-color:#bfc7ac}
 .rd-prep{border-radius:22px;padding:24px;gap:17px}.rd-prep a{display:inline-flex;align-items:center;min-height:44px}.rd-explore{gap:6px 15px}.rd-explore a{min-height:44px;display:flex;align-items:center}.site-footer{margin-top:20px;padding-bottom:12px}.site-footer .container{grid-template-columns:1fr 1fr;gap:22px}.site-footer a{display:inline-block;min-height:32px;padding-block:4px}.site-footer p{font-size:14px;line-height:1.5}.site-footer .btn{min-height:44px}.site-footer li{margin:0}
 .pg-hero,.hs-hero{padding-top:24px}.pg-hero h1,.hs-hero h1{font-size:38px;line-height:1.08}.hs-crumbs{font-size:14px;margin-bottom:18px}.hs-crumbs a{display:inline-block;min-height:32px}.hs-top{gap:24px}.hs-gallery{border-radius:20px;overflow:hidden}.hs-gallery img{border-radius:14px}.hs-passport{border-radius:20px;background:#fffdf7;padding:22px}.hs-passport h2{font-size:28px}.hs-passport .btn{min-height:52px;font-size:18px}.hs-more h2{font-size:30px}.hs-desc p{line-height:1.6}.pg-filter{padding:16px;border-radius:20px;background:#eceee2}.pg-filter-row{gap:7px}.pg-filter .btn{min-height:44px;font-size:15px;padding:7px 13px}.pg-filter select{min-height:48px;font-size:16px}.pg-houses .hm-tile{border:1px solid #dce0d0;border-radius:21px;overflow:hidden;background:#fbfaf3}.pg-houses .hm-tiles{gap:22px}
 #booking-form input,#booking-form select{min-height:52px;font-size:17px;border-radius:12px}#booking-form .btn{min-height:52px}#booking-form{scroll-margin-top:85px}.bk-layout{gap:24px}
 .ma-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100dvh - 26px);border-radius:27px 27px 0 0}.ma-sheet header{padding:12px 20px 18px}.ma-sheet-body{padding-inline:20px}.ma-sheet footer{padding-inline:20px}.ma-sheet h2{font-size:31px}.ma-ready .ma-toast{display:block;pointer-events:none;position:fixed;z-index:35;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);opacity:0;transition:.18s ease;background:#2f412e;color:#fff;border-radius:24px;padding:12px 22px;font-size:16px;white-space:nowrap;box-shadow:0 8px 25px #20352022}.ma-toast.visible{opacity:1;transform:translate(-50%,0)}.toast{bottom:100px}
}
@media(max-width:760px){
 .rd-viewer .v3d-tools{position:relative;inset:auto;padding:10px;margin:0;background:#c4cbb9}.rd-viewer .v3d-tools [data-zoom]{min-width:44px}.rd-viewer:fullscreen .v3d-tools,.rd-viewer.rd-fullscreen .v3d-tools{position:absolute;bottom:0;left:0;right:0;padding-bottom:max(10px,env(safe-area-inset-bottom));background:#c4cbb9ed}
 .ma-booking-title{display:block}#booking-title{display:none}.bk-hero .hm-lead{font-size:16px;line-height:1.4}.bk-page #booking-form{border-radius:22px;border-color:#d7ddc8;padding:18px 16px}.ma-rules{margin:6px 0 0}.ma-rules>summary{display:list-item;min-height:44px;padding:12px 0;font-size:14px;color:var(--c-link)}
 .ma-catalog .pg-hero{padding-top:24px}.ma-catalog .hs-crumbs,.ma-catalog .pg-hero .hm-lead{display:none}.ma-catalog .pg-hero h1{margin-bottom:8px}.ma-catalog-lead{display:block;margin:0 0 18px;font-size:16px;color:var(--c-muted)}.ma-catalog .pg-filter{margin-top:0;padding:13px;border-color:#d9decb}.ma-catalog .pg-filter-row:first-child{display:flex;flex-wrap:nowrap;overflow:auto;gap:6px;padding-bottom:4px;scrollbar-width:none}.ma-catalog .pg-filter-row:first-child .pg-filter-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.ma-catalog .pg-filter-row .btn{flex:none;font-size:14px;padding-inline:12px;white-space:nowrap}.ma-catalog .pg-filter-row:nth-child(2){display:flex;align-items:center;justify-content:space-between;margin-top:8px}.ma-catalog .pg-filter-row:nth-child(2) .pg-filter-label{margin:0}.ma-catalog .pg-filter select{min-height:44px;border-radius:12px;width:145px}.ma-catalog .pg-filter [data-season-count]{margin:5px 0 0;font-size:13px}.ma-catalog .pg-houses{margin-top:18px}.ma-catalog .pg-houses .hm-head{padding-top:18px;margin-bottom:16px}.ma-catalog .pg-houses .hm-sub{margin:6px 0 0}
 .ma-gallery-open{display:block;margin-top:4px;width:100%;min-height:48px;border:1px solid #c6cdb5;border-radius:14px;background:#eeefe2;color:var(--c-link);font-size:16px}.ma-ready .hs-gallery>details{display:none}
 .hs-gallery .gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px;padding-bottom:8px}.hs-gallery .gallery>div{flex:0 0 92%;scroll-snap-align:start;min-width:0}.hs-gallery .gallery img{width:100%;height:330px;object-fit:cover}.hs-gallery .gallery .photo-link{display:block}
 .ma-photos{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:#f6f3eb;color:var(--c-text)}.ma-photos:not([open]){display:none}.ma-photos[open]{display:flex;flex-direction:column}.ma-photos::backdrop{background:#28382899}.ma-photos header{display:flex;justify-content:space-between;align-items:center;min-height:70px;padding:10px 20px;font-size:20px}.ma-photos .ma-icon{font-size:30px}.ma-photo-track{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none}.ma-photo-track figure{flex:0 0 100%;height:100%;margin:0;min-width:0;scroll-snap-align:start;display:flex;align-items:center;justify-content:center}.ma-photo-track img{width:100%;height:100%;object-fit:contain}.ma-photos footer{display:flex;justify-content:center;align-items:center;gap:36px;min-height:84px;padding:12px 20px max(16px,env(safe-area-inset-bottom))}.ma-photos footer button{width:48px;height:48px;border-radius:50%;border:1px solid #c6cdb5;background:transparent;font-size:24px;color:var(--c-text)}.ma-photos footer button:disabled{opacity:.3}.ma-photos output{font-size:16px;font-variant-numeric:tabular-nums}
}
@media(max-width:360px){.rd-hero h1{font-size:37px}.rd-hero-content{padding-inline:18px}.brand{font-size:22px}.hm-pick{grid-template-columns:85px minmax(0,1fr)}.hm-pick-body{padding:14px 10px}.hm-pick-body h3{font-size:24px}.ma-date-grid{gap:8px}.ma-sheet-body,.ma-sheet header,.ma-sheet footer{padding-inline:16px}.ma-step{gap:4px}.ma-step-row small{font-size:12px}.ma-trip-bar small{font-size:12px}.ma-ages{grid-template-columns:1fr}.ma-nav{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}.ma-sheet[open]{animation:none}.ma-toast{transition:none!important}}

/* Юридические заголовки: читаемые целые слова на узком экране. */
@media(max-width:640px){body:has(.legal-document) .pg-hero h1{font-size:clamp(26px,7.6vw,34px);line-height:1.14;overflow-wrap:normal;hyphens:auto}}

#hutor-consent[hidden]{display:none}#hutor-consent{position:fixed;z-index:1100;left:12px;bottom:14px;width:min(430px,calc(100% - 24px));box-sizing:border-box;padding:16px 18px;border:1px solid #aea998;border-radius:14px;background:#faf8f1;color:#24291c;box-shadow:0 4px 22px #25291d30;font:15px/1.45 system-ui,sans-serif}#hutor-consent p{margin:0 0 10px}#hutor-consent a{color:inherit;text-decoration:underline}#hutor-consent button,#hutor-consent-settings{font:inherit;cursor:pointer}#hutor-consent button{border:1px solid #77795c;background:#f5f3e9;color:#262a1a;border-radius:8px;padding:7px 12px;margin-right:8px}#hutor-consent-settings{color:inherit;padding:0;background:transparent;border:none;text-decoration:underline}@media(max-width:760px){#hutor-consent{bottom:calc(76px + env(safe-area-inset-bottom))}}
#booking-external-choice[hidden],#booking-external-choice button[hidden]{display:none}
