/* A+ Design — «вечерний люкс»: эспрессо, шампанское золото, светлая антиква, вечерний 3D-интерьер.
   От айдентики А+ — знак и одна оранжевая деталь (точка в надзаголовке первого экрана и кресло в 3D). */
:root {
  --bg: #0f0d0b;
  --bg-2: #14110e;
  --card: #1a1613;
  --ink: #efe7da;
  --ink-2: #cbc1b2;
  --muted: #9c9182;
  --line: rgba(239, 231, 218, .1);
  --line-2: rgba(239, 231, 218, .22);
  --gold: #c9a66b;
  --gold-2: #e2c48e;
  --dark: #0a0908;
  --signal: #ff6a1a;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --pad-l: max(var(--pad), calc(env(safe-area-inset-left) + 20px));
  --pad-r: max(var(--pad), calc(env(safe-area-inset-right) + 20px));
  --top-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: var(--top-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body, h1, h2, h3, b, .num, .ct-phone, .menu-tel { font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(201, 166, 107, .35); }
.sprite { position: absolute; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--card); border-radius: 999px; }
.skip:focus { top: 16px; }
.wrap { padding-left: var(--pad-l); padding-right: var(--pad-r); }

/* ── типографика ── */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font: 500 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.h1 { margin: 0 0 30px; font: 300 clamp(48px, min(7vw, 12vh), 128px)/.94 var(--serif); letter-spacing: -.02em; }
.h1 span, .h1 em { display: block; }
.h1-long { font-size: clamp(44px, min(5.6vw, 10.5vh), 108px); } /* строки длиннее 14 знаков — чтобы заголовок встал в три строки */
.h1 em { font-style: italic; font-weight: 300; color: var(--gold-2); }
.h2 { margin: 0 0 26px; font: 300 clamp(40px, 4.8vw, 84px)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; max-width: 18ch; }
.h3 { margin: 0 0 12px; font: 500 clamp(22px, 1.9vw, 30px)/1.15 var(--serif); letter-spacing: -.005em; }
.lead, .sec-lead { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 60ch; }
.idx { font: 500 13px/1 var(--sans); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.dots { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 20px; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold); }

/* ── кнопки ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 500 15px/1.2 var(--sans); letter-spacing: .01em; text-align: center; transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.btn-dark { background: linear-gradient(135deg, #d9bb84, #b58f52); color: #15110c; box-shadow: 0 10px 30px -12px rgba(201, 166, 107, .6); }
.btn-dark:hover { background: linear-gradient(135deg, #e6c994, #c39d5f); transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-light { background: var(--ink); color: #15110c; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.arr { display: inline-block; position: relative; width: 16px; height: 10px; flex: none; transition: transform .35s var(--ease); }
.arr::before { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-top: 1.2px solid currentColor; border-right: 1.2px solid currentColor; transform: rotate(45deg); }
.arr::after { content: ""; position: absolute; right: 1px; top: 4.5px; width: 16px; height: 1.2px; background: currentColor; }
.btn:hover .arr, a:hover > .arr, a:hover em .arr { transform: translateX(4px); }
.ico-phone { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; flex: none; }

/* ── заставка ── */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 34px; transition: opacity .8s var(--ease), visibility .8s; }
.loader.out { opacity: 0; visibility: hidden; }
.loader-logo { width: 84px; height: 61px; color: var(--ink); animation: fadein 1s var(--ease) both; }
.loader-line { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.no-js .loader, .seen .loader { display: none; }

/* ── шапка ── */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--pad-r) 0 var(--pad-l);
  display: flex; align-items: center; gap: 32px; transition: background .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; }
