/* ============================================================
   После заката — архитектурный свет для частных домов
   BLUE HOUR × LIGHT ARCHITECTURE × QUIET LUXURY

   TYPE     Wix Madefor Display — display / section / project
            Wix Madefor Text    — body / utility
            IBM Plex Mono       — metadata (как подписи на чертеже)
   COLOR    ночь (синий час) · архитектурный белый · холодный серый;
            вольфрамовый свет #F3C98D — только там, где есть свет
   GRID     12 колонок, поля 5vw; фото выходят за поля
   MOTION   раскрытие маской 1.1 с · экспозиция 1.6–2.4 с · без пружин
   ============================================================ */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #0B111A; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #ECE9E2; }
@property --fg2 { syntax: '<color>'; inherits: true; initial-value: #8B929B; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(236, 233, 226, .12); }

:root {
  --night-0: #06090D;
  --night: #0B111A;
  --night-2: #111823;
  --paper: #ECE9E2;
  --paper-2: #E2DED5;
  --ink: #10141A;
  --white: #ECE9E2;
  --grey: #8B929B;
  --grey-ink: #5B6067;
  --light: #F3C98D;
  --light-rgb: 243, 201, 141;
  --err: #E07A5F;

  --f-display: 'Wix Madefor Display', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Wix Madefor Text', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 5vw, 96px);
  --gap: clamp(12px, 1.6vw, 28px);
  --hdr: 76px;
  --e-out: cubic-bezier(.16, 1, .3, 1);      /* раскрытие */
  --e-light: cubic-bezier(.45, 0, .2, 1);    /* экспозиция, свет */

  --bg: var(--night);
  --fg: var(--white);
  --fg2: var(--grey);
  --line: rgba(236, 233, 226, .12);
  color-scheme: dark;
}
body[data-tone="paper"], .tone-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg2: var(--grey-ink);
  --line: rgba(16, 20, 26, .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: --bg 1.2s var(--e-light), --fg 1.2s var(--e-light), --fg2 1.2s var(--e-light), --line 1.2s var(--e-light); }
body.is-locked { overflow: hidden; }
img, svg, canvas, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
select { background-color: var(--bg); color: var(--fg); }
a, button, label, input, select, textarea, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--light); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--white); color: var(--ink); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr:focus-visible { position: static; width: 160px; height: 20px; margin: 0; clip: auto; overflow: visible; accent-color: var(--light); }

/* ---------- Сетка ---------- */
.wrap { width: 100%; max-width: 2200px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Типографика ---------- */
.t-display { font-family: var(--f-display); font-weight: 500; font-size: clamp(52px, 8.2vw, 176px); line-height: .92; letter-spacing: -.045em; }
.t-section { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 4.1vw, 80px); line-height: 1.02; letter-spacing: -.038em; }
.t-project { font-family: var(--f-display); font-weight: 500; font-size: clamp(21px, 1.7vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.meta { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); font-weight: 400; }
.fg2 { color: var(--fg2); }

/* ---------- Появление: маска и экспозиция ---------- */
.ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.ln > span { display: block; transform: translateY(104%); transition: transform 1.1s var(--e-out); transition-delay: var(--dl, 0s); }
.is-in .ln > span, .ln.is-in > span { transform: none; }
.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--e-out); transition-delay: var(--dl, 0s); }
.reveal.is-in { clip-path: inset(0 0 0 0); }
.reveal img { transform: scale(1.06); transition: transform 2.4s var(--e-out); }
.reveal.is-in img { transform: none; }
.rise { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); transition-delay: var(--dl, 0s); }
.rise.is-in { opacity: 1; transform: none; }

/* фото, которое «включается»: модель без света поверх фотографии */
.lit { position: relative; overflow: hidden; background: var(--night-0); }
.lit picture { display: contents; }
.lit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lit .lit__off { transition: opacity 2s var(--e-light) var(--ld, .3s); }
.lit.is-on .lit__off { opacity: 0; }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; background: var(--fg); color: var(--bg); font: 500 15px/1 var(--f-text); letter-spacing: .005em; white-space: nowrap; transition: background .2s ease, color .2s ease, transform .16s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in srgb, var(--fg) 86%, var(--light)); } }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; margin-right: 10px; }
.btn--ghost, .btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover, .btn--line:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--fg); } }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.lnk { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding-bottom: 5px; font: 500 15px/1.2 var(--f-text); }
.lnk::before, .lnk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.lnk::before { background: var(--line); }
.lnk::after { background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .lnk:hover::after { transform: scaleX(1); } }
.lnk:active { transform: translateY(1px); }
.glow-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Шапка: невидима, пока не нужна ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--white); transition: background .4s ease, transform .3s var(--e-out); }
.hdr__row { height: var(--hdr); display: flex; align-items: center; gap: 44px; }
.hdr.is-solid { background: rgba(8, 12, 18, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr.is-away { transform: translateY(-100%); }
.logo { font: 500 16px/1 var(--f-display); letter-spacing: -.01em; flex-shrink: 0; }
.logo--placeholder { font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .3); }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav a { color: rgba(236, 233, 226, .62); transition: color .3s; }
.nav a:hover, .nav a.is-active { color: var(--white); }
.hdr__side { display: flex; align-items: center; gap: 18px; }
.hdr__cta { font-size: 14px; padding: 9px 14px; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .4); transition: background .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .hdr__cta:hover { background: var(--white); color: var(--ink); } }
.hdr__cart { position: relative; display: grid; place-items: center; width: 32px; height: 32px; }
.hdr__cart[hidden] { display: none; }
.hdr__cart svg { width: 19px; height: 19px; }
.cart-count { position: absolute; top: -2px; right: -6px; font: 500 10px/16px var(--f-mono); min-width: 16px; padding: 0 3px; background: var(--white); color: var(--ink); text-align: center; }
.cart-count[hidden] { display: none; }
.menu-btn { display: none; font-size: 14px; }

