:root {
  --bg: #efebe4;
  --bg-2: #e7e2d9;
  --ink: #151513;
  --ink-2: #3b3a36;
  --muted: #7a756c;
  --line: rgba(21, 21, 19, .12);
  --accent: #3f4b43;
  --cream: #e4dac7;
  --dark: #121211;
  --dark-line: rgba(239, 235, 228, .14);
  --radius: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, 0, 1);
  --sans: 'Onest', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--bg); }

/* зерно поверх всего */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }

.h2 { font-weight: 400; font-size: clamp(38px, 6.2vw, 96px); line-height: .98; letter-spacing: -.045em; }
.h2 em { font-size: 1.08em; }
.h2--sm { font-size: clamp(34px, 4vw, 60px); }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 99px; overflow: hidden;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 15px; letter-spacing: -.01em;
  isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn span { display: block; transition: transform .4s var(--ease); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light::before { background: var(--cream); }
.btn--full { width: 100%; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; }
.link-arrow i { font-style: normal; transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- лоадер ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bg); display: grid; place-content: center; gap: 28px; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__word { display: flex; font-size: clamp(40px, 8vw, 110px); letter-spacing: -.05em; line-height: 1; overflow: hidden; }
.loader__word span { display: block; animation: rise 1s var(--ease) both; }
.loader__word span:last-child { font-family: var(--serif); font-style: italic; animation-delay: .12s; }
.loader__bar { height: 1px; background: rgba(255,255,255,.15); }
.loader__bar i { display: block; height: 100%; background: var(--bg); width: 0; transition: width .3s; }
@keyframes rise { from { transform: translateY(110%); } }

/* ---------- курсор ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; }
.cursor span { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.is-hover span { transform: scale(4.2); }
.cursor.is-drag span { transform: scale(7); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px; padding: 18px var(--pad);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(239, 235, 228, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.03em; margin-right: auto; }
.logo svg { width: 26px; height: 26px; }
.logo b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.12em; }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a, .nav__phone { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { font-size: 14px; font-weight: 500; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 23px; }
.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--pad); clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); }
.menu a { font-size: clamp(36px, 10vw, 56px); letter-spacing: -.04em; line-height: 1.15; }
.menu .menu__phone { font-size: 18px; margin-top: 24px; color: var(--muted); }
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 460vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-46%); max-width: 560px; z-index: 2; transition: opacity .6s, transform .6s var(--ease); }
.hero__copy.is-away { opacity: 0; transform: translateY(-56%); pointer-events: none; }
.hero__title { font-weight: 400; font-size: clamp(56px, 9vw, 150px); line-height: .88; letter-spacing: -.06em; margin: 22px 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__title em { font-size: 1.1em; letter-spacing: -.03em; }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__lead { max-width: 400px; color: var(--ink-2); font-size: 17px; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }

.steps { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); list-style: none; width: min(320px, 28vw); z-index: 2; display: grid; gap: 4px; }
.steps li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .5s; }
.steps li.on { opacity: 1; }
.steps li.done { opacity: .55; }
.steps b { font: 400 11px/1.9 var(--mono); }
.steps h3 { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.steps p { font-size: 14px; color: var(--muted); }

.hero__meter { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.meter { flex: 1; height: 1px; background: var(--line); }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); }
#meterVal { width: 42px; text-align: right; }

.hero__swatches { position: absolute; left: 50%; bottom: 72px; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; border-radius: 99px; background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.7); opacity: 0; pointer-events: none; transition: opacity .6s, transform .8s var(--ease); z-index: 3; }
.hero__swatches.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hero__hint { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--muted); transition: opacity .5s; }
.hero__hint i { width: 1px; height: 26px; background: var(--muted); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.swatches { display: flex; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; position: relative; overflow: hidden; outline: 1px solid rgba(0,0,0,.08); outline-offset: 0; transition: transform .4s var(--ease), outline-offset .3s, outline-color .3s; }
.sw::before, .sw::after { content: ''; position: absolute; inset: 0; }
.sw::before { background: var(--a); }
.sw::after { background: var(--b); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sw:hover { transform: scale(1.12); }
.sw.on { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.swatches--lg .sw { width: 44px; height: 44px; }

/* ---------- бегущая строка ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 3vw, 38px); letter-spacing: -.03em; padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- цифры ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(64px, 9vw, 130px); }
.fact { padding: 0 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-weight: 300; font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -.05em; line-height: 1; }
.fact i { font-style: normal; }
.fact span { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 180px; }

/* ---------- заголовки секций ---------- */
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head__aside { max-width: 300px; color: var(--muted); font-size: 15px; }

/* ---------- работы ---------- */
.works { padding-bottom: clamp(80px, 10vw, 140px); }
.works__rail { display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--pad); scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; }
.works__rail::-webkit-scrollbar { display: none; }
.works__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.works__rail.is-dragging * { pointer-events: none; }
.work { flex: 0 0 clamp(280px, 30vw, 440px); scroll-snap-align: start; user-select: none; }
.work__img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); clip-path: inset(12% 6% 12% 6% round var(--radius)); transition: clip-path 1.2s var(--ease); }
.work.in .work__img { clip-path: inset(0 0 0 0 round var(--radius)); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.4s var(--ease); -webkit-user-drag: none; }
.work.in .work__img img { transform: scale(1.04); }
.work:hover .work__img img { transform: scale(1.1); }
.work__meta { display: flex; justify-content: space-between; color: var(--muted); margin: 18px 0 6px; }
.work h3 { font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.work p { color: var(--muted); font-size: 14px; }
.work > b { display: inline-block; margin-top: 12px; font-weight: 500; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; }
.work--more { display: grid; place-items: center; flex-basis: clamp(240px, 22vw, 320px); }
.more-circle { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); color: var(--bg); font-size: 18px; line-height: 1.2; letter-spacing: -.02em; transition: transform .5s var(--ease); }
.more-circle:hover { transform: scale(1.06); }
.works__progress { margin-top: 36px; position: relative; height: 1px; background: var(--line); padding: 0; max-width: calc(100% - 2 * var(--pad)); }
.works__progress i { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); width: 20%; }

