/* ==========================================================================
   МЕТРЫЧ v2 — дизайн-система
   Монохром + фотография. Воздух, крупная тонкая типографика, скруглённые
   фото-контейнеры, стеклянная навигация, hairline-линии. Две темы: светлая
   (галерейный белый) и тёмная (графит). Цвет — только в фотографиях.
   ========================================================================== */

/* Layout: контейнер 1440, поля 16–56px, фото-блоки со скруглением 32px; ритм секций 72–160px */
:root {
  --bg: #F3F3F1;
  --bg-2: #EAEAE7;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --ink: #0D0D0D;
  --ink-2: #3A3A38;
  --muted: #7E7E79;
  --line: rgba(13, 13, 13, .09);
  --line-2: rgba(13, 13, 13, .17);
  --glass: rgba(255, 255, 255, .66);
  --glass-line: rgba(255, 255, 255, .55);
  --scrim: rgba(8, 8, 8, .55);

  /* роли (совместимость со страницами): акцент = чернила */
  --brand: #0D0D0D;
  --brand-2: #2A2A28;
  --brand-text: #0D0D0D;
  --brand-soft: #E9E9E6;
  --on-brand: #FFFFFF;
  --lamp: #F1F1EE;
  --lamp-soft: #E9E9E6;
  --on-lamp: #0D0D0D;
  --ok: #2E7552;
  --ok-soft: #E3EEE7;
  --bad: #A8432F;
  --bad-soft: #F3E4E0;
  --inverse-bg: #0E0E0F;
  --inverse-ink: #F1F1EE;
  --ok-on-ink: #7FD1A6;
  --bad-on-ink: #F09A88;

  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 30px 60px -28px rgba(0, 0, 0, .22);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 24px -12px rgba(0, 0, 0, .18);

  /* графики: ступени серого, различаются яркостью + подписи */
  --series-1: #0D0D0D;
  --series-2: #8A8A85;
  --series-3: #BDBDB8;
  --grid: #E3E3E0;
  --axis: #C8C8C3;

  /* наследие v1 (процедурная графика) — в монохроме */
  --art-sky: #E6E6E3; --art-sky-2: #F1F1EF; --art-b1: #2A2A28; --art-b2: #121212; --art-b3: #9C9C97;
  --art-win: rgba(255, 255, 255, .22); --art-lit: #F1F1EE; --art-ground: #D6D6D2; --art-tree: #555552;
  --art-line: #0D0D0D; --art-paper: #ECECE9;
  --rm-concrete: #B9B9B4; --rm-concrete-2: #A5A5A0; --rm-screed: #93938E; --rm-wall: #EFEFEC; --rm-floor: #B49A82; --rm-floor-l: #9E846C;
  --rm-sky: #D9DDE3; --rm-frame: #F7F7F5; --rm-wire: #3A3A38; --rm-bulb: #F1F1EE; --rm-wood: #6E5845; --rm-rug: #DCDCD8; --rm-sofa: #2C2C2A; --rm-sofa-2: #444441;
  --rm-plant: #4E6B57; --rm-pot: #8E7A6A; --rm-shade: #0D0D0D; --rm-art: #F3F3F1; --rm-bag: #CFCBC2; --rm-bucket: #7D7D78;

  /* планировки (макет: светлый «бумажный») */
  --plan-bg: #E3E3E0; --plan-floor: #ECECE9; --plan-hi: #DADAD5; --plan-fur: #F3F3F1;
  --plan-wall-top: #151515; --plan-wall-side: #000000; --plan-wall-hi: #4A4A4A; --plan-wall-shadow: rgba(0, 0, 0, .5);
  --plan-line: #6E6E6B; --plan-win: #6E6E6B; --plan-text: #232323; --plan-muted: #8A8A86;

  --f-display: "TikTok Sans", "Onest", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Onest", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "Geist Mono", "Onest", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: "wdth" 138;
  --semi: "wdth" 112;

  --fs-hero: clamp(40px, 8.2vw, 156px);
  --fs-h1: clamp(36px, 6.4vw, 116px);
  --fs-h2: clamp(30px, 3.6vw, 60px);
  --fs-h3: clamp(20px, 1.6vw, 26px);
  --fs-lead: clamp(17px, 1.3vw, 20px);
  --fs-body: 16px;
  --fs-s: 14px;
  --fs-xs: 11.5px;

  --r-s: 10px;
  --r: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --wrap: 1440px;
  --gut: max(clamp(16px, 3.4vw, 56px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(16px, 3.4vw, 56px), env(safe-area-inset-right, 0px));
  --hdr-h: 84px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C; --bg-2: #111112; --surface: #151516; --surface-2: #1B1B1D;
    --ink: #F1F1EE; --ink-2: #C3C3BE; --muted: #85857F;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --glass: rgba(22, 22, 24, .58); --glass-line: rgba(255, 255, 255, .09); --scrim: rgba(0, 0, 0, .6);
    --brand: #F1F1EE; --brand-2: #D9D9D5; --brand-text: #F1F1EE; --brand-soft: #232325; --on-brand: #0B0B0C;
    --lamp: #F1F1EE; --lamp-soft: #232325; --on-lamp: #0B0B0C;
    --ok: #7FD1A6; --ok-soft: #12241A; --bad: #F09A88; --bad-soft: #2C1612;
    --inverse-bg: #050506; --inverse-ink: #F1F1EE;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .8);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 24px -12px rgba(0, 0, 0, .7);
    --series-1: #F1F1EE; --series-2: #8C8C87; --series-3: #4E4E4B; --grid: #232325; --axis: #3A3A3C;
    --art-sky: #1B1B1D; --art-sky-2: #121213; --art-b1: #3A3A3C; --art-b2: #2A2A2C; --art-b3: #4A4A4C; --art-win: rgba(255, 255, 255, .1); --art-lit: #E8E8E4; --art-ground: #222224; --art-tree: #3A3A3C; --art-line: #D9D9D5; --art-paper: #151516;
    --rm-concrete: #4A4A48; --rm-concrete-2: #3D3D3B; --rm-screed: #333331; --rm-wall: #2B2B2A; --rm-floor: #5C4A3B; --rm-floor-l: #4C3C2F; --rm-sky: #222831; --rm-frame: #D9D9D5; --rm-wire: #9A9A95; --rm-bulb: #E8E8E4; --rm-wood: #8A7059; --rm-rug: #2E2E30; --rm-sofa: #D9D9D5; --rm-sofa-2: #B9B9B4; --rm-plant: #5E7F68; --rm-pot: #7A6656; --rm-shade: #D9D9D5; --rm-art: #151516; --rm-bag: #5E5A52; --rm-bucket: #7D7D78;
    --plan-bg: #252B35; --plan-floor: #2A313C; --plan-hi: #333C49; --plan-fur: #2E3642;
    --plan-wall-top: #5A6677; --plan-wall-side: #171B22; --plan-wall-hi: #9AA6B8; --plan-wall-shadow: rgba(0, 0, 0, .75);
    --plan-line: #8D98A9; --plan-win: #9AA6B8; --plan-text: #D6DCE5; --plan-muted: #7F8A9B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --bg-2: #111112; --surface: #151516; --surface-2: #1B1B1D;
  --ink: #F1F1EE; --ink-2: #C3C3BE; --muted: #85857F;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(22, 22, 24, .58); --glass-line: rgba(255, 255, 255, .09); --scrim: rgba(0, 0, 0, .6);
  --brand: #F1F1EE; --brand-2: #D9D9D5; --brand-text: #F1F1EE; --brand-soft: #232325; --on-brand: #0B0B0C;
  --lamp: #F1F1EE; --lamp-soft: #232325; --on-lamp: #0B0B0C;
  --ok: #7FD1A6; --ok-soft: #12241A; --bad: #F09A88; --bad-soft: #2C1612;
  --inverse-bg: #050506; --inverse-ink: #F1F1EE;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .8);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 24px -12px rgba(0, 0, 0, .7);
  --series-1: #F1F1EE; --series-2: #8C8C87; --series-3: #4E4E4B; --grid: #232325; --axis: #3A3A3C;
  --art-sky: #1B1B1D; --art-sky-2: #121213; --art-b1: #3A3A3C; --art-b2: #2A2A2C; --art-b3: #4A4A4C; --art-win: rgba(255, 255, 255, .1); --art-lit: #E8E8E4; --art-ground: #222224; --art-tree: #3A3A3C; --art-line: #D9D9D5; --art-paper: #151516;
  --rm-concrete: #4A4A48; --rm-concrete-2: #3D3D3B; --rm-screed: #333331; --rm-wall: #2B2B2A; --rm-floor: #5C4A3B; --rm-floor-l: #4C3C2F; --rm-sky: #222831; --rm-frame: #D9D9D5; --rm-wire: #9A9A95; --rm-bulb: #E8E8E4; --rm-wood: #8A7059; --rm-rug: #2E2E30; --rm-sofa: #D9D9D5; --rm-sofa-2: #B9B9B4; --rm-plant: #5E7F68; --rm-pot: #7A6656; --rm-shade: #D9D9D5; --rm-art: #151516; --rm-bag: #5E5A52; --rm-bucket: #7D7D78;
  --plan-bg: #252B35; --plan-floor: #2A313C; --plan-hi: #333C49; --plan-fur: #2E3642;
  --plan-wall-top: #5A6677; --plan-wall-side: #171B22; --plan-wall-hi: #9AA6B8; --plan-wall-shadow: rgba(0, 0, 0, .75);
  --plan-line: #8D98A9; --plan-win: #9AA6B8; --plan-text: #D6DCE5; --plan-muted: #7F8A9B;
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Типографика ---------- */
.h-hero { font-family: var(--f-display); font-size: var(--fs-hero); font-weight: 300; font-variation-settings: var(--wide); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.h1 { font-family: var(--f-display); font-size: var(--fs-h1); font-weight: 300; font-variation-settings: var(--wide); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.h2 { font-family: var(--f-display); font-size: var(--fs-h2); font-weight: 340; font-variation-settings: var(--semi); line-height: 1; letter-spacing: -.03em; }
.h3 { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 430; line-height: 1.18; letter-spacing: -.015em; }
.h4 { font-family: var(--f-display); font-size: 18px; font-weight: 450; line-height: 1.3; letter-spacing: -.01em; }
.h-sent { text-transform: none; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 56ch; letter-spacing: -.005em; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: var(--fs-s); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; }
.upper { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
.hl { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .14em; text-decoration-color: currentColor; }
.accent { color: var(--ink); }
.thin { font-weight: 300; }
.it { font-style: italic; font-weight: 300; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }

.prose { max-width: 68ch; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin-top: 1.9em; }
.prose h3 { font-family: var(--f-display); font-weight: 500; font-size: 21px; color: var(--ink); margin-top: 1.5em; }
.prose ul { display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--ink); color: var(--ink); font-family: var(--f-display); font-size: 24px; line-height: 1.35; letter-spacing: -.02em; font-weight: 300; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- Раскладка ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.section { padding-block: clamp(52px, 7.5vw, 124px); }
.section--tight { padding-block: clamp(36px, 4.6vw, 76px); }
.section--alt { background: var(--bg-2); }
.section--ink, .section--brand, .card--ink, .card--brand, .ftr, .dark-scope {
  --ink: #F1F1EE; --ink-2: #BDBDB8; --muted: #85857F; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --surface: #151516; --surface-2: #1B1B1D; --bg: #0E0E0F; --bg-2: #131314; --brand: #F1F1EE; --brand-2: #D9D9D5; --brand-text: #F1F1EE; --brand-soft: #222224; --on-brand: #0B0B0C;
  --glass: rgba(24, 24, 26, .6); --glass-line: rgba(255, 255, 255, .09); --ok: var(--ok-on-ink); --bad: var(--bad-on-ink); --ok-soft: #12241A; --bad-soft: #2C1612;
  --series-1: #F1F1EE; --series-2: #8C8C87; --series-3: #4E4E4B; --grid: #232325; --axis: #3A3A3C; color-scheme: dark;
}
.section--ink, .section--brand { background: var(--inverse-bg); color: var(--inverse-ink); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(24px, 3.6vw, 56px); }
.sec-head > div:first-child:not(.seg):not(.chips) { display: grid; gap: 18px; max-width: 820px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.sec-head > .lead { max-width: 42ch; }
.sec-head > .chips, .sec-head > .seg { display: flex; }
.stack { display: grid; gap: var(--gap, 16px); grid-template-columns: minmax(0, 1fr); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.grid { display: grid; gap: var(--gap, 20px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.split--top { align-items: start; }
.sticky { position: sticky; top: calc(var(--hdr-h) + 24px + env(safe-area-inset-top, 0px)); }
main { display: block; }
.guides { position: relative; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Фото ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--bg-2); isolation: isolate; }
.ph img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 1.6s var(--ease), filter .8s var(--ease); }
.ph--xl { border-radius: var(--r-xl); }
.ph--grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ph--shade::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .66) 100%); }
.hover-zoom:hover .ph img, .ph.hover-zoom:hover img { transform: scale(1.045); }
.ph__cap { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; font-size: 12px; letter-spacing: .02em; opacity: .8; }
[data-parallax] { will-change: transform; }

/* ---------- Логотип «Метрыч»: буквы в кривых, «р» — ключ с янтарной бородкой ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); line-height: 0; }
/* знак: графитовая плашка с буквой-ключом — как иконка приложения и вкладки */
.logo__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #0D0D0D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.logo__ic .sign { height: 23px; }
.logo__ic .lg-i { fill: #F3F3F1; }
.logo__word { display: block; height: 30px; width: auto; overflow: visible; }
.ftr__brand .logo__word { height: 34px; }
.lg-i { fill: currentColor; }
.lg-a { fill: var(--brand-lamp); transition: transform .55s var(--ease); }
/* при наведении бородка «проворачивается» — зубцы выдвигаются по очереди */
.logo:hover .lg-a:nth-last-child(2), .ftr__giant:hover .lg-a:nth-last-child(2) { transform: translateX(5px); }
.logo:hover .lg-a:last-child, .ftr__giant:hover .lg-a:last-child { transform: translateX(9px); transition-delay: .06s; }
.sign { display: block; height: 1em; width: auto; overflow: visible; }
/* маркеры колонок меню «Всё»: четыре квадрата — «квадратные метры», горит квадрат своего раздела */
.mk { width: 16px; height: 16px; flex: none; }
.mk rect { fill: none; stroke: currentColor; stroke-width: 2; }
.mk .p-lit { fill: var(--brand-lamp); stroke: var(--brand-lamp); }

/* ---------- Шапка ---------- */
.progress { position: fixed; left: 0; top: env(safe-area-inset-top, 0px); height: 1.5px; width: 100%; z-index: 160; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; opacity: .6; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 120; padding-top: 12px; margin-bottom: -72px; height: 72px; pointer-events: none; transition: transform .7s var(--ease); }
.hdr__in { pointer-events: auto; height: 60px; display: flex; align-items: center; gap: 16px; position: relative; }
.hdr__bar { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 10px 0 22px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(22px); backdrop-filter: saturate(1.6) blur(22px); box-shadow: inset 0 0 0 1px var(--glass-line), 0 10px 30px -20px rgba(0, 0, 0, .3); flex: 1; min-width: 0; transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s; }
html.on-photo .hdr:not(.is-scrolled) .hdr__bar { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); --ink: #fff; --ink-2: rgba(255, 255, 255, .86); color: #fff; }
html.on-photo .hdr:not(.is-scrolled) .btn--hdr { --b-bg: #fff; --b-fg: #0D0D0D; }
html.on-photo .hdr:not(.is-scrolled) .burger { background: #fff; }
html.on-photo .hdr:not(.is-scrolled) .burger span { background: #0D0D0D; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a, .nav__more { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; font-family: var(--f-display); font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .3s, background .3s; letter-spacing: -.005em; }
.nav a:hover, .nav__more:hover, .nav__more[aria-expanded="true"] { color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.nav__more svg { transition: transform .5s var(--ease); }
.nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr__act { display: flex; align-items: center; gap: 4px; }
.hdr__phone { font-family: var(--f-display); font-size: 14px; color: var(--ink-2); white-space: nowrap; margin-right: 10px; font-variant-numeric: tabular-nums; }
.hdr__call { display: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .3s, color .3s; }
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 9%, transparent); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); place-items: center; position: relative; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--bg); transition: transform .5s var(--ease); }
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mega { position: absolute; left: 0; right: 0; top: calc(100% + 10px); pointer-events: auto; }
.mega__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 32px 36px 28px; border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(30px); backdrop-filter: saturate(1.6) blur(30px); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow); animation: megaIn .6s var(--ease) both; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.mega__col { display: grid; gap: 2px; align-content: start; min-width: 0; }
.mega__title { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.mega a { display: grid; gap: 2px; padding: 10px 12px; margin-inline: -12px; border-radius: 14px; transition: background .3s; }
.mega a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.mega a b { font-family: var(--f-display); font-weight: 500; font-size: 16.5px; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.mega a span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mega a[aria-current="page"] b::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mega__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.mega__m { display: none; }

/* ---------- Кнопки, чипы, теги ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-display); font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s; isolation: isolate; overflow: hidden;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-hover, color-mix(in oklab, var(--b-bg) 82%, var(--b-fg))); clip-path: circle(0% at 50% 100%); transition: clip-path .8s var(--ease); }
.btn:hover::before { clip-path: circle(140% at 50% 100%); }
.btn:active { transform: scale(.97); }
.btn .arr { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 62px; padding: 0 34px; font-size: 16.5px; }
.btn--lamp, .btn--light { --b-bg: #F1F1EE; --b-fg: #0D0D0D; --b-hover: #FFFFFF; }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--bg); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-hover: color-mix(in oklab, var(--ink) 8%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--glass { --b-bg: rgba(255, 255, 255, .14); --b-fg: #fff; --b-hover: rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-round { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .6s var(--ease); flex: none; }
.btn-round:hover { transform: rotate(-45deg); }
.link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.link svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(3px) rotate(-45deg); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); padding-bottom: 2px; }
.link-u:hover { background-size: 100% 1px; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .35s var(--ease), color .35s, box-shadow .35s; white-space: nowrap; user-select: none; letter-spacing: -.005em; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip--s { height: 32px; padding: 0 12px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-family: var(--f-display); font-size: 12.5px; font-weight: 500; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; letter-spacing: -.005em; }
.tag--lamp, .tag--glass { background: rgba(255, 255, 255, .8); color: #0D0D0D; box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tag--brand, .tag--ink { background: var(--ink); color: var(--bg); box-shadow: none; }
.tag--ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.tag--dark { background: rgba(13, 13, 13, .5); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; flex: none; display: inline-block; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.badge-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Поверхности ---------- */
.card { background: var(--surface); border-radius: var(--r-l); padding: clamp(22px, 2.4vw, 36px); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; color: var(--ink); }
.card--flat { box-shadow: none; background: var(--surface-2); }
.card--brand, .card--ink { background: var(--inverse-bg); color: var(--inverse-ink); box-shadow: none; }
.card--lamp { background: var(--ink); color: var(--bg); box-shadow: none; }
.card--hover { transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.card--hover:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.card--glass { background: var(--glass); -webkit-backdrop-filter: saturate(1.5) blur(24px); backdrop-filter: saturate(1.5) blur(24px); box-shadow: inset 0 0 0 1px var(--glass-line), var(--shadow); }
.ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.ico svg { width: 20px; height: 20px; }
.ico--lamp { background: var(--ink); color: var(--bg); box-shadow: none; }
.list-check { display: grid; gap: 12px; }
.list-check li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.list-check li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.4 2.3 5.2-5.2' fill='none' stroke='%23858580' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Ключевые цифры */
.dim { display: grid; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line-2); align-content: start; }
.dim__line { display: none; }
.dim__v { font-family: var(--f-display); font-weight: 300; font-variation-settings: var(--semi); font-size: clamp(36px, 4.2vw, 68px); letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.dim__l { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 30ch; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field__l { font-family: var(--f-display); font-size: 12.5px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; letter-spacing: .02em; }
.field__l output, .field > label output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; font-size: 14px; letter-spacing: -.01em; }
.input, .select, .textarea { width: 100%; height: 54px; padding: 0 20px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); transition: box-shadow .3s, background .3s; font-size: 16px; outline: none; }
.textarea { height: auto; min-height: 128px; padding: 16px 20px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23858580' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.input:focus, .select:focus, .textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.field__hint { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; flex: none; display: grid; place-items: center; cursor: pointer; transition: background .25s, box-shadow .25s; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--bg); border-bottom: 1.6px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 500; font-family: var(--f-display); }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 24px; background: var(--line-2); position: relative; cursor: pointer; transition: background .35s var(--ease); flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .5s var(--ease); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); background: var(--bg); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; --fill: 50%; margin: 0; }
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 4px 12px rgba(0, 0, 0, .18); transition: transform .3s var(--ease); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.18); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 6%, transparent); gap: 2px; position: relative; flex-wrap: wrap; }
.seg button { height: 38px; padding: 0 18px; border-radius: 999px; font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .4s var(--ease), color .4s, box-shadow .4s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(0, 0, 0, .22); }
.form-ok { display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.form-ok b { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.form-ok p { color: var(--ink-2); }

/* ---------- Табы, аккордеон, таблицы ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; letter-spacing: -.02em; transition: color .3s; }
.acc summary:hover { color: var(--ink-2); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M12 18h12M18 12v12' stroke='%23858580' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/36px; transition: transform .7s var(--ease); }
.acc details[open] summary::after { transform: rotate(135deg); }
.acc .acc__b { padding: 0 0 28px; color: var(--ink-2); max-width: 72ch; }
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-family: var(--f-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .25s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .r { text-align: right; }

/* ---------- Заголовок внутренней страницы ---------- */
.phero { padding-block: calc(var(--hdr-h) + clamp(20px, 3vw, 40px)) clamp(56px, 7vw, 112px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: clamp(24px, 3.4vw, 48px); font-family: var(--f-display); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.phero__text { display: grid; gap: 26px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.phero__art { position: relative; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 32px; margin-top: 16px; }

/* Фото-обложка страницы */
.cover { position: relative; margin: 0 clamp(8px, 1.1vw, 16px); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; min-height: clamp(560px, 86vh, 920px); display: grid; align-items: end; color: #fff; isolation: isolate; background: #111; }
.cover > .ph { position: absolute; inset: 0; border-radius: 0; z-index: -1; background: #111; }
.cover > .ph img { position: absolute; inset: -8% 0 auto; height: 116%; max-width: none; }
.cover__in { position: relative; z-index: 2; display: grid; gap: 24px; padding: calc(var(--hdr-h) + 24px) clamp(20px, 4vw, 64px) clamp(24px, 4vw, 56px); width: 100%; grid-template-columns: minmax(0, 1fr); --ink: #fff; --ink-2: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .7); --line: rgba(255, 255, 255, .2); --line-2: rgba(255, 255, 255, .32); }
.cover .crumbs { color: rgba(255, 255, 255, .72); margin-bottom: 0; }
.cover .lead { color: rgba(255, 255, 255, .86); }
.cover .eyebrow { color: rgba(255, 255, 255, .78); }
.cover .btn--ghost { --b-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.cover__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }

/* ---------- Карточка ЖК ---------- */
.zc { position: relative; display: grid; gap: 18px; align-content: start; min-width: 0; color: var(--ink); }
.zc__media { position: relative; aspect-ratio: 4 / 4.7; max-width: 100%; border-radius: var(--r-l); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.zc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity .9s var(--ease); }
.zc__media img + img { opacity: 0; }
.zc:hover .zc__media img { transform: scale(1.05); }
.zc:hover .zc__media img + img { opacity: 1; }
.zc__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5)); z-index: 1; pointer-events: none; }
.zc__badges { position: absolute; left: 14px; top: 14px; right: 62px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.zc__fav { position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #0D0D0D; transition: transform .6s var(--ease); }
.zc__fav:hover { transform: scale(1.08); }
.zc__fav[aria-pressed="true"] svg path { fill: currentColor; }
.zc__over { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #fff; }
.zc__cls { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.zc__upd { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; opacity: .9; white-space: nowrap; }
.zc__upd .pulse { background: #7FD1A6; }
.zc__upd .pulse::after { border-color: #7FD1A6; }
.zc__body { display: grid; gap: 10px; padding-inline: 2px; }
.zc__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.zc__name { font-family: var(--f-display); font-weight: 350; font-variation-settings: var(--semi); font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.03em; line-height: 1.05; }
.zc__dev { font-size: 13px; color: var(--muted); white-space: nowrap; }
.zc__loc { font-size: 14px; color: var(--muted); display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.metro { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.metro i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); display: inline-block; }
.zc__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.zc__price b { font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.zc__price span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.zc__rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.zc__rooms li { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.zc__rooms li span { font-size: 12px; color: var(--muted); font-weight: 400; }
.zc__rooms li.is-off { display: none; }
.zc__rooms li.is-hit { background: var(--ink); color: var(--bg); box-shadow: none; }
.zc__rooms li.is-hit span { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.zc__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.zc__meta b { color: var(--ink-2); font-weight: 500; }

/* ---------- Наследие v1: процедурная графика (монохром) ---------- */
.fa-sky-a { stop-color: var(--art-sky); } .fa-sky-b { stop-color: var(--art-sky-2); }
.fa-b1 { fill: var(--art-b1); } .fa-b2 { fill: var(--art-b2); } .fa-b3 { fill: var(--art-b3); }
.fa-w { fill: var(--art-win); transition: fill .35s; } .fa-lit { fill: var(--art-lit); }
.hover-lit:hover .fa-w.l2 { fill: var(--art-lit); }
.fa-g { fill: var(--art-ground); } .fa-t { fill: var(--art-tree); } .fa-line { stroke: var(--art-line); fill: none; }
.fa-crane { stroke: var(--art-b2); fill: none; stroke-width: 2.2; stroke-linecap: round; } .fa-sun { fill: var(--art-lit); }
.bp { background: var(--plan-bg); border-radius: var(--r-l); }
.bp-grid { stroke: var(--line); stroke-width: .3; } .bp-wall { stroke: var(--ink); fill: none; stroke-linecap: square; }
.bp-room { fill: var(--surface); } .bp-room-hi { fill: var(--brand-soft); } .bp-win { stroke: var(--ink); stroke-width: 1.6; }
.bp-door { stroke: var(--muted); fill: none; stroke-width: .5; stroke-dasharray: 1.2 1; }
.bp-t { font-family: var(--f-display); fill: var(--ink-2); } .bp-tb { fill: var(--ink); font-weight: 600; }
.bp-dim { stroke: var(--muted); stroke-width: .4; fill: none; }
.bp-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; }
.bp-draw:nth-of-type(3n) { animation-delay: .25s; } .bp-draw:nth-of-type(3n+1) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rm-concrete { fill: var(--rm-concrete); } .rm-concrete-2 { fill: var(--rm-concrete-2); } .rm-screed { fill: var(--rm-screed); }
.rm-wall { fill: var(--rm-wall); } .rm-floor { fill: var(--rm-floor); } .rm-floor-l { stroke: var(--rm-floor-l); stroke-width: 1.4; }
.rm-sky { fill: var(--rm-sky); } .rm-frame { stroke: var(--rm-frame); } .rm-frame2 { fill: var(--rm-wood); }
.rm-wire { stroke: var(--rm-wire); stroke-width: 2; fill: none; } .rm-bulb { fill: var(--rm-bulb); }
.rm-ladder line { stroke: var(--rm-wood); stroke-width: 5; stroke-linecap: round; } .rm-bucket { fill: var(--rm-bucket); } .rm-bag { fill: var(--rm-bag); }
.rm-skirt { fill: var(--rm-frame); } .rm-art { fill: var(--rm-art); } .rm-sofa { fill: var(--rm-sofa); } .rm-sofa-2 { fill: var(--rm-sofa-2); } .rm-lamp { fill: var(--rm-bulb); }
.rm-wood { fill: var(--rm-wood); } .rm-woodl { stroke: var(--rm-wood); stroke-width: 4; stroke-linecap: round; } .rm-rug { fill: var(--rm-rug); } .rm-plant { fill: var(--rm-plant); } .rm-pot { fill: var(--rm-pot); } .rm-shade { fill: var(--rm-shade); }

/* ---------- Планировки (объёмный макет) ---------- */
.kv-plan { display: block; width: 100%; height: auto; font-family: var(--f-display); }
.kv-plan text { font-family: inherit; }
.pl-bg { fill: var(--plan-bg); }
.pl-floor { fill: var(--plan-floor); transition: fill .45s var(--ease); }
.pl-floor.is-hi { fill: var(--plan-hi); }
.kv-plan[data-interactive] .pl-floor { cursor: pointer; }
.kv-plan[data-interactive] .pl-floor:hover { fill: var(--plan-hi); }
.pl-slabshadow { fill: var(--plan-wall-shadow); opacity: .55; }
.pl-w { stroke: var(--plan-wall-shadow); stroke-linecap: square; }
.pl-wside { stroke: var(--plan-wall-side); stroke-linecap: square; }
.pl-wtop { stroke: var(--plan-wall-top); stroke-linecap: square; }
.pl-whi { stroke: var(--plan-wall-hi); stroke-linecap: square; opacity: .5; }
.pl-f { fill: var(--plan-fur); stroke: var(--plan-line); stroke-width: .26; }
.pl-fl { stroke: var(--plan-line); stroke-width: .26; fill: none; stroke-linecap: round; }
.pl-thin { stroke-width: .16; }
.pl-hatch { stroke-width: .14; opacity: .75; }
.pl-dot { fill: var(--plan-line); stroke: none; }
.pl-rug { fill: none; stroke: var(--plan-line); stroke-width: .14; stroke-dasharray: .7 .7; opacity: .6; }
.pl-win { stroke: var(--plan-win); stroke-width: .2; }
.pl-leaf { stroke: var(--plan-line); stroke-width: .36; stroke-linecap: round; }
.pl-swing { stroke: var(--plan-line); stroke-width: .16; fill: none; stroke-dasharray: .9 .6; }
.pl-arch { stroke: var(--plan-line); stroke-width: .16; stroke-dasharray: .9 .9; }
.pl-axis { stroke: var(--plan-muted); stroke-width: .18; stroke-dasharray: 1 .8; }
.pl-bub { fill: none; stroke: var(--plan-muted); stroke-width: .22; }
.pl-bubt { fill: var(--plan-text); font-size: 2.6px; text-anchor: middle; font-weight: 500; }
.pl-tree circle, .pl-tree line { fill: none; stroke: var(--plan-muted); stroke-width: .18; }
.pl-tag { fill: var(--plan-floor); opacity: .82; }
.pl-name { fill: var(--plan-text); text-anchor: middle; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 2.6px; }
.pl-area { fill: var(--plan-muted); text-anchor: middle; font-variant-numeric: tabular-nums; }
.pl-dim line { stroke: var(--plan-muted); stroke-width: .18; }
.pl-dimt { fill: var(--plan-muted); font-size: 2.3px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.pl-cap { fill: var(--plan-text); font-size: 3.6px; text-anchor: middle; letter-spacing: .01em; font-weight: 500; }
.pl-deck { fill: var(--plan-floor); stroke: var(--plan-line); stroke-width: .18; stroke-dasharray: 1 .8; }
.pl-deckl { stroke: var(--plan-line); stroke-width: .1; opacity: .45; }
.plan-box { background: var(--plan-bg); border-radius: var(--r-l); overflow: hidden; }

/* ---------- Карта (геометрия OpenStreetMap) ---------- */
:root { --map-land: #EDEDEA; --map-green: #E0E2DC; --map-water: #CDD2D7; --map-rail: #C4C4BF; --map-road: #FFFFFF; --map-road-c: #D6D6D1; --map-mot: #FFFFFF; --map-mot-c: #BDBDB8; --map-label: #85857F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-land: #141416; --map-green: #1A1D1B; --map-water: #08090B; --map-rail: #2A2A2E; --map-road: #26262A; --map-road-c: #121214; --map-mot: #3C3C41; --map-mot-c: #0E0E10; --map-label: #74746F; } }
:root[data-theme="dark"], .section--ink, .section--brand, .dark-scope { --map-land: #141416; --map-green: #1A1D1B; --map-water: #08090B; --map-rail: #2A2A2E; --map-road: #26262A; --map-road-c: #121214; --map-mot: #3C3C41; --map-mot-c: #0E0E10; --map-label: #74746F; }
.kvm { position: relative; width: 100%; height: 100%; min-height: inherit; overflow: hidden; border-radius: inherit; background: var(--map-land); touch-action: pan-y; }
.kv-map { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; -webkit-user-select: none; }
.kv-map.is-drag { cursor: grabbing; }
.map-bg { fill: var(--map-land); }
.m-green { fill: var(--map-green); }
.m-water { fill: var(--map-water); fill-rule: evenodd; }
.m-river, .m-rail, .m-pri, .m-trunk, .m-trunk-c, .m-mot, .m-mot-c { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.m-river { stroke: var(--map-water); stroke-width: 1.4px; }
.m-rail { stroke: var(--map-rail); stroke-width: .9px; stroke-dasharray: 3 2.5; }
.m-pri { stroke: var(--map-road); stroke-width: 1.1px; }
.m-trunk-c { stroke: var(--map-road-c); stroke-width: 3.4px; }
.m-trunk { stroke: var(--map-road); stroke-width: 2.1px; }
.m-mot-c { stroke: var(--map-mot-c); stroke-width: 4.6px; }
.m-mot { stroke: var(--map-mot); stroke-width: 2.8px; }
.m-mark text, .map-lbl { font-family: var(--f-mono); font-size: 1.75px; fill: var(--map-label); letter-spacing: .06em; text-transform: uppercase; text-anchor: middle; paint-order: stroke; stroke: var(--map-land); stroke-width: .5px; stroke-linejoin: round; }
.m-mark text { transform: scale(var(--pz, 1)); }
.m-mark.is-off { display: none; }
.map-pin { cursor: pointer; outline: none; }
.map-pin__s { transform: scale(var(--pz, 1)); }
.map-pin__dot { fill: var(--ink); stroke: var(--map-land); stroke-width: .55; }
.map-pin__halo { fill: var(--ink); opacity: 0; transition: opacity .3s; }
.map-pin:hover .map-pin__halo, .map-pin:focus-visible .map-pin__halo, .map-pin.is-active .map-pin__halo, .map-pin.is-hl .map-pin__halo { opacity: .15; }
.map-pin.is-dim { opacity: .28; pointer-events: none; }
.map-pin.is-dim .map-pill { display: none; }
.map-pill rect { fill: var(--surface); stroke: var(--line-2); stroke-width: .16; transition: fill .3s; }
.map-pill text { font-family: var(--f-display); font-size: 2.2px; font-weight: 500; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; transition: fill .3s; }
.map-pin.has-hover .map-pill { opacity: 0; transition: opacity .3s; }
.map-pin.has-hover:hover .map-pill, .map-pin.has-hover:focus-visible .map-pill, .map-pin.has-hover.is-hl .map-pill, .map-pin.has-hover.is-active .map-pill { opacity: 1; }
.map-pin:hover .map-pill rect, .map-pin.is-active .map-pill rect, .map-pin.is-hl .map-pill rect { fill: var(--ink); stroke: none; }
.map-pin:hover .map-pill text, .map-pin.is-active .map-pill text, .map-pin.is-hl .map-pill text { fill: var(--bg); }
.kvm__ctl { position: absolute; right: 14px; top: 14px; display: grid; gap: 6px; z-index: 2; }
.kvm__ctl button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s); color: var(--ink); font-size: 18px; line-height: 1; transition: background .3s, transform .4s var(--ease); }
.kvm__ctl button:hover { background: var(--surface); transform: scale(1.06); }
.kvm__hint { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.kvm.show-hint .kvm__hint { opacity: .9; }
.kvm__attr { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 10px; letter-spacing: .02em; color: var(--muted); background: color-mix(in oklab, var(--map-land) 80%, transparent); padding: 2px 6px; border-radius: 6px; pointer-events: none; }

/* ---------- Бегущие строки и лента ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(40px, 6vw, 96px); animation: marquee var(--dur, 46s) linear infinite; padding-block: 6px; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(20px, 3vw, 48px))); } }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.04em; color: var(--muted); white-space: nowrap; transition: color .4s; }
.wordmark:hover { color: var(--ink); }
.wordmark i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; opacity: .5; }
.ticker { display: flex; align-items: center; gap: 16px; height: 50px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-width: 0; }
.ticker__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; flex: none; }
.ticker__feed { position: relative; flex: 1; height: 100%; min-width: 0; }
.ticker__item { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tickIn .8s var(--ease) both; color: var(--ink-2); }
.ticker__item.out { animation: tickOut .6s var(--ease) both; }
.ticker__item b { font-weight: 500; color: var(--ink); }
.ticker__item .t { font-size: 12px; color: var(--muted); }
.down { color: var(--ok); font-weight: 500; }
.up { color: var(--bad); font-weight: 500; }
@keyframes tickIn { from { transform: translateY(100%); opacity: 0; } }
@keyframes tickOut { to { transform: translateY(-100%); opacity: 0; } }

/* ---------- До / после ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 3; max-width: 100%; user-select: none; touch-action: pan-y; background: var(--bg-2); --pos: 50%; }
.ba > svg, .ba > .ba__img, .ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img img, .ba__img svg { width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1.5px; background: #fff; transform: translateX(-.75px); z-index: 3; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M21 19l-6 7 6 7M31 19l6 7-6 7' fill='none' stroke='%230D0D0D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/52px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ba__lbl { position: absolute; top: 16px; z-index: 2; }
.ba__lbl--l { left: 16px; }
.ba__lbl--r { right: 16px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* ---------- Подвал ---------- */
.ftr { background: var(--inverse-bg); color: var(--inverse-ink); padding-top: clamp(72px, 9vw, 140px); overflow: hidden; }
.ftr a:not(.btn):not(.logo) { color: color-mix(in oklab, var(--inverse-ink) 66%, transparent); transition: color .3s; }
.ftr a:not(.btn):not(.logo):hover { color: var(--inverse-ink); }
.ftr__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 72px); }
.ftr__cta h2 { font-family: var(--f-display); font-weight: 300; font-variation-settings: var(--wide); font-size: clamp(34px, 5vw, 88px); letter-spacing: -.03em; line-height: .92; max-width: 15ch; text-transform: uppercase; }

.ftr__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr__brand { display: grid; gap: 18px; align-content: start; }
.ftr__brand .logo { color: var(--inverse-ink); }
.ftr__brand p { color: color-mix(in oklab, var(--inverse-ink) 58%, transparent); max-width: 34ch; font-size: 15px; }
.ftr h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in oklab, var(--inverse-ink) 44%, transparent); margin-bottom: 18px; }
.ftr ul { display: grid; gap: 10px; font-size: 15px; }
.ftr__contact { display: grid; gap: 6px; }
.ftr__contact b { font-family: var(--f-display); font-size: 24px; font-weight: 400; letter-spacing: -.03em; color: var(--inverse-ink); font-variant-numeric: tabular-nums; }
.stamp { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr; border-top: 1px solid var(--line); font-size: 12px; }
.stamp > div { padding: 14px 16px 14px 0; display: grid; gap: 4px; min-width: 0; }
.stamp span { color: color-mix(in oklab, var(--inverse-ink) 40%, transparent); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-family: var(--f-mono); }
.stamp b { font-weight: 400; color: color-mix(in oklab, var(--inverse-ink) 80%, transparent); overflow-wrap: anywhere; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: 12.5px; color: color-mix(in oklab, var(--inverse-ink) 42%, transparent); border-top: 1px solid var(--line); }
.ftr__legal p { max-width: 90ch; }
.ftr__giant { position: relative; margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 44px); color: var(--inverse-ink); user-select: none; }
.ftr__giant .logo__word { width: 100%; height: auto; }
.ftr__slogan { position: absolute; right: 0; bottom: calc(clamp(24px, 3vw, 44px) + 2%); font-family: var(--f-mono); font-size: clamp(10px, 1vw, 12px); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--inverse-ink) 46%, transparent); }
.ftr__slogan::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--brand-lamp); vertical-align: 1px; }

/* ---------- Анимации ---------- */
.curtain { display: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .4s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .8s var(--ease) both; }
::view-transition-group(zhk-photo) { animation-duration: .8s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(zhk-photo), ::view-transition-new(zhk-photo) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }
@keyframes vtOut { to { opacity: 0; transform: scale(.99); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
html.is-leaving main, html.is-leaving .ftr { opacity: 0; transform: translateY(-10px); transition: opacity .35s var(--ease-io), transform .35s var(--ease-io); }

.rv { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-w > span { display: inline-block; animation: wordUp 1.2s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
html.kv-enter .split-w > span { animation-delay: calc(var(--i) * 45ms + 260ms); }
@keyframes wordUp { from { transform: translateY(108%); } }
.fade-up { animation: fadeUp 1.1s var(--ease) both; animation-delay: calc(var(--dl, 600ms) * .6); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }
.img-in { animation: imgIn 1.8s var(--ease) both; }
@keyframes imgIn { from { transform: scale(1.12); filter: blur(8px); } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 250; transform: translate(-50%, 160%); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); transition: transform .7s var(--ease); max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.on { transform: translate(-50%, 0); }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; opacity: .7; }

.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: #0D0D0D; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: -.01em; transform: scale(0); transition: transform .55s var(--ease); }
.cursor.on { transform: scale(1); }

.fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 500; font-size: 15px; box-shadow: var(--shadow); transition: transform .7s var(--ease), opacity .4s; }
.fab:hover { transform: translateY(-3px); }
.fab .pulse { background: currentColor; }
.fab .pulse::after { border-color: currentColor; }
.fab.is-off { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* ---------- Утилиты ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.ta-c { text-align: center; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.rounded { border-radius: var(--r-l); overflow: hidden; }
.scroll-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .hdr__phone { display: none; }
  .hdr__call { display: inline-grid; }
  .ftr__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) { .nav a { display: none; } .nav { margin-inline: auto 0; } }
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .phero__grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .mega__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --hdr-h: 72px; }
  .nav, .hdr__act .btn { display: none; }
  .burger { display: grid; margin-left: 6px; }
  .hdr__act { margin-left: auto; gap: 2px; }
  .hdr__bar { padding-right: 8px; }
  .mega { position: fixed; top: calc(80px + env(safe-area-inset-top, 0px)); bottom: 12px; left: 12px; right: 12px; overflow-y: auto; }
  .mega__in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px; }
  .mega__m { display: flex; gap: 10px; flex-wrap: wrap; }
  .mega__col { animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
@media (max-width: 640px) {
  :root { --fs-body: 16px; --wide: "wdth" 112; --fs-hero: clamp(30px, 9.4vw, 46px); --fs-h1: clamp(28px, 8.6vw, 42px); }
  .h-hero, .h1 { -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; }
  .h2 { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .ftr__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stamp { grid-template-columns: 1fr; }
  .btn--lg { height: 58px; padding: 0 26px; }
  .table th, .table td { padding: 13px 14px; }
  .fab .fab__t { display: none; }
  .fab { padding: 0 18px; }
  .cover { min-height: 600px; }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); padding-bottom: 2px; }
  .chips--scroll::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .pulse::after, .ticker *, [class*="spin"], [class*="pulse"] { animation: none !important; }
}

/* ==========================================================================
   Компоненты v2 (общие для страниц)
   ========================================================================== */

/* Поисковая панель поверх фото */
.dock { position: relative; z-index: 5; margin-top: -88px; }
.cover--dock .cover__in { padding-bottom: calc(clamp(24px, 4vw, 56px) + 96px); }
.dock__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 28px; background: var(--surface); box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 40px 80px -36px rgba(0, 0, 0, .35); }
.dock__tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 0; }
.dock__q { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 10px 8px 24px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.dock__q:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dock__q > svg { flex: none; color: var(--muted); }
.dock__q input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; font-family: var(--f-display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 350; letter-spacing: -.02em; color: var(--ink); }
.dock__q input::placeholder { color: var(--muted); }
.dock__parsed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 34px; padding: 0 10px 4px; font-size: 13.5px; color: var(--muted); }
.dock__parsed .tag { cursor: pointer; animation: fadeUp .5s var(--ease) both; }
.dock__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; align-items: stretch; border-top: 1px solid var(--line); }
.dock__f { display: grid; gap: 2px; padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; }
.dock__f label, .dock__f .dock__l { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dock__f select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-family: var(--f-display); font-size: 16.5px; font-weight: 450; color: var(--ink); padding: 0; cursor: pointer; outline: none; min-width: 0; }
.dock__go { display: grid; place-items: center; padding: 8px; }
.dock__go .btn { height: 60px; padding: 0 28px; }

/* Лента рыночных цифр */
.dstrip { border-block: 1px solid var(--line); overflow: hidden; }
.dstrip__track { display: flex; width: max-content; gap: 48px; padding-block: 14px; animation: marquee 60s linear infinite; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.dstrip__track b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.dstrip__track span { display: inline-flex; gap: 10px; align-items: center; }
.dstrip__track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin-left: 38px; }

/* Двухцветное заявление: серые слова темнеют при прокрутке */
.statement { font-family: var(--f-display); font-weight: 330; font-variation-settings: var(--semi); font-size: clamp(28px, 3.6vw, 58px); line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; }
.statement .w { color: color-mix(in oklab, var(--ink) 22%, transparent); transition: color .5s var(--ease); }
.statement .w.on, .statement b { color: var(--ink); font-weight: inherit; }

/* Подборки */
.colls { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.colls::-webkit-scrollbar { display: none; }
.coll { position: relative; display: grid; align-content: end; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-l); overflow: hidden; color: #fff; scroll-snap-align: start; isolation: isolate; }
.coll .ph { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.coll .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7)); }
.coll__b { display: grid; gap: 6px; padding: 22px; }
.coll__t { font-family: var(--f-display); font-weight: 330; font-variation-settings: var(--semi); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.02; }
.coll__n { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.coll:hover .ph img { transform: scale(1.06); }

/* Бенто */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.tile { position: relative; display: grid; align-content: space-between; gap: 18px; padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-width: 0; color: var(--ink); isolation: isolate; transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.tile__t { font-family: var(--f-display); font-weight: 380; font-variation-settings: var(--semi); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.05; }
.tile__d { font-size: 14.5px; color: var(--muted); max-width: 36ch; }
.tile__k { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.tile__big { font-family: var(--f-display); font-weight: 300; font-variation-settings: var(--wide); font-size: clamp(56px, 7vw, 120px); letter-spacing: -.05em; line-height: .85; }
.tile:has(.tile__arr) .tile__k { padding-right: 52px; }
.tile__arr { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .6s var(--ease), background .3s; }
.tile:hover .tile__arr { transform: rotate(-45deg); background: var(--ink); color: var(--bg); }
.tile--photo { color: #fff; box-shadow: none; --muted: rgba(255, 255, 255, .78); --line-2: rgba(255, 255, 255, .4); }
.tile--photo .ph { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.tile--photo .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .62)); }
.tile--photo:hover .ph img { transform: scale(1.05); }
.tile--dark { background: var(--inverse-bg); color: var(--inverse-ink); box-shadow: none; --muted: #85857F; --line-2: rgba(255, 255, 255, .2); --ink: #F1F1EE; --bg: #0E0E0F; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }

/* Складывающиеся панели этапов */
.panels { display: grid; gap: 16px; }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; z-index: 3; }
.panel { isolation: isolate; opacity: 1 !important; position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); min-height: min(68vh, 640px); padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 -20px 60px -40px rgba(0, 0, 0, .25); transform-origin: 50% 0; overflow: hidden; }
.panel__n { font-family: var(--f-display); font-weight: 200; font-variation-settings: var(--wide); font-size: clamp(80px, 12vw, 200px); line-height: .8; letter-spacing: -.06em; color: color-mix(in oklab, var(--ink) 18%, transparent); }
.panel__b { display: grid; align-content: space-between; gap: 24px; }
.panel__t { font-family: var(--f-display); font-weight: 340; font-variation-settings: var(--semi); font-size: clamp(28px, 3vw, 48px); letter-spacing: -.03em; line-height: 1.02; }
.panel__d { color: var(--ink-2); max-width: 42ch; }
.panel__time { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.panel .ph { border-radius: var(--r-l); min-height: 260px; }

/* Журнальная лента */
.ed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.ed__lead { display: grid; gap: 18px; align-content: start; }
.ed__lead .ph { aspect-ratio: 16 / 10; max-width: 100%; }
.ed__lead h3 { font-family: var(--f-display); font-weight: 340; font-variation-settings: var(--semi); font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.ed__list { display: grid; border-top: 1px solid var(--line-2); align-content: start; }
.ed__row { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line-2); transition: padding .6s var(--ease); }
.ed__row:hover { padding-left: 12px; }
.ed__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ed__row b { font-family: var(--f-display); font-weight: 400; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }

/* Стеклянная мини-карточка поверх фото */
.peek { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); color: #fff; max-width: 340px; transition: background .4s; }
.peek:hover { background: rgba(255, 255, 255, .22); }
.peek .ph { width: 76px; height: 76px; border-radius: 14px; }
.peek b { font-family: var(--f-display); font-weight: 450; font-size: 16px; letter-spacing: -.02em; }
.peek span { font-size: 13px; opacity: .8; display: block; }

/* Классы ЖК: горизонтальная лента */
.hs { overflow: hidden; }
.hs__track { display: flex; gap: 20px; width: max-content; padding-right: var(--gut-r); }
.hs__track > * { width: clamp(300px, 27vw, 420px); flex: none; }

@media (max-width: 1024px) {
  .dock__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock__f:nth-child(2n) { border-right: 0; }
  .dock__f { border-bottom: 1px solid var(--line); }
  .dock__go { grid-column: 1 / -1; }
  .dock__go .btn { width: 100%; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .c-3, .c-4, .c-5 { grid-column: span 3; } .c-6, .c-7, .c-8, .c-12 { grid-column: span 6; }
  .panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ed { grid-template-columns: minmax(0, 1fr); }
  .colls { grid-auto-columns: minmax(230px, 42%); }
  .hs { overflow-x: auto; scrollbar-width: none; }
  .hs::-webkit-scrollbar { display: none; }
  .hs__track > * { width: min(78vw, 360px); }
}
@media (max-width: 640px) {
  .dock { margin-top: -56px; }
  .dock__q { padding-left: 16px; min-height: 64px; }
  .dock__q > svg { display: none; }
  .dock__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dock__f { padding: 12px 14px; }
  .dock__f:nth-child(odd) { border-right: 1px solid var(--line); }
  .dock__tabs .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .dock__tabs .seg::-webkit-scrollbar { display: none; }
  .dock__tabs .seg button { padding: 0 14px; white-space: nowrap; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .colls { grid-auto-columns: 72%; }
  .panel { position: relative; top: 0; }
}

/* ==========================================================================
   Матовое стекло (frosted glass): сильное размытие, светлая кромка, мягкий блик
   ========================================================================== */
:root { --g-bg: linear-gradient(140deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55)); --g-edge: rgba(255, 255, 255, .9); --g-line: rgba(13, 13, 13, .07); --g-drop: 0 30px 70px -30px rgba(0, 0, 0, .32); --g-blur: blur(30px) saturate(1.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-bg: linear-gradient(140deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)); --g-edge: rgba(255, 255, 255, .22); --g-line: rgba(255, 255, 255, .07); --g-drop: 0 30px 70px -30px rgba(0, 0, 0, .85); } }
:root[data-theme="dark"], .section--ink, .section--brand, .dark-scope { --g-bg: linear-gradient(140deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)); --g-edge: rgba(255, 255, 255, .22); --g-line: rgba(255, 255, 255, .07); --g-drop: 0 30px 70px -30px rgba(0, 0, 0, .85); }
.glass { position: relative; background: var(--g-bg); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: inset 0 0 0 1px var(--g-line), inset 0 1px 0 var(--g-edge), var(--g-drop); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(165deg, var(--g-edge), transparent 32%, transparent 68%, color-mix(in oklab, var(--g-edge) 60%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass--photo { --g-bg: linear-gradient(140deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07)); --g-edge: rgba(255, 255, 255, .5); --g-line: rgba(255, 255, 255, .14); color: #fff; }
.hdr__bar { background: var(--g-bg); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: inset 0 0 0 1px var(--g-line), inset 0 1px 0 var(--g-edge), 0 14px 40px -24px rgba(0, 0, 0, .35); }
.mega__in, .fpop { background: var(--g-bg); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: inset 0 0 0 1px var(--g-line), inset 0 1px 0 var(--g-edge), var(--g-drop); }
.peek, .zk-sum { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .5); background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); }

/* ==========================================================================
   Контекстное меню страницы: рейка (десктоп) / док (телефон) + панель
   ========================================================================== */
.ctx__rail { position: fixed; z-index: 110; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 30px; }
.ctx__btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .35s var(--ease), color .35s, transform .4s var(--ease); }
.ctx__btn:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); }
.ctx__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ctx__lbl { position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.ctx__btn:hover .ctx__lbl { opacity: 1; transform: translate(0, -50%); }
.ctx.is-open .ctx__lbl { display: none; }
.ctx__sh { display: none; }
.ctx__badge { position: absolute; right: 4px; top: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 10px/17px var(--f-mono); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.ctx__btn[aria-pressed="true"] .ctx__badge { background: var(--bg); color: var(--ink); }
.ctx__sep { width: 22px; height: 1px; background: var(--line-2); margin: 4px 0; }
.ctx__scrim { position: fixed; inset: 0; z-index: 108; background: color-mix(in oklab, var(--bg) 30%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ctx__panel { position: fixed; z-index: 109; left: 82px; top: calc(var(--hdr-h) + 8px + env(safe-area-inset-top, 0px)); bottom: 16px; width: min(360px, calc(100vw - 100px)); border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateX(-14px) scale(.985); transform-origin: 0 50%; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.ctx__panel.is-in { opacity: 1; transform: none; }
.ctx__handle { display: none; }
.ctx__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.ctx__title { font-family: var(--f-display); font-weight: 400; font-variation-settings: var(--semi); font-size: 22px; letter-spacing: -.02em; }
.ctx__close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.ctx__close:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.ctx__body { flex: 1; overflow-y: auto; padding: 4px 20px 24px 24px; scrollbar-width: thin; overscroll-behavior: contain; }
.ctx__nav { display: grid; gap: 2px; }
.ctx__link { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 11px 14px; margin-inline: -14px; border-radius: 16px; font-size: 15px; color: var(--ink-2); transition: background .3s, color .3s; }
.ctx__link:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
.ctx__link.is-on { background: var(--ink); color: var(--bg); }
.ctx__n { font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.ctx-group { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.ctx-group:first-child { border-top: 0; padding-top: 4px; }
.ctx-group__t { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.ctx-group .chip { height: 36px; padding: 0 14px; font-size: 13.5px; }
.ctx-foot { position: sticky; bottom: -24px; margin: 8px -24px -24px; padding: 14px 24px 20px; display: flex; gap: 10px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--surface) 92%, transparent) 30%); }
.ctx-foot .btn { flex: 1; }
@media (min-width: 1100px) {
  html.has-ctx { --gut: max(clamp(16px, 3.4vw, 56px), 96px, env(safe-area-inset-left, 0px)); }
  html.has-ctx .cover__in { padding-left: max(clamp(20px, 4vw, 64px), 88px); }
  .ctx__scrim { display: none; }
}
@media (max-width: 1099px) {
  .ctx__rail { left: 50%; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); flex-direction: row; padding: 6px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .ctx__rail::-webkit-scrollbar { display: none; }
  .ctx__btn { width: auto; min-width: 54px; height: 52px; padding: 0 10px; border-radius: 999px; grid-template-rows: auto auto; gap: 2px; }
  .ctx__btn svg { width: 19px; height: 19px; }
  .ctx__lbl { display: none !important; }
  .ctx__sh { display: block; font-size: 10.5px; line-height: 1; white-space: nowrap; }
  .ctx__btn--desk { display: none; }
  .ctx__sep { width: 1px; height: 24px; margin: 0 4px; }
  .ctx__btn--util { display: none; }
  .ctx__sep { display: none; }
  .ctx__panel { left: 8px; right: 8px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: min(calc(100vh - 170px), 720px); border-radius: 30px; transform: translateY(40px); transform-origin: 50% 100%; }
  .ctx-foot { bottom: -24px; }
  .ctx__panel.is-in { transform: none; }
  .ctx__handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; }
  .ctx__head { padding-top: 10px; }
  html.has-ctx .ftr { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .ctx__panel { transition: none; } }
@media (min-width: 1100px) { .ctx--mobile { display: none; } }
@media (max-width: 1099px) { html.has-ctx-m .ftr { padding-bottom: 84px; } }

/* ==========================================================================
   Дашборд: стеклянное боковое меню + сетка виджетов (аналитика, кабинет)
   ========================================================================== */
.dash { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: calc(var(--hdr-h) + 20px); padding-bottom: clamp(48px, 6vw, 96px); }
.dash__side { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 28px; max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; scrollbar-width: none; }
.dash__side::-webkit-scrollbar { display: none; }
.dash__brand { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dash__brand b { font-family: var(--f-display); font-weight: 450; font-size: 17px; letter-spacing: -.02em; line-height: 1.15; }
.dash__brand div > span { display: block; font-size: 12px; color: var(--muted); }
.dash__t { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 12px 6px; }
.dash__link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s; }
.dash__link svg { width: 18px; height: 18px; flex: none; }
.dash__link:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink); }
.dash__link.is-on, .dash__link[aria-current="true"] { background: var(--ink); color: var(--bg); }
.dash__link .badge-num { margin-left: auto; height: 20px; min-width: 20px; font-size: 11px; }
.dash__link.is-on .badge-num { background: var(--bg); color: var(--ink); }
.dash__main { display: grid; gap: 20px; min-width: 0; }
.dash__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding: 8px 4px 12px; }
.widgets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.widget { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(18px, 1.8vw, 26px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.widget--dark { background: var(--inverse-bg); color: var(--inverse-ink); box-shadow: none; --ink: #F1F1EE; --ink-2: #BDBDB8; --muted: #85857F; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18); --surface: #151516; --bg: #0E0E0F; --series-1: #F1F1EE; --series-2: #8C8C87; --series-3: #4E4E4B; --grid: #232325; --axis: #3A3A3C; }
.widget__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.widget__t { font-family: var(--f-display); font-weight: 450; font-size: 17px; letter-spacing: -.015em; }
.widget__k { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.widget__v { font-family: var(--f-display); font-weight: 300; font-variation-settings: var(--semi); font-size: clamp(30px, 3vw, 46px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-3 { grid-column: span 3; } .w-4 { grid-column: span 4; } .w-5 { grid-column: span 5; } .w-6 { grid-column: span 6; } .w-7 { grid-column: span 7; } .w-8 { grid-column: span 8; } .w-12 { grid-column: span 12; }
@media (max-width: 1280px) { .dash { grid-template-columns: 220px minmax(0, 1fr); } .w-3 { grid-column: span 6; } .w-4, .w-5 { grid-column: span 6; } .w-7, .w-8 { grid-column: span 12; } }
@media (max-width: 1099px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash__side { display: none; } }
@media (max-width: 640px) { .widgets { grid-template-columns: minmax(0, 1fr); } .widgets > * { grid-column: auto !important; } }

/* ==========================================================================
   Акцент «Лампа» — тёплый янтарь горящего окна на холодном городе.
   Один цвет на всю систему и только точечно: знак, одна главная кнопка на экран,
   «живые» точки, прогресс, выбранный ЖК на карте, выбранная комната, фокус.
   Роли: --accent (заливка кнопки/знака), --on-accent (текст на ней),
   --accent-mark (мелкие метки и линии, ≥ 3:1 к фону), --accent-ink (редкий акцентный текст, ≥ 4.5:1),
   --accent-soft (подложка), --series-accent (выделенный ряд на графике).
   Никогда: цены и скидки, предупреждения, фоны секций и карточек, заголовки, иконки меню.
   ========================================================================== */
:root {
  --acc-l: #F59E0B; --acc-l-on: #0B0B0C; --acc-l-mark: #C46F00; --acc-l-ink: #9A5700;
  --acc-d: #FFB224; --acc-d-on: #0B0B0C; --acc-d-mark: #FFB224; --acc-d-ink: #FFC35C;
  --brand-lamp: #F59E0B;
  --accent: var(--acc-l); --on-accent: var(--acc-l-on); --accent-mark: var(--acc-l-mark); --accent-ink: var(--acc-l-ink);
  --accent-soft: color-mix(in oklab, var(--acc-l) 14%, #F3F3F1);
  --series-accent: var(--acc-l-mark);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: var(--acc-d); --on-accent: var(--acc-d-on); --accent-mark: var(--acc-d-mark); --accent-ink: var(--acc-d-ink); --accent-soft: color-mix(in oklab, var(--acc-d) 14%, #0B0B0C); --series-accent: var(--acc-d-mark); } }
:root[data-theme="dark"], .section--ink, .section--brand, .card--ink, .card--brand, .ftr, .dark-scope, .cover, .widget--dark {
  --accent: var(--acc-d); --on-accent: var(--acc-d-on); --accent-mark: var(--acc-d-mark); --accent-ink: var(--acc-d-ink); --accent-soft: color-mix(in oklab, var(--acc-d) 14%, #0B0B0C); --series-accent: var(--acc-d-mark);
}

/* знак: «горящее окно» — константа бренда в обеих темах */
/* надзаголовки: текст приглушённый, горит только точка */
.eyebrow::before { background: var(--accent-mark); opacity: 1; }
.cover .eyebrow { color: rgba(255, 255, 255, .92); justify-self: start; padding: 8px 14px 8px 12px; border-radius: 999px; background: linear-gradient(140deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cover .eyebrow::before { background: var(--brand-lamp); box-shadow: 0 0 0 3px rgba(245, 158, 11, .28), 0 0 12px rgba(255, 178, 36, .7); }
/* «живое»: обновление цен, синхронизация */
.pulse { background: var(--accent-mark); }
.pulse::after { border-color: var(--accent-mark); }
.progress { background: var(--accent-mark); opacity: 1; height: 2px; }
::selection { background: rgba(245, 158, 11, .32); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-mark); outline-offset: 2px; }
/* главное действие: одна кнопка на экран */
.btn--accent, .btn--hdr { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-hover: color-mix(in oklab, var(--accent) 80%, #fff); }
html.on-photo .hdr:not(.is-scrolled) .btn--hdr { --b-bg: var(--accent); --b-fg: var(--on-accent); }
.tag--accent { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.tag--accent-soft { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.txt-accent { color: var(--accent-ink); }
/* текущая страница в меню */
.nav a[aria-current="page"]::after { background: var(--accent-mark); width: 5px; height: 5px; }
/* слайдеры */
.range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent-mark) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-progress { background: var(--accent-mark); }
.range::-webkit-slider-thumb { box-shadow: inset 0 0 0 1.5px var(--accent-mark), 0 4px 12px rgba(0, 0, 0, .18); }
.range::-moz-range-thumb { border-color: var(--accent-mark); }
/* курсор «Смотреть»: матовое стекло, горит точка */
.cursor span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--brand-lamp); vertical-align: 1px; }
/* карта: выбранный ЖК — янтарная точка и ореол, ценник графитовый (не «жёлтый ценник») */
.map-pin:hover .map-pin__dot, .map-pin:focus-visible .map-pin__dot, .map-pin.is-active .map-pin__dot, .map-pin.is-hl .map-pin__dot { fill: var(--accent-mark); }
.map-pin__halo { fill: var(--accent-mark); }
.map-pin:hover .map-pin__halo, .map-pin:focus-visible .map-pin__halo, .map-pin.is-active .map-pin__halo, .map-pin.is-hl .map-pin__halo { opacity: .24; }
/* планировка: выбранная комната «загорается» */
.pl-floor.is-hi, .kv-plan[data-interactive] .pl-floor:hover { fill: var(--plan-hi); }
.pl-hl { fill: var(--accent); fill-opacity: .16; stroke: var(--accent-mark); stroke-width: .45; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.pl-floor.is-hi + .pl-hl, .kv-plan[data-interactive] .pl-floor:hover + .pl-hl { opacity: 1; }
/* подвал: буквы знака загораются при наведении */
/* линии метро — кольцом, чтобы не путать с «живой» точкой */
.metro i { background: transparent; box-shadow: inset 0 0 0 2.5px var(--c, var(--ink)); }

/* ---------- Общие правки по отчётам страниц ---------- */
.sec-head > div:first-child:not(.seg):not(.chips) { flex: 1 1 480px; }
.sec-head > .lead { flex: 0 1 42ch; }
.panel .ph { position: relative; }
.panel .ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg:not(.cover .seg) button[aria-pressed="true"], :root:not([data-theme="light"]) .seg:not(.cover .seg) button[aria-selected="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line-2); } }
:root[data-theme="dark"] .seg:not(.cover .seg) button[aria-pressed="true"], :root[data-theme="dark"] .seg:not(.cover .seg) button[aria-selected="true"],
.section--ink .seg:not(.cover .seg) button[aria-pressed="true"], .section--ink .seg:not(.cover .seg) button[aria-selected="true"], .dark-scope .seg:not(.cover .seg) button[aria-pressed="true"], .dark-scope .seg:not(.cover .seg) button[aria-selected="true"] { background: color-mix(in oklab, var(--ink) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line-2); }
/* выбранный ЖК отличается не только цветом: крупнее и с кольцом */
.map-pin__dot { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease), fill .3s; }
.map-pin:hover .map-pin__dot, .map-pin.is-active .map-pin__dot, .map-pin.is-hl .map-pin__dot { transform: scale(1.4); stroke-width: .9; }
/* строки заголовков под маской: место для «Й», «Ё» и выносных элементов */
[data-split] .line, .sec-head .h2 .line, .h-reveal .line { padding-block: .14em .08em; margin-block: -.14em -.08em; }

/* ==========================================================================
   Телефон: компактнее — шапка, нижний док, отступы, сегменты
   ========================================================================== */
.mega { overscroll-behavior: contain; }
@media (min-width: 901px) and (max-height: 720px) { .mega { max-height: calc(100vh - var(--hdr-h) - 24px); overflow-y: auto; scrollbar-width: none; border-radius: 28px; } }
@media (max-width: 900px) {
  :root { --hdr-h: 62px; }
  .hdr { padding-top: 8px; height: 60px; margin-bottom: -60px; }
  .hdr__in, .hdr__bar { height: 50px; }
  .hdr__bar { padding: 0 5px 0 16px; gap: 10px; }
  .logo__word { height: 26px; }
  .logo { gap: 9px; }
  .logo__ic { width: 32px; height: 32px; border-radius: 9px; }
  .logo__ic .sign { height: 20px; }
  .ftr__slogan { position: static; display: block; margin-top: 14px; text-align: right; }
  .icon-btn { width: 36px; height: 36px; }
  .burger { width: 40px; height: 40px; margin-left: 4px; }
  .burger span { left: 13px; right: 13px; }
  .mega { top: calc(66px + env(safe-area-inset-top, 0px)); bottom: 10px; left: 10px; right: 10px; -webkit-overflow-scrolling: touch; }
  .mega__in { gap: 18px; padding: 20px 20px 22px; }
  .mega a { padding: 8px 12px; }
  .mega a b { font-size: 16px; }
}
@media (max-width: 1099px) {
  .ctx__rail { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 4px; gap: 2px; }
  .ctx__btn { min-width: 48px; height: 44px; padding: 0 9px; gap: 3px; }
  .ctx__btn svg { width: 18px; height: 18px; }
  .ctx__sh { font-size: 10px; letter-spacing: .01em; }
  .ctx__badge { right: 2px; top: 2px; min-width: 15px; height: 15px; font-size: 9px; line-height: 15px; }
  .ctx__panel { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-height: min(calc(100vh - 150px), 720px); }
  html.has-ctx .ftr, html.has-ctx-m .ftr { padding-bottom: 68px; }
}
@media (max-width: 640px) {
  .section { padding-block: 48px; }
  .section--tight { padding-block: 32px; }
  .sec-head { margin-bottom: 22px; gap: 14px; }
  .sec-head > div:first-child:not(.seg):not(.chips) { gap: 12px; }
  /* сегменты: одна строка, равные колонки, при нехватке места — горизонтальная прокрутка */
  .seg, .sec-head > .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { height: 36px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
  .sec-head > .seg { width: 100%; }
}
.hide-s { display: inline; }
@media (max-width: 640px) { .hide-s { display: none; } }
@media (max-width: 640px) {
  /* цифры — по две в ряд */
  .grid:has(> .dim) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 16px !important; }
  .dim { padding-top: 14px; gap: 6px; }
  .dim__v { font-size: 32px; }
  /* шаги-«стопка»: ниже и плотнее */
  .panels { gap: 12px; }
  .panel { min-height: 0; padding: 20px; gap: 14px; grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .panel__n { font-size: 52px; }
  .panel__b { gap: 12px; }
  .panel__t { font-size: 24px; }
  .panel .ph { min-height: 0; aspect-ratio: 16 / 9; border-radius: 16px; }
}
@media (max-width: 900px) {
  /* меню на телефоне: плотное матовое стекло, текст страницы не просвечивает */
  .mega__in { background: color-mix(in oklab, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(34px) saturate(1.4); backdrop-filter: blur(34px) saturate(1.4); }
}

/* ---------- Правки по отчётам второго прохода ---------- */
.sec-head > .seg, .sec-head > .chips { flex: none; }
/* панель меню: плотнее, чтобы текст читался поверх светлых фото */
.ctx__panel { background: linear-gradient(140deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .86)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctx__panel { background: color-mix(in oklab, var(--surface) 90%, transparent); } }
:root[data-theme="dark"] .ctx__panel { background: color-mix(in oklab, var(--surface) 90%, transparent); }
/* низ панели: плотный фон, главная кнопка тянется, вторичная — по содержимому */
.ctx-foot { background: color-mix(in oklab, var(--surface) 96%, transparent); box-shadow: 0 -1px 0 var(--line); }
.ctx-foot .btn { flex: 1 1 auto; min-width: 0; }
.ctx-foot .btn--ghost { flex: 0 0 auto; }
.ctx-foot--stack { flex-direction: column; }
.ctx-foot--stack .btn { flex: none; width: 100%; }
/* уведомления — над нижним меню */
@media (max-width: 1099px) { html.has-ctx .toast, html.has-ctx-m .toast { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
/* в шапке — графитовая кнопка: янтарная заливка остаётся одна на экран, внутри страницы */
.btn--hdr { --b-bg: var(--ink); --b-fg: var(--bg); --b-hover: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
html.on-photo .hdr:not(.is-scrolled) .btn--hdr { --b-bg: #fff; --b-fg: #0D0D0D; --b-hover: #F1F1EE; }

/* ---------- Правки по ревью второго прохода ---------- */
/* плавный скролл сам задаёт отступ под шапку — не складываем его с scroll-padding */
html.has-lenis { scroll-padding-top: 0; }
/* уведомления: по ширине текста и полностью скрыты, пока не нужны */
.toast { width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, calc(100% + 140px)); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
/* панель меню: плотная, на десктопе — по высоте содержимого */
.ctx__panel { background: linear-gradient(140deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .93)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctx__panel { background: color-mix(in oklab, var(--surface) 97%, transparent); } }
:root[data-theme="dark"] .ctx__panel { background: color-mix(in oklab, var(--surface) 97%, transparent); }
.ctx-foot { background: var(--surface); }
@media (min-width: 1100px) { .ctx__panel { bottom: auto; max-height: calc(100vh - var(--hdr-h) - 24px - env(safe-area-inset-top, 0px)); } }
/* планшет: шторка не во всю ширину */
@media (min-width: 700px) and (max-width: 1099px) { .ctx__panel { left: 50%; right: auto; width: min(560px, calc(100vw - 16px)); margin-left: calc(min(560px, calc(100vw - 16px)) / -2); } }
/* дашборд */
.widget__v { font-variant-numeric: proportional-nums; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .widget--dark { box-shadow: inset 0 0 0 1px var(--line); } }
:root[data-theme="dark"] .widget--dark { box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Правки по финальной проверке ---------- */
/* одна янтарная заливка: пока открыта панель меню со своей главной кнопкой, кнопки страницы графитовые */
html:has(.ctx.is-open .ctx__pane:not([hidden]) .btn--accent) main .btn--accent { --b-bg: var(--ink); --b-fg: var(--bg); --b-hover: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
html:has(.ctx.is-open) main .tag--accent { background: var(--ink); color: var(--bg); }
/* рейка/док в тёмной теме — плотнее, чтобы читаться поверх светлых фото */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctx__rail { --g-bg: color-mix(in oklab, var(--surface) 88%, transparent); } }
:root[data-theme="dark"] .ctx__rail { --g-bg: color-mix(in oklab, var(--surface) 88%, transparent); }
/* сегменты внутри полей и панели меню — равными колонками */
.field > .seg, .ctx-group > .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
/* карточка ЖК: цены в ряду выровнены по низу */
.zc { grid-template-rows: auto 1fr; }
.zc__body { grid-template-rows: auto auto auto 1fr; }
.zc__price { align-self: end; }
@media (max-width: 1099px) { html:has(.ctx.is-open) .toast { z-index: 100; } }
@media (max-width: 640px) {
  /* подвал */
  .ftr__cta { gap: 22px; padding-bottom: 40px; margin-bottom: 32px; }
  .ftr__cta .row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; width: 100%; }
  .ftr__cta .btn--lg { height: 52px; padding: 0 14px; font-size: 14.5px; justify-content: center; }
  .ftr__legal { margin-top: 24px; }
  /* вопросы-аккордеоны ниже */
  .acc summary { padding: 16px 0; gap: 16px; font-size: 16.5px; }
  .acc .acc__b { padding-bottom: 20px; }
  /* прокручиваемые чипы — с затуханием у края */
  .chips--scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* тройки цифр — в одну строку */
  .grid.g-3:has(> .dim) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
  .grid.g-3:has(> .dim) .dim__v { font-size: 24px; }
  /* карточка ЖК: цены комнат в одну строку, фото ниже */
  .zc__rooms { flex-wrap: nowrap; gap: 4px; overflow: hidden; }
  .zc__rooms li { flex: none; height: 28px; padding: 0 7px; gap: 4px; font-size: 12px; }
  .zc__media { aspect-ratio: 16 / 10.5; }
}
@media (min-width: 1100px) {
  /* панель меню центрируется по высоте рядом с рейкой, но не заходит под шапку */
  .ctx__panel { top: calc((100vh + var(--hdr-h)) / 2); bottom: auto; max-height: calc(100vh - var(--hdr-h) - 32px); transform: translate(-14px, -50%) scale(.985); }
  .ctx__panel.is-in { transform: translateY(-50%); }
}
/* фото в двухколоночном блоке, когда колонки встают друг под друга: широкое и невысокое, а не на весь экран */
@media (max-width: 1024px) { .split > .ph { aspect-ratio: 16 / 9 !important; max-height: 62vh; } }
@media (max-width: 640px) { .split > .ph { aspect-ratio: 16 / 10 !important; } }
/* обложка: всё содержимое сразу под шапкой, высота — по содержимому (без пустого фото сверху) */
.cover { min-height: 0; align-items: start; }
.cover__in { padding-bottom: clamp(32px, 4.5vw, 64px); }
/* «горящее окно» в плашке обложки: плавно мерцает */
@keyframes lampGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(245, 158, 11, .28), 0 0 12px rgba(255, 178, 36, .75); }
  50% { opacity: .45; box-shadow: 0 0 0 1px rgba(245, 158, 11, .12), 0 0 4px rgba(255, 178, 36, .25); }
}
.cover .eyebrow::before { animation: lampGlow 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cover .eyebrow::before { animation: none !important; } }

/* ---------- Шапка: все пункты меню и номер видны на любом компьютере и планшете (решение владельца 21.10.2026) ----------
   ≤1240 — пункты компактнее, значки трубки и темы прячутся (номер — сам ссылка tel:, тема — в меню «Всё»);
   ≤1024 — без кнопки «Консультация» (она есть в меню и плавающей кнопке); ≤900 — меню в бургере, номер остаётся в шапке. */
.hdr__phone { transition: color .3s; }
.hdr__act .hdr__call { display: none; }
.hdr__phone:hover { color: var(--ink); }
@media (max-width: 1240px) {
  .hdr__phone { display: inline; font-size: 13.5px; margin-right: 6px; }
  .hdr__act .icon-btn { display: none; }
  .nav a, .nav__more { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 1100px) {
  .nav a { display: inline-flex; }
  .nav { margin-inline: auto; }
  .nav a, .nav__more { padding: 0 8px; font-size: 13.5px; }
}
@media (max-width: 1024px) {
  .hdr__act .btn--hdr { display: none; }
  .logo__word { height: 27px; }
}
/* ≤900 — пункты меню второй строкой в той же плашке (листаются вбок, если не влезают); «Всё» открывает полное меню */
@media (max-width: 900px) {
  :root { --hdr-h: 104px; }
  .hdr { height: 102px; margin-bottom: -102px; }
  .hdr__in { height: auto; }
  .hdr__bar { height: auto; flex-wrap: wrap; row-gap: 0; border-radius: 26px; padding: 0 5px 0 16px; }
  .hdr__bar > .logo, .hdr__act { height: 50px; }
  .nav { display: flex; order: 3; flex: 0 0 100%; height: 40px; margin: -2px 0 2px -10px; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav__more { display: inline-flex; flex: none; height: 34px; padding: 0 10px; font-size: 13.5px; }
  .nav a[aria-current="page"]::after { bottom: 2px; }
  .burger { display: none; }
  .hdr__phone { font-size: 13px; margin-right: 8px; letter-spacing: -.01em; }
  .mega { top: calc(var(--hdr-h) + 4px + env(safe-area-inset-top, 0px)); }
}
/* телефон: полное меню — кнопкой справа от номера (строка пунктов листается и «Всё» в ней не нужно) */
@media (max-width: 480px) {
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .nav .nav__more { display: none; }
  .burger { display: grid; width: 40px; height: 40px; margin-left: 0; }
  .hdr__phone { margin-right: 2px; }
}
@media (max-width: 359px) {
  .hdr__phone { display: none; }
  .hdr__act .hdr__call { display: inline-grid; }
}