.menu { position: fixed; inset: 0; z-index: 55; overscroll-behavior: contain; overflow-y: auto; background: var(--night); color: var(--white); padding: 88px var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .3s var(--e-out), visibility 0s .3s; }
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--e-out); }
.menu__links a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(236, 233, 226, .12); font: 500 36px/1 var(--f-display); letter-spacing: -.035em; }
.menu__foot { margin-top: auto; display: grid; gap: 14px; }
.menu__phone { font: 500 22px/1.2 var(--f-display); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: none; align-items: center; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 12, 18, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(236, 233, 226, .1); transform: translateY(100%); transition: transform .3s var(--e-out); color: var(--white); }
.dock.is-on { transform: none; transition-duration: .45s; }
.dock .btn { flex: 1; height: 46px; background: var(--white); color: var(--ink); }
.dock__ic { width: 46px; height: 46px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .2); flex-shrink: 0; }
.dock__ic svg { width: 19px; height: 19px; }

/* контекстный курсор — только там, где есть действие */
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; font: 400 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); padding: 7px 9px; background: rgba(8, 12, 18, .72); opacity: 0; transition: opacity .15s ease; }
.cur.is-on { opacity: 1; }

/* ============================================================
   01 · ГЕРОЙ
   ============================================================ */
.hero { position: relative; height: 210vh; background: var(--night-0); }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; color: var(--white); }
.hero__media { position: absolute; inset: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero__media picture, .hero__media canvas { position: absolute; inset: 0; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__poster--on { opacity: var(--lit, 0); clip-path: inset(0 calc(var(--off, 0) * 100%) 0 0); }
.hero__gl { width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.hero.gl-ready .hero__gl { opacity: 1; }
.hero.gl-ready .hero__media picture { visibility: hidden; }
.hero__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(180deg, rgba(6, 9, 13, .62) 0%, rgba(6, 9, 13, 0) 24%),
  linear-gradient(0deg, rgba(6, 9, 13, .9) 0%, rgba(6, 9, 13, .38) 30%, rgba(6, 9, 13, 0) 52%); }
.hero__ui { position: relative; z-index: 4; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; padding-top: calc(var(--hdr) + 18px); padding-bottom: clamp(24px, 4vh, 48px); pointer-events: none; }
.hero__ui a, .hero__ui button { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; gap: 30px; }
.hero__top .meta { color: rgba(236, 233, 226, .62); }
.hero__region { text-align: right; }
.hero__title { grid-row: 3; margin-left: -.04em; max-width: 12ch; }
.hero__title .fg2 { color: rgba(236, 233, 226, .55); }
.hero__title .ln + .ln > span { transition-delay: .08s; }
.hero__foot { grid-row: 4; margin-top: clamp(24px, 3.5vh, 40px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.hero__sub { grid-column: 1 / span 4; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: rgba(236, 233, 226, .74); max-width: 420px; }
.hero__cta { grid-column: 5 / span 4; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__cta .btn { background: var(--white); color: var(--ink); }
.hero__state { grid-column: 10 / span 3; justify-self: end; display: grid; gap: 10px; justify-items: end; text-align: right; }
.hero__hint { font-size: 13px; line-height: 1.4; color: rgba(236, 233, 226, .72); }
.hero__progress { position: relative; width: 160px; height: 1px; background: rgba(236, 233, 226, .22); }
.hero__progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--lit, 0)); background: var(--light); }
.hero__note { position: absolute; z-index: 4; right: var(--pad); top: calc(var(--hdr) + 60px); max-width: 240px; text-align: right; font-size: 12px; line-height: 1.45; color: rgba(236, 233, 226, .6); opacity: 0; transition: opacity .8s; }
.hero.is-compare .hero__note { opacity: 1; }
/* линия сравнения: слева фото со светом, справа — модель без света */
.cmp { position: absolute; top: 0; bottom: 0; left: calc((1 - var(--off, 0)) * 100%); z-index: 3; width: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.hero.is-compare .cmp { opacity: 1; }
.cmp__line { position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: linear-gradient(180deg, rgba(var(--light-rgb), 0), rgba(var(--light-rgb), .9) 18%, rgba(var(--light-rgb), .9) 82%, rgba(var(--light-rgb), 0)); }
.cmp__line::after { content: ''; position: absolute; inset: 0 -6px; background: inherit; filter: blur(8px); opacity: .5; }
.cmp .meta { position: absolute; top: 34%; white-space: nowrap; color: rgba(236, 233, 226, .85); }
.cmp__l { right: 16px; } .cmp__r { left: 16px; }

/* ============================================================
   02 · ПОДХОД: день → ночь
   ============================================================ */
.dusk { position: relative; height: 200vh; }
.dusk__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  --k: 0;
  background: color-mix(in srgb, var(--night) calc(var(--k) * 100%), var(--paper));
  color: color-mix(in srgb, var(--white) calc(var(--k) * 100%), var(--ink)); }
.dusk__in { height: 100%; display: grid; grid-template-rows: auto auto auto 1fr auto; padding-top: calc(var(--hdr) + 40px); padding-bottom: clamp(28px, 5vh, 60px); }
.dusk__n { color: color-mix(in srgb, var(--grey) calc(var(--k) * 100%), var(--grey-ink)); }
.dusk__a { margin-top: clamp(40px, 8vh, 110px); max-width: 16ch; color: color-mix(in srgb, color-mix(in srgb, var(--white) 40%, var(--night)) calc(var(--k) * 100%), var(--ink)); }
.dusk__b { max-width: 16ch; opacity: calc(.12 + var(--k) * .88); }
.dusk__roof { align-self: end; width: 100%; height: clamp(90px, 15vh, 180px); overflow: visible; }
.dusk__roof path { fill: none; vector-effect: non-scaling-stroke; }
.dusk__roof-base { stroke: color-mix(in srgb, rgba(236, 233, 226, .18) calc(var(--k) * 100%), rgba(16, 20, 26, .5)); stroke-width: 1; }
.dusk__roof-light, .dusk__roof-glow { stroke: var(--light); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); }
.dusk__roof-light { stroke-width: 1.5; }
.dusk__roof-glow { stroke-width: 5; opacity: calc(var(--k) * .55); }
.dusk__foot { margin-top: clamp(28px, 5vh, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.dusk__text { grid-column: 1 / span 5; font-size: 17px; line-height: 1.55; max-width: 520px; color: color-mix(in srgb, rgba(236, 233, 226, .72) calc(var(--k) * 100%), var(--grey-ink)); }
.specs-inline { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px; }
.specs-inline dt { color: color-mix(in srgb, var(--grey) calc(var(--k) * 100%), var(--grey-ink)); }
.specs-inline dd { margin-top: 6px; font: 500 17px/1.2 var(--f-display); letter-spacing: -.01em; }

/* ============================================================
   Заголовки секций
   ============================================================ */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 7vw, 120px); }
.sec-head > .meta { grid-column: 1 / -1; margin-bottom: 26px; }
.sec-head .t-section { grid-column: 1 / span 8; }
.sec-head__note, .sec-head .filter { grid-column: 9 / span 4; justify-self: end; }
.sec-head__note { font-size: 15px; line-height: 1.5; color: var(--fg2); max-width: 340px; }

/* ============================================================
   03 · ПРОЕКТЫ — портфолио, а не сетка карточек
   ============================================================ */
.projects { padding: clamp(110px, 13vw, 220px) 0 clamp(80px, 9vw, 150px); }
.filter { display: flex; gap: 22px; }
.filter button { position: relative; padding: 6px 0; font-size: 14px; color: var(--fg2); transition: color .3s; }
.filter button sup { font: 400 10px var(--f-mono); margin-left: 3px; }
.filter button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .22s var(--e-out); }
.filter button.is-on { color: var(--fg); }
.filter button.is-on::after { transform: scaleX(1); }
.projects__list { display: grid; gap: clamp(90px, 11vw, 200px); }
.pj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--pad); align-items: end; }
.pj__main { position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.pj__main .lit { position: absolute; inset: 0; }
.pj__detail { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--night-0); }
.pj__detail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--fx, 50%) var(--fy, 40%); transform: scale(2.4); }
.pj__detail.reveal img { transform: scale(2.55); }
.pj__detail.reveal.is-in img { transform: scale(2.4); }
.pj__cap { display: grid; gap: 22px; align-content: end; }
.pj__n { display: block; }
.pj__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.pj__meta dd { margin-top: 4px; font-size: 15px; line-height: 1.4; }
/* A: во всю ширину, 21:9 */
.pj--wide { padding-inline: 0; row-gap: 26px; }
.pj--wide .pj__main { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.pj--wide .pj__cap { grid-column: 1 / span 12; padding-inline: var(--pad); grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.pj--wide .pj__cap > .pj__title { grid-column: 1 / span 6; }
.pj--wide .pj__meta { grid-column: 7 / span 5; }
/* B: большой пейзаж + деталь */
.pj--land .pj__main { grid-column: 1 / span 8; aspect-ratio: 3 / 2; }
.pj--land .pj__side { grid-column: 9 / span 4; display: grid; gap: 30px; }
/* C: портрет справа, текст слева */
.pj--port .pj__cap { grid-column: 2 / span 4; grid-row: 1; }
.pj--port .pj__main { grid-column: 7 / span 5; aspect-ratio: 4 / 5; }
.projects__more { margin-top: clamp(70px, 8vw, 130px); display: flex; justify-content: center; }

/* ============================================================
   04 · СВЕТОВОЙ ПЛАН
   ============================================================ */
.plan { padding: clamp(110px, 12vw, 200px) 0; }
.plan__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.plan__stage { grid-column: 1 / span 8; margin-left: calc(var(--pad) * -1); }
.plan__house { position: relative; aspect-ratio: 4 / 3; background: var(--night-0); overflow: hidden; }
.plan__house canvas, .plan__house picture, .plan__house img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan__house.gl-ready picture { visibility: hidden; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: 10px; transform: translate(-4px, -50%); color: var(--white); }
.pin i { position: relative; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .9); background: rgba(6, 9, 13, .5); transition: background .4s, box-shadow .4s; }
.pin i::after { content: ''; position: absolute; inset: -16px; }
.pin span { font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); opacity: .78; transition: opacity .3s; }
.pin::before { content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 1px; background: rgba(236, 233, 226, .5); }
.pin span { margin-left: 18px; }
.pin:hover span, .pin.is-on span { opacity: 1; }
.pin b { display: none; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.pin.is-on i { background: var(--light); box-shadow: none; }
.plan__glow { display: flex; align-items: center; gap: 26px; margin-top: 18px; padding-left: var(--pad); }
.opts { display: flex; gap: 20px; flex-wrap: wrap; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--fg2); transition: color .3s; }
.opt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .22s var(--e-out); }
.opt:hover, .opt.is-on { color: var(--fg); }
.opt.is-on::after { transform: scaleX(1); }
.plan__panel { grid-column: 9 / span 4; position: sticky; top: 76px; }
/* спецификация выбранной зоны */
.zspec { display: grid; grid-template-columns: 1fr 96px; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); min-height: 170px; }
.zspec__n { grid-column: 1 / -1; }
.zspec__name { font: 500 26px/1.1 var(--f-display); letter-spacing: -.025em; }
.zspec__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--fg2); }
.zspec__ex { position: relative; align-self: start; aspect-ratio: 1; overflow: hidden; background: var(--night-0); }
.zspec__ex img { width: 100%; height: 100%; object-fit: cover; }
.zspec__ex figcaption { margin-top: 6px; }
.zspec dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
.zspec dd { margin-top: 4px; font: 500 16px/1.2 var(--f-display); }
.zrows { margin-top: 6px; }
.zrow { border-bottom: 1px solid var(--line); }
.zrow__btn { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: baseline; padding: 15px 0; min-height: 52px; }
.zrow__name { font-size: 16px; transition: color .3s; color: var(--fg2); }
.zrow__sum { font: 400 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--fg2); }
.zrow.is-on .zrow__name { color: var(--fg); }
.zrow.is-on .zrow__n { color: var(--light); }
.zrow.is-on .zrow__sum { color: var(--fg); }
.zrow__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--e-out); }
.zrow.is-on .zrow__sub { transition-duration: .45s; }
.zrow.is-on .zrow__sub { grid-template-rows: 1fr; }
.zrow__sub > div { overflow: hidden; }
.zrow__subin { display: grid; padding: 0 0 12px 40px; }
.sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; color: var(--fg2); }
.sub__t { flex: 1; display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; transition: color .3s; }
.sub__t.is-on { color: var(--fg); }
.stepper { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; color: var(--fg2); }
.stepper button:hover { color: var(--fg); }
.stepper span, .stepper input { min-width: 24px; width: 40px; text-align: center; color: var(--fg); border: 0; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.params { margin-top: 26px; display: grid; gap: 14px; }
.params > div { display: grid; gap: 2px; }
.total { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.total__sum { display: block; margin-top: 8px; font: 500 clamp(40px, 3.6vw, 64px)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: opacity .16s ease, filter .16s ease; }
.total__sum.is-changing { opacity: .4; filter: blur(2px); }
.total__note { margin-top: 10px; font-size: 13px; color: var(--fg2); }
.total__lines { margin-top: 12px; font-size: 13px; color: var(--fg2); }
.total__lines summary { cursor: pointer; list-style: none; font: 400 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.total__lines summary::-webkit-details-marker { display: none; }
.total__lines > div { margin-top: 8px; }
.total__lines > div div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.actions { margin-top: 24px; display: grid; gap: 16px; justify-items: start; }
.actions .btn { width: 100%; }
.plan__bar { display: none; }

/* ============================================================
   05 · ПРОЦЕСС — одна линия
   ============================================================ */
.process { padding: clamp(90px, 10vw, 170px) 0 clamp(110px, 12vw, 200px); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); padding-top: 54px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--light); }
.ts { position: relative; }
.ts::before { content: ''; position: absolute; top: -52px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg2); transition: background .6s var(--e-light), box-shadow .6s; }
.ts.is-on::before { background: var(--light); box-shadow: none; }
.ts__t { font: 500 clamp(22px, 2vw, 34px)/1 var(--f-display); letter-spacing: -.035em; color: var(--fg2); transition: color .6s var(--e-light); }
.ts.is-on .ts__t { color: var(--fg); }
.ts h3 { margin-top: 18px; font: 400 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.ts p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--fg2); max-width: 230px; }

