/* Семья meridian — средний сегмент.
   Цвета — только палитра сайта (--c-*), ни одного цвета в коде: смоук это проверяет.
   Шрифты семьи: Wix Madefor Display 600 (заголовки, цифры), Source Sans 3 400/600 (текст).
   Радиус один на страницу — 2px. Тёмных полос две: транспорт и подвал.
   z-index: 1 — шапка (липкой нет), 2 — уведомление о cookie, больше не используется. */

/* Один файл на начертание: кириллица, латиница и ₽ вместе (tools/fonts.py). Все три начертания
   есть в первом экране — h1, абзац, кнопки — и предзагружаются в base.html. */
@font-face { font-family: "Madefor"; font-weight: 600; font-display: swap;
  src: url("fonts/wix-madefor-display-600-normal.d76ba480e2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300, U+0301, U+0303-0304,
    U+0308-0309, U+0323, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+20BD, U+2116,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-400-normal.7376db48f4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300, U+0301, U+0303-0304,
    U+0308-0309, U+0323, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+20BD, U+2116,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("fonts/source-sans-3-600-normal.5e05eb5f50.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300, U+0301, U+0303-0304,
    U+0308-0309, U+0323, U+0329, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2000-206F, U+20AC, U+20BD, U+2116,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Madefor", "Source Sans 3", system-ui, sans-serif;
  --font-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --gap: 24px;
  --pad-tight: 48px;     /* плотно */
  --pad-mid: 72px;       /* средне */
  --pad-wide: 112px;     /* просторно */
  --measure: 66ch;
}

/* --- основа ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--c-muted) var(--c-bg); }
body { margin: 0; font: 400 18px/1.55 var(--font-text); background: var(--c-bg); color: var(--c-text);
  caret-color: var(--c-accent); }
::selection { background: var(--c-accent); color: var(--c-accent-text); }
a { color: var(--c-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em;
  text-wrap: balance; overflow-wrap: break-word; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; letter-spacing: 0; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gap); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--gap); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block { padding: var(--pad-mid) 0; }

/* --- кнопки ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--c-accent); border-radius: var(--radius); background: var(--c-accent); color: var(--c-accent-text);
  font: 600 17px/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out; }
.btn:hover { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-dark-text); }
.btn-ghost { background: transparent; color: var(--c-accent); }
.btn-ghost:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* --- шапка ----------------------------------------------------------------- */
.masthead { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: relative; z-index: 1; }
.masthead-row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { font: 600 20px/1.1 var(--font-display); color: var(--c-text); text-decoration: none; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { display: flex; gap: 24px; flex: 1; min-width: 0; }
.menu a { color: var(--c-muted); text-decoration: none; font-size: 16px; padding: 12px 0; }
.menu a:hover { color: var(--c-text); }
.phone { font: 600 18px/1 var(--font-display); color: var(--c-text); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; padding: 13px 0; }
.crumbs { padding-top: 18px; font-size: 15px; color: var(--c-muted); }
.crumbs a { color: var(--c-muted); }
.crumbs .sep { margin: 0 8px; }

/* --- первый экран ---------------------------------------------------------- */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(calc(var(--h1-max) * .56), 5.4vw, var(--h1-max)); margin-bottom: 20px; }
.hero-text { max-width: 60ch; font-size: 19px; }
.hero-text p:last-child { margin-bottom: 0; }
.factline { margin: 20px 0 28px; color: var(--c-muted); font-size: 17px; font-variant-numeric: tabular-nums; }
.hero-panel { border-top: 2px solid var(--c-accent); padding-top: 20px; }
.stat { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.stat-label { margin: 0 0 6px; color: var(--c-muted); font-size: 15px; }
.stat-value { margin: 0; font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero-address { margin: 0; color: var(--c-muted); font-size: 16px; }
.hero-media { margin-top: 48px; }
.hero-media img { width: 100%; height: clamp(300px, 56vh, 640px); object-fit: cover; border-radius: var(--radius);
  background: var(--c-line); }

/* --- витрина --------------------------------------------------------------- */
.showcase { padding-top: var(--pad-wide); padding-bottom: var(--pad-tight); }
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.showcase-head h2 { margin: 0; }
.deal-switch { display: flex; gap: 4px; font-size: 16px; }
.deal-switch a, .deal-switch span { padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.deal-switch span { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.lots { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lots th { text-align: left; font-weight: 400; font-size: 15px; color: var(--c-muted); padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--c-text); }
.lots td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--c-line); vertical-align: baseline; }
.lots .c-num { text-align: right; padding-right: 0; white-space: nowrap; }
.lots .c-area a { font: 600 20px/1.2 var(--font-display); text-decoration: none; }
.lots .c-area a:hover { text-decoration: underline; }
.lots .c-floor { color: var(--c-muted); white-space: nowrap; }
.lots .c-fin { color: var(--c-muted); }
.lots tbody tr:hover td { background: var(--c-surface); }
.more { margin-top: 8px; }
.more summary { cursor: pointer; color: var(--c-accent); padding: 14px 0; font-weight: 600; }
.showcase-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.actual { margin: 0; color: var(--c-muted); font-size: 15px; }
.empty { max-width: var(--measure); }
/* свободных лотов нет: сообщение с датой и телефон слева, форма листа ожидания справа — та же
   сетка, что у контактов (docs/sostav-sajta.md, раздел 6.1) */
.showcase-wait { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; margin-top: 12px; }
.showcase-wait .empty { font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--font-display); margin: 0 0 10px; text-wrap: balance; }
.showcase-wait .actual { margin: 0 0 28px; }
.showcase-wait .lead-form { background: var(--c-surface); }
.showcase-wait .field input, .showcase-wait .field textarea { background: var(--c-bg); }

/* --- аналитика ставок ------------------------------------------------------ */
/* Идёт сразу за витриной: отделена линией, а не фоном. Цвета — только палитра:
   кривая и половина предложений — акцент, медиана — приглушённый пунктир, здание — текст. */
.market { padding: var(--pad-tight) 0 var(--pad-mid); }
.market > .wrap { border-top: 1px solid var(--c-line); padding-top: var(--pad-tight); }
.market h2 { margin-bottom: 8px; }
.market-sub { color: var(--c-muted); font-size: 16px; margin: 0 0 28px; font-variant-numeric: tabular-nums; }
.market-units { white-space: nowrap; }
.market-fig { margin: 0; max-width: 960px; }
.market-plot { position: relative; padding-top: 88px; }
.market-tag { position: absolute; top: 0; left: var(--x); margin: 0; display: flex; flex-direction: column;
  gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.market-tag-center { transform: translateX(-50%); align-items: center; text-align: center; }
/* у края подпись встаёт сбоку от линии здания, как флажок, и не пересекает её */
.market-tag-start { margin-left: 10px; align-items: flex-start; }
.market-tag-end { transform: translateX(calc(-100% - 10px)); align-items: flex-end; text-align: right; }
.market-tag-label { color: var(--c-muted); font-size: 14px; }
.market-tag-value { font: 600 clamp(22px, 2.4vw, 28px)/1.1 var(--font-display); }
.market-tag-note { font-size: 15px; line-height: 1.4; }
.market-area { position: relative; height: clamp(120px, 15vw, 170px); }
.market-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.market-stop-top { stop-color: var(--c-accent); stop-opacity: .26; }
.market-stop-bottom { stop-color: var(--c-accent); stop-opacity: .03; }
.market-fill { fill: url(#market-grad); }
.market-curve { fill: none; stroke: var(--c-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.market-median { position: absolute; top: 0; bottom: 0; left: var(--m); border-left: 1px dashed var(--c-muted); }
.market-here { position: absolute; top: -10px; bottom: 0; left: var(--x); border-left: 1px solid var(--c-text); }
.market-tag-start ~ .market-area .market-here, .market-tag-end ~ .market-area .market-here { top: -88px; }
.market-dot { position: absolute; left: var(--x); bottom: var(--y); width: 12px; height: 12px; margin: 0 0 -6px -6px;
  border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-bg); }
/* шкала рынка — от min до max; по краям графика поля, где кривая гаснет */
.market-track { position: relative; height: 6px; }
.market-rail, .market-core { position: absolute; top: 0; bottom: 0; border-radius: var(--radius); }
.market-rail { left: var(--lo); width: calc(var(--hi) - var(--lo)); background: var(--c-line); }
.market-core { left: var(--q1); width: calc(var(--q3) - var(--q1)); min-width: 2px; background: var(--c-accent); }
.market-axis { position: relative; height: 1.5em; margin: 8px 0 0; color: var(--c-muted); font-size: 14px;
  font-variant-numeric: tabular-nums; }
.market-axis-min { position: absolute; left: var(--lo); }
.market-axis-max { position: absolute; right: calc(100% - var(--hi)); }
.market-legend { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 16px; font-variant-numeric: tabular-nums; }
.market-legend li { display: flex; align-items: center; gap: 10px; }
.market-key-median::before { content: ""; height: 18px; border-left: 1px dashed var(--c-muted); }
.market-key-core::before { content: ""; width: 24px; height: 6px; background: var(--c-accent); border-radius: var(--radius); }
.market-meta { margin: 12px 0 0; color: var(--c-muted); font-size: 15px; font-variant-numeric: tabular-nums; }

/* --- тезисы ---------------------------------------------------------------- */
.take-lead { padding: var(--pad-mid) 0 var(--pad-mid); }
.take-lead .take-text { max-width: 38ch; font: 600 clamp(22px, 2.4vw, 30px)/1.3 var(--font-display); letter-spacing: -.01em; }
.take-lead .take-text p:last-child, .take-plain .take-text p:last-child { margin: 0; }
.take-plain { padding: var(--pad-tight) 0; }
.take-plain .take-text { max-width: var(--measure); border-top: 1px solid var(--c-line); padding-top: 24px; font-size: 19px; }

/* --- характеристики -------------------------------------------------------- */
.specs-block { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 8px 0 40px; }
.tile { padding: 4px 24px 0 0; }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--c-line); }
.tile dt { color: var(--c-muted); font-size: 15px; margin-bottom: 8px; }
.tile dd { margin: 0; font: 600 clamp(26px, 3vw, 40px)/1.05 var(--font-display); font-variant-numeric: tabular-nums;
  overflow-wrap: break-word; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.spec-grid dt { color: var(--c-muted); font-size: 15px; margin-bottom: 4px; }
.spec-grid dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }

/* --- фото ------------------------------------------------------------------ */
.photos { padding: var(--pad-mid) 0 var(--pad-tight); }
.gallery { display: grid; gap: 16px; }
.gallery .shot { margin: 0; min-width: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--c-line); }
.gallery.n2 { grid-template-columns: 7fr 5fr; grid-auto-rows: clamp(240px, 32vw, 440px); }
.gallery.n3, .gallery.nm { grid-template-columns: 7fr 5fr; grid-auto-rows: minmax(0, 1fr); }
.gallery.n3 .shot:first-child, .gallery.nm .shot:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery.n3 .shot, .gallery.nm .shot { aspect-ratio: 16 / 10; }
.gallery.nm .shot:nth-child(n+4) { display: none; }

/* --- тёмная полоса: тезис 2 и транспорт ----------------------------------- */
.band { background: var(--c-dark); color: var(--c-dark-text); padding: var(--pad-wide) 0 var(--pad-mid); }
.band a { color: var(--c-dark-text); }
.band-lead { max-width: 34ch; font: 600 clamp(22px, 2.5vw, 30px)/1.3 var(--font-display); margin-bottom: 64px; }
.band-lead p:last-child { margin: 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px;
  border-top: 1px solid var(--c-dark-text); padding-top: 32px; }
.stations { list-style: none; margin: 0; padding: 0; font: 600 22px/1.3 var(--font-display); }
.stations li + li { margin-top: 10px; }
.route { max-width: var(--measure); }
.route h3 { font-size: 17px; font-family: var(--font-text); font-weight: 600; margin-bottom: 12px; }

/* --- инфраструктура -------------------------------------------------------- */
.infra { padding: var(--pad-mid) 0 var(--pad-tight); }
.infra-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.infra-row h2 { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); font-size: 17px; }

/* --- тезисы 3–5 ------------------------------------------------------------ */
.trio { padding: var(--pad-tight) 0 var(--pad-wide); }
.trio-grid { display: grid; gap: 40px; }
.trio-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio-grid.n1 { max-width: var(--measure); }
.trio-item { border-top: 2px solid var(--c-accent); padding-top: 20px; min-width: 0; }
.trio-item p:last-child { margin: 0; }

/* --- контакты и форма ------------------------------------------------------ */
.contacts { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.contacts-phone { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin: 0 0 28px; }
.contacts-phone a { color: var(--c-text); text-decoration: none; }
.contacts-list { margin: 0; display: grid; gap: 16px; }
.contacts-list dt { color: var(--c-muted); font-size: 15px; }
.contacts-list dd { margin: 0; overflow-wrap: break-word; }
/* форма ушла на место пустой витрины: контакты — одной колонкой, список — в две */
.contacts-grid-solo { grid-template-columns: minmax(0, 1fr); }
.contacts-grid-solo .contacts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; max-width: 920px; }
.contacts-map { margin-top: 56px; }
.map-frame { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: var(--c-bg); }
/* не ниже 400px: в более низком фрейме карта Яндекса по адресу не показывает ни метку, ни карточку здания */
.map-frame iframe { display: block; width: 100%; height: clamp(420px, 38vw, 460px); border: 0; }
.lead-form { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px; }
.lead-form h3 { font-size: 24px; margin-bottom: 6px; }
.lead-form .micro { color: var(--c-muted); font-size: 16px; margin-bottom: 20px; }
.field { display: block; font-size: 15px; color: var(--c-muted); margin-bottom: 14px; }
.field small { font-size: 14px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 17px/1.4 var(--font-text);
  color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.field input:focus, .field textarea:focus { border-color: var(--c-accent); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--c-muted); margin: 6px 0 20px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--c-accent); }
.lead-form .btn { width: 100%; }
.lead-form .btn[disabled] { opacity: .6; cursor: progress; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
/* отметки результата формы (common/templates/common/form_result.html): скрыты атрибутом hidden;
   без JavaScript показывается та, на которую обработчик формы вернул посетителя (#form-ok, #form-fail) */
.form-result { margin: 16px 0 0; padding: 14px 16px; font-size: 17px; border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-accent); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.form-result-fail { border-left-color: var(--c-text); }
.form-result a { font-weight: 600; white-space: nowrap; }
.form-result[hidden] { display: none; }
.lead-form:not(.is-scripted) .form-result[hidden]:target { display: block; }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--c-muted); }

/* --- карточка лота --------------------------------------------------------- */
.lot { padding: 32px 0 var(--pad-mid); }
.lot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.lot h1 { font-size: clamp(30px, 4vw, 48px); }
.subtitle { color: var(--c-muted); margin-bottom: 24px; }
.price { border-top: 2px solid var(--c-accent); padding-top: 16px; margin-bottom: 28px; }
.price-main { font: 600 clamp(26px, 3vw, 38px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin: 0; }
.price-total { color: var(--c-muted); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.lot-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.lot .actual { margin-bottom: 20px; }
.lot-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: 24px; }
.lot-photos .shot { margin: 0; aspect-ratio: 4 / 3; }
.lot-photos .shot:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.lot-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--c-line); }
.lot-photos .shot { position: relative; }
.lot-photos figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 10px;
  font-size: 14px; line-height: 1.35; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius); }
