/* ---------- Шрифты: свои файлы в assets/fonts (скачаны с Google Fonts, cyrillic + latin), Manrope — переменный 400–600 ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-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: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/prata-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/prata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/prata-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;
}

/* ---------- Токены ---------- */
:root {
  --haze: #edf1ea;
  --paper: #ffffff;
  --moss: #3b5640;
  --lawn: #7da34a;
  --graphite: #2a2e34;
  --ink-soft: #5b6068;
  --rule: rgba(42, 46, 52, 0.16);

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-brand: "Prata", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: 24px;
  --radius: 6px;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* сайт всегда светлый: не даём браузеру телефона в тёмной теме перекрашивать фон и элементы */
html { scroll-padding-top: 76px; color-scheme: light only; font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; } /* clip (не hidden): выехавшая за экран панель меню не даёт горизонтальной прокрутки на планшете, sticky-шапка при этом работает */

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.5;
  color: var(--graphite);
  background: var(--haze);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
dl, dd, dt { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }

/* ссылка «К содержимому»: видна только при фокусе с клавиатуры */
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; outline-color: var(--paper); outline-offset: -5px; }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.btn--primary:hover { background: #3a3f47; border-color: #3a3f47; }
.btn--secondary { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--secondary:hover { background: rgba(42, 46, 52, 0.06); }
.btn--ghost { background: rgba(255, 255, 255, 0.55); color: var(--graphite); border-color: rgba(42, 46, 52, 0.6); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.8); }
button.btn { cursor: pointer; }
/* светлая кнопка на тёмном блоке «Что я проверил» */
.btn--light { background: var(--paper); color: var(--graphite); border-color: var(--paper); }
.btn--light:hover { background: var(--haze); border-color: var(--haze); }
.btn--light:focus-visible { outline-color: var(--paper); }

/* номер телефона с подписью — вместо кнопки «Позвонить» */
.phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  color: var(--graphite);
  line-height: 1.1;
}
.phone b { font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.phone span { font-size: 0.82rem; color: var(--ink-soft); }
/* в строчных вариантах имя стоит на уровне середины цифр (по высоте «+»), а не на базовой линии */
.phone:hover b { text-decoration: underline; text-underline-offset: 3px; }
.phone--row { flex-direction: row; align-items: center; gap: 8px; }
/* крупный номер (первый экран, контакты): имя справа от номера на всех экранах */
.phone--big { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.phone--big b { font-size: 1.45rem; }
.phone--big span { font-size: 0.9rem; }

/* ---------- Шапка ---------- */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}
.top__row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}
.nav a {
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  color: var(--graphite);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--graphite); }
.top__call { margin-left: auto; }
.nav a.is-active { border-bottom-color: var(--graphite); }

/* ---------- Компактная шапка после прокрутки первого экрана ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(237, 241, 234, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 260ms ease, visibility 0s linear 260ms;
}
.topbar.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
.topbar__row { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand--bar { font-size: 1.1rem; letter-spacing: 0.12em; }
.topbar__nav { margin-left: 0; gap: 16px; }
.topbar__nav a { font-size: 0.82rem; }
.topbar__call { margin-left: auto; }
.topbar__call span { display: none; }
.topbar__book { padding: 11px 16px; font-size: 0.88rem; }

/* ---------- Меню на телефоне (бургер + панель справа) ---------- */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--graphite);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 400ms ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(42, 46, 52, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.menu-overlay.is-active { opacity: 1; pointer-events: auto; }

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); /* 8 + 48/2 = 32: бренд по оси крестика */
  background: var(--haze);
  color: var(--graphite);
  overflow-y: auto;
  overscroll-behavior: contain; /* свайп внутри панели не прокручивает страницу под ней */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 800ms;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
}
.menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  border-radius: 1px;
  background: var(--graphite);
}
.menu__close span:nth-child(1) { transform: rotate(45deg); }
.menu__close span:nth-child(2) { transform: rotate(-45deg); }
.menu__brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 48px;
}
.menu__list {
  list-style: none;
  margin: 24px 0 auto; /* фиксированный отступ сверху, а не центровка: иначе список прыгает, когда браузер прячет адресную строку */
  padding: 24px 0;
}
.menu__list li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: 160ms; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: 260ms; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: 360ms; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: 460ms; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: 560ms; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: 660ms; }
.menu.is-open .menu__list li:nth-child(7) { transition-delay: 760ms; }
.menu.is-open .menu__list li:nth-child(8) { transition-delay: 860ms; }
.menu__list a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
}
.menu__list a.is-active { color: var(--moss); }
.menu__list a.is-active::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}
.menu__foot {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease 800ms, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 800ms;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__price { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.menu__price b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--graphite); }
.menu__phone { font-size: 1.05rem; margin: -16px 0 6px; }
.menu__phone a { display: inline-block; padding: 11px 0; font-weight: 500; text-decoration: none; color: var(--graphite); }
body.nav-open { overflow: hidden; }
/* на телефоне страницу под меню замораживаем целиком: iOS игнорирует overflow:hidden на body,
   и свайп по панели тащил страницу и дёргал адресную строку */
body.nav-open.is-locked { position: fixed; left: 0; right: 0; width: 100%; }
body.nav-open .stick { display: none; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* лёгкая светлая дымка сверху: бренд и меню читаются на любом кадре */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(237, 241, 234, 0.55), rgba(237, 241, 234, 0));
  pointer-events: none;
}
.hero__layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 110px;
}
.plaque {
  background: var(--haze);
  padding: 44px 48px 48px;
  max-width: 660px;
  border-radius: var(--radius) var(--radius) 0 0;
  animation: plaque-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.plaque__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.plaque__lead {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 22px;
}
.plaque__price { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 26px; }
.plaque__price b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--graphite); margin-right: 4px; }
.plaque__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.plaque__quiz { margin-top: 18px; font-size: 0.95rem; line-height: 1.4; }
.plaque__quiz a { color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-block; padding: 6px 0; }
.plaque__quiz a::after { content: " →"; }

