:root {
  --paper: #F3EFE7;
  --paper-2: #EAE4D8;
  --ink: #161815;
  --ink-2: #4A4E47;
  --muted: #8A8C84;
  --green: #164122;
  --amber: #E0A85E;
  --line: rgba(22, 24, 21, .14);
  --display: 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 600 12px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--amber); }
.h2 {
  font: 400 clamp(32px, 5vw, 68px)/1.04 var(--display);
  letter-spacing: -.03em;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 34em; margin-top: 24px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--green); }
.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--amber); }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: background .4s, color .4s, padding .4s;
}
.nav.is-solid { background: rgba(243, 239, 231, .86); backdrop-filter: blur(14px); color: var(--ink); padding-top: 12px; padding-bottom: 12px; }
.nav.is-solid .btn--small { background: var(--ink); color: var(--paper); }
.nav .btn--small { background: var(--ink); color: var(--paper); }
/* логотип: два тона задаются переменными, SVG-символы берут их через var() */
:root { --logo-a: #164122; --logo-b: #5E7D67; }
.nav__logo { display: flex; align-items: center; gap: 8px; height: 44px; }
.nav__logo svg { display: block; height: 100%; }
.logo-icon { width: 48px; }
.logo-word { width: 124px; }
.footer__logo { display: block; width: 120px; height: 128px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav__links a { opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__phone { font-weight: 600; font-size: 14px; }

/* ---------- Герой ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,10,.62) 0%, rgba(10,12,10,.28) 45%, rgba(10,12,10,0) 75%),
    linear-gradient(180deg, rgba(10,12,10,.5) 0%, rgba(10,12,10,0) 30%, rgba(10,12,10,0) 60%, rgba(10,12,10,.7) 100%);
}
.hero__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 48px;
}
.hero__eyebrow { color: rgba(255,255,255,.85); }
.hero__title { font: 300 clamp(40px, 7.4vw, 124px)/.98 var(--display); letter-spacing: -.045em; }
.hero__title em { font-style: normal; color: var(--amber); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { max-width: 30em; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.88); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span { width: 1px; height: 36px; background: linear-gradient(#fff, transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 3D-сборка ---------- */
.build__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
#house3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* первый экран: фото дома, поверх — текст; при сборке фото растворяется */
.build__photo { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: opacity, transform; }
.build__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.build__photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,14,11,.72) 0%, rgba(12,14,11,.42) 42%, rgba(12,14,11,0) 72%),
    linear-gradient(180deg, rgba(12,14,11,.45) 0%, rgba(12,14,11,0) 22%, rgba(12,14,11,0) 55%, rgba(12,14,11,.6) 100%);
}
.build__intro {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  max-width: 780px; pointer-events: auto; z-index: 2; color: #fff;
}
.build__intro .eyebrow { color: rgba(255,255,255,.82); }
.build__h1 { font: 400 clamp(38px, 5.6vw, 88px)/1.02 var(--display); letter-spacing: -.035em; }
.build__h1 em { font-style: normal; color: var(--amber); }
.build__lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255,255,255,.86); max-width: 32em; }
.build__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
/* шапка поверх фото — светлая */
.nav:not(.is-solid) { color: #fff; --logo-a: #F1F2EF; --logo-b: #BCC8BF; }
.nav:not(.is-solid) .btn--small { background: #fff; color: var(--ink); }

.build__steps {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; display: grid; gap: 14px; counter-reset: s;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s;
}
.build__steps.is-on { opacity: 1; }
.build__steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .4s; }
.build__steps li::before {
  content: counter(s, decimal-leading-zero); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, box-shadow .4s;
}
.build__steps li.is-done { color: var(--ink-2); }
.build__steps li.is-done::before { background: var(--paper-2); }
.build__steps li.is-on { color: var(--ink); }
.build__steps li.is-on::before { background: var(--green); color: #fff; box-shadow: none; }

.build__caption {
  position: absolute; right: var(--gutter); bottom: 64px; max-width: 420px; text-align: right;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease);
}
.build__caption.is-on { opacity: 1; transform: none; }
.build__num { display: block; font: 600 12px/1 var(--body); letter-spacing: .16em; color: var(--green); }
.build__title { font: 400 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -.045em; margin: 14px 0 10px; }
.build__text { color: var(--ink-2); font-size: 16px; }

.build__final {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), visibility .5s;
}
.build__final.is-on { opacity: 1; visibility: visible; transform: none; }
.build__done { font: 400 clamp(30px, 4vw, 56px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 18px; }
.build__swatches { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.build__swatches button[data-color] { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.build__swatches button[data-color]::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; transition: .3s; }
.build__swatches button.is-on::after { opacity: 1; }
.build__night { height: 40px; padding: 0 18px; border-radius: 40px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); margin-left: 8px; }
.build__night.is-on { background: var(--amber); color: var(--ink); box-shadow: none; }
.build__stage.is-night { color: var(--paper); }
.build__stage.is-night .build__steps li, .build__stage.is-night .build__lead { color: rgba(243,239,231,.6); }
.build__stage.is-night .build__night:not(.is-on) { box-shadow: inset 0 0 0 1px rgba(243,239,231,.3); }

.build__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.build__bar i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.build__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .4s;
}
.build__hint span { width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .build__steps { top: auto; bottom: 150px; transform: none; display: flex; gap: 6px; }
  .build__steps li { font-size: 0; gap: 0; }
  .build__steps li::before { width: 26px; height: 26px; font-size: 10px; }
  .build__caption { left: var(--gutter); right: var(--gutter); bottom: 40px; text-align: left; max-width: none; }
  .build__title { font-size: 34px; margin: 10px 0 6px; }
  .build__final .btn { width: 100%; }
}