/* блоки по разметке фото: «О помещении», «Планировка» (docs/razmetka-foto.md, 7.4, 7.5) */
.about-premises p { max-width: var(--measure); }
.layout-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.layout-level { max-width: 760px; }
.layout-level h3 { font-size: clamp(20px, 2vw, 24px); margin: 0 0 .5em; }
.rooms { max-width: 520px; margin: 0 0 18px; padding-left: 1.1em; columns: 2 200px; column-gap: 28px; }
.rooms li { margin-bottom: .3em; break-inside: avoid; }
.layout .plan { margin: 0; }
.layout .plan img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--c-surface);
  border: 1px solid var(--c-line); }
.layout .plan figcaption { margin-top: 8px; font-size: 15px; color: var(--c-muted); }
.status { font: 600 20px/1.3 var(--font-display); color: var(--c-muted); }
.last-price { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.others { list-style: none; margin: 0; padding: 0; max-width: 720px; font-variant-numeric: tabular-nums; }
.others li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.others a { font-weight: 600; text-decoration: none; }
.others-price { color: var(--c-muted); white-space: nowrap; }
.legal { min-height: 40vh; }

/* --- юридические страницы: текст общий на парк, оформление семьи ------------ */
.legal-text h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: .4em; }
.legal-text h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.6em 0 .6em; }
.legal-text h3 { margin: 1.4em 0 .5em; }
.legal-text > p, .legal-text li { max-width: var(--measure); }
.legal-text ul, .legal-text ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal-text li { margin-bottom: .45em; }
.legal-text li p { margin: 0; }
.legal-text li ul { margin: .45em 0 0; }
.legal-edition { color: var(--c-muted); font-size: 16px; }
.legal-table { overflow-x: auto; margin: 0 0 1.2em; }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
.legal-table th { text-align: left; font-weight: 600; color: var(--c-muted); padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--c-text); vertical-align: bottom; }
.legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }

/* --- уведомление о cookie: кнопки одного размера и цвета -------------------- */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--c-surface);
  border-top: 2px solid var(--c-accent); padding: 18px 0; }
.cookie-notice[hidden] { display: none; }
.cookie-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-notice-text { margin: 0; font-size: 15px; max-width: 760px; }
.cookie-notice-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie-btn { min-width: 148px; }

/* --- подвал ---------------------------------------------------------------- */
.footer { background: var(--c-dark); color: var(--c-dark-text); padding: 40px 0; font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--c-dark-text); }
.footer-cookie { padding: 0; border: 0; background: none; color: var(--c-dark-text); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.footer-cookie:hover { text-decoration-thickness: 2px; }
.footer-cookie[hidden] { display: none; }

/* --- мобайл: каждый мультиколоночный блок складывается явно ---------------- */
@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --gap: 16px; --pad-tight: 40px; --pad-mid: 56px; --pad-wide: 72px; }
  body { font-size: 17px; }
  .menu { display: none; }
  .masthead-row { min-height: 60px; gap: 16px; justify-content: space-between; }
  .phone { font-size: 17px; padding: 12px 0; }
  .hero { padding-top: 32px; }
  .hero-grid, .band-grid, .infra-row, .contacts-grid, .lot-grid, .showcase-wait { grid-template-columns: 1fr; gap: 32px; }
  .contacts-grid-solo .contacts-list { grid-template-columns: 1fr; }
  .hero-text { font-size: 18px; }
  .hero-media { margin-top: 32px; padding: 0; }
  .hero-media img { height: clamp(240px, 46vh, 420px); border-radius: 0; }
  .btn { flex: 1 1 auto; }
  .lots { font-size: 16px; }
  .lots .c-fin { display: none; }
  .lot-photos { position: static; }
  .lots th, .lots td { padding-right: 8px; }
  .lots .c-area a { font-size: 17px; }
  .spec-grid, .lot-specs { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .gallery.n2, .gallery.n3, .gallery.nm { grid-template-columns: 1fr; }
  .gallery .shot, .gallery.n3 .shot:first-child, .gallery.nm .shot:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .trio-grid.n3, .trio-grid.n2 { grid-template-columns: 1fr; gap: 28px; }
  .band-lead { margin-bottom: 40px; }
  .lead-form { padding: 24px 20px; }
  .lot-photos { grid-template-columns: 1fr; }
  .lot-photos .shot:first-child { grid-column: auto; }
  .others li { flex-direction: column; gap: 2px; }
  .cookie-notice-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-notice-actions .btn { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