.top.scrolled { background: rgba(15, 13, 11, .8); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
/* над открытым меню шапка прозрачная: лист съезжает от верхнего края экрана, знак и кнопки остаются поверх него.
   При закрытии (класс menu-top снят сразу) плашка прокрученной шапки плавно проявляется, пока лист ещё под ней;
   блюр включается, когда лист уже уехал (снят menu-open) — блюр поверх движущегося листа Safari пересчитывает каждый кадр */
.menu-open .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-top .top { background: transparent; box-shadow: none; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand .logo { width: 38px; height: 28px; color: var(--ink); }
.brand-word { font: 500 13px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.top-cta { display: flex; align-items: center; gap: 22px; flex: none; }
.top-cta .btn { white-space: nowrap; }
.top-tel { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top-cta { margin-left: auto; }
.top-call { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; margin-left: auto; color: var(--ink); }
.top-call .ico-phone { width: 20px; height: 20px; }
/* «Обсудить проект» в шапке — тонкая золотая обводка, заливка при наведении */
.top-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid rgba(201, 166, 107, .65); border-radius: 999px; font-size: 14px; letter-spacing: .02em; white-space: nowrap; color: var(--ink); transition: background .35s, color .35s, border-color .35s; }
.top-btn:hover { background: var(--gold); border-color: var(--gold); color: #15110c; }
/* кнопка «Меню»: слово и две тонкие линии, без рамки; в открытом меню — «Закрыть» и крестик */
.burger { display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 2px 0 6px; flex: none; font-size: 14px; letter-spacing: .08em; color: var(--ink); transition: color .3s; }
.burger:hover, .burger[aria-expanded="true"] { color: var(--gold-2); }
/* оба слова лежат в одной ячейке: ширина кнопки — по длинному слову и не меняется, ряд в шапке не дёргается.
   Слово по центру ячейки, отступ слева равен зазору до кружка — слово ровно посередине между краем и кружком */
.burger-word { display: grid; justify-items: center; }
.bw-open, .bw-close { grid-area: 1 / 1; transition: opacity .3s; }
.bw-close, .burger[aria-expanded="true"] .bw-open { opacity: 0; visibility: hidden; }
.burger[aria-expanded="true"] .bw-close { opacity: 1; visibility: visible; }
.burger-ico { position: relative; width: 26px; height: 14px; }
.burger-ico i { position: absolute; left: 0; right: 0; height: 1.3px; background: currentColor; transition: transform .45s var(--ease); }
.burger-ico i:first-child { top: 3px; } .burger-ico i:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger-ico i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-ico i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* меню — шторка справа: панель выезжает от правого края, страница слева затемняется (щелчок по ней закрывает меню) */
.menu { position: fixed; z-index: 49; inset: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .85s; }
.menu.open { visibility: visible; transition: none; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(8, 7, 6, .62); opacity: 0; transition: opacity .7s var(--ease); }
.menu.open::before { opacity: 1; }
/* панель уезжает правее экрана ещё на 140px — вместе с тенью, чтобы тень не исчезала рывком.
   will-change — слой готов заранее: Safari иначе тратит первые кадры на его создание и панель «прыгает» */
.msheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(1180px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--top-h) + env(safe-area-inset-top) + 20px) var(--pad-r) calc(24px + env(safe-area-inset-bottom)) clamp(28px, 4vw, 72px);
  background: linear-gradient(rgba(201, 166, 107, .035) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(201, 166, 107, .035) 1px, transparent 1px) 0 0 / 48px 48px, var(--bg);
  border-left: 1px solid rgba(201, 166, 107, .25); box-shadow: -40px 0 90px -20px rgba(0, 0, 0, .85);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 28px clamp(28px, 4vw, 72px);
  transform: translate3d(calc(100% + 140px), 0, 0); will-change: transform; transition: transform .85s cubic-bezier(.65, 0, .35, 1); }
.menu.open .msheet { transform: none; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.mcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 64px); align-content: center; }
.mcol { display: grid; align-content: start; }
.mi { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .2s .85s, transform 0s .85s; } /* при закрытии пункты уезжают вместе с листом */
.menu.open .mi { opacity: 1; transform: none; transition: opacity .6s calc(.2s + var(--d) * 45ms), transform .8s var(--ease) calc(.2s + var(--d) * 45ms); }
.mi .idx { grid-row: span 2; padding-top: .9em; color: var(--gold); }
.mi b { font: 300 clamp(26px, 2.15vw, 36px)/1.08 var(--serif); letter-spacing: -.01em; transition: color .3s, transform .5s var(--ease); }
.mi small { margin-top: 4px; font-size: 13px; color: var(--muted); }
.mi:hover b, .mi.on b, .mi[aria-current] b { color: var(--gold-2); }
.mi:hover b, .mi.on b { transform: translateX(6px); }
.mi-seg { grid-template-columns: 1fr; padding: 0 0 14px; margin-bottom: 4px; border-bottom-color: rgba(201, 166, 107, .4); }
.mi-seg b { font: 500 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.mi-seg:hover b, .mi-seg.on b { transform: none; color: var(--gold-2); }
.mprev { position: relative; align-self: center; margin: 0; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--top-h) - 170px); border-radius: 3px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.mpv { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.mpv.on { opacity: 1; }
.mpv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* кадр проявляется только когда загружен (класс ld ставит app.js) — иначе догрузка посреди анимации даёт рывок */
.mpv img:first-child { opacity: 0; transition: opacity .6s var(--ease); }
.mpv img.ld:first-child { opacity: 1; }
/* чертёж кадра проступает золотыми линиями, сильнее к краям */
.mpv .mpv-edges { mix-blend-mode: screen; filter: sepia(1) saturate(2.2) brightness(1.1); opacity: 0;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, transparent 35%, #000 85%); mask-image: radial-gradient(75% 70% at 50% 45%, transparent 35%, #000 85%); }
.mpv.on .mpv-edges { opacity: .75; transition-delay: .35s; }
.menu:not(.open) .mpv-edges { opacity: 0; transition: none; }
.mprev::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(15, 13, 11, .75), transparent 30%); }
.mstamp { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid rgba(201, 166, 107, .7); background: rgba(15, 13, 11, .86); }
.mstamp > * { padding: 9px 14px; }
.mstamp b { grid-column: 1 / -1; font: 600 13px/1.2 var(--sans); letter-spacing: .3em; color: var(--gold-2); border-bottom: 1px solid rgba(201, 166, 107, .5); }
.mstamp span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mstamp em { font: 500 11px/1.4 var(--sans); font-style: normal; letter-spacing: .2em; color: var(--muted); border-left: 1px solid rgba(201, 166, 107, .5); }
.mstamp em i { font-style: normal; color: var(--gold-2); }
.mfoot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.msec { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.msec a { color: var(--ink-2); transition: color .3s; } .msec a:hover, .msec a.on { color: var(--gold-2); }
.mcontacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-left: auto; color: var(--ink-2); }
.menu-tel { font: 400 26px/1.2 var(--serif); color: var(--ink); }
.mhours { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) { .msheet { grid-template-columns: 1fr; grid-template-rows: auto auto; } .mprev { display: none; } .mcols { align-content: start; } }
@media (max-width: 760px) {
  .mcols { grid-template-columns: 1fr; gap: 28px; }
  .mi b { font-size: clamp(26px, 7vw, 34px); }
  .mi-seg b { font-size: 12px; }
  .mi.on b { transform: none; }
  .mfoot { flex-direction: column; align-items: stretch; }
  .mcontacts { margin-left: 0; }
  .mfoot .btn { width: 100%; }
}
@media (max-width: 1100px) { .top-tel { display: none; } }
@media (max-width: 760px) {
  .top-cta { display: none; }
  .top-call, .burger { display: inline-flex; }
  .top { gap: 10px; }
}

/* ── 3D-сцена ── */
.stage { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; background: var(--bg); }
#gl { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s var(--ease); }
#gl.grabbing { cursor: grabbing; }
.webgl-on #gl { opacity: 1; }
.webgl-on #gl.dim { opacity: 0; transition-duration: .28s; }
.stage-off .stage { visibility: hidden; }
.fallback { display: none; }
.no-js .fallback, .no-webgl .fallback { display: block; position: absolute; inset: 0; }
.fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.no-webgl #gl, .no-js #gl { display: none; }

/* кадры интерьера: стопка слоёв, видимость и движение задаёт app.js по прокрутке */
.frames { position: absolute; inset: 0; overflow: hidden; }
.fr { position: absolute; inset: -4%; margin: 0; opacity: 0; will-change: opacity, transform; }
.fr:first-child { opacity: 1; }
.fr > img { width: 100%; height: 100%; object-fit: cover; }
/* «рентген проекта»: холст линзы лежит прямо в слое первого кадра и двигается вместе с ним */
.xray { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* запасная лупа без WebGL (страница открыта как файл): контуры золотом, сетка, пометки, стеклянная кромка */
.xray-css { position: absolute; left: 0; top: 0; border-radius: 50%; overflow: hidden; visibility: hidden; pointer-events: none; background: #0d0b09; will-change: transform;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 219, 160, .65), inset 0 0 0 5px rgba(255, 255, 255, .06), inset 0 0 40px 6px rgba(0, 0, 0, .55); }
.xray-css::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .16), transparent 32%),
    linear-gradient(rgba(248, 230, 200, .9), rgba(248, 230, 200, .9)) center / 1px 14% no-repeat, linear-gradient(rgba(248, 230, 200, .9), rgba(248, 230, 200, .9)) center / 14% 1px no-repeat; }
