/* moscowresidences.com — флагман-каталог. Палитра и шрифтовая пара — бренд-паспорт
   коммерческого контура (docs/brand/brand-passport.md), отступать от него нельзя.
   Композиция своя: журнальная часть (первый экран, полосные кадры, редакционные секции)
   и рабочая часть (липкая колонка фильтров + поток карточек). */

:root {
  --ink: #100D0B;
  --ink-soft: #1A1613;
  --card: #211C18;
  --line: #332B25;
  --cream: #F4EFE7;
  --cream-dim: #C4BAAC;
  --muted: #8E8477;
  --brass: #C9A227;
  --brass-soft: #E0C86B;
  --wrap: 1180px;
  --pad: clamp(16px, 2vw, 24px);
  --gap: clamp(72px, 9vw, 150px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box }

html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.08 }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.12 }
h3 { font-size: 1.18rem; line-height: 1.3 }
p { margin: 0 0 1.1em }

a { color: var(--brass-soft); text-decoration: none; border-bottom: 1px solid rgba(224,200,107,.35) }
a:hover { color: var(--brass); border-bottom-color: var(--brass) }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px }

img { max-width: 100%; height: auto; display: block }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) }
.wrap--wide { max-width: 1480px }
.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 60; width: auto; height: auto;
  clip: auto; clip-path: none; background: var(--brass); color: var(--ink); padding: 10px 16px;
}

.eyebrow {
  font-family: Inter, sans-serif; font-weight: 500; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 18px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cream-dim); max-width: 62ch }
.note { color: var(--muted); font-size: .85rem; line-height: 1.55 }
.num { font-variant-numeric: tabular-nums }

section { padding: var(--gap) 0 }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 26px; border-radius: 2px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--ink); font-weight: 500; font-size: .95rem;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--ink) }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line) }
.btn--ghost:hover { background: transparent; color: var(--brass); border-color: var(--brass) }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40; background: transparent;
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.top[data-solid] { background: rgba(16,13,11,.94); border-bottom-color: var(--line); backdrop-filter: blur(8px) }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 68px }
.top__mark { display: flex; flex-direction: column; line-height: 1.15; border: 0; color: var(--cream) }
.top__mark:hover { color: var(--brass); border: 0 }
.top__mark b { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 1.12rem; letter-spacing: .01em }
.top__mark span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
.top__nav { margin-left: auto; display: flex; align-items: center; gap: 26px }
.top__nav a { color: var(--cream-dim); border: 0; font-size: .92rem }
.top__nav a:hover { color: var(--brass) }
.top__burger { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; color: var(--cream) }

/* ── Первый экран ─────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 0; margin-top: -68px }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: -1 }
.hero__media img { width: 100%; height: 100%; object-fit: cover }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,13,11,.72) 0%, rgba(16,13,11,.45) 45%, rgba(16,13,11,.95) 100%);
}
/* Горизонтальные поля берём из .wrap: короткая запись `padding: 0 0 …` их сбрасывала, и
   заголовок первого экрана упирался в край окна. */
.hero__in { padding-bottom: clamp(48px, 8vh, 110px); width: 100% }
.hero h1 { max-width: 15ch; margin-bottom: .35em }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.22rem); color: var(--cream-dim); max-width: 46ch }
.hero__figures { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); margin: 34px 0 34px; padding: 0; list-style: none }
.hero__figures b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 500; color: var(--brass-soft) }
.hero__figures span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px }
.hero__cap { margin-top: 26px; color: var(--muted); font-size: .8rem }

/* ── Линейка входа: signature ─────────────────────────────────────────── */
.rail { background: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.rail__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 34px }
.rail__head p { max-width: 58ch; margin: 0 }
.rail__tools { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-bottom: 26px }
.rail__budget { flex: 1 1 320px; min-width: 260px }
.rail__budget label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px }
.rail__budget output { color: var(--brass-soft); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .95rem }
.rail__scale { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden }
.rail__scale button { background: transparent; border: 0; padding: 10px 18px; color: var(--cream-dim); font-size: .85rem }
.rail__scale button[aria-pressed="true"] { background: var(--brass); color: var(--ink) }