/* приглашение в квиз: карточка в углу, не перекрывает страницу */
.nudge {
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  padding: 18px 20px 20px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20, 22, 26, 0.22), 0 0 0 1px var(--rule);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.nudge.is-shown { opacity: 1; transform: none; }
.nudge__close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-soft); cursor: pointer; }
.nudge__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; padding-right: 32px; }
.nudge__text { margin: 6px 0 14px; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.nudge__go { width: 100%; }
body:has(.plan__panel.is-open) .nudge { display: none; } /* не закрывает окно участка */
@media (max-width: 767px) {
  /* на телефоне компактно: заголовок и кнопка, без пояснения */
  .nudge { padding: 12px 14px 14px; }
  .nudge__title { font-size: 1.05rem; padding-right: 36px; margin: 2px 0 10px; }
  .nudge__text { display: none; }
}
@media (min-width: 768px) {
  .nudge { left: auto; right: 24px; bottom: 24px; width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } }

/* плашка cookie: узкая полоса снизу; пока висит, липкая полоска и приглашение в квиз не показываются */
.cookie {
  position: fixed;
  z-index: 46;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 28px rgba(20, 22, 26, 0.12);
  transform: translateY(110%);
  transition: transform 240ms ease;
}
.cookie.is-shown { transform: none; }
.cookie__text { font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); max-width: 62ch; }
.cookie__text a { color: var(--graphite); text-underline-offset: 3px; white-space: nowrap; }
.cookie__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie__btn { min-height: 44px; padding: 10px 18px; }
body.has-cookie .stick,
body.has-cookie .nudge { display: none; }
@media (max-width: 767px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
  .cookie__text { font-size: 0.84rem; }
  .cookie__actions .cookie__btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

@keyframes plaque-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Паспорт дома ---------- */
.passport {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.passport__row {
  display: flex;
  padding-top: 26px;
  padding-bottom: 28px;
}
.passport__item {
  flex: 1 1 0;
  padding: 0 32px;
  border-left: 1px solid var(--rule);
}
.passport__item:first-child { padding-left: 0; border-left: 0; }
.passport__item dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.passport__item dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.passport__item--price { flex-grow: 1.2; }
.passport__item--price dd { font-size: 1.55rem; font-weight: 400; white-space: nowrap; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 22ch;
  margin-bottom: 22px;
}
.section p { font-size: 1.05rem; line-height: 1.6; max-width: 62ch; }

/* Посёлок */
.poselok__grid {
  display: grid;
  grid-template-columns: 44fr 56fr;
  gap: 64px;
  align-items: center;
}
.poselok__photo img {
  width: 100%;
  border-radius: var(--radius);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  margin-top: 40px;
}
.facts > div {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.facts dt { font-weight: 600; font-size: 0.98rem; }
.facts dd { font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); margin-top: 4px; }

.wide { margin-top: 96px; }
.wide img { width: 100%; }
.wide__caption { padding-top: 24px; }
.section .wide__caption p { font-size: 0.95rem; color: var(--ink-soft); }
.facts--row { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.section .wide__cta { margin-top: 28px; font-size: 1rem; }
.wide__cta a { color: var(--graphite); font-weight: 500; }

/* Дом */
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: 48px; }

.dom__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 48px;
  align-items: start;
}
.dom__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dom__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.dom__photo figcaption,
.gallery__item figcaption {
  padding-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.spec { border-top: 1px solid var(--rule); }
.spec__more > .spec { border-top: 0; }
.spec__more summary {
  display: none;
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  list-style: none;
}
.spec__more summary::-webkit-details-marker { display: none; }
.spec__more summary::after { content: " ↓"; color: var(--ink-soft); }
.spec__more[open] summary::after { content: " ↑"; }
.section .plans-note { margin-top: 20px; font-size: 0.92rem; color: var(--ink-soft); }
.plans-note a { color: var(--graphite); }
.spec > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt { font-size: 0.95rem; color: var(--ink-soft); }
.spec dd { font-size: 0.98rem; font-weight: 500; }

/* Планировка: SVG-схемы этажей, нарисованы tools/floorplans.py по обмерам БТИ */
.plans { margin-top: 64px; }
.plans__head { max-width: 760px; margin-bottom: 28px; }
.plans__head h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.section .plans__head p { color: var(--ink-soft); }
.plans__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 880px;
}
.plans__item svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px;
  background: var(--haze);
  border-radius: var(--radius);
}
.plans__item figcaption {
  padding-top: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.plans__item figcaption b { color: var(--graphite); font-weight: 600; }
.section .plans__hint { display: none; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* Внутри */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item--wide img {
  aspect-ratio: auto;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
}

.handover {
  max-width: 640px;
  margin-top: 64px;
}
.check { border-top: 1px solid var(--rule); }
.check > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.check dt { font-size: 0.92rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.check dd { font-size: 0.98rem; line-height: 1.45; }
.check dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
}
.check--done dt::before {
  border: 0;
  background: #6a9139;
  width: 13px;
  height: 13px;
  top: 5px;
}
.check--done dt::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.handover h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section .gallery__hint {
  display: none;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Лайтбокс ---------- */
.is-zoomable { cursor: zoom-in; }
body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(42, 46, 52, 0);
  color: var(--haze);
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background-color 260ms ease, -webkit-backdrop-filter 260ms ease, backdrop-filter 260ms ease;
}
.lightbox.is-open {
  background: rgba(42, 46, 52, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
}
.lightbox__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: zoom-in;
}
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__img {
  display: block;
  max-width: none;
  object-fit: cover;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
  transform-origin: center center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.lightbox__img.is-animated { transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 200ms ease; }
.lightbox__img.is-opening { transition-duration: 300ms; }
.lightbox__img.is-closing { transition-duration: 220ms; transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }

.lightbox__bar,
.lightbox__btn {
  opacity: 0;
  transition: opacity 220ms ease 80ms;
}
.lightbox.is-open .lightbox__bar,
.lightbox.is-open .lightbox__btn { opacity: 1; }

.lightbox__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px 18px;
}
.lightbox__caption { font-size: 0.95rem; color: rgba(237, 241, 234, 0.9); }
.lightbox__counter { font-size: 0.85rem; color: rgba(237, 241, 234, 0.6); white-space: nowrap; }

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 241, 234, 0.14);
  color: var(--haze);
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(237, 241, 234, 0.26); }
.lightbox__btn:focus-visible { outline: 3px solid var(--haze); outline-offset: 2px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img, .lightbox__bar, .lightbox__btn { transition: none; }
}

/* ---------- Участки (генплан) ---------- */
.plan {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.plan__map { min-width: 0; }
.plan__stage { position: relative; }
.plan__canvas {
  position: relative;
  line-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #e4ecd9;
}
.plan__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-text);
  /* --plan-z = базовая ширина / текущая: при зуме на телефоне подписи, маркеры и обводки
     остаются одного экранного размера, а геометрия масштабируется */
  --plan-z: 1;
  --plan-mk: 1;
}