/* ---------- Обход ---------- */
.tour__stage, .colors__stage { position: relative; height: 100svh; overflow: hidden; background: #111; }
.tour__frames img, .colors__layers img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.tour__frames img:not(:first-child) { opacity: 0; }
.tour__ui {
  position: absolute; inset: auto 0 0 0;
  padding: 0 var(--gutter) 44px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding-top: 200px;
}
.tour__ui .eyebrow { display: none; }
.tour__captions { position: relative; height: 120px; flex: 1; max-width: 640px; }
.tour__cap { position: absolute; bottom: 0; left: 0; opacity: 0; }
.tour__cap:first-child { opacity: 1; }
.tour__cap b { display: block; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.tour__cap p { font: 300 clamp(24px, 3.4vw, 46px)/1.08 var(--display); letter-spacing: -.03em; }
.tour__compass { display: flex; align-items: center; gap: 18px; }
.tour__compass svg { width: 72px; height: 72px; overflow: visible; }
.tour__compass rect { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 2; }
.tour__eye { fill: var(--amber); }
.tour__bar { width: 140px; height: 2px; background: rgba(255,255,255,.25); }
.tour__bar i { display: block; height: 100%; width: 25%; background: #fff; }

/* ---------- Цвета ---------- */
.colors__layers img:not(:first-child) { clip-path: inset(0 0 0 100%); }
.colors__ui {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  color: #fff; z-index: 2;
}
.colors__stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,12,10,.6) 0%, rgba(10,12,10,.2) 40%, rgba(10,12,10,0) 65%);
}
.colors__ui .eyebrow { color: #fff; }
.colors__names { position: relative; height: clamp(60px, 10vw, 150px); overflow: hidden; }
.colors__names h2 {
  position: absolute; top: 0; left: 0;
  font: 400 clamp(52px, 10vw, 150px)/1 var(--display); letter-spacing: -.05em;
  transform: translateY(105%);
}
.colors__names h2:first-child { transform: none; }
.colors__dots { display: flex; gap: 10px; margin-top: 28px; }
.colors__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.6); transition: transform .3s; }
.colors__dots i.is-on { transform: scale(1.5); }

/* ---------- План ---------- */
.plan { padding: clamp(96px, 14vw, 180px) 0; }
.plan__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.stat b { display: block; font: 300 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.05em; color: var(--green); }
.stat span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; }