input[type="range"] { width: 100%; accent-color: var(--brass); height: 26px }

.rail__grid { display: block; margin: 0; padding: 0 }
.rail__row {
  display: grid; grid-template-columns: minmax(140px, 210px) 1fr minmax(120px, 190px);
  gap: 16px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(51,43,37,.55);
}
.rail__row:hover { background: rgba(201,162,39,.05) }
/* Имя и район — в одну строку с многоточием: перенос делал строки разной высоты, и полосы
   переставали читаться как одна шкала. */
.rail__name { display: flex; align-items: baseline; gap: 8px; color: var(--cream); border: 0; font-size: .92rem; overflow: hidden; white-space: nowrap }
.rail__name:hover { color: var(--brass); border: 0 }
.rail__name b { font-weight: 400; overflow: hidden; text-overflow: ellipsis }
.rail__name i { font-style: normal; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.rail__track { position: relative; height: 18px }
.rail__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(51,43,37,.7) }
.rail__bar {
  position: absolute; top: 50%; transform: translateY(-50%); height: 9px;
  background: linear-gradient(90deg, rgba(201,162,39,.85), rgba(224,200,107,.45));
  border-radius: 1px;
}
.rail__tick { position: absolute; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: rgba(16,13,11,.55) }
.rail__you { position: absolute; top: 0; width: 2px; height: 100%; background: var(--cream) }
.rail__val { text-align: right; font-size: .84rem; color: var(--cream-dim); font-variant-numeric: tabular-nums }
.rail__row[data-out] .rail__bar { background: rgba(142,132,119,.28) }
.rail__row[data-out] .rail__name, .rail__row[data-out] .rail__val { color: var(--muted) }
.rail__legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; color: var(--muted); font-size: .82rem }
/* Ось с промежуточными делениями. Без них правая половина линейки читается как пустое место,
   хотя на самом деле там просто на порядок более дорогие дома: шкала логарифмическая. */
.rail__axis { position: relative; height: 30px; margin-top: 10px; color: var(--muted); font-size: .78rem }
.rail__axis span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap }
.rail__axis span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 6px; background: var(--line) }
.rail__axis span:first-child { transform: none }
.rail__axis span:last-child { transform: translateX(-100%) }
@media (max-width: 760px) {
  .rail__axis span { display: none }
  .rail__axis span:first-child, .rail__axis span:last-child { display: block }
}

/* ── Рабочая часть: фильтры + карточки ────────────────────────────────── */
.work { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 48px); align-items: start }
.filters { position: sticky; top: 88px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px }
.filters h2 { font-size: 1.1rem; margin-bottom: 18px }
.field { margin-bottom: 18px }
.field > label, .field > legend { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0 }
.field select, .field input[type="text"], .field input[type="number"] {
  width: 100%; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 2px;
  padding: 11px 12px; color: var(--cream); min-height: 44px;
}
.field select:focus, .field input:focus { border-color: var(--brass); outline: none }
fieldset { border: 0; margin: 0 0 18px; padding: 0 }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips label {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 2px; font-size: .84rem; color: var(--cream-dim); cursor: pointer;
}
.chips input { position: absolute; opacity: 0; width: 0; height: 0 }
.chips input:checked + span { color: var(--ink) }
.chips label:has(input:checked) { background: var(--brass); border-color: var(--brass); color: var(--ink) }
.chips label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px }
.filters__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px }
.filters__count { color: var(--cream-dim); font-size: .85rem }
.filters__reset { background: none; border: 0; color: var(--brass-soft); font-size: .85rem; padding: 6px 0; border-bottom: 1px solid rgba(224,200,107,.35) }
.filters__open { display: none }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px) }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .25s;
}
.card:hover { border-color: var(--brass) }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-soft) }
.card__media img { width: 100%; height: 100%; object-fit: cover }
.card__level {
  position: absolute; left: 12px; top: 12px; background: rgba(16,13,11,.82); color: var(--brass-soft);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px;
}
.card__body { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 10px; flex: 1 }
.card__name { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; color: var(--cream); border: 0; line-height: 1.2 }
.card__name:hover { color: var(--brass); border: 0 }
.card__meta { color: var(--cream-dim); font-size: .88rem; margin: 0 }
.card__price { font-size: 1.05rem; color: var(--brass-soft); font-variant-numeric: tabular-nums; margin: 0 }
.card__price span { color: var(--cream-dim); font-size: .85rem }
.card__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .84rem; color: var(--cream-dim) }
.card__facts b { display: block; color: var(--cream); font-weight: 400 }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line) }
.card__tag { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.cards__more { display: flex; justify-content: center; margin-top: 32px }
.cards__empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--cream-dim) }