/* ============================================================
   06–08 · Бумажный разворот
   ============================================================ */
.sheet { padding: clamp(110px, 12vw, 200px) 0 0; }
.spec { border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: clamp(24px, 2.8vw, 40px) 0; border-bottom: 1px solid var(--line); }
.spec__name { grid-column: 1 / span 3; }
.spec__name b { display: block; font: 500 clamp(22px, 1.8vw, 30px)/1.1 var(--f-display); letter-spacing: -.025em; }
.spec__name span { display: block; margin-top: 8px; font-size: 14px; color: var(--fg2); max-width: 260px; }
.spec__sum { grid-column: 4 / span 4; font: 500 clamp(40px, 4.6vw, 88px)/.95 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec__sum small { font: 400 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-right: 10px; vertical-align: 1.4em; }
.spec__list { grid-column: 8 / span 3; font-size: 14px; line-height: 1.6; color: var(--fg2); }
.spec__go { grid-column: 11 / span 2; justify-self: end; }
.included { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(50px, 6vw, 90px); }
.included > .meta { grid-column: 1 / span 3; }
.included dl { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px var(--gap); }
.included dl div { padding-top: 12px; border-top: 1px solid var(--line); }
.included dt { font: 500 17px/1.2 var(--f-display); letter-spacing: -.01em; }
.included dd { margin-top: 4px; font-size: 14px; color: var(--fg2); }

.studio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.studio__photo { grid-column: 1 / span 4; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-0); }
.studio__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio__body { grid-column: 6 / span 7; }
.studio__quote { margin-top: 26px; font: 500 clamp(26px, 2.6vw, 46px)/1.14 var(--f-display); letter-spacing: -.03em; }
.studio__sign { margin-top: 24px; display: flex; gap: 14px; align-items: baseline; }
.studio__sign b { font-weight: 500; }
.studio__reviews { margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rvw { padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.rvw p { font-size: 15px; line-height: 1.5; }

.faq { padding-bottom: clamp(110px, 12vw, 200px); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.faq__grid > header { grid-column: 1 / span 4; }
.faq__grid > header .meta { margin-bottom: 26px; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px 0; font: 500 clamp(18px, 1.4vw, 22px)/1.3 var(--f-display); letter-spacing: -.015em; }
.qa__i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.qa__i::before, .qa__i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .25s var(--e-out); }
.qa__i::after { transform: rotate(90deg); }
.qa.is-open .qa__i::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--e-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; transition-duration: .45s; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 26px 0; color: var(--fg2); max-width: 680px; opacity: 0; transition: opacity .4s; }
.qa.is-open .qa__a p { opacity: 1; transition-delay: .1s; }

/* ============================================================
   09 · ФИНАЛ
   ============================================================ */
.final { padding: clamp(120px, 14vw, 240px) 0 clamp(90px, 10vw, 160px); background: var(--night-0); color: var(--white); --fg: var(--white); --fg2: var(--grey); --line: rgba(236, 233, 226, .14); --bg: var(--night-0); }
.final__title { font-size: clamp(40px, 6vw, 118px); max-width: 16ch; }
.final__grid { margin-top: clamp(56px, 7vw, 110px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 44px; align-items: start; }
.frame { grid-column: 1 / span 7; position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; background: rgba(236, 233, 226, .025); transition: background .5s; }
.frame input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.frame__marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; --c: rgba(236, 233, 226, .5);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 22px 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px 22px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 22px 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 22px,
    linear-gradient(var(--c), var(--c)) 0 100% / 22px 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px 22px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 22px 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 22px;
  background-repeat: no-repeat; transition: --c .3s; }
.frame:hover { background: rgba(236, 233, 226, .045); }
.frame.is-over { background: rgba(var(--light-rgb), .06); }
.frame.is-over .frame__marks { --c: var(--light); }
.frame__in { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; padding: 24px; transition: opacity .4s; }
.frame__in b { font: 500 clamp(20px, 1.8vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; }
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--e-light); }
.frame.has-photo .frame__img { opacity: 1; }
.frame.has-photo .frame__in { position: absolute; left: 0; right: 0; bottom: 0; justify-items: start; text-align: left; padding: 60px 24px 20px; background: linear-gradient(transparent, rgba(6, 9, 13, .82)); }
.final__form { grid-column: 9 / span 4; display: grid; gap: 22px; }
.field { display: grid; gap: 2px; }
.field label { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 18px; transition: border-color .3s; }
.field textarea { resize: vertical; font-size: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg2); opacity: .6; }
.field.is-error input { border-color: var(--err); }
.field__err { display: none; font-size: 12px; color: var(--err); }
.field.is-error .field__err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--fg2); cursor: pointer; }
.check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--white); }
.check.is-error { color: var(--err); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.final__form .btn { background: var(--white); color: var(--ink); }
.final__alt { font-size: 14px; color: var(--fg2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.final__alt a { color: var(--fg); }
.form-done { display: grid; gap: 10px; padding: 12px 0; }
.form-done svg { width: 28px; height: 28px; color: var(--light); }
.form-done h3 { font: 500 30px/1.1 var(--f-display); letter-spacing: -.03em; }
.form-done p { color: var(--fg2); }
.form-err { color: var(--err); font-size: 14px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--night-0); color: var(--white); padding: 20px 0 28px; overflow: hidden; --fg: var(--white); --fg2: var(--grey); --line: rgba(236, 233, 226, .12); }
.ftr__big { width: max-content; font: 500 var(--fit, 16vw)/.82 var(--f-display); letter-spacing: -.055em; white-space: nowrap; margin-left: -.04em; padding-bottom: .08em; color: #1B2230; transition: color 2.4s var(--e-light); }
.ftr__big span { transition: color 2.4s var(--e-light) .5s; }
.ftr.is-lit .ftr__big { color: var(--white); }
.ftr.is-lit .ftr__big span { color: var(--grey); }
.ftr__grid { margin-top: clamp(40px, 5vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.ftr__col { grid-column: span 3; display: grid; gap: 8px; align-content: start; font-size: 15px; }
.ftr__col .meta { margin-bottom: 8px; }
.ftr__col a { color: rgba(236, 233, 226, .78); width: fit-content; transition: color .2s; }
.ftr__col a:hover { color: var(--white); }
.ftr__col p { color: var(--grey); font-size: 14px; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
.social svg { display: none; }
.ftr__bottom { margin-top: clamp(50px, 6vw, 90px); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ftr__bottom span { margin-right: auto; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; overscroll-behavior: contain; background: rgba(6, 9, 13, .97); color: var(--white); display: grid; place-items: center; padding: 64px 24px 24px; --fg: var(--white); --fg2: var(--grey); }
.lightbox[hidden] { display: none; }
.lightbox__img { position: relative; overflow: hidden; }
.lightbox__img img { display: block; max-width: min(1600px, calc(100vw - 48px)); max-height: 76vh; }
.lightbox__img > :nth-child(2), .lightbox__img > :nth-child(2) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; max-height: none; }
.lightbox__img > :nth-child(2) { opacity: 0; transition: opacity 1.2s var(--e-light); }
.lightbox.is-off .lightbox__img > :nth-child(2) { opacity: 1; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.lightbox__cap { font-size: 15px; }
.lightbox__cap span { color: var(--grey); }
.toggle { display: flex; gap: 18px; }
.toggle button { font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 8px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.toggle button.is-on { color: var(--white); border-color: var(--white); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* тост */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 160; transform: translate(-50%, 220%); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; background: var(--night-2); color: var(--white); font-size: 14px; box-shadow: 0 0 0 1px rgba(236, 233, 226, .12); transition: transform .35s var(--e-out); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast__ic { width: 16px; height: 16px; color: var(--light); }
.toast__ic svg { width: 16px; height: 16px; }
.toast a { padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(236, 233, 226, .2); flex-shrink: 0; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — бумажный тон
   ============================================================ */
.container { width: 100%; max-width: 2200px; margin-inline: auto; padding-inline: var(--pad); }
.page-top { padding-top: 120px; }
.section--tight { padding: 90px 0; }
.sec-head.sec-head--inner, .sec-head:has(> div > .label) { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.label { display: block; font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.display.h2, .h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.display em, .h2 em, .cart-empty em { font-style: normal; color: var(--fg2); }
.muted { color: var(--fg2); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.crumbs a:hover { color: var(--fg); }
.crumbs span::before { content: '/'; margin-right: 10px; opacity: .5; }
.page-head { padding: 28px 0 50px; }
.page-head h1 { font: 500 clamp(44px, 6vw, 112px)/.95 var(--f-display); letter-spacing: -.045em; }
.page-head p { margin-top: 20px; font-size: 18px; color: var(--fg2); max-width: 620px; }
.cat-tabs { display: flex; gap: 24px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 40px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cat-tabs::-webkit-scrollbar { display: none; }
.chip { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 14px; color: var(--fg2); transition: color .3s; }
.chip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 1px; background: var(--fg); transform: scaleX(0); transition: transform .22s var(--e-out); }
.chip:hover, .chip.is-on { color: var(--fg); }
.chip.is-on::after { transform: scaleX(1); }
.chip .n, .chip small { font: 400 10px var(--f-mono); opacity: .7; }
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.shop > section, .grid > * { min-width: 0; }
.filters { position: sticky; top: 80px; display: grid; gap: 30px; }
.filters h2, .filters h4 { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin: 0 0 10px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.fcheck input { width: 15px; height: 15px; accent-color: var(--ink); }
.fcheck .n { margin-left: auto; color: var(--fg2); font-size: 13px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-range input { height: 42px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; }
.price-range input:focus { outline: 0; border-color: var(--fg); }
.shop__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }
select.sel { height: 40px; padding: 0 22px 0 0; border: 0; border-bottom: 1px solid var(--line); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6F76' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center / 14px; appearance: none; font-size: 14px; }
.shop .grid { grid-template-columns: repeat(3, 1fr); }
.filters-toggle { display: none; }
.empty { grid-column: 1 / -1; text-align: center; padding: 90px 20px; color: var(--fg2); }
.empty h3 { color: var(--fg); font: 500 30px/1.1 var(--f-display); margin-bottom: 10px; }
.link-arrow { text-decoration: underline; text-underline-offset: 4px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px var(--gap); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-0); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media img { transform: scale(1.03); } }
.art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--night); }
.art svg { width: 70%; height: 70%; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { font: 400 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 7px; background: var(--paper); color: var(--ink); }
.badge--sale { background: var(--light); }
.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font: 400 10px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.card__title { font: 500 17px/1.3 var(--f-display); letter-spacing: -.01em; }
.card__meta { font-size: 13px; color: var(--fg2); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font: 500 17px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.price small, .price .from, .price s { font: 400 12px var(--f-text); color: var(--fg2); margin: 0 4px; }
.card__add { width: 40px; height: 40px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; flex-shrink: 0; }
.card__add svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .card__add:hover { background: var(--fg); color: var(--bg); } }
.card__add:active { transform: scale(.94); }
.glows { display: flex; gap: 4px; }
.card__install { font-size: 13px; color: var(--fg2); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.gallery { position: sticky; top: 80px; }
.gallery__main { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--night-0); }
.gallery__main img, .gallery__main .art { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 76px; overflow: hidden; opacity: .45; transition: opacity .3s; background: var(--night-0); }
.gallery__thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 1px var(--fg); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__cat, .calc__label { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.pdp h1 { font: 500 clamp(38px, 4vw, 68px)/.98 var(--f-display); letter-spacing: -.045em; margin-top: 14px; }
.pdp__rating { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--fg2); }
.pdp__rating svg { width: 14px; height: 14px; color: var(--fg); }
.pdp__rating b { color: var(--fg); font-weight: 500; }
.pdp__desc { margin-top: 22px; font-size: 17px; color: var(--fg2); }
.pdp__block { margin-top: 30px; }
.pdp__block > .calc__label { display: block; margin-bottom: 12px; }
.opt-list { display: flex; gap: 22px; flex-wrap: wrap; }
.opt-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 15px; color: var(--fg2); transition: color .3s; }
.opt-pill small { font-size: 13px; opacity: .8; }
.opt-pill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .22s var(--e-out); }
.opt-pill:hover, .opt-pill.is-on { color: var(--fg); }
.opt-pill.is-on::after { transform: scaleX(1); }
.install-opts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.install-opt { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); color: var(--fg2); transition: color .3s, box-shadow .3s; }
.install-opt + .install-opt { padding-left: 16px; border-left: 1px solid var(--line); }
.install-opt b { display: block; font-size: 15px; font-weight: 500; }
.install-opt span { font-size: 13px; }
.install-opt.is-on { color: var(--fg); box-shadow: inset 0 -1px 0 var(--fg); }
.pdp__buy { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pdp__price b { font: 500 50px/1 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pdp__price s, .pdp__price small { color: var(--fg2); font-size: 14px; }
.pdp__row { display: flex; gap: 12px; }
.pdp__row .stepper { height: 52px; padding: 0 6px; box-shadow: inset 0 0 0 1px var(--line); }
.pdp__row .btn { flex: 1; }
.pdp__perks { display: grid; gap: 10px; font-size: 14px; color: var(--fg2); }
.pdp__perks div { display: flex; gap: 12px; align-items: center; }
.pdp__perks svg { width: 16px; height: 16px; flex-shrink: 0; }
.specs { margin-top: 44px; }
.specs h3 { font: 400 11px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); margin-bottom: 8px; }
.specs dl { display: grid; grid-template-columns: 1fr 1fr; }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--fg2); }
.specs dd { text-align: right; }
.cart { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.cart__list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 104px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 104px; height: 104px; overflow: hidden; background: var(--night-0); }
.cart-item__img img, .cart-item__img .art { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font: 500 17px/1.3 var(--f-display); }
.cart-item__opts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.cart-item__opts select { height: 34px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; }
.cart-item__side { display: grid; justify-items: end; gap: 12px; }
.cart-item__sum { font: 500 18px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cart-item__rm { font-size: 13px; color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__rm:hover { color: var(--err); }
.summary { position: sticky; top: 80px; padding: 30px; background: var(--paper-2); display: grid; gap: 16px; }
.summary h2 { font: 500 26px/1.1 var(--f-display); letter-spacing: -.03em; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--fg2); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.summary__total b { font: 500 36px/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.summary .field input, .summary .field textarea { font-size: 16px; }
.seg { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.seg button { padding: 10px 0; font-size: 14px; color: var(--fg2); }
.seg button.is-on { color: var(--fg); box-shadow: inset 0 -1px 0 var(--fg); }
.calc__note { font-size: 13px; color: var(--fg2); }
.cart-empty { text-align: center; padding: 100px 20px; display: grid; justify-items: center; gap: 18px; }
.cart-empty h2 { font: 500 clamp(40px, 5vw, 80px)/1 var(--f-display); letter-spacing: -.045em; }
.cart-empty p { color: var(--fg2); max-width: 420px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (min-width: 1800px) {
  .pj--wide .pj__main { aspect-ratio: 24 / 9; }
}
@media (max-width: 1200px) {
  .nav { gap: 22px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .plan__stage { grid-column: 1 / span 7; }
  .plan__panel { grid-column: 8 / span 5; }
  .spec__sum { grid-column: 4 / span 5; }
  .spec__list { grid-column: 9 / span 4; }
  .spec__go { grid-column: 9 / span 4; justify-self: start; margin-top: 14px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 70px; }
  .timeline__line { display: none; }
  .ts::before { top: -22px; }
  .ts { padding-top: 0; }
}
@media (max-width: 980px) {
  :root { --hdr: 60px; }
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr__side { margin-left: auto; }
  .dock { display: flex; }

  /* герой: вертикальный кадр, текст снизу */
  .hero { height: 180vh; }
  .hero__poster { object-position: 45% 40%; }
  .hero__shade { background: linear-gradient(180deg, rgba(6, 9, 13, .7) 0%, rgba(6, 9, 13, 0) 20%), linear-gradient(0deg, rgba(6, 9, 13, .96) 0%, rgba(6, 9, 13, .7) 34%, rgba(6, 9, 13, 0) 58%); }
  .hero__foot { grid-template-columns: 1fr; row-gap: 20px; }
  .hero__sub, .hero__cta, .hero__state { grid-column: 1; justify-self: stretch; }
  .hero__state { order: -1; justify-items: start; text-align: left; }
  .hero__progress { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .hero__note { display: none; }
  .cmp .meta { display: none; }

  .dusk { height: 170vh; }
  .dusk__foot { grid-template-columns: 1fr; row-gap: 26px; }
  .dusk__text, .specs-inline { grid-column: 1; }
  .specs-inline { grid-template-columns: 1fr 1fr; justify-content: stretch; }

  .sec-head .t-section { grid-column: 1 / -1; }
  .sec-head__note, .sec-head .filter { grid-column: 1 / -1; justify-self: start; margin-top: 22px; }

  /* проекты: свои кропы для телефона */
  .pj { row-gap: 20px; }
  .pj--wide .pj__main { aspect-ratio: 4 / 5; }
  .pj--wide .pj__cap { grid-template-columns: 1fr; row-gap: 18px; }
  .pj--wide .pj__cap > .pj__title, .pj--wide .pj__meta { grid-column: 1; }
  .pj--land .pj__main, .pj--land .pj__side, .pj--port .pj__main, .pj--port .pj__cap { grid-column: 1 / -1; grid-row: auto; }
  .pj--land .pj__main { aspect-ratio: 4 / 3; margin-inline: calc(var(--pad) * -1); width: calc(100% + var(--pad) * 2); }
  .pj--land .pj__side { grid-template-columns: 1fr; gap: 22px; }
  .pj--land .pj__detail { width: 58%; }
  .pj--port .pj__main { aspect-ratio: 4 / 5; width: 84%; justify-self: end; }
  .pj--port .pj__cap { order: 2; }

  /* световой план: свой сценарий для телефона */
  .plan__grid { display: block; }
  .plan__stage { margin: 0 calc(var(--pad) * -1); }
  .plan__house { aspect-ratio: 4 / 3.4; }
  .pin span { display: none; }
  .pin::before { display: none; }
  .pin b { display: block; }
  .pin i::after { inset: -18px; }
  .plan__glow { padding-inline: var(--pad); }
  .plan__panel { position: static; margin-top: 30px; }
  .zspec { min-height: 0; }
  .zrow__btn { min-height: 58px; }
  .plan__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 59; display: flex; align-items: center; gap: 14px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 12, 18, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(236, 233, 226, .1); color: var(--white); transform: translateY(100%); transition: transform .45s var(--e-out); }
  .plan__bar b { font: 500 22px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-right: auto; }
  .plan__bar .btn { background: var(--white); color: var(--ink); }
  .plan__bar.is-on { transform: none; }
  body.plan-bar .dock { transform: translateY(100%); }

  .timeline { grid-template-columns: 1fr; padding: 0 0 0 30px; row-gap: 40px; }
  .timeline__line { display: block; left: 3px; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; }
  .timeline__line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .ts::before { top: 8px; left: -30px; }
  .ts p { max-width: none; }

  .spec__row { grid-template-columns: 1fr; row-gap: 12px; }
  .spec__name, .spec__sum, .spec__list, .spec__go { grid-column: 1; justify-self: start; margin: 0; }
  .included { grid-template-columns: 1fr; }
  .included > .meta, .included dl { grid-column: 1; }
  .included > .meta { margin-bottom: 18px; }
  .included dl { grid-template-columns: 1fr 1fr; }
  .studio__photo { grid-column: 1 / span 9; }
  .studio__body { grid-column: 1 / -1; margin-top: 40px; }
  .studio__reviews { grid-template-columns: 1fr; }
  .faq__grid > header, .faq__list { grid-column: 1 / -1; }
  .faq__grid > header { margin-bottom: 36px; }

  .frame, .final__form { grid-column: 1 / -1; }
  .frame { aspect-ratio: 4 / 5; margin-inline: calc(var(--pad) * -1); }

  .ftr__col { grid-column: span 6; margin-bottom: 28px; }
  .ftr { padding-bottom: 100px; }

  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; padding: 20px 0; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .pdp, .cart { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .t-display { font-size: clamp(48px, 14.6vw, 78px); }
  .hero__title { max-width: none; }
  .hero__top .hero__region { display: none; }
  .t-section { font-size: clamp(32px, 9.4vw, 46px); }
  .dusk__a, .dusk__b { max-width: none; }
  .included dl { grid-template-columns: 1fr; }
  .grid, .shop .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card__install, .glows { display: none; }
  .spec__sum { font-size: 50px; }
  .qa__a p { padding-right: 0; }
  .install-opts { grid-template-columns: 1fr; }
  .install-opt + .install-opt { padding-left: 0; border-left: 0; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item__img { width: 84px; height: 84px; }
  .cart-item__side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .summary { padding: 24px 20px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { transform: scaleX(-1); }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
  .ftr__col { grid-column: 1 / -1; }
}
@media (pointer: coarse) {
  .opt, .filter button, .toggle button, .chip, .opt-pill, .lnk { min-height: 44px; }
  .opt, .filter button, .chip, .opt-pill { display: inline-flex; align-items: center; }
  .lnk { align-items: center; }
  .stepper button { width: 44px; height: 44px; }
  .sub, .sub__t { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .ln > span, .rise { transform: none; opacity: 1; }
  .reveal { clip-path: none; }
  .reveal img { transform: none; }
  .hero, .dusk { height: auto; }
  .hero__pin, .dusk__pin { position: relative; }
  .lit .lit__off, .frame__img, .lightbox__img > :nth-child(2), .qa__a p { transition: opacity .4s ease !important; }
}