.xray-css-in { position: absolute; left: 0; top: 0; }
.xray-css-in > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.xray-css-in img { filter: sepia(1) saturate(1.5) brightness(.9); opacity: .85; mix-blend-mode: screen; }
.xray-grid { background-image: linear-gradient(rgba(201, 166, 107, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 166, 107, .07) 1px, transparent 1px); background-size: var(--grid, 28px) var(--grid, 28px); }
/* обычный системный курсор; над интерьером его заменяет лупа — класс xray-hide-cursor ставит xray.js, только пока лупа видна */
.xray-hide-cursor, .xray-hide-cursor * { cursor: none !important; }
.xray-hint { position: absolute; right: var(--gut, 40px); bottom: 40px; margin: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239, 231, 218, .78); transition: opacity .8s var(--ease); pointer-events: none; }
.xray-hint i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: inset 0 0 0 5px rgba(201, 166, 107, .18); animation: xray-pulse 2.4s var(--ease) infinite; }
.xray-hint.off { opacity: 0; }
@keyframes xray-pulse { 50% { transform: scale(1.18); box-shadow: inset 0 0 0 2px rgba(201, 166, 107, .3); } }
@media (hover: none), (max-width: 1099px) { .xray-hint { display: none; } }
.fr-plan { background: radial-gradient(70% 70% at 62% 50%, #1d1813, #0f0d0b 70%); }
/* --ar — пропорции картинки плана, ставит шаблон кадров */
.plan-box { position: absolute; left: 68%; top: 53%; transform: translate(-50%, -50%); width: min(42vw, calc((100vh - 220px) * var(--ar, 1.3333))); aspect-ratio: var(--ar, 1.3333); }
.plan-box img { width: 100%; height: 100%; border-radius: 2px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85); }
/* шаг «Начинаем с чертежа»: план как калька — монохром и золотая сетка */
.fr-blueprint img { filter: grayscale(1) sepia(.3) brightness(.6) contrast(1.15); }
.fr-blueprint .plan-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background-image: linear-gradient(rgba(201, 166, 107, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 166, 107, .16) 1px, transparent 1px); background-size: 5% 6.667%; }
/* шаг «Чертежи, по которым строят»: размерные линии и оси прорисовываются золотом */
.dims { position: absolute; overflow: visible; } /* положение и размер — в style, от пропорций плана */
.dims .dl * { fill: none; stroke: #c9a66b; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.fr.on .dims .dl * { stroke-dashoffset: 0; }
.dims text { fill: #e2c48e; font: 500 28px var(--sans); letter-spacing: .12em; text-anchor: middle; opacity: 0; transition: opacity 1s 1.4s; }
.fr.on .dims text { opacity: 1; }

/* текст поверх кадров: тёмная вуаль слева */
main { position: relative; z-index: 1; }
.zone3d { position: relative; pointer-events: none; }
.zone3d [data-tpl] > *, .story-card > * { pointer-events: auto; }
.zone3d .story-card { pointer-events: none; }
.hero::before, .story-sticky::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 13, 11, .96) 0%, rgba(15, 13, 11, .86) 24%, rgba(15, 13, 11, .45) 40%, rgba(15, 13, 11, 0) 56%); }
/* кинематографичная виньетка и плёночное зерно поверх сцены */
/* верх и низ затемняет сам неподвижный холст — у разделов своих полос нет, поэтому на стыке нет шва */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 13, 11, .8), rgba(15, 13, 11, 0) 20%), linear-gradient(0deg, rgba(15, 13, 11, .7), rgba(15, 13, 11, 0) 22%),
    radial-gradient(120% 90% at 62% 50%, transparent 55%, rgba(0, 0, 0, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
.hero { position: relative; }

/* ── первый экран ── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--top-h) + 30px) 0 48px; }
.hero-in { position: relative; width: min(46vw, 760px); box-sizing: content-box; }
/* навигационная цепочка страницы направления — на месте надзаголовка */
.crumbs { flex-wrap: wrap; row-gap: 6px; }
.crumbs a { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-2); transition: color .3s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs a::after { content: "/"; color: var(--muted); }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.tel-link { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-variant-numeric: tabular-nums; border-bottom: 1px solid transparent; transition: border-color .3s; }
.tel-link:hover { border-color: var(--ink); }
.hero-facts { list-style: none; margin: clamp(40px, 7vh, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid rgba(201, 166, 107, .35); padding-top: 22px; max-width: 760px; }
.hero-facts b { display: block; font: 400 23px/1.2 var(--serif); color: var(--gold-2); margin-bottom: 6px; font-variant-numeric: lining-nums; }
.hero-facts span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ── история проекта: 500vh, внутри sticky-экран ── */
.js .story { height: 500vh; }
.story-sticky { position: relative; }
.js .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-in { position: relative; height: 100%; display: flex; align-items: center; padding-top: var(--top-h); padding-bottom: 40px; }
.story-card { position: relative; width: min(36vw, 520px); }
.story-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; font-family: var(--serif); }
.story-count b { font-weight: 300; color: var(--gold-2); font-size: clamp(64px, 6vw, 104px); line-height: .9; font-variant-numeric: lining-nums; }
.story-count span { font-size: 24px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding-bottom: 34px; }
.step-label { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.step .h3 { font-size: clamp(32px, 3vw, 50px); line-height: 1.05; margin-bottom: 18px; }
.step-text { color: var(--ink-2); font-size: clamp(16px, 1.15vw, 19px); max-width: 30em; }
.js .steps { display: grid; }
.js .step { grid-area: 1 / 1; padding: 0; opacity: 0; transform: translateY(18px); visibility: hidden; transition: opacity .5s var(--ease), transform .8s var(--ease), visibility 0s .5s; }
.js .step.on { opacity: 1; transform: none; visibility: visible; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s, visibility 0s; }
.story-bar { display: none; }
.js .story-bar { display: block; margin-top: 36px; height: 1px; background: var(--line); width: 100%; max-width: 360px; }
.story-bar i { display: block; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ── обычные секции ── */
.sec { position: relative; z-index: 2; background: var(--bg); }
.sec > .wrap { max-width: 1680px; margin: 0 auto; padding-top: clamp(90px, 12vw, 180px); padding-bottom: clamp(90px, 12vw, 180px); }
.sec + .sec > .wrap, .sec + template + .sec > .wrap { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(36px, 5vw, 72px); }
.why, .brief { background: var(--bg-2); }
.why { background: radial-gradient(80% 60% at 85% 20%, rgba(201, 166, 107, .08), transparent 60%), var(--bg-2); }
.sec.why + .sec > .wrap, .sec.brief + .sec > .wrap, .sec + .sec.brief > .wrap { border-top: 0; }

/* манифест */
.manifesto > .wrap { text-align: center; padding-top: clamp(110px, 15vw, 220px); padding-bottom: clamp(90px, 12vw, 180px); }
.eyebrow-c { justify-content: center; }
.eyebrow-c::before { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.manifesto-text { margin: 0 auto; max-width: 21em; font: 300 clamp(30px, 3.6vw, 62px)/1.18 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.mf-facts { list-style: none; margin: clamp(60px, 8vw, 120px) auto 0; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(201, 166, 107, .3); }
.mf-facts li { padding: 32px 24px 0; }
.mf-facts li + li { border-left: 1px solid var(--line); }
.mf-facts b { display: block; font: 300 clamp(44px, 4.6vw, 76px)/1 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-2); margin-bottom: 12px; }
.mf-facts span { color: var(--ink-2); font-size: 15px; }

/* галерея визуализаций */
.gal-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.gal-head .sec-head { margin: 0; }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.shot { margin: 0; }
.shot-wide { grid-column: span 8; }
.shot-tall { grid-column: span 4; }
.shot-half { grid-column: span 6; }
.shot-tall .shot-img { aspect-ratio: 4 / 5; }
.shot-wide .shot-img, .shot-half .shot-img { aspect-ratio: 3 / 2; }
.shot-img { position: relative; overflow: hidden; border-radius: 3px; background: var(--card); }
a.shot-img { display: block; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease), filter 1s; filter: saturate(.95); }
.shot:hover .shot-img img, .type:hover .shot-img img, .why-img:hover img { filter: saturate(1.1) brightness(1.06); }
.shot figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 16px; }
.shot figcaption b { font: 400 24px/1.2 var(--serif); }
.shot figcaption span { color: var(--muted); font-size: 14px; text-align: right; }
.shot-tall { margin-top: clamp(40px, 8vw, 140px); }

/* что проектируем: три редакционные карточки */
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.type .shot-img { aspect-ratio: 4 / 5; margin-bottom: 28px; }
.type:nth-child(2) { margin-top: clamp(30px, 5vw, 90px); }
.type-n { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.type-n .idx { color: var(--gold); }
.type .h3 { font-size: clamp(30px, 2.6vw, 44px); font-weight: 300; }
.type-text { color: var(--ink-2); }
.type .dots { margin-bottom: 26px; font-size: 15px; }
.link-more { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(201, 166, 107, .5); color: var(--gold-2); font-size: 15px; }
.link-more:hover { border-color: var(--gold-2); }

/* «Что проектируем»: вкладки типов помещений */
.types-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 30px; }
.types-head .sec-head { margin: 0; }
.ttabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 4vw, 64px); padding-bottom: 24px; border-bottom: 1px solid rgba(201, 166, 107, .35); }
.ttab { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .3s, border-color .3s, background .3s; }
.ttab .idx { color: var(--gold); }
.ttab:hover { color: var(--ink); border-color: var(--gold); }
.ttab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #15110c; }
.ttab[aria-selected="true"] .idx { color: #15110c; }
.tpanel-title { margin-bottom: 26px; font-size: clamp(34px, 3.4vw, 58px); }
.tpanel > .about-split + .sig { margin-top: clamp(56px, 7vw, 110px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .ttabs { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--pad-r)); padding-right: var(--pad-r); scrollbar-width: none; }
  .ttab { flex: none; }
}
/* текст вкладки: что проектируем для этого типа объекта */
.sec + .sec.why > .wrap { border-top: 0; }
.about-text { display: grid; gap: 1em; max-width: 38em; color: var(--ink-2); font-size: clamp(17px, 1.2vw, 19px); }
.about-dots { margin: clamp(30px, 3vw, 44px) 0 34px; padding-top: 26px; border-top: 1px solid rgba(201, 166, 107, .35); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 46em; }
@media (max-width: 600px) { .about-dots { grid-template-columns: 1fr; } }

/* фирменные блоки страниц направлений */
.sig-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.sig-split .sec-head { margin: 0; }
.sig-lead { margin: 0; }
/* квартиры: «обмер — проект», ползунок по плану */
.cmp { position: relative; margin: 0 auto; max-width: 1180px; aspect-ratio: var(--ar); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); --x: 50%; }
.cmp > img, .cmp-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-before img { filter: grayscale(1) sepia(.3) brightness(.6) contrast(1.15); }
.cmp-before.cmp-draw img { filter: none; }
.cmp-before.cmp-draw::after { content: none; }
.cmp-before::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; background-image: linear-gradient(rgba(201, 166, 107, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 166, 107, .16) 1px, transparent 1px); background-size: 5% 6.667%; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--gold-2); pointer-events: none; }
.cmp-line i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid var(--gold-2); background: rgba(15, 13, 11, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmp-line i::before, .cmp-line i::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 1.2px solid var(--gold-2); border-left: 1.2px solid var(--gold-2); }
.cmp-line i::before { left: 12px; transform: rotate(-45deg); } .cmp-line i::after { right: 12px; transform: rotate(135deg); }
.cmp-tag { position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(15, 13, 11, .75); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); pointer-events: none; }
.cmp-tag-l { left: 18px; } .cmp-tag-r { right: 18px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range:focus-visible + * , .cmp:focus-within .cmp-line i { box-shadow: 0 0 0 2px var(--gold-2); }
/* дома, апартаменты: два кадра и связь между ними */
.pair { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: center; }
.pair-item { margin: 0; }
.pair-item .shot-img { aspect-ratio: 4 / 3; }
.pair-item:last-child .shot-img { aspect-ratio: 4 / 5; }
.pair-item figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding-top: 16px; }
.pair-item figcaption .idx { grid-row: span 2; padding-top: 8px; color: var(--gold); }
.pair-item figcaption b { font: 400 26px/1.2 var(--serif); }
.pair-item figcaption span:last-child { color: var(--muted); font-size: 14px; }
.pair-link { display: grid; justify-items: center; gap: 12px; width: 120px; color: var(--gold); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.pair-link i { width: 1px; height: 70px; background: linear-gradient(var(--gold), transparent); }
.pair-link i:last-child { background: linear-gradient(transparent, var(--gold)); }
/* офисы: план с точками */
.hot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 3.5vw, 60px); align-items: start; }
.hot-plan { position: relative; margin: 0; aspect-ratio: var(--ar); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); }
.hot-plan img { width: 100%; height: 100%; object-fit: cover; }
.hot-pt { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 13, 11, .78); border: 1px solid rgba(226, 196, 142, .7); color: var(--gold-2); font: 500 13px/1 var(--sans); transition: transform .4s var(--ease), background .3s, color .3s; }
.hot-pt::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(226, 196, 142, .35); animation: xray-pulse 2.6s var(--ease) infinite; }
.hot-pt:hover { transform: scale(1.1); }
.hot-pt.on { background: var(--gold); color: #15110c; }
.hot-cards { display: grid; }
.hot-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.hot-card.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hot-card .shot-img { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.hot-card .type-n { margin-bottom: 10px; }
.hot-card p:last-child { color: var(--ink-2); }
/* таунхаусы: этажи сверху вниз */
.floors { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.floors .why-img .shot-img { aspect-ratio: 4 / 5; }
.floors .sig-lead { margin-bottom: 34px; }
.floor-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(201, 166, 107, .35); }
.floor-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.floor-list .idx { grid-row: span 2; padding-top: 6px; color: var(--gold); }
.floor-list b { font: 400 26px/1.2 var(--serif); }
.floor-list li span:last-child { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1180px) { .sig-split, .hot, .floors { grid-template-columns: 1fr; } .floors .why-img { position: static; max-width: 520px; } }
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; }
  .pair-link { width: auto; grid-auto-flow: column; align-items: center; }
  .pair-link i { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
  .pair-link i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
  .pair-item:last-child .shot-img { aspect-ratio: 4 / 3; }
  .hot-pt { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 11px; }
  .cmp-tag { font-size: 10px; padding: 5px 10px; } .cmp-tag-l { top: 10px; left: 10px; } .cmp-tag-r { top: auto; bottom: 10px; right: 10px; }
}



/* почему A+ */
.why-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.why-img { position: sticky; top: calc(var(--top-h) + 30px); margin: 0; }
.why-img .shot-img { aspect-ratio: 4 / 5; }
.why-split .why-top { grid-template-columns: 1fr; gap: 30px; margin-bottom: clamp(40px, 5vw, 72px); }
.why-split .why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-split .why-cards li:nth-child(3) { padding-left: 0; border-left: 0; }
.why-split .why-cards li:nth-child(n+3) { border-top: 1px solid var(--line); }
.why-split .why-cards li { padding-bottom: 26px; }

/* почему A+ (общие) */
.why-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(56px, 7vw, 110px); }
.why-top .sec-head { margin-bottom: 26px; }
.why-lead { font: 400 clamp(22px, 2vw, 32px)/1.35 var(--serif); color: var(--ink); max-width: 30em; }
.num { display: flex; align-items: baseline; gap: .1em; font: 300 clamp(64px, 7.4vw, 140px)/.95 var(--serif); color: var(--gold-2); letter-spacing: -.02em; margin-bottom: 18px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.num small { font-size: .36em; color: var(--muted); margin-left: .15em; }
.num-text { color: var(--ink-2); max-width: 26em; }
.why-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(201, 166, 107, .35); }
.why-cards li { padding: 30px 28px 10px 0; }
.why-cards li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.why-cards .idx { display: block; margin-bottom: 40px; color: var(--gold); }
.why-cards p { color: var(--ink-2); font-size: 16px; }
/* команда проекта — роли */
.team { margin-top: clamp(40px, 5vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); }
.team .eyebrow { margin-bottom: 18px; }
.team-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.role b { display: block; margin-bottom: 6px; font: 400 26px/1.2 var(--serif); }
.role p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 600px) { .team-roles { grid-template-columns: 1fr; } }