/* ── Полосные кадры и фоновые секции ──────────────────────────────────── */
.band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; padding: 0 }
.band__media { position: absolute; inset: -10% 0 -10%; z-index: -1 }
.band__media img { width: 100%; height: 120%; object-fit: cover }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,13,11,.35), rgba(16,13,11,.9));
}
.band__in { padding-bottom: clamp(40px, 7vh, 90px); width: 100% }
.band h2 { max-width: 18ch }
.band p { max-width: 56ch; color: var(--cream-dim) }
.band__cap { color: var(--muted); font-size: .8rem; margin: 14px 0 0 }

.tone { background: var(--ink-soft) }
.tone--card { background: var(--card) }

/* ── Редакционные секции ──────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start }
.prose { max-width: 68ch }
.prose h3 { margin-top: 34px; color: var(--brass-soft) }
.prose ul { padding-left: 20px; color: var(--cream-dim) }
.prose li { margin-bottom: .5em }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden }
.figures > div { background: var(--ink); padding: clamp(20px, 2.4vw, 30px) }
.figures dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px }
.figures dd { margin: 0 }
.figures b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; color: var(--brass-soft); font-variant-numeric: tabular-nums }
.figures span { display: block; margin-top: 6px; color: var(--cream-dim); font-size: .86rem }

.areas { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none }
.areas button {
  background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 9px 14px;
  color: var(--cream-dim); font-size: .88rem; min-height: 40px; transition: border-color .2s, color .2s;
}
.areas button:hover { border-color: var(--brass); color: var(--brass) }
.areas i { font-style: normal; color: var(--muted); font-size: .8rem; margin-left: 7px }

/* ── Таблицы ──────────────────────────────────────────────────────────── */
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius) }
table { width: 100%; border-collapse: collapse; font-size: .92rem }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap }
th { font-family: Inter, sans-serif; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass) }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums }
tbody tr:last-child td { border-bottom: 0 }
tbody tr:hover { background: rgba(201,162,39,.05) }
td.empty { color: var(--muted) }

/* ── Страница объекта ─────────────────────────────────────────────────── */
.crumbs { padding: 18px 0 0; font-size: .84rem; color: var(--muted) }
.crumbs a { color: var(--cream-dim); border: 0 }
.crumbs a:hover { color: var(--brass) }

.obj__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none }
.obj__chips li { border: 1px solid var(--line); border-radius: 2px; padding: 7px 13px; font-size: .84rem; color: var(--cream-dim); background: rgba(16,13,11,.5) }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start }
.aside { position: sticky; top: 88px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px) }
.aside dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; margin: 0 0 20px }
.aside dt { color: var(--muted); font-size: .84rem }
.aside dd { margin: 0; text-align: right; font-size: .9rem; font-variant-numeric: tabular-nums }