.crop { position: relative; aspect-ratio: 1520 / 1600; overflow: hidden; background: #fff; }
.crop > img { position: absolute; width: 109.67%; max-width: none; left: -6.58%; top: -15%; }
.plan__drawing .crop { box-shadow: 0 40px 80px -40px rgba(22,24,21,.35); }
.plan__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan__lines .draw { fill: none; stroke: var(--green); stroke-width: 6; stroke-linejoin: round; }
.plan__lines .draw--thin { stroke-width: 3; }

/* ---------- Конфигуратор ---------- */
.config { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.config__head { margin-bottom: 48px; }
.config__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }

.viewer { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #ccc; cursor: grab; touch-action: pan-y; user-select: none; }
.viewer:active { cursor: grabbing; }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); pointer-events: none; }
.viewer__img.is-on { opacity: 1; transform: scale(1); }
.viewer__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(243,239,231,.85); backdrop-filter: blur(6px);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.viewer__arrow:hover { background: #fff; }
.viewer__arrow--l { left: 16px; }
.viewer__arrow--r { right: 16px; }
.viewer__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; color: #fff; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 20px; pointer-events: none; transition: opacity .5s; }
.viewer__views { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.viewer__views button { padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.viewer__views button.is-on { background: var(--ink); color: var(--paper); }

.opt { margin-top: 28px; }
.opt--row { margin-top: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.opt__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.opt__label b { color: var(--ink); margin-left: 6px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  position: relative; transition: transform .3s var(--ease);
}
.swatch::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(.85); transition: .3s var(--ease); }
.swatch.is-on::after { opacity: 1; transform: scale(1); }
.swatch:hover { transform: scale(1.06); }

.seg { display: inline-flex; background: var(--paper); border-radius: 100px; padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 100px; font-weight: 600; font-size: 14px; transition: color .3s, background .3s; }
.seg button.is-on { background: var(--ink); color: var(--paper); }

.config__vtitle { font: 400 20px/1.2 var(--display); letter-spacing: -.02em; margin: 22px 0 16px; }
.config__planbox { display: grid; grid-template-columns: 1fr; gap: 16px; }
.config__planbox .crop { border-radius: 6px; }
#planImg { transition: opacity .35s; }
.hotspots { position: absolute; inset: 0; }
.hot { position: absolute; background: rgba(224,168,94,.0); outline: 2px solid transparent; transition: background .25s, outline-color .25s; cursor: pointer; }
.hot.is-on { background: rgba(224,168,94,.32); outline-color: var(--amber); }

.rooms { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.rooms li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: default; transition: color .2s, padding .3s var(--ease); }
.rooms li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rooms li.is-on { color: var(--green); padding-left: 6px; }

.summary {
  margin-top: 48px; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 24px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 28px 32px;
}
.summary span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.summary b { font: 400 clamp(18px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.02em; }
.summary small { display: block; color: rgba(243,239,231,.6); margin-top: 6px; font-size: 13px; }
.summary .btn { background: var(--amber); color: var(--ink); }
.summary .btn:hover { background: var(--paper); }

/* ---------- Этапы ---------- */
.steps { background: var(--green); color: var(--paper); overflow: hidden; }
.steps__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0; }
.steps .eyebrow { color: var(--amber); }
.steps__track { display: flex; gap: 20px; padding: 56px var(--gutter) 0; width: max-content; }
.step { width: clamp(260px, 28vw, 380px); min-height: 300px; border-top: 1px solid rgba(243,239,231,.3); padding-top: 24px; }
.step i { font: 300 64px/1 var(--display); font-style: normal; color: var(--amber); letter-spacing: -.05em; }
.step h3 { font: 400 26px/1.15 var(--display); letter-spacing: -.02em; margin: 40px 0 12px; }
.step p { color: rgba(243,239,231,.72); max-width: 22em; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(96px, 12vw, 160px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font: 400 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--body); font-size: 28px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* ---------- Заявка ---------- */
.lead-sec { position: relative; padding: clamp(96px, 12vw, 160px) 0; color: var(--paper); overflow: hidden; background: #111; }
.lead-sec__bg { position: absolute; inset: -10% 0; }
.lead-sec__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.lead-sec .lead { color: rgba(243,239,231,.78); }
.lead-sec__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.form { display: grid; gap: 16px; background: rgba(22,24,21,.6); backdrop-filter: blur(16px); padding: clamp(24px, 3vw, 40px); border-radius: 8px; border: 1px solid rgba(243,239,231,.14); }
.form label span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,239,231,.6); margin-bottom: 6px; }
.form input:not([type=checkbox]) { width: 100%; height: 52px; background: transparent; border: 0; border-bottom: 1px solid rgba(243,239,231,.3); color: var(--paper); font: 500 17px var(--body); outline: none; transition: border-color .2s; }
.form input:focus { border-color: var(--amber); }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(243,239,231,.7); }
.form__check span { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; margin: 0 !important; }
.form__check input { margin-top: 3px; accent-color: var(--amber); }
.form .btn { margin-top: 8px; }
.form__ok { color: var(--amber); font-weight: 600; }

.footer { padding: 48px 0; font-size: 13px; color: var(--ink-2); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: center; }
.footer__contacts { display: grid; gap: 6px; }
.footer__contacts a { font-size: 15px; font-weight: 500; color: var(--ink); }
.footer__phone { font-size: 22px !important; letter-spacing: -.01em; }
.footer__req { display: grid; gap: 4px; line-height: 1.45; }
.footer__req b { font-weight: 600; color: var(--ink); }
.footer__note { color: var(--muted); flex-basis: 100%; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__phone { margin-left: auto; }
}
@media (max-width: 900px) {
  .plan__grid, .config__grid, .faq__grid, .lead-sec__grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .summary .btn { width: 100%; }
  .steps__track { width: auto; flex-direction: column; padding-top: 32px; }
  .step { width: auto; min-height: 0; padding-bottom: 24px; }
  .step h3 { margin-top: 20px; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav__phone { display: none; }
  .nav__logo span { display: none; }
  .nav .btn--small { margin-left: auto; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; }
  .tour__ui { flex-direction: column; align-items: flex-start; }
  .tour__captions { width: 100%; height: 110px; }
  .tour__compass svg { width: 48px; height: 48px; }
  .rooms { grid-template-columns: 1fr; }
  .viewer__arrow { width: 40px; height: 40px; }
  .seg button { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.build__stage.is-night .build__final .btn { background: var(--paper); color: var(--ink); }

.build__caption, .build__steps { text-shadow: 0 1px 14px rgba(243,239,231,.9); }

@media (max-width: 900px) {
  .build__steps { top: 84px; bottom: auto; }
  .build__caption { bottom: 32px; }
  .build__text { font-size: 15px; }
}

@media (max-width: 600px) {
  .nav__logo { height: 36px; }
  .logo-icon { width: 39px; }
  .logo-word { width: 101px; }
}

@media (max-width: 600px) {
  .build__photo img { object-position: 38% 50%; }
  .build__photo::after { background: linear-gradient(180deg, rgba(12,14,11,.5) 0%, rgba(12,14,11,.1) 30%, rgba(12,14,11,.55) 60%, rgba(12,14,11,.85) 100%); }
  .build__ctas .btn { flex: 1 1 100%; }
}

/* конфигуратор: только планировки */
@media (min-width: 901px) { .config__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.config__planbox .crop { border-radius: 8px; box-shadow: 0 30px 60px -40px rgba(22,24,21,.35); }
.config__panel { position: sticky; top: 96px; }
.config__panel .config__vtitle { font-size: clamp(22px, 2vw, 28px); margin: 28px 0 20px; }
.cfg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.cfg-stats div { background: var(--paper); padding: 14px 16px; }
.cfg-stats b { display: block; font: 500 20px/1.2 var(--display); letter-spacing: -.02em; }
.cfg-stats span { font-size: 13px; color: var(--muted); }
.config__panel .rooms { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .config__panel { position: static; }
}

/* Telegram и телефон */
.nav__icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor; opacity: .85; transition: opacity .2s, background .2s;
}
.nav__icon:hover { opacity: 1; }
.nav__icon svg { width: 18px; height: 18px; fill: currentColor; }
.nav__icon--phone { display: none; }
.nav__icon + .btn--small { margin-left: -16px; }
.lead-sec__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.lead-sec__alt span { flex-basis: 100%; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,239,231,.6); }
.btn--tg { background: #2AABEE; color: #fff; }
.btn--tg:hover { background: #229ED9; }
.btn--tg svg, .footer__tg svg { width: 18px; height: 18px; fill: currentColor; }
.footer__tg { display: inline-flex; align-items: center; gap: 8px; }
.footer__tg svg { fill: #2AABEE; }
@media (max-width: 600px) {
  .nav__icon--phone { display: grid; }
  .nav__icon { width: 38px; height: 38px; }
  .nav .btn--small { margin-left: 0; }
  .nav__icon--phone { margin-left: auto; }
  .lead-sec__alt .btn { flex: 1 1 100%; }
}

/* О компании */
.about { background: var(--green); color: var(--paper); padding: clamp(96px, 12vw, 160px) 0; }
.about .eyebrow { color: var(--amber); }
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.about__item { border-top: 1px solid rgba(243,239,231,.3); padding-top: 24px; }
.about__item b { display: block; font: 300 clamp(48px, 6vw, 96px)/1 var(--display); letter-spacing: -.04em; color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
.about__item p { margin-top: 14px; font-size: 17px; color: rgba(243,239,231,.78); }
@media (max-width: 900px) { .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
@media (max-width: 600px) { .about__item b { font-size: clamp(34px, 10vw, 48px); } .about__item p { font-size: 15px; } }

/* ---------- Полировка мобильной версии ---------- */
@media (max-width: 600px) {
  /* шапка: компактнее, всё в одну строку даже на 360 px */
  .nav { gap: 8px; padding: 10px 16px; }
  .nav.is-solid { padding-top: 8px; padding-bottom: 8px; }
  .nav__logo { height: 34px; gap: 6px; }
  .logo-icon { width: 34px; }
  .logo-word { width: 92px; }
  .nav__icon { width: 36px; height: 36px; }
  .nav__icon svg { width: 16px; height: 16px; }
  .nav .btn--small { height: 36px; padding: 0 14px; font-size: 13px; }

  /* первый экран */
  .build__intro .eyebrow { font-size: 11px; letter-spacing: .1em; line-height: 1.4; }
  .build__h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .build__lead { font-size: 15px; margin-top: 16px; }
  .build__ctas { margin-top: 24px; gap: 10px; }
  .build__ctas .btn { height: 52px; }

  /* финал сборки */
  .build__done { font-size: 34px; margin-bottom: 14px; }
  .build__final { bottom: 28px; }

  /* отступы секций */
  .config, .about, .faq, .lead-sec { padding: 64px 0; }
  .config__head { margin-bottom: 28px; }
  .h2 { font-size: clamp(30px, 9vw, 40px); }
  .summary { padding: 22px 20px; margin-top: 32px; gap: 16px; }
  .about__grid { margin-top: 36px; }
  .faq__grid { gap: 24px; }
  .faq summary { padding: 18px 0; font-size: 17px; }

  /* заявка */
  .lead-sec__alt { margin-top: 24px; }
  .lead-sec__alt .btn { height: 50px; }
  .lead-sec__grid { gap: 32px; }
  .form { padding: 22px 18px; }

  /* подвал */
  .footer { padding: 40px 0 32px; }
  .footer__grid { gap: 20px; }
  .footer__logo { width: 84px; height: 90px; }
  .footer__phone { font-size: 20px !important; }
  .footer__req { font-size: 12px; }
}

@media (max-width: 600px) { .hide-sm { display: none; } }

/* 3D-планировка */
.plan-mode { margin-bottom: 14px; }
.plan-mode[hidden] { display: none; }
.plan3d { display: none; position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #FBFAF7 0%, #EEEAE2 75%); touch-action: pan-y; cursor: grab; user-select: none; }
.plan3d.is-drag { cursor: grabbing; }
.config__planbox.is-3d .plan3d { display: block; }
.config__planbox.is-3d #planCrop { display: none; }
.plan3d canvas { display: block; width: 100%; height: 100%; }
.plan3d__pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 6px;
  margin: -14px 0 0 -14px; padding: 0; background: none; cursor: pointer; will-change: transform; }
.pin i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 18px; line-height: 1;
  color: #fff; background: var(--green); box-shadow: 0 4px 14px rgba(22,65,34,.35); transition: transform .25s var(--ease), background .25s; }
.pin span { padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.pin:hover i, .pin.is-on i { transform: scale(1.12); background: var(--amber); color: var(--ink); }
.pin:hover span, .pin.is-on span { opacity: 1; transform: none; }
.pin.is-on { z-index: 2; }
.plan3d__hint { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 20px;
  background: rgba(22,24,21,.55); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.plan3d__hint.is-hidden { opacity: 0; }
@media (max-width: 600px) {
  .pin i { width: 26px; height: 26px; font-size: 16px; }
  .pin span { font-size: 12px; }
  .plan3d__hint { font-size: 11px; white-space: normal; text-align: center; width: max-content; max-width: 90%; }
}
.plan-mode { justify-self: start; width: max-content; }

/* подпись точки: справа от «+», у правого края — слева */
.pin { width: 28px; height: 28px; }
.pin span { position: absolute; left: 34px; top: 50%; transform: translate(-6px, -50%); }
.pin:hover span, .pin.is-on span { transform: translate(0, -50%); }
.pin.is-left span { left: auto; right: 34px; transform: translate(6px, -50%); }
.pin.is-left:hover span, .pin.is-left.is-on span { transform: translate(0, -50%); }
@media (max-width: 600px) { .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; } .pin span { left: 31px; } .pin.is-left span { right: 31px; } }

/* конфигуратор в едином белом тоне */
.config { background: #fff; }
.plan3d { background: #fff; }
.cfg-stats div { background: #fff; }
.config .seg { background: #F2F0EB; }
.config__planbox .crop { box-shadow: none; border: 1px solid var(--line); }

/* площадь на модели и площади комнат на точках */
.plan3d__badge { position: absolute; right: 12px; top: 12px; padding: 8px 12px; border-radius: 10px; background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.08); text-align: right; pointer-events: none; }
.plan3d__badge b { display: block; font: 500 20px/1.1 var(--display); letter-spacing: -.02em; color: var(--green); }
.plan3d__badge span { font-size: 12px; color: var(--muted); }
.plan3d__badge.is-pop { animation: badgePop .6s var(--ease); }
@keyframes badgePop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.pin span em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }

/* переключатели под 3D-моделью */
.plan-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.plan-controls .plan-mode { margin: 0 0 0 auto; }
.plan-controls .seg button { height: 38px; padding: 0 16px; font-size: 13px; }
.config__panel .config__vtitle { margin-top: 0; }
@media (min-width: 901px) { .plan3d { aspect-ratio: 5 / 4; } }
@media (max-width: 600px) {
  .plan-controls { gap: 8px; }
  .plan-controls .plan-mode { margin-left: 0; }
  .plan-controls .seg button { padding: 0 12px; }
}

.plan3d.is-loading::after { content: 'Загружаем мебель…'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; color: var(--muted); }

/* приближение 3D-планировки */
.plan3d__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 6px; z-index: 2; }
.plan3d__zoom button { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 20px; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); display: grid; place-items: center; transition: background .2s; }
.plan3d__zoom button:hover { background: #F2F0EB; }
.plan3d__zoom [data-z="reset"] { font-size: 16px; }
.plan3d.is-zoomed { cursor: move; }
.show-sm { display: none; }
@media (max-width: 600px) { .show-sm { display: inline; } .plan3d__zoom button { width: 36px; height: 36px; } }