/* подложка схемы: поле, лес, территория посёлка (её цвет и есть цвет улиц между участками) */
.plan__grass { fill: #e4ecd9; }
.plan__area--forest { fill: #c9d9bd; }
.plan__tree { fill: rgba(59, 86, 64, 0.16); }
.plan__area--village { fill: #f4f3ee; stroke: rgba(42, 46, 52, 0.18); stroke-width: 1; stroke-linejoin: round; }
.plan__road-edge { fill: none; stroke: rgba(42, 46, 52, 0.18); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.plan__road { fill: none; stroke: #f4f3ee; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.plan__road-axis { fill: none; stroke: rgba(42, 46, 52, 0.22); stroke-width: 1.4; stroke-dasharray: 10 8; }
.plan__area--water { fill: #c3dbe6; stroke: #a9c8d8; stroke-width: 2; stroke-linejoin: round; }
.plan__title { font-size: calc(12px * var(--plan-z)); font-weight: 600; fill: var(--ink-soft); letter-spacing: 0.08em; pointer-events: none; }
.plan__label { font-size: calc(15px * var(--plan-z)); font-weight: 500; fill: var(--ink-soft); pointer-events: none; }
.plan__label--forest { fill: var(--moss); }
.plan__label--water { fill: #3a6480; font-style: italic; }
.plan__label--road { font-size: calc(13px * var(--plan-z)); fill: var(--ink-soft); }
.plan__north, .plan__marker { transform: scale(var(--plan-z)); transform-box: fill-box; transform-origin: center; }
/* маркеры при отдалении уменьшаем, но медленнее, чем схему (--plan-mk = z^0.75, считает plan.js):
   иначе на полной схеме «1» и «2» стоят впритык и перекрываются */
.plan__marker { transform: scale(var(--plan-mk)); }
.plan__north path { fill: var(--graphite); }
.plan__north text { font-size: 13px; font-weight: 600; fill: var(--graphite); }
.plan__marker circle { fill: var(--graphite); stroke: var(--paper); stroke-width: 2; }
.plan__marker text { font-size: 13px; font-weight: 600; fill: var(--paper); pointer-events: none; }

/* участки */
.plot { cursor: pointer; outline: none; }
.plot polygon {
  stroke-width: calc(1.5px * var(--plan-z));
  stroke-linejoin: round;
  transition: fill 120ms ease, stroke 120ms ease;
}
.plot text {
  font-size: calc(12.5px * var(--plan-z));
  font-weight: 600;
  fill: var(--graphite);
  pointer-events: none;
}
.plot--free polygon { fill: #9ec96a; stroke: var(--paper); filter: drop-shadow(0 1.5px 2px rgba(42, 46, 52, 0.25)); }
.plot--free:hover polygon { fill: #8fbf58; }
.plot--reserved polygon { fill: var(--haze); stroke: var(--moss); stroke-dasharray: 4 3; }
.plot--reserved:hover polygon { fill: #dfe7d8; }
/* проданные и непродаваемые — светлые и тёплые, чтобы не спорить с зелёными свободными */
.plot--sold polygon { fill: #ebe8df; stroke: var(--paper); }
.plot--sold text { fill: rgba(42, 46, 52, 0.72); font-weight: 500; font-size: calc(11.5px * var(--plan-z)); }
.plot--sold:hover polygon { fill: #e2ded2; }
.plot--old { cursor: default; }
.plot--old polygon { fill: #e7e8e1; stroke: var(--paper); }
.plot--old text { fill: rgba(42, 46, 52, 0.5); font-weight: 500; font-size: calc(11px * var(--plan-z)); }
/* условный контур дома в участке */
.plan__bldg { fill: rgba(42, 46, 52, 0.09); pointer-events: none; }
.plot--free .plan__bldg { fill: rgba(59, 86, 64, 0.26); }
/* сильно отдалили — номера в участки не помещаются, показываем только цвета статусов */
.plan__svg.is-far .plot text { display: none; }
.plot.is-selected polygon { stroke: var(--graphite); stroke-width: calc(3px * var(--plan-z)); stroke-dasharray: none; }
.plot:focus-visible polygon { stroke: var(--graphite); stroke-width: calc(3px * var(--plan-z)); }

/* подсказка при наведении */
.plan__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.plan__tip[hidden] { display: none; }
.plan__tip b { font-weight: 600; }
.plan__tip-status { font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; }
.plan__tip-status--free { background: rgba(125, 163, 74, 0.35); }
.plan__tip-status--reserved { background: rgba(237, 241, 234, 0.18); }
.plan__tip-status--sold { background: rgba(237, 241, 234, 0.12); color: rgba(255, 255, 255, 0.7); }

/* кнопки масштаба — только телефон */
.plan__zoom { display: none; }

/* легенда, счётчики, строка свободных */
.section .plan__scroll-hint { display: none; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.section .plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: none;
}
.section .plan__legend--markers { margin-top: 8px; }
.plan__count { position: relative; padding-left: 20px; }
.plan__count b { color: var(--graphite); font-weight: 600; }
.plan__count::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1.5px solid var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
}
.plan__count--free::before { background: #9ec96a; }
.plan__count--reserved::before { background: var(--haze); border: 1.5px dashed var(--moss); box-shadow: none; }
.plan__count--sold::before { background: #ebe8df; }
.plan__count--old::before { background: #e7e8e1; }
.plan__count--marker { padding-left: 26px; }
.plan__count--marker::before { display: none; }
.plan__count--marker i {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--paper);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan__free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.plan__free-label { font-size: 0.95rem; font-weight: 500; margin-right: 6px; }
.plan__chips { display: contents; }
.plan__chip {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.plan__chip:hover { background: #eef4e6; border-color: var(--lawn); }
.plan__chip.is-active { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.plan__chip:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }

/* карточка участка */
.plan__panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.plan__house {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.plan__gallery { margin-bottom: 18px; }
.plan__gallery .plan__house { margin-bottom: 6px; cursor: zoom-in; }
.plan__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.plan__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
}
.plan__more {
  aspect-ratio: 4 / 3;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--haze);
  color: var(--graphite);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.plan__more:hover { background: var(--graphite); color: var(--paper); }
.plan__scheme {
  display: block;
  margin-bottom: 18px;
  padding: 10px;
  background: var(--haze);
  border-radius: var(--radius);
}
.plan__scheme img { width: 100%; max-height: 300px; object-fit: contain; }
.section .plan__plans-link { margin: -4px 0 16px; font-size: 0.9rem; color: var(--ink-soft); }
.plan__plans-link a { color: var(--graphite); }
.plan__page { display: block; margin: 4px 0 14px; padding: 10px 0; font-weight: 600; color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.section .plan__panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 8px;
}
.section .plan__status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.plan__status--free { background: rgba(125, 163, 74, 0.28); color: #3f6a1f; }
.plan__status--reserved { background: rgba(59, 86, 64, 0.12); color: var(--moss); }
.plan__status--sold { background: rgba(42, 46, 52, 0.1); color: var(--ink-soft); }
.plan__facts { margin-bottom: 22px; border-top: 1px solid var(--rule); }
.plan__facts > div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.plan__facts dt { color: var(--ink-soft); }
.plan__facts dd { font-weight: 500; }
.section .plan__hint { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 16px; }
.plan__panel .btn { width: 100%; }
.plan__phone { margin-top: 4px; }

/* ---------- Вопросы ---------- */
.faq__list { max-width: 820px; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--graphite);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  justify-self: center;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-soft);
  transition: transform 220ms ease;
}
.faq__item[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.faq__item summary::after { transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), color 200ms ease; }
.faq__item[open]:not(.is-closing) summary { color: var(--moss); }
/* ответ проявляется и чуть съезжает вниз, пока раскрывается высота */
.faq__item[open] .faq__body { animation: faq-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.faq__item.is-closing .faq__body { opacity: 0; transform: translateY(-4px); transition: opacity 200ms ease, transform 200ms ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__body { animation: none; }
  .faq__item summary::after { transition: none; }
}
.faq__item summary:hover { color: var(--moss); }
.faq__body { padding: 0 44px 20px 0; }
.section .faq__body p { font-size: 1rem; line-height: 1.6; max-width: 66ch; }

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 241, 234, 0.18);
  font-size: 0.85rem;
  color: rgba(237, 241, 234, 0.6);
}

/* ---------- Подвал ---------- */
.foot {
  background: var(--graphite);
  color: var(--haze);
  padding: 64px 0;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand--foot { color: var(--paper); margin-bottom: 8px; }
.foot__addr { font-size: 0.95rem; color: rgba(237, 241, 234, 0.75); }
.foot__dev { font-size: 0.95rem; color: rgba(237, 241, 234, 0.75); }
.foot__dev .todo { color: inherit; }
.foot :focus-visible { outline-color: var(--paper); }

/* ---------- Липкая полоска (только телефон) ---------- */
.stick { display: none; }

/* карточка участка как шторка (только телефон) */
.plan__close { display: none; }

/* =====================================================================
   Версия под Шухрата (v4): новые компоненты. Пишутся от телефона, шире — через min-width.
   ===================================================================== */

/* ---------- Заглушки «ждём от Шухрата»: видны до запуска, перед запуском — body.is-live ---------- */
.todo,
.todo__frame {
  position: relative;
  border: 1.5px dashed var(--moss);
  background: #f6f9f3;
  border-radius: var(--radius);
  padding: 18px 20px 18px;
  color: var(--graphite);
}
.todo.todo--section { border: 0; background: none; padding: 0; border-radius: 0; }
.todo__tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--moss); margin-bottom: 6px; }
.section .todo p,
.todo p { font-size: 0.95rem; line-height: 1.5; max-width: 72ch; }
.section .todo .todo__tag,
.todo .todo__tag { font-size: 0.78rem; line-height: 1.3; }
mark.todo-inline {
  background: rgba(59, 86, 64, 0.1);
  color: var(--graphite);
  border-bottom: 1px dashed var(--moss);
  border-radius: 3px;
  padding: 1px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body.is-live .todo, body.is-live .todo-inline, body.is-live .todo-wrap,
body.is-live .sample, body.is-live .sample__badge { display: none; }

/* примеры на месте будущих материалов: выглядят как настоящие, помечены жёлтым ярлыком */
.sample { position: relative; }
.sample__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4e4a1;
  color: #4a3d0c;
  box-shadow: 0 0 0 1px rgba(74, 61, 12, 0.22);
  font: 600 0.7rem/1.1 var(--font-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}
.sample__badge--inline { position: static; display: inline-block; vertical-align: 0.1em; margin-left: 4px; }

.poselok__todo { margin-top: 32px; }
.plans__todo { margin-top: 40px; max-width: 880px; }

/* видео: пунктирный кадр 16:9 на месте будущей обложки */
.todo--section.video { padding: 0 0 56px; }
.video__cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--graphite);
  color: var(--paper);
}
.video__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.video__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 26, 0.78) 0%, rgba(20, 22, 26, 0.1) 60%); }
.video__text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.video__title { font-size: 1.25rem; line-height: 1.15; margin: 0; max-width: none; color: var(--paper); }
.section .video__text p, .video__text p { margin-top: 4px; font-size: 0.88rem; line-height: 1.4; color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.video__play {
  position: absolute;
  z-index: 1;
  top: 42%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.video__play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--graphite); }

/* узкая полоса-заглушка между секциями (сравнение, отзывы) */
.todo--section.stub-band { padding: 0 0 48px; }
.todo--section.stub-band--paper { background: var(--paper); padding: 48px 0 0; }

/* ---------- Карточка Шухрата на первом экране ---------- */
.agent {
  position: relative;
  background: var(--haze);
  border-top: 1px solid var(--rule);
  padding: 14px 20px 18px;
  width: calc(100% + var(--gutter) * 2);
  margin-left: calc(var(--gutter) * -1);
  animation: plaque-in 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.agent__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2px 14px;
  align-items: center;
}
.agent__photo {
  grid-row: 1 / span 2;
  width: 56px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #8fa98a 0%, var(--moss) 100%);
}
.agent__photo svg { display: block; width: 100%; height: 100%; fill: rgba(237, 241, 234, 0.55); }
.agent__photo .sample__badge { display: none; }
.agent__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; }
.agent__role { font-size: 0.85rem; line-height: 1.35; color: var(--ink-soft); }
.agent__facts, .agent__form { display: none; }
.agent__facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; }
.agent__facts li { display: grid; gap: 2px; }
.agent__facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.agent__facts span { font-size: 0.76rem; line-height: 1.25; color: var(--ink-soft); }
.agent__facts .sample__badge { top: -10px; right: -6px; }
.agent__phone { grid-column: 2; margin-top: 6px; }
.agent__phone b { font-size: 1.2rem; }

/* вариант «Портрет» (выбран 12.10): фото с именем сверху, телефон и короткая форма */
.agent.agent--a { padding: 0; overflow: hidden; }
.va-photo { position: relative; height: 112px; background: linear-gradient(165deg, #a7b8a0 0%, var(--moss) 100%); }
.va-photo svg { position: absolute; left: 72%; bottom: 0; height: 96%; transform: translateX(-50%); fill: rgba(237, 241, 234, 0.5); }
.va-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 24, 22, 0.72), rgba(20, 24, 22, 0) 70%); }
.va-name { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 12px; color: #fff; }
.va-name .agent__name { font-size: 1.5rem; color: #fff; }
.va-name p + p { margin-top: 2px; font-size: 0.82rem; line-height: 1.3; color: rgba(255, 255, 255, 0.88); }
.va-photo .sample__badge { right: auto; left: 12px; top: 10px; }
.va-body { padding: 10px 20px 16px; }
.agent .va-form { display: none; }

/* ---------- Формы заявок ---------- */
:root { --field: #80858c; --err: #a3241b; }
.lead { display: grid; gap: 14px; }
.lead--compact { gap: 10px; }
.field label,
.seg legend { display: block; font-size: 0.9rem; font-weight: 500; line-height: 1.3; margin-bottom: 6px; padding: 0; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.calc select,
.calc input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--graphite);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}
.field select,
.calc select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2e34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input::placeholder { color: #6b7078; }
.field input:focus-visible,
.field select:focus-visible,
.calc select:focus-visible,
.calc input[type="number"]:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__err,
.consent__err { margin-top: 5px; font-size: 0.85rem; line-height: 1.35; color: var(--err); }
.consent {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 4px 0 4px 34px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
/* сам флажок прозрачный и большой (44 × 44 — удобно попасть пальцем), рисуем квадрат 22 px */
.consent input { position: absolute; left: -11px; top: -7px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.consent input + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--field);
  border-radius: 4px;
  background: var(--paper);
}
.consent input:checked + span::before { background: var(--graphite); border-color: var(--graphite); }
.consent input:checked + span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg);
}
.consent input:focus-visible + span::before { outline: 3px solid var(--graphite); outline-offset: 2px; }
.consent input[aria-invalid="true"] + span::before { border-color: var(--err); }
.consent a { color: var(--graphite); }
.lead__submit { width: 100%; min-height: 50px; }
.lead__status:empty { display: none; }
.section .lead__status,
.lead__status { font-size: 0.9rem; color: var(--err); }
.lead__status a { color: inherit; font-weight: 600; }
/* успех: форма заменяется этим блоком */
.lead-ok { padding: 18px 20px; border-radius: var(--radius); background: rgba(125, 163, 74, 0.18); color: var(--graphite); }
.section .lead-ok p, .lead-ok p { font-size: 1rem; line-height: 1.5; }
.section .lead-ok .lead-ok__demo, .lead-ok .lead-ok__demo { margin-top: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.lead-ok:focus { outline: none; }

/* кнопки-переключатели «Будни / Выходные», «Утро / День / Вечер» */
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg__opts { display: flex; gap: 8px; }
.seg__opts label { position: relative; flex: 1 1 0; min-width: 0; }
.seg__opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opts span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}
.seg__opts input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.seg__opts input:focus-visible + span { outline: 3px solid var(--graphite); outline-offset: 2px; }

/* ---------- Что сделано и что останется ---------- */
.handover { max-width: none; display: grid; gap: 36px; }
.section .handover__todo { margin-top: 12px; font-size: 0.9rem; }
.check--todo { list-style: none; margin: 0; padding: 0; }
.check--todo li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.45;
}
/* пустой квадрат — «ещё не сделано», в отличие от зелёной галочки слева */
.check--todo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--graphite);
  border-radius: 2px;
}
.section .handover__cost { margin-top: 28px; font-size: 1rem; max-width: none; }

/* ---------- Деньги: вкладки, калькулятор, трейд-ин ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.tabs__tab {
  flex: 1 1 0;
  min-height: 48px;
  padding: 12px 8px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--graphite); }
.tabs__tab[aria-selected="true"] { color: var(--graphite); border-bottom-color: var(--graphite); }
.tabs__tab:focus-visible { outline-offset: -3px; }
.tabs__pane:focus-visible { outline-offset: 6px; }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--haze);
}
.calc__field + .calc__field { margin-top: 20px; }
.calc__label { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 8px; }
.calc__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 2px; font-size: 0.95rem; }
.calc__lbl label { font-weight: 500; }
.calc__lbl output { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__rate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.calc__rate-row input[type="number"] { width: 120px; flex: 0 0 120px; }
.calc__rate-row mark { font-size: 0.85rem; }
/* ползунки: высокая зона касания, тонкая дорожка */
.calc input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--graphite), var(--graphite)) 0 / var(--fill, 20%) 100% no-repeat, rgba(42, 46, 52, 0.4);
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--graphite);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.calc input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(42, 46, 52, 0.22); }
.calc input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--graphite); }
.calc input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--graphite);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.calc input[type="range"]:focus-visible { outline-offset: 2px; }
.calc__side { background: var(--paper); border-radius: var(--radius); padding: 20px 18px; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.section .calc__result p { font-size: 1rem; max-width: none; }
.calc__result span { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 4px; }
.calc__result b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.section .calc__note { margin-top: 16px; font-size: 0.85rem; line-height: 1.45; color: var(--ink-soft); }
.calc__quiz { margin-top: 18px; width: 100%; }
.section .dengi__banks { margin-top: 18px; font-size: 0.98rem; }
.dengi__plain { max-width: 640px; }
.dengi__plain .btn { margin-top: 22px; }
.dengi__trade { display: grid; gap: 22px; }
.section .dengi__trade-text p + p { margin-top: 12px; font-size: 0.95rem; }
.dengi__trade .lead { background: var(--haze); border-radius: var(--radius); padding: 20px 16px; }
.living { margin-top: 40px; padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 720px; }
.living__title { font-size: 1.25rem; line-height: 1.2; margin: 0 0 12px; padding-right: 84px; }
.living__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.living__table th, .living__table td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.living__table td { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.living__table thead th { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.living__table thead th:not(:first-child) { text-align: right; }
.living__table tbody th { font-weight: 400; }
.section .living__note { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.living .sample__badge { top: 14px; right: 14px; }

.otzyvy { background: var(--paper); }
.section .otzyvy__note { font-size: 0.92rem; color: var(--ink-soft); }
.reviews { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.review { padding: 22px 20px 20px; background: var(--haze); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.review__stars { color: #85601a; letter-spacing: 2px; font-size: 0.95rem; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.review__who { margin-top: auto; display: grid; gap: 2px; font-size: 0.9rem; }
.review__who span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Свободные дома: дополнения к карточке и легенде ---------- */
.section .plan__todo { margin-top: 12px; font-size: 0.88rem; line-height: 1.5; max-width: none; }
.plan__panel .plan__book { margin-top: 12px; white-space: normal; line-height: 1.25; min-height: 48px; }
.plan__price-todo { display: block; margin-top: 4px; font-size: 0.82rem; font-weight: 400; }

/* ---------- Сигнатура «Что я проверил»: протокол на графите ---------- */
.proveril { background: var(--graphite); color: var(--haze); }
.proveril h2 { color: var(--paper); font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.08; max-width: 19ch; }
.section .proveril__head p { color: rgba(237, 241, 234, 0.86); }
.todo--dark { background: rgba(237, 241, 234, 0.06); border-color: rgba(237, 241, 234, 0.55); color: var(--haze); }
.todo--dark .todo__tag { color: rgba(237, 241, 234, 0.8); }
.proof { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(237, 241, 234, 0.24); }
.proof__row { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgba(237, 241, 234, 0.24); }
.proof__what { font-size: 1.3rem; line-height: 1.2; color: var(--paper); }
.section .proof__how { font-size: 1rem; color: rgba(237, 241, 234, 0.88); }
.proof__doc { margin: 8px 0 0; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.proof__media { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: rgba(237, 241, 234, 0.08); }
.proof__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proof__doc figcaption { display: grid; gap: 2px; font-size: 0.88rem; line-height: 1.35; color: rgba(237, 241, 234, 0.92); }
.proof__doc-tag { font-size: 0.75rem; font-weight: 600; color: rgba(237, 241, 234, 0.72); }
.proof__doc > .sample__badge { top: 4px; right: auto; left: 4px; font-size: 0.62rem; padding: 3px 6px; }
/* документы показываем по запросу (Шухрат 13.10): на компьютере это пишет подпись, на телефоне подпись скрыта — ярлык на листе */
.proof__doc { position: relative; }
.proof__ask { display: none; }
.doc-sheet {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px 10% 9%;
  background: #fbfaf6;
  color: #3a3d42;
  font-size: 0.42rem;
  line-height: 1.3;
}
.doc-sheet b { font-size: 0.56rem; font-weight: 700; margin-bottom: 3px; }
.doc-sheet i { display: block; height: 3px; border-radius: 2px; background: #dcdad2; }
.doc-sheet i:last-child { width: 60%; }
@media (max-width: 899px) { .doc-sheet { padding: 24px 10% 8%; } .doc-sheet span { display: none; } .doc-sheet b { font-size: 0.6rem; } }
.proveril__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.section .proveril__end p { color: var(--paper); font-size: 1.05rem; }
.proveril mark.todo-inline,
.foot mark.todo-inline { background: rgba(237, 241, 234, 0.12); color: var(--paper); border-bottom-color: rgba(237, 241, 234, 0.6); }
.proveril :focus-visible { outline-color: var(--paper); }

/* ---------- Вопросы: кнопка квиза под списком ---------- */
.section .faq__quiz { margin-top: 32px; }
.faq__quiz .btn { white-space: normal; line-height: 1.25; text-align: center; min-height: 48px; }

/* ---------- Запись на просмотр ---------- */
.zapis__grid { display: grid; gap: 36px; }
.section .zapis__lead { margin-bottom: 24px; }
.zapis__facts { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.zapis__map {
  margin-top: 24px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe6d6;
  border: 1px solid var(--rule);
}
.zapis__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.next { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.next__title { font-size: 1.45rem; line-height: 1.15; margin-bottom: 12px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  grid-row: 1 / span 2;
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.95;
  color: var(--moss);
}
.steps h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.15; margin: 0 0 4px; }
.section .steps p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.section .next__todo { margin-top: 16px; font-size: 0.9rem; max-width: none; }

/* ---------- Подвал ---------- */
.foot__agent { max-width: 480px; }
.foot__agent p { font-size: 0.95rem; line-height: 1.5; color: rgba(237, 241, 234, 0.85); }
.foot__agent p + p { margin-top: 8px; }
.foot__legal a { color: rgba(237, 241, 234, 0.85); padding: 12px 0; margin: -12px 0; }

/* ---------- Диалоги: запись на просмотр и квиз (каркас из v2) ---------- */
html:has(dialog.book[open]) { overflow: hidden; }
.book {
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.book::backdrop { background: rgba(42, 46, 52, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.book__in { position: relative; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.book__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--haze);
  color: var(--graphite);
  cursor: pointer;
}
.book__close:hover { background: #dfe5db; }
.book__title { font-size: 1.35rem; line-height: 1.15; padding-right: 52px; margin-bottom: 18px; max-width: none; }
.book__call { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.book__call a { color: var(--graphite); font-weight: 600; white-space: nowrap; }

.quiz__progress { font-size: 0.85rem; font-weight: 600; color: var(--moss); margin-bottom: 4px; }
.quiz .book__title { margin-bottom: 14px; }
.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__q { font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin-bottom: 12px; padding: 0; }
.quiz__q:focus { outline: none; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.quiz__opt:hover { border-color: var(--graphite); background: var(--haze); }
.quiz__opt[aria-pressed="true"] { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); background: var(--haze); }
.quiz__hint { margin: -6px 0 10px; font-size: 0.88rem; color: var(--ink-soft); }
/* несколько ответов: у варианта квадратик с галочкой, как у чекбокса */
.quiz__opts--multi .quiz__opt { position: relative; padding-left: 48px; }
.quiz__opts--multi .quiz__opt::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--field); border-radius: 4px; background: var(--paper); }
.quiz__opts--multi .quiz__opt[aria-pressed="true"]::before { background: var(--graphite); border-color: var(--graphite); }
.quiz__opts--multi .quiz__opt[aria-pressed="true"]::after { content: ""; position: absolute; left: 23px; top: 50%; width: 6px; height: 11px; margin-top: -7px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.quiz__next { width: 100%; margin-top: 14px; }
.quiz__next:disabled { opacity: 0.4; cursor: default; }
.quiz__back {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz__summary { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--haze); }
.quiz__summary p { font-size: 1rem; line-height: 1.5; }
.quiz__summary a { color: var(--graphite); font-weight: 600; }
.quiz__ask { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; margin: 20px 0 12px; }

/* ---------- Шире телефона ---------- */
@media (min-width: 768px) {
  .lead--grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: start; }
  .lead__wide { grid-column: 1 / -1; }
  .lead--grid .lead__submit { width: auto; min-width: 280px; }
  .handover { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 64px; }
  .tabs { margin-bottom: 32px; }
  .tabs__tab { flex: 0 0 auto; padding: 12px 26px; }
  .calc { padding: 28px; }
  .video__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .video__play::after { left: 34px; top: 28px; border-width: 14px 0 14px 22px; }
  .video__title { font-size: 1.8rem; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; padding-top: 20px; }
  .steps li::before { grid-row: auto; margin-bottom: 10px; font-size: 2.1rem; }
  .book { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; border-radius: 10px; }
  .book__in { padding: 28px; }
  .book__title { font-size: 1.5rem; }
  .quiz { width: min(560px, calc(100% - 32px)); }
  .todo--section.stub-band { padding-bottom: 72px; }
  .todo--section.stub-band--paper { padding: 72px 0 0; }
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .video__text { left: 32px; bottom: 28px; }
  .todo--section.video { padding-bottom: 96px; }
}

/* планшет: карточка Шухрата строкой под плашкой той же ширины */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__layout { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 34vh; }
  .plaque { max-width: 660px; }
  .agent { width: 100%; max-width: 660px; margin-left: 0; padding: 16px 48px 20px; }
  .agent__head { grid-template-columns: 56px 1fr auto; }
  .agent__photo { grid-row: auto; }
  .agent__phone { grid-column: 3; margin-top: 0; }
  .agent__phone b { font-size: 1.3rem; }
}
@media (max-width: 767px) {
  .hero__layout { flex-direction: column; align-items: stretch; gap: 0; }
}

@media (min-width: 900px) {
  .calc { grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
  .calc__side { padding: 24px; }
  .calc__result b { font-size: 1.75rem; }
  .proof__row { grid-template-columns: 220px 1fr 200px; gap: 28px; align-items: start; padding: 26px 0; }
  .proof__doc { margin-top: 0; grid-template-columns: 1fr; gap: 8px; }
  .doc-sheet { font-size: 0.56rem; gap: 4px; }
  .doc-sheet b { font-size: 0.74rem; }
}

/* компьютер: карточка Шухрата — колонка справа с фото, телефоном и короткой формой */
@media (min-width: 1024px) {
  .plaque { flex: 0 1 660px; }
  .agent {
    flex: 0 0 340px;
    width: 340px;
    margin-left: 0;
    padding: 22px 24px 24px;
    border-top: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: rgba(237, 241, 234, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .agent__head { grid-template-columns: 88px 1fr; gap: 0 16px; align-items: center; }
  .agent__photo { width: 88px; grid-row: auto; }
  .agent__photo .sample__badge { display: block; top: auto; bottom: 6px; left: 50%; right: auto; transform: translateX(-50%); font-size: 0.62rem; padding: 3px 6px; }
  .agent__name { font-size: 1.6rem; }
  .agent__role { margin-top: 6px; font-size: 0.88rem; }
  .agent__facts { display: block; margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--rule); }
  .agent__phone { grid-column: 1 / -1; margin-top: 14px; }
  .agent__phone b { font-size: 1.4rem; }
  .agent__form { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .agent.agent--a { flex: 0 0 320px; width: 320px; padding: 0; }
  .va-photo { height: 180px; }
  .va-name { left: 20px; bottom: 14px; }
  .va-name .agent__name { font-size: 1.8rem; }
  .va-body { padding: 12px 20px 18px; }
  .va-phone b { font-size: 1.3rem; }
  .agent .va-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); }
  .va-lead, .va-form .consent, .va-form .lead__submit, .va-form .lead__status { grid-column: 1 / -1; }
  .va-lead { font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); }
  .va-form .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .va-form input { min-height: 46px; padding-left: 12px; padding-right: 8px; }
  .va-form .consent { font-size: 0.78rem; line-height: 1.35; }
  .agent__lead { font-size: 0.92rem; line-height: 1.45; margin-bottom: 10px; }
  .dengi__trade { grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
  .dengi__trade .lead { padding: 28px; }
  .zapis__grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .zapis__side { padding-top: 8px; }
  .next { margin-top: 72px; }
  .proof__row { grid-template-columns: 260px 1fr 220px; gap: 40px; }
}

/* ---------- Страницы политики и согласия ---------- */
.legal-top { border-bottom: 1px solid var(--rule); background: var(--haze); }
.legal-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.legal-top__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--graphite); }
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; margin-bottom: 20px; }
.legal h2 { font-size: 1.3rem; max-width: none; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.6; max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--graphite); }
.legal__todo { margin: 8px 0 24px; }
.legal .legal__date { margin-top: 32px; font-size: 0.9rem; color: var(--ink-soft); }
.legal-foot { padding: 8px 0 32px; }

/* ---------- Адаптив ---------- */
/* до 1279: семь разделов в шапку не помещаются — они уходят в бургер (как было на телефоне в v1) */
@media (max-width: 1279px) {
  .nav, .topbar__nav, .menu__close { display: none; }
  .top__row, .topbar__row { height: 64px; gap: 18px; padding-right: calc(var(--gutter) + 60px); } /* место под бургер */
  .top__call { margin-left: auto; }
  /* бургер закреплён в углу экрана и едет вместе с прокруткой; поверх шторки и полоски, под меню */
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 8px;
    right: var(--gutter);
    z-index: 55; /* поверх панели меню: сам бургер и превращается в крестик */
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }
  /* когда выехала компактная шапка, бургер лежит на её фоне — своя плашка не нужна */
  .topbar.is-shown ~ .menu-toggle { background: transparent; box-shadow: none; }
}

@media (max-width: 1023px) {
  .brand { font-size: 1.2rem; letter-spacing: 0.1em; }
  .brand--bar { font-size: 1.05rem; }
  .top__call b, .topbar__call b { font-size: 0.95rem; }
  /* паспорт дома: пять колонок, «Керамзитобетонные блоки» не должны выталкивать цену за экран */
  .passport__item { padding: 0 18px; }
  .passport__item dd { font-size: 1.15rem; }
  .passport__item--price dd { font-size: 1.35rem; }

  .poselok__grid { gap: 40px; }
  .facts { gap: 20px 28px; }
}

@media (max-width: 767px) {
  html { font-size: 16px; }
  :root { --gutter: 16px; }

  .top__row { gap: 16px; }
  .top__call, .topbar__call, .topbar__book { display: none; }
  .topbar__row { padding-right: calc(var(--gutter) + 56px); } /* 64 как .top__row: бренд по одной оси с бургером */
  .brand--bar { font-size: 1.05rem; }
  .brand { font-size: 1.3rem; }

  .hero { min-height: 94svh; }
  .hero__photo { top: auto; bottom: 0; height: 128%; object-position: 56% 50%; }
  .hero__layout { padding-top: 30vh; }
  .plaque {
    padding: 26px 20px 24px;
    max-width: none;
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
    border-radius: 10px 10px 0 0;
  }
  .plaque__title { font-size: 1.85rem; margin-bottom: 14px; }
  .plaque__lead { font-size: 1rem; margin-bottom: 16px; }
  .plaque__price { margin-bottom: 18px; }
  .plaque__price b { font-size: 1.4rem; }
  .plaque__actions { gap: 10px; }
  .plaque__actions .btn { flex: 1 1 auto; }

  .passport__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .passport__item { padding: 0; border-left: 0; }
  .passport__item--price {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }

  .section { padding: 48px 0; }
  .section__head { margin-bottom: 24px; }
  h2 { font-size: 1.5rem; margin-bottom: 14px; }
  .section p { font-size: 1rem; line-height: 1.55; }
  .only-wide { display: none; }
  .poselok__grid { grid-template-columns: 1fr; gap: 24px; }

  /* горизонтальная лента фото: одна карточка на 85 % экрана, следующая выглядывает */
  .strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }

  .dom__grid { grid-template-columns: 1fr; gap: 24px; }
  .plans { margin-top: 40px; }
  .plans__head { margin-bottom: 16px; }
  .plans__head h3 { font-size: 1.3rem; }
  .plans__grid { gap: 12px; }
  .plans__item svg { padding: 8px; }
  .section .plans__hint { display: block; }
  .dom__photo img { aspect-ratio: 4 / 3; }
  .spec > div { grid-template-columns: 1fr 1.1fr; gap: 12px; padding: 9px 0; }
  .spec__more summary { display: block; border-bottom: 1px solid var(--rule); }
  .spec__more[open] summary { border-bottom: 0; }
  .faq__item summary { padding: 14px 0; font-size: 1rem; gap: 12px; }
  .faq__body { padding-right: 32px; padding-bottom: 16px; }

  .gallery__item--wide { grid-column: auto; grid-row: auto; }
  .gallery__item--wide img { aspect-ratio: 4 / 3; height: auto; flex: none; }
  .gallery__item figcaption { font-size: 0.85rem; padding-top: 6px; }
  .section .gallery__hint { display: block; }
  .lightbox__prev, .lightbox__next { display: none; }
  .lightbox__close { width: 44px; height: 44px; top: 12px; right: 12px; }
  .lightbox__bar { padding: 10px 16px 16px; }
  .handover { margin-top: 36px; }
  .handover h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .check > div { grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; }
  .check dt { font-size: 0.88rem; }
  .check dd { font-size: 0.95rem; }

  .foot__legal { margin-top: 24px; }
  .foot__row { gap: 16px; }
  /* липкая полоска (~70 px) не должна закрывать последнюю строку подвала */
  .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  /* липкая полоска: цена + номер всегда под пальцем */
  .stick {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%);
    transition: transform 220ms ease;
  }
  .stick.is-shown { transform: none; }
  .stick__facts { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .stick__facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
  .stick__facts > span { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
  .stick__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .stick__book { min-height: 48px; padding: 12px 18px; }
  /* круглая кнопка-трубка: звонок одним касанием */
  .stick__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--graphite);
    color: var(--graphite);
    background: var(--paper);
  }
  body.has-lightbox .stick { display: none; }

  .plan { grid-template-columns: 1fr; gap: 20px; }
  .plan__tip { display: none; }
  /* схема шире экрана — прокрутка пальцем; ширину задаёт plan.js (зона продажи во всю ширину экрана), 1080 — запас без JS */
  .plan__canvas { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .plan__svg { width: 1080px; max-width: none; }
  .plan__canvas { touch-action: pan-x pan-y; } /* браузер двигает схему, щипок остаётся нам */
  .section .plan__scroll-hint { display: block; }
  .plan__zoom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
  }
  .plan__zoom-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--graphite);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }
  .plan__zoom-btn:disabled { color: rgba(42, 46, 52, 0.35); cursor: default; }
  .plan__zoom-btn:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
  /* легенда: ровная сетка 2×2, маркеры — по строке на каждый */
  .section .plan__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
  .section .plan__legend--markers { grid-template-columns: 1fr; margin-top: 12px; }
  .plan__count--marker { line-height: 1.4; }
  /* свободные участки: подпись строкой, номера — в несколько рядов, все видны сразу */
  .plan__free { display: block; margin-top: 18px; padding-top: 16px; }
  .plan__free-label { display: block; margin: 0 0 10px; }
  .plan__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .plan__chip { height: 44px; min-width: 48px; }
  /* карточка участка — шторка снизу */
  .plan__panel { display: none; }
  .plan__panel.is-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    max-height: 80svh;
    overflow-y: auto;
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    background: var(--paper);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
    animation: sheet-in 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  .plan__panel .plan__house { max-height: 160px; aspect-ratio: auto; margin-bottom: 14px; }
  .plan__panel .plan__scheme { margin-bottom: 14px; padding: 6px; }
  .plan__panel .plan__scheme img { max-height: 200px; }
  .plan__panel.is-open .plan__close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 46, 52, 0.7);
    color: var(--paper);
    cursor: pointer;
  }
  .section .plan__panel-title { font-size: 1.4rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 24px; }
  .facts dt, .facts dd { font-size: 0.92rem; }
  /* под аэрофото факты идут строками «Лес — …», без сиротских ячеек и рваных переносов */
  .facts--row { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
  .facts.zapis__facts { grid-template-columns: 1fr; }
  .facts--row > div { display: flex; gap: 8px; padding: 9px 0; border-top: 1px solid var(--rule); }
  .facts--row dt { flex: 0 0 64px; }
  .facts--row dd { margin-top: 0; }
  .section .wide__cta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.95rem; }
  .poselok { padding-bottom: 36px; }
  .wide { margin-top: 40px; }
  .wide__caption { padding-top: 16px; }
  .foot { padding: 40px 0; }
}

/* ---------- Телефон, правка 12.10: фото первого экрана открыто, «Что я проверил» короче, отзывы лентой ---------- */
.review[data-clone], .reviews__hint { display: none; }
@media (max-width: 767px) {
  /* фото сверху целиком, плашка начинается под ним, а не поверх */
  .hero { display: block; min-height: 0; }
  .hero__photo { position: relative; inset: auto; display: block; height: 56svh; min-height: 300px; object-position: 50% 55%; }
  .hero__layout { padding-top: 0; margin-top: -16px; }
  .va-photo { height: auto; aspect-ratio: 4 / 3; } /* под настоящее фото: не сплющивать */
  .va-name .agent__name { font-size: 1.6rem; }

  /* протокол: доказательство маленькой карточкой справа от пункта */
  .proof { margin-top: 24px; }
  .proof__row { grid-template-columns: 1fr 72px; gap: 4px 14px; padding: 16px 0; align-items: start; }
  .proof__what, .proof__how { grid-column: 1; }
  .proof__what { font-size: 1.12rem; }
  .section .proof__how { font-size: 0.94rem; line-height: 1.45; }
  .proof__doc { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: block; }
  .proof__media { aspect-ratio: 3 / 4; }
  .proof__doc figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc-sheet { padding: 10px 8px; }
  .doc-sheet b { font-size: 0.5rem; }
  .doc-sheet i { height: 2px; }
  .proof__doc > .sample__badge { top: auto; bottom: 3px; left: 3px; font-size: 0.55rem; padding: 2px 4px; }
  .proof__ask { display: block; position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 3px 0; border-radius: 3px; background: var(--moss); color: #fff; font: 600 0.55rem/1.1 var(--font-text); text-align: center; white-space: nowrap; }
  .proveril__end { margin-top: 24px; }

  /* отзывы: лента во всю ширину экрана, следующая карточка выглядывает */
  .reviews { display: flex; gap: 12px; overflow-x: auto; margin: 24px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews.is-drifting { scroll-snap-type: none; }
  .review, .review[data-clone] { display: flex; flex: 0 0 82%; scroll-snap-align: start; }
  .section .reviews__hint { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--ink-soft); }
}

/* ---------- Аудит телефона 12.10 ---------- */
p, li, dd, dt, figcaption, summary { text-wrap: pretty; } /* без одиноких слов в последней строке */
@media (max-width: 400px) {
  /* калькулятор на узком экране: значение под подписью, цифры помещаются */
  .calc__lbl { flex-direction: column; align-items: flex-start; gap: 0; }
  .calc__result b { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plaque, .plan__panel.is-open { animation: none; }
  .btn, .stick, .topbar, .menu, .menu-overlay, .menu__list li, .menu__foot, .menu-toggle span { transition: none; }
}

/* ---------- Страница одного дома (dom-107/ и др.) ---------- */
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--graphite); }
.crumbs span { margin: 0 4px; }
.hero--house .hero__photo { object-position: 50% 55%; }
.gallery--house { grid-template-columns: repeat(3, 1fr); }
.gallery--house .gallery__item figcaption { font-size: 0.9rem; color: var(--ink-soft); padding-top: 8px; }
.gallery--house .gallery__item img { cursor: zoom-in; }
.facts--four { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.drugie__title { margin-bottom: 32px; }
.drugie__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.drugie__card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--graphite);
  background: var(--haze);
  transition: border-color 0.2s;
}
.drugie__card:hover { border-color: var(--graphite); }
.drugie__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.drugie__body { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; line-height: 1.4; color: var(--ink-soft); }
.drugie__body b { font-size: 1.05rem; color: var(--graphite); font-weight: 600; }
.drugie__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--graphite) !important; margin-top: 4px; }
.drugie__price::after { content: "  →"; font-family: var(--font-body, inherit); font-size: 1rem; }
@media (max-width: 1023px) {
  .facts--four { grid-template-columns: 1fr 1fr; }
  .drugie__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .gallery--house { grid-template-columns: none; }
  .drugie__card { grid-template-columns: 120px 1fr; gap: 14px; padding: 10px; }
  .drugie__body { font-size: 0.9rem; }
  .crumbs { font-size: 0.8rem; margin-bottom: 10px; }
}
/* верх фасада 107 тёмный — дымка плотнее, чтобы бренд читался */
.hero--house::before { z-index: 1; height: 220px; background: linear-gradient(to bottom, rgba(237, 241, 234, 0.85), rgba(237, 241, 234, 0)); }
.page-house .zapis__facts dd a { display: inline-block; padding: 12px 0; margin: -12px 0; }
/* дом 97А: схема и список комнат рядом */
.plan97 { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.plan97__scheme { background: var(--paper); border-radius: var(--radius); padding: 20px; }
.plan97__scheme img { width: 100%; height: auto; }
.plan97__rooms > div { grid-template-columns: 150px 1fr; }
.plan97__rooms dt { padding-left: 0; color: var(--graphite); font-weight: 600; }
.plan97__rooms dt::before { display: none; }
/* дом 150: номера свободных домов */
.doma__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; }
.doma__list li { min-width: 64px; padding: 10px 16px; text-align: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 767px) {
  .plan97 { grid-template-columns: 1fr; gap: 24px; }
  .plan97__scheme { max-width: 340px; padding: 14px; }
  .plan97__rooms > div { grid-template-columns: 120px 1fr; }
  .doma__list li { min-width: 56px; padding: 8px 12px; font-size: 1.05rem; }
}