/* альбом */
.album-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.album-side { position: sticky; top: calc(var(--top-h) + 30px); }
.album-plan { margin: 0; }
.album-plan img { width: 100%; border-radius: 3px; }
.album-plan figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.sheets { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; border-top: 1px solid rgba(201, 166, 107, .35); }
.sheets li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font: 500 clamp(19px, 1.5vw, 24px)/1.25 var(--serif); }
.sheets .idx { flex: none; width: 26px; color: var(--gold); }

/* портфолио */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.pf { margin: 0; }
.pf img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.pf figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* форматы */
.pk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pk { display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 44px); border-radius: 4px; background: var(--card); border: 1px solid var(--line); }
.pk.featured { background: linear-gradient(160deg, #2b2218, #15110d 60%); border-color: rgba(201, 166, 107, .5); box-shadow: 0 40px 100px -50px rgba(201, 166, 107, .45); }
.pk .idx { color: var(--gold); }
.pk-name { display: flex; gap: 14px; align-items: baseline; margin-bottom: 34px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.pk .h3 { font-size: clamp(28px, 2.4vw, 40px); min-height: 2.2em; }
.pk .dots { margin-bottom: 36px; font-size: 16px; }
.pk-price { margin: -10px 0 26px; font: 500 24px/1.3 var(--serif); }
.pk .btn { margin-top: auto; align-self: flex-start; }

/* бриф */
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.brief-form { display: grid; gap: 34px; }
.bf { margin: 0; padding: 0; border: 0; min-width: 0; }
.bf legend { padding: 0; margin-bottom: 14px; font: 500 22px/1.3 var(--serif); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); background: rgba(255, 255, 255, .02); cursor: pointer; user-select: none; transition: color .25s, border-color .25s, background .25s; }
.pill:hover span { border-color: var(--gold); color: var(--ink); }
.pill input:checked + span { background: var(--gold); border-color: var(--gold); color: #15110c; }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.area { display: flex; align-items: center; gap: 24px; }
.area input[type="range"] { flex: 1; min-width: 0; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.area input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(var(--gold), var(--gold)) 0 0 / var(--fill, 30%) 100% no-repeat, var(--line-2); }
.area input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--gold); border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--gold); }
.area input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
.area input[type="range"]::-moz-range-progress { height: 2px; background: var(--gold); }
.area input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--ink); }
.area-num { display: flex; align-items: baseline; gap: 8px; flex: none; }
.area-num input { width: 3.4em; padding: 2px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font: 500 34px/1.1 var(--serif); text-align: right; -moz-appearance: textfield; appearance: textfield; }
.area-num input::-webkit-inner-spin-button, .area-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.area-num input:focus { outline: none; border-color: var(--ink); }
.area-num span { color: var(--muted); }
.brief-side { position: sticky; top: calc(var(--top-h) + 28px); display: grid; gap: 16px; }
.summary { padding: clamp(26px, 2.6vw, 40px); border-radius: 4px; background: linear-gradient(160deg, #221c16, #161210); border: 1px solid rgba(201, 166, 107, .35); box-shadow: var(--shadow); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font: 500 28px/1.2 var(--serif); }
.summary-head span:last-child { font: 400 14px var(--sans); color: var(--muted); }
.summary dl { margin: 0 0 26px; }
.summary dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary dd.empty { color: var(--muted); }
.brief-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief-actions .btn-dark { grid-column: 1 / -1; }
.brief-side .note { margin: 0; font-size: 13px; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq-list { border-top: 1px solid rgba(201, 166, 107, .35); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .h3 { margin: 0; font-size: clamp(22px, 1.8vw, 28px); }
.qa summary i { position: relative; width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.2px; background: var(--gold); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(45deg); }
.qa p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 44em; }

/* контакты */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.ct-text .sec-head { margin-bottom: 30px; }
.ct-phone { display: inline-block; margin-bottom: 22px; font: 300 clamp(38px, 4.8vw, 84px)/1 var(--serif); color: var(--gold-2); letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: lining-nums; }
.ct-phone:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.ct-hours { margin: -12px 0 22px; color: var(--muted); font-size: 15px; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 26px; }
.ct-mail { font: 500 clamp(22px, 1.9vw, 30px)/1.2 var(--serif); border-bottom: 1px solid var(--line-2); }
.ct-addr { display: grid; gap: 8px; max-width: 30em; color: var(--ink-2); }
.ct-addr em { font-style: normal; display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }
.ct-map { display: block; border-radius: 4px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.ct-map svg { width: 100%; height: auto; }
.m-road path { stroke: rgba(239, 231, 218, .14); stroke-width: 6; fill: none; stroke-linecap: round; }
.m-rail path { stroke: rgba(239, 231, 218, .12); stroke-width: 1.5; stroke-dasharray: 8 6; fill: none; }
.m-blocks rect { fill: rgba(239, 231, 218, .05); }
.m-street { font: 500 11px var(--sans); letter-spacing: .1em; fill: var(--muted); }
.m-pin circle:first-child { fill: rgba(255, 106, 26, .14); }
.m-pin circle:last-child { fill: var(--signal); }
.m-label { font: 500 13px var(--sans); fill: var(--ink); }

/* подвал */
.foot { position: relative; z-index: 2; background: var(--dark); color: #e9e4dc; border-top: 1px solid rgba(201, 166, 107, .3); }
.foot > .wrap { max-width: 1680px; margin: 0 auto; padding-top: 64px; padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
.foot .brand .logo { color: #f3efe8; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(243, 239, 232, .14); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; padding: 26px 0; border-bottom: 1px solid rgba(243, 239, 232, .14); font-size: 15px; }
.foot-nav nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.foot-nav a { color: rgba(233, 228, 220, .8); transition: color .3s; }
.foot-nav a:hover, .foot-nav a[aria-current] { color: var(--gold-2); }
.foot-nav .foot-seg { flex-basis: 100%; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .foot-nav { grid-template-columns: 1fr; } }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 24px; font-size: 14px; color: rgba(233, 228, 220, .6); }
.foot-row a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }

/* мобильная панель действий */
.mbar { display: none; }
.toast { color: #15110c !important; position: fixed; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); font-size: 14px; transition: opacity .3s, transform .4s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── адаптив ── */
@media (max-width: 1180px) {
  .why-top, .album-grid, .faq-grid, .brief-grid { grid-template-columns: 1fr; }
  .album-side, .why-img { position: static; }
  .why-split, .gal-head { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; max-width: 640px; }
  .type:nth-child(2) { margin-top: 0; }
  .why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-cards li:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-cards li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pk-grid { grid-template-columns: 1fr; max-width: 640px; }
  .pk .h3 { min-height: 0; }
  .brief-side { position: static; max-width: 640px; }
}
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  :root { --top-h: 64px; }
  body { font-size: 16px; }
  .why-cards { grid-template-columns: 1fr; }
  .why-cards li, .why-cards li + li { padding: 24px 0 8px; border-left: 0; }
  .why-cards li + li { border-top: 1px solid var(--line); }
  .why-cards .idx { margin-bottom: 18px; }
  .sheets { columns: 1; }
  .summary dl div { grid-template-columns: 1fr; gap: 2px; }
  .brief-actions { grid-template-columns: 1fr; }
  .qa p { padding-right: 0; }
  .ct-phone { font-size: 10vw; }
  .num { font-size: 16vw; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    padding: 8px; border-radius: 999px; background: rgba(26, 22, 19, .88); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .5s var(--ease); }
  .mbar.on { transform: none; }
  .mbar .btn { min-height: 48px; padding: 0 16px; font-size: 15px; }
}

/* композиция «телефон»: сцена в верхней части экрана, текст ниже (то же условие — в scene.js) */
@media (orientation: portrait) and (max-width: 1099px), (max-width: 599px) {
  .hero::before, .story-sticky::before { background: none; }
  .stage::after { background: linear-gradient(180deg, rgba(15, 13, 11, .7), rgba(15, 13, 11, 0) 16%), radial-gradient(120% 70% at 50% 30%, transparent 50%, rgba(0, 0, 0, .55)); }
  .hero { align-items: flex-end; padding-top: 50svh; padding-bottom: 0; }
  .hero-in { width: 100%; box-sizing: border-box; padding-top: 40px; padding-bottom: 48px;
    background: linear-gradient(to bottom, rgba(15, 13, 11, 0), var(--bg) 60px); }
  .h1 { font-size: clamp(42px, 12vw, 80px); }
  .h1-long { font-size: clamp(38px, 10.4vw, 72px); }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .js .story-in { align-items: flex-end; padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)); }
  .story-card { width: 100%; padding: 24px 22px 26px; border-radius: 6px; background: rgba(20, 17, 14, .9); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
  .story-card .eyebrow { margin-bottom: 10px; padding-right: 92px; }
  .story-card .eyebrow::after { display: none; }
  .story-count { position: absolute; right: 22px; top: 18px; margin: 0; }
  .story-count b { font-size: 40px; }
  .story-count span { font-size: 16px; }
  .step .h3 { font-size: clamp(26px, 7.4vw, 40px); margin-bottom: 10px; }
  .step-text { font-size: 15px; line-height: 1.55; }
  .js .story-bar { margin-top: 20px; }
  .plan-box { left: 52%; top: 32%; width: 80vw; }
  .fr-plan { background: #0f0d0b; }
}
@media (max-height: 720px) and (min-width: 600px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--top-h) + 10px); padding-bottom: 24px; }
  .h1 { margin-bottom: 18px; }
  .hero .lead { margin-bottom: 24px; font-size: 16px; }
  .hero-facts { margin-top: 28px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-facts, .hero .lead { display: none; }
  .story-count b { font-size: 44px; }
}
@media (min-width: 1900px) {
  body { font-size: 19px; }
  .hero-in { width: min(44vw, 900px); }
  .story-card { width: min(32vw, 640px); }
  .sec > .wrap { max-width: 2000px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* бегущая строка материалов — медленно, антиквой */
.marquee { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 26px 0; }
.marquee-in { display: flex; width: max-content; gap: 56px; animation: marquee 60s linear infinite; font: 300 italic clamp(28px, 3vw, 46px)/1 var(--serif); color: var(--ink-2); white-space: nowrap; }
.marquee-in span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-in span::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .gal { grid-template-columns: 1fr; }
  .shot-wide, .shot-tall, .shot-half { grid-column: auto; margin-top: 0; }
  .shot-tall .shot-img { aspect-ratio: 4 / 5; }
  .mf-facts { grid-template-columns: 1fr; }
  .mf-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .mf-facts li { padding: 26px 0; }
  .shot figcaption { flex-direction: column; gap: 4px; }
  .shot figcaption span { text-align: left; }
}
@media (max-width: 600px) { .why-split .why-cards { grid-template-columns: 1fr; } .why-split .why-cards li { padding-left: 0 !important; border-left: 0 !important; } }

/* кнопка «Меню» на телефоне — только две линии (кнопка 46×46 для пальца); слово остаётся для экранных чтецов */
@media (max-width: 760px) {
  .burger { width: 46px; padding: 0; justify-content: center; }
  .burger-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* коммерческая страница — чуть холоднее латунь и фон: тот же бренд, но строже, чем жилая */
[data-page="commercial"] { --gold: #bba982; --gold-2: #d8cba9; --bg-2: #121211; }