/* ---------- материалы ---------- */
.materials { padding-bottom: clamp(80px, 10vw, 140px); }
.mats { display: flex; gap: 12px; height: clamp(420px, 56vh, 600px); }
.mat {
  --ink: #efebe4;
  position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, var(--c2), var(--c1)); color: var(--ink);
  transition: flex 1s var(--ease);
}
.mat.is-open { flex: 3.4; }
.mat__tex { position: absolute; inset: 0; opacity: .7; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.mat__tex--wood { opacity: .55; background-image: repeating-linear-gradient(92deg, rgba(60,35,15,.0) 0 7px, rgba(60,35,15,.35) 8px, rgba(60,35,15,0) 11px 19px, rgba(60,35,15,.2) 20px, rgba(60,35,15,0) 23px 31px); mix-blend-mode: multiply; }
.mat__tex--gloss { opacity: 1; mix-blend-mode: normal; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 42%, transparent 52%); transform: translateX(-60%); transition: transform 1.6s var(--ease); }
.mat:hover .mat__tex--gloss { transform: translateX(60%); }
.mat__tex--fenix { opacity: .35; }
.mat__body { position: absolute; left: 28px; right: 28px; bottom: 28px; }
.mat__body h3 { font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.04em; line-height: 1; margin: 10px 0 0; white-space: nowrap; }
.mat__body p { max-width: 360px; font-size: 15px; opacity: 0; transform: translateY(12px); max-height: 0; transition: opacity .5s, transform .7s var(--ease), max-height .7s var(--ease), margin .7s; }
.mat.is-open .mat__body p { opacity: .82; transform: none; max-height: 120px; margin-top: 14px; transition-delay: .25s; }