/* ---------- Правки Шухрата 13.10: слоган, скидка 3 %, портрет, список «что входит» ---------- */
.plaque__eyebrow { margin-bottom: 10px; font-size: 0.95rem; font-weight: 600; color: var(--moss); }
.plaque__price:has(+ .plaque__sale) { margin-bottom: 8px; }
.plaque__sale { margin-bottom: 24px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); max-width: 46ch; }
.plaque__sale b, .dengi__sale b { color: var(--moss); }
.section .dengi__sale { margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid var(--lawn); background: var(--haze); font-size: 0.98rem; }
.va-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 20%; }
.faq__list { margin: 8px 0 12px; padding-left: 1.2em; list-style: disc; }
.section .faq__list li { font-size: 1rem; line-height: 1.55; margin-bottom: 4px; max-width: 64ch; }
@media (max-width: 767px) {
  .plaque__eyebrow { font-size: 0.88rem; margin-bottom: 8px; }
  .plaque__sale { margin-bottom: 18px; font-size: 0.9rem; }
}

/* ---------- «Сколько ехать»: список мест + картинка маршрута (13.10, tools/put_gen.py и put_maps.py) ---------- */
.put { margin-top: 72px; }
.put__head { max-width: 720px; margin-bottom: 24px; }
.put__head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 10px; }
.section .put__head p { font-size: 0.98rem; color: var(--ink-soft); }
.put__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
.put__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.put__list li { border-bottom: 1px solid var(--rule); }
.put__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 10px 12px 10px 11px; border: 0; border-left: 3px solid transparent;
  background: none; font: inherit; color: var(--graphite); text-align: left; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.put__item:hover { background: rgba(255, 255, 255, 0.6); }