.shares { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none }
.share__head { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--cream-dim); margin-bottom: 6px }
.share__bar { height: 8px; background: var(--line); border-radius: 1px; overflow: hidden }
.share__bar i { display: block; height: 100%; background: var(--brass); border-radius: 1px }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 18px) }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius) }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s }
.gallery figure:hover img { transform: scale(1.04) }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem }
.g-12 { grid-column: span 12; aspect-ratio: 21 / 9 }
.g-6 { grid-column: span 6; aspect-ratio: 16 / 10 }
.g-4 { grid-column: span 4; aspect-ratio: 4 / 5 }

.neighbours { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px }
.neighbour { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--cream); background: var(--card) }
.neighbour:hover { border-color: var(--brass); color: var(--cream) }
.neighbour b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; font-weight: 500; margin-bottom: 6px }
.neighbour span { display: block; color: var(--cream-dim); font-size: .86rem }

/* ── Форма ────────────────────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.form .field { margin: 0 }
.form .field--wide { grid-column: 1 / -1 }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea, .form select {
  width: 100%; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; color: var(--cream); min-height: 46px;
}
.form textarea { min-height: 120px; resize: vertical }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brass); outline: none }
.form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--cream-dim) }
.form__agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brass) }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form__err { color: #E0A0A0; font-size: .84rem; margin-top: 6px }

/* ── Подвал и cookie ──────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--ink-soft); padding: clamp(48px, 6vw, 80px) 0 40px }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 34px }
.foot__grid h3 { font-family: Inter, sans-serif; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
.foot__grid ul { list-style: none; margin: 0; padding: 0 }
.foot__grid li { margin-bottom: 8px }
.foot__grid a { color: var(--cream-dim); border: 0; font-size: .9rem }
.foot__grid a:hover { color: var(--brass) }
.foot__legal { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: .82rem; line-height: 1.6 }
.foot__legal p { margin: 0 0 .7em; max-width: 92ch }

.crumb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap;
  gap: 14px; align-items: center; justify-content: center; padding: 12px 16px;
  background: rgba(26,22,19,.97); border-top: 1px solid var(--line); font-size: .84rem; color: var(--cream-dim);
}
.crumb[hidden] { display: none }
.crumb button { background: var(--brass); border: 0; color: var(--ink); padding: 8px 18px; border-radius: 2px; min-height: 38px }

dialog {
  border: 1px solid var(--line); background: var(--ink-soft); color: var(--cream);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); max-width: 620px; width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(16,13,11,.82) }
.dialog__close { position: absolute; right: 14px; top: 12px; background: none; border: 0; color: var(--cream-dim); font-size: 1.4rem; line-height: 1 }

/* ── Движение ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease }
  [data-reveal].is-in { opacity: 1; transform: none }
  .rail__row .rail__bar { transform-origin: left center; animation: railgrow .7s ease both }
  @keyframes railgrow { from { transform: translateY(-50%) scaleX(.02) } to { transform: translateY(-50%) scaleX(1) } }
}

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work { grid-template-columns: 1fr }
  .filters { position: static; display: none }
  .filters[data-open] { display: block }
  .filters__open { display: inline-flex; margin-bottom: 20px }
  .split { grid-template-columns: 1fr }
  .aside { position: static }
  .foot__grid { grid-template-columns: 1fr 1fr }
}

@media (max-width: 760px) {
  .top__nav { display: none }
  .top__nav[data-open] {
    display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 12px var(--pad);
  }
  .top__nav[data-open] a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line) }
  .top__burger { display: inline-flex; margin-left: auto }
  .cards { grid-template-columns: 1fr }
  .two { grid-template-columns: 1fr }
  .form { grid-template-columns: 1fr }
  .rail__row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0 }
  .rail__val { text-align: left }
  .g-12, .g-6, .g-4 { grid-column: span 12; aspect-ratio: 16 / 10 }
  .foot__grid { grid-template-columns: 1fr }
  .band { min-height: 74vh }
}