/* ---------- конфигуратор ---------- */
.config { background: var(--dark); color: var(--bg); position: relative; }
.config__inner { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 100vh; }
.config__view { position: relative; background: radial-gradient(120% 90% at 40% 40%, #f3efe8 0%, #e2ddd3 70%); border-radius: 0 28px 28px 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.config__view:active { cursor: grabbing; }
.config__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.config__badge { position: absolute; left: 24px; top: 24px; color: var(--ink); background: rgba(255,255,255,.6); backdrop-filter: blur(10px); padding: 10px 14px; border-radius: 99px; }
.config__drag { position: absolute; left: 24px; bottom: 24px; color: var(--muted); }
.config__panel { padding: clamp(40px, 6vw, 90px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; gap: 30px; justify-content: center; }
.config .eyebrow { color: rgba(239,235,228,.5); }
.field label { display: flex; justify-content: space-between; color: rgba(239,235,228,.55); margin-bottom: 12px; }
.field output { color: var(--bg); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--dark-line); border-radius: 14px; }
.seg button { height: 44px; border-radius: 10px; font-size: 13.5px; color: rgba(239,235,228,.7); transition: background .35s, color .35s; }
.seg button:hover { color: var(--bg); }
.seg button.on { background: var(--bg); color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: var(--dark-line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); cursor: pointer; box-shadow: 0 0 0 6px rgba(239,235,228,.12); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; }
.config .sw { outline-color: rgba(255,255,255,.12); }
.config .sw.on { outline-color: var(--bg); }
.price { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--dark-line); flex-wrap: wrap; }
.price .mono { color: rgba(239,235,228,.55); }
.price b { display: block; font-weight: 300; font-size: clamp(36px, 3.6vw, 54px); letter-spacing: -.05em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.price small { display: block; max-width: 280px; color: rgba(239,235,228,.5); font-size: 12.5px; margin-top: 8px; }

/* ---------- мебель ---------- */
.furniture { padding-block: clamp(90px, 11vw, 160px); position: relative; }
.flist { list-style: none; border-top: 1px solid var(--line); }
.flist li { display: grid; grid-template-columns: 60px 1fr 1fr 40px; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; transition: padding .6s var(--ease), color .4s; }
.flist li::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.flist li:hover { color: var(--bg); padding-left: 24px; padding-right: 24px; }
.flist li:hover::before { transform: scaleY(1); }
.flist h3 { font-weight: 400; font-size: clamp(28px, 4vw, 58px); letter-spacing: -.045em; line-height: 1; }
.flist p { color: var(--muted); transition: color .4s; }
.flist li:hover p { color: rgba(239,235,228,.6); }
.flist i { font-style: normal; font-size: 22px; transition: transform .5s var(--ease); }
.flist li:hover i { transform: rotate(-45deg); }
.flist__img { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 20; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .4s, transform .5s var(--ease); }
.flist__img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.flist__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- отзывы ---------- */
.reviews { padding-bottom: clamp(90px, 11vw, 160px); }
.big-num { font-weight: 300; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rv { background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 340px; transition: transform .6s var(--ease), background .4s; }
.rv:hover { transform: translateY(-6px); background: rgba(255,255,255,.7); }
.rv blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.22; letter-spacing: -.01em; }
.rv figcaption { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.rv figcaption b { font-weight: 500; }
.rv figcaption .mono { color: var(--muted); }

/* ---------- заявка ---------- */
.contact { background: var(--accent); color: var(--bg); padding-block: clamp(90px, 11vw, 160px); border-radius: 32px 32px 0 0; }
.contact .eyebrow { color: rgba(239,235,228,.6); }
.contact__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.contact__inner .h2 { margin: 22px 0 36px; }
.contact__list { list-style: none; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 14px; align-items: baseline; color: rgba(239,235,228,.8); }
.contact__list li::before { content: '✓'; font-size: 12px; }
.form { position: relative; display: grid; gap: 8px; }
.form__row { position: relative; }
.form__row input { width: 100%; height: 66px; padding: 22px 0 6px; background: none; border: 0; border-bottom: 1px solid rgba(239,235,228,.25); color: var(--bg); font: 400 18px var(--sans); outline: none; transition: border-color .3s; }
.form__row input:focus { border-color: var(--bg); }
.form__row label { position: absolute; left: 0; top: 24px; color: rgba(239,235,228,.55); pointer-events: none; transition: transform .4s var(--ease), font-size .4s; transform-origin: left; }
.form__row input:focus + label, .form__row input:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.72); }
.form__row.err input { border-color: #f0a58f; }
.form .btn { margin-top: 26px; height: 62px; }
.form__legal { font-size: 12px; color: rgba(239,235,228,.45); margin-top: 6px; }
.form__ok { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: var(--accent); opacity: 0; pointer-events: none; transition: opacity .6s; }
.form__ok b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 56px; }
.form.sent .form__ok { opacity: 1; pointer-events: auto; }

/* ---------- футер ---------- */
.footer { background: var(--dark); color: var(--bg); padding-top: 80px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer__grid .mono { color: rgba(239,235,228,.45); }
.footer__grid p { margin-top: 10px; font-size: 15px; }
.footer__word { font-size: 18.5vw; letter-spacing: -.07em; line-height: .8; text-align: center; margin-top: 70px; white-space: nowrap; background: linear-gradient(180deg, rgba(239,235,228,.95), rgba(239,235,228,.08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: rgba(239,235,228,.4); border-top: 1px solid var(--dark-line); flex-wrap: wrap; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.in .w > span { transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .steps { top: 96px; transform: none; left: var(--pad); right: var(--pad); width: auto; }
  .steps li { display: none; border: 0; padding: 0; }
  .steps li.on { display: flex; animation: stepIn .6s var(--ease); }
  .config__inner { grid-template-columns: 1fr; }
  .config__view { min-height: 62vh; border-radius: 0 0 28px 28px; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; padding-block: 14px; }
  .nav__phone, .nav .btn { display: none; }
  .burger { display: block; }
  .hero__copy { top: auto; bottom: 120px; transform: none; right: var(--pad); }
  .hero__copy.is-away { transform: translateY(-20px); }
  .hero__title { font-size: clamp(52px, 15vw, 80px); margin: 14px 0 18px; }
  .hero__lead { font-size: 15px; }
  .hero__cta { margin-top: 22px; gap: 20px; }
  .hero__hint { display: none; }
  .hero__swatches { bottom: 64px; padding-left: 14px; }
  .hero__swatches .mono { display: none; }
  .facts { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .section-head { grid-template-columns: 1fr; }
  .mats { flex-direction: column; height: auto; }
  .mat { min-height: 96px; flex: none; transition: min-height .8s var(--ease); }
  .mat.is-open { min-height: 300px; flex: none; }
  .seg { grid-template-columns: 1fr 1fr; }
  .flist li { grid-template-columns: 34px 1fr 24px; }
  .flist p { display: none; }
  .flist__img { display: none; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv { min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__title .line > span, .split .w > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- доработки ---------- */
.hero__stage::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(239,235,228,.85) 28%, rgba(239,235,228,0) 52%);
  transition: opacity .8s;
}
.hero__stage.is-built::before { opacity: 0; }
.mat:not(.is-open) .mat__body h3 { font-size: clamp(22px, 2vw, 30px); }
@media (min-width: 761px) {
  .mat__body h3 { transition: font-size .6s var(--ease); }
}
.config__panel { gap: 24px; }
@media (max-width: 760px) {
  .hero__stage::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(239,235,228,.9) 42%, rgba(239,235,228,0) 62%); }
}
.mat:not(.is-open) .mat__body h3 { white-space: normal; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- услуги ---------- */
.services { padding-bottom: clamp(90px, 11vw, 160px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 34px 30px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; transition: color .5s; }
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: circle(0 at 0 0); transition: clip-path .8s var(--ease); }
.svc:hover { color: var(--bg); }
.svc:hover::before { clip-path: circle(150% at 0 0); }
.svc h3 { font-weight: 400; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.1; margin: 46px 0 10px; }
.svc p { color: var(--muted); font-size: 15px; transition: color .5s; }
.svc:hover p { color: rgba(239,235,228,.7); }
.terms { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin-top: 20px; }
.terms__col { background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 30px; }
.terms__col .mono { color: var(--muted); }
.terms__col h3 { font-weight: 400; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.045em; margin: 10px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; background: var(--bg); transition: background .3s, color .3s; }
.chips span:hover { background: var(--ink); color: var(--bg); }

/* ---------- шоурум ---------- */
.visit { padding-bottom: clamp(90px, 11vw, 160px); }
.visit__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch; }
.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--bg-2); }
.visit__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(.85) contrast(1.02); transition: filter .6s; }
.visit__map:hover iframe { filter: none; }
.visit__info { display: grid; gap: 22px; align-content: start; }
.vi { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.vi .mono { color: var(--muted); }
.vi p { margin-top: 8px; font-size: 17px; }
.visit__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .terms, .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc h3 { margin-top: 24px; }
  .visit__map, .visit__map iframe { min-height: 340px; }
}
a.work { display: block; color: inherit; }
.ul { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- вариант «Экскурсия» ---------- */
.variant { position: absolute; right: var(--pad); top: 96px; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 99px; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); }
.variant .mono { color: var(--muted); margin-right: 6px; }
.variant a { height: 32px; padding: 0 14px; display: grid; place-items: center; border-radius: 99px; font-size: 13px; transition: background .3s, color .3s; }
.variant a.on { background: var(--ink); color: var(--bg); }
.hero-tour .hero { height: 820vh; }
.tour-cap { position: absolute; left: var(--pad); bottom: 84px; z-index: 3; max-width: 440px; display: none; }
.hero-tour .tour-cap { display: block; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.hero-tour .tour-cap.on { opacity: 1; transform: none; }
.tour-cap .mono { color: var(--muted); }
.tour-cap h3 { font-weight: 400; font-size: clamp(36px, 4.6vw, 72px); letter-spacing: -.05em; line-height: .95; margin: 14px 0 14px; }
.tour-cap h3 em { font-size: 1.08em; }
.tour-cap p { color: var(--ink-2); font-size: 16px; max-width: 360px; }
.tour-cap.swap h3, .tour-cap.swap p { animation: capIn .8s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(16px); } }
.hero-tour .hero__stage::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(239,235,228,.85) 26%, rgba(239,235,228,0) 50%); }
.hero-tour .hero__stage.is-built::before { opacity: .75; background: linear-gradient(20deg, rgba(239,235,228,.95) 0%, rgba(239,235,228,.6) 22%, rgba(239,235,228,0) 45%); }
@media (max-width: 1100px) { .hero-tour .tour-cap { display: none; } .variant { top: auto; bottom: 64px; right: auto; left: 50%; transform: translateX(-50%); } .hero-tour .hero__swatches.on ~ .variant, .hero__swatches.on ~ .variant { opacity: 0; pointer-events: none; } }
@media (max-width: 760px) { .variant .mono { display: none; } .variant { bottom: 56px; padding-left: 4px; } }
@media (min-width: 1101px) { .hero-tour .steps { display: none; } }