.put__item[aria-pressed="true"] { background: var(--paper); border-left-color: var(--lawn); }
.put__item:focus-visible { outline: 2px solid var(--moss); outline-offset: -2px; }
.put__num {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--graphite); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.put__item[aria-pressed="true"] .put__num { background: var(--moss); }
.put__name { flex: 1; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.put__name small { display: block; margin-top: 2px; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.put__time { flex: none; text-align: right; white-space: nowrap; }
.put__time b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.put__time small { font-size: 0.84rem; color: var(--ink-soft); }
.put__map { position: sticky; top: 88px; margin: 0; }
.put__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #e9ece4; border: 1px solid var(--rule); border-radius: var(--radius); }
.section .put__note { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.put__open { display: block; padding: 10px 0 0; color: var(--graphite); font-weight: 500; }
@media (max-width: 767px) {
  .put { margin-top: 48px; }
  .put__grid { grid-template-columns: 1fr; gap: 20px; }
  /* картинка над списком и прилипает: нажали на место ниже — маршрут виден сразу */
  .put__map { order: -1; top: var(--put-top, 64px); z-index: 2; padding-bottom: 8px; background: var(--haze); }
  .put__time b { font-size: 1.25rem; }
}

/* ---------- схема участка 6 соток (13.10, tools/uchastok.py) ---------- */
.uchastok { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1000px; }
.uchastok__fig { position: relative; margin: 0; padding: 12px; background: var(--haze); border-radius: var(--radius); }
.uchastok__svg { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.uchastok__badge { position: absolute; bottom: 10px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px var(--rule); font: 600 0.7rem/1.1 var(--font-text); color: var(--ink-soft); }
.uchastok__text h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.section .uchastok__text p { color: var(--ink-soft); }
.uchastok__legend { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.uchastok__legend li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.45; }
.uchastok__legend b { color: var(--graphite); font-weight: 600; }
.uc-sw { display: block; width: 22px; height: 16px; margin-top: 3px; border-radius: 3px; }
.uc-sw--house { background: var(--graphite); }
.uc-sw--out { background: #c9cfc4; box-shadow: inset 0 0 0 1.5px #8d958a; }
.uc-sw--zone { border: 1.5px dashed var(--moss); }
.section .uchastok__note { margin-top: 18px; font-size: 0.85rem; line-height: 1.5; }
.uc-street { fill: #d6d8d2; }
.uc-street-t { font-size: 13px; font-weight: 600; fill: #6c7268; letter-spacing: 0.08em; }
.uc-lawn { fill: #dde8cf; }
.uc-lawn-t { font-size: 14px; font-weight: 600; fill: #6f8a52; }
.uc-pave { fill: #efede6; }
.uc-fence { fill: none; stroke: var(--graphite); stroke-width: 2.2; }
.uc-zone { fill: none; stroke: var(--moss); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 0.7; }
.uc-tree { fill: #a9c286; }
.uc-house { fill: var(--graphite); }
.uc-house-t { font-size: 17px; font-weight: 700; fill: #fff; }
.uc-house-s { font-size: 13px; fill: rgba(255, 255, 255, 0.85); }
.uc-porch { fill: #fff; stroke: var(--graphite); stroke-width: 1.2; }
.uc-out { fill: #c9cfc4; stroke: #8d958a; stroke-width: 1.5; }
.uc-bath { fill: #dcc6a0; stroke: #a78a5c; stroke-width: 1.5; }
.uc-gaz { fill: #fff; stroke: #8d958a; stroke-width: 1.5; stroke-dasharray: 4 3; }
.uc-name { font-size: 13px; font-weight: 700; fill: var(--graphite); }
.uc-small { font-size: 11px; fill: #4f5560; }
.uc-dim { stroke: #5b6068; stroke-width: 1; }
.uc-dimt { font-size: 12px; font-weight: 600; fill: #3d424a; }
.uc-shadow { fill: rgba(42, 46, 52, 0.18); }
.uc-ridge { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.uc-tree { stroke: #8fae68; stroke-width: 1; }
.uc-bed { fill: #b89f7c; stroke: #9a835f; stroke-width: 1; }
.uc-car { fill: #8a929b; }
.uc-car-w { fill: #cfd6dd; }
.uc-terrace { fill: #e6d6b8; stroke: var(--graphite); stroke-width: 1.5; }
.uc-terrace-t { font-size: 11px; font-weight: 600; fill: #5b4a2c; }
.uc-annex { fill: #5d636c; }
.uc-annex-t { font-size: 11px; font-weight: 600; fill: rgba(255, 255, 255, 0.9); }
.uc-opt { transition: opacity 0.25s ease; }
.uchastok.is-now .uc-opt { opacity: 0; visibility: hidden; }
.uchastok__switch { display: flex; gap: 4px; margin-bottom: 10px; padding: 3px; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); width: max-content; max-width: 100%; }
.uchastok__switch button { padding: 8px 14px; min-height: 36px; border: 0; border-radius: 999px; background: none; font: 600 0.85rem/1.1 var(--font-text); color: var(--ink-soft); cursor: pointer; }
.uchastok__switch button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.uchastok__switch button:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.section .uchastok__free { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--lawn); background: var(--haze); color: var(--graphite); }
.uchastok__free b { color: var(--moss); }
@media (prefers-reduced-motion: reduce) { .uc-opt { transition: none; } }
@media (max-width: 767px) {
  .uchastok { margin-top: 40px; grid-template-columns: 1fr; gap: 20px; }
  .uchastok__fig { padding: 8px; }
  .uchastok__text h3 { font-size: 1.3rem; }
}
