/* Brand tokens — "Larch": warm paper, graphite text, larch-heartwood accent */
:root {
  --bg: #F5F2ED;
  --surface: #FBF9F6;
  --surface-2: #FFFFFF;
  --border: #E2DDD5;
  --border-strong: #CFC8BD;
  --line: #948B7F;          /* control outlines, drawing strokes — 3:1 on --bg */
  --line-soft: #B5ADA2;
  --text: #1C1B19;
  --muted: #67625B;
  --accent: #9E4F27;
  --accent-hover: #833F1D;
  --accent-light: #D98A5C;  /* accent over dark imagery */
  --on-accent: #FFFFFF;
  --danger: #B23A26;
  --cool: #4F6680;
  --hatch-a: #E9E3DA;
  --hatch-b: #F1ECE5;
  --shadow: 0 30px 60px -30px rgba(70, 45, 20, .25);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  color-scheme: light;
}

/* Dark engineering inserts (calculator, wall section) */
.theme-dark {
  --bg: #1A1917;
  --surface: #22201D;
  --surface-2: #2A2825;
  --border: #36332F;
  --border-strong: #4A4640;
  --line: #6A645C;
  --line-soft: #4A4640;
  --text: #EDE9E3;
  --muted: #A39D94;
  --accent: #D98A5C;
  --accent-hover: #E8A07A;
  --on-accent: #1A1917;
  --danger: #D2654C;
  --cool: #7E95AD;
  --hatch-a: #2A2825;
  --hatch-b: #23211E;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);

  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; border-top: 1px solid var(--border); }
.section-tight { padding: 0 0 var(--section); }
.section-title { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; }
.section-lead { color: var(--muted); max-width: 62ch; margin-top: 16px; font-size: 18px; }

.eyebrow { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.link, .link-btn {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link:hover, .link-btn:hover { color: var(--accent-hover); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* In-app browsers (Telegram, VK, Instagram) draw a translucent toolbar over the page
   and pin the sticky header below it, so content scrolling above the header shows
   through. A solid backdrop extending upward covers that strip; in regular browsers
   it sits outside the viewport. */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 100vh; background: var(--bg); pointer-events: none;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; }
.logo-text { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-num { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 16px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.phone { text-decoration: none; font-size: 14px; color: var(--text); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--border); padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; color: var(--accent); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin-top: 24px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .hl { color: var(--accent); }
.hero-grid { grid-template-columns: 1fr 1.12fr; }
.hero-art { margin: 0; position: relative; aspect-ratio: 590 / 460; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow); }
.hero-img, .frame-drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; clip-path: inset(100% 0 0 0); animation: build 1.3s 1.2s cubic-bezier(.5,0,.2,1) forwards; }

/* Timeline: frame lines draw (0–1.4s) → illustration rises from the foundation (1.2–2.5s) → lines fade, callouts appear */
.frame-drawing .draft { animation: fadeOut .7s 2.3s forwards; }
.frame-drawing .ln line, .frame-drawing .ln rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,.1,.3,1) forwards; }
.frame-drawing .ln-main { stroke: var(--text); stroke-width: 2; }
.frame-drawing .ln-thin { stroke: var(--line); stroke-width: 1.5; }
.frame-drawing .ln-thin line { animation-delay: .3s; }
.frame-drawing .ground { stroke: var(--muted); stroke-width: 1.5; }
.frame-drawing .notes { opacity: 0; animation: fade .6s 2.6s forwards; }
.frame-drawing .frost { stroke: var(--accent-light); stroke-width: 2; stroke-dasharray: 7 6; }
.frame-drawing .leader { stroke: var(--surface-2); stroke-width: 1.25; }
.frame-drawing .dot { fill: var(--accent); stroke: var(--surface-2); stroke-width: 1.5; }
.frame-drawing .chip rect { fill: var(--bg); fill-opacity: .94; stroke: var(--border-strong); stroke-width: 1; }
.frame-drawing .chip text { fill: var(--text); font-family: var(--mono); font-size: 11px; }
@keyframes build { to { clip-path: inset(0 0 0 0); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 7vw, 80px) 0 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-strip > div { padding: 24px; border-right: 1px solid var(--border); }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip dt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; }
.spec-strip dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pillar-num { color: var(--muted); font-size: 13px; }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--muted); flex: 1; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.product { --pad: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--pad); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.product:hover { border-color: var(--border-strong); }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product h3 { font-size: 21px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.product > p { color: var(--muted); flex: 1; font-size: 16px; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-meta dt { font-size: 13px; color: var(--muted); }
.product-meta dd { margin: 2px 0 0; font-size: 16px; }
.product .link, .product .link-btn { align-self: flex-start; }
.product-img { width: calc(100% + 2 * var(--pad)); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 6px; border-bottom: 1px solid var(--border); background: var(--hatch-a); transition: transform .5s ease; }
.product:hover .product-img { transform: scale(1.03); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 440px; gap: 40px; margin-top: 48px; align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 28px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field > label, .field-row label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-value { font-size: 20px; color: var(--text); }
.hint { color: var(--muted); font-size: 14px; margin-top: 10px; }
.hint:empty { display: none; }

.seg { display: grid; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg label[hidden] { display: none; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 10px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.25; transition: background-color .15s, color .15s; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--fill, 30%), var(--border) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); margin-top: -9px; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }

select, input[type="text"], input[type="tel"], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; font-size: 16px; transition: border-color .15s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2367625B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
select:hover, input:hover, textarea:hover { border-color: var(--border-strong); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }

.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--line); border-radius: 5px; background: var(--bg); cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check .price { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; padding-left: 12px; }
.checks .check { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }

.calc-result { position: sticky; top: 92px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.result-label { color: var(--muted); font-size: 14px; }
.result-total { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.1; margin-top: -14px; }
.result-sub { color: var(--muted); font-size: 13px; margin-top: -14px; }
.result-block { border-top: 1px solid var(--border); padding-top: 18px; }
.result-h { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.breakdown, .stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.breakdown .bar { grid-column: 1 / -1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.breakdown .bar i { display: block; height: 100%; background: var(--line); border-radius: 2px; transition: width .3s; }
.breakdown li:first-child .bar i { background: var(--accent); }
.breakdown .v { font-family: var(--mono); color: var(--muted); }
.stages { counter-reset: st; }
.stages li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; font-size: 13px; align-items: baseline; }
.stages li::before { counter-increment: st; content: counter(st); font-family: var(--mono); color: var(--muted); font-size: 12px; }
.stages .v { font-family: var(--mono); }
.stages .p { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-right: 8px; }
.result-meta { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 18px; font-size: 14px; }
.result-meta > div { display: flex; justify-content: space-between; gap: 16px; }
.result-meta strong { font-weight: 600; text-align: right; }

/* Wall */
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: center; }
.wall-diagram { display: flex; align-items: stretch; gap: 14px; height: 360px; }
.wall-side { writing-mode: horizontal-tb; align-self: center; color: var(--muted); font-size: 12px; text-align: center; flex: none; width: 48px; }
.wall-side:last-child { color: var(--cool); }
.wall-layers { flex: 1; display: flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.layer {
  flex: var(--w) 1 0; min-width: 10px; border: 0; padding: 0; cursor: pointer; position: relative;
  border-right: 1px solid var(--bg); background: var(--surface-2); transition: background-color .2s, filter .2s;
  display: flex; align-items: flex-end; justify-content: center;
}
.layer:last-child { border-right: 0; }
.layer span { font-family: var(--mono); font-size: 11px; color: var(--text); padding-bottom: 10px; }
.layer[data-layer="0"] { background: #5E4C3B; }
.layer[data-layer="1"] { background: repeating-linear-gradient(45deg, #403B36 0 6px, #36322E 6px 12px); }
.layer[data-layer="2"] { background: #8592A0; }
.layer[data-layer="3"] { background:
  linear-gradient(to bottom, #6E5641 0 18px, transparent 18px calc(100% - 18px), #6E5641 calc(100% - 18px)),
  repeating-linear-gradient(45deg, #4E4842 0 6px, #443F3A 6px 12px); }
.layer[data-layer="4"] { background: #6B5843; }
.layer[data-layer="5"] { background: var(--bg); }
.layer[data-layer="6"] { background: #57493C; }
.wall-layers.has-active .layer:not(.active) { filter: brightness(.7) saturate(.8); }
.layer.active { box-shadow: inset 0 0 0 2px var(--accent); }
.layer.active span { color: var(--accent); }

.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.layer-list button { width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; transition: background-color .15s; }
.layer-list span { grid-row: span 2; color: var(--muted); font-size: 12px; padding-top: 3px; }
.layer-list strong { font-weight: 600; font-size: 16px; }
.layer-list em { font-style: normal; color: var(--muted); font-size: 14px; }
.layer-list li.active button { background: var(--surface); }
.layer-list li.active span { color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.fact { border-top: 1px solid var(--border); padding-top: 18px; }
.fact-k { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.fact p:last-child { color: var(--muted); font-size: 15px; }

/* Cabinet */
.cabinet-section { background: var(--surface); }
.cabinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.cabinet { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.cab-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cab-title { font-weight: 700; font-size: 17px; }
.cab-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cab-badge { font-size: 12px; border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; white-space: nowrap; color: var(--muted); }
.cab-progress { height: 4px; background: var(--border); border-radius: 2px; margin: 20px 0 16px; overflow: hidden; }
.cab-progress span { display: block; height: 100%; background: var(--accent); }
.cab-stages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.cab-stages li { padding-top: 8px; border-top: 2px solid var(--border); }
.cab-stages li.done { border-color: var(--line); color: var(--text); }
.cab-stages li.now { border-color: var(--accent); color: var(--accent); }
.cab-h { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.cab-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.cab-checks li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 34px; border: 1px solid var(--border); border-radius: 8px; position: relative; }
.cab-checks li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--line); }
.cab-checks li.ok::before { background: var(--accent); border-color: var(--accent); }
.cab-checks .mono { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cab-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.cab-photos span { aspect-ratio: 4 / 3; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--hatch-a) 0 8px, var(--hatch-b) 8px 16px); border: 1px solid var(--border); }
.cab-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; padding-top: 14px; border-top: 1px solid var(--border); }
.cab-pay strong { font-size: 16px; font-weight: 500; }

/* Showroom */
.showroom-art { margin: 0 0 clamp(40px, 6vw, 64px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--hatch-a); }
.showroom-art img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 60% 70%; }
.showroom { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.showroom-copy .btn { margin-top: 32px; }
.tour { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tour li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tour li:first-child { padding-top: 0; }
.tour .mono { color: var(--muted); font-size: 13px; padding-top: 3px; }
.tour strong { font-size: 18px; font-weight: 600; }
.tour p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Process */
.process { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.process li { padding: 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process .mono { color: var(--muted); font-size: 13px; }
.process h3 { font-size: 19px; margin: 12px 0 8px; }
.process p { color: var(--muted); font-size: 15px; }

/* Season */
.season { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); background: var(--surface); position: relative; overflow: hidden; }
.season::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.season .eyebrow { color: var(--accent); }
.season-title { font-size: clamp(22px, 2.6vw, 30px); max-width: 30ch; }
.season p:not(.eyebrow) { color: var(--muted); margin-top: 14px; max-width: 60ch; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
.faq summary:hover { color: var(--accent-hover); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 68ch; }

/* Contact */
.contact-section { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacts { margin: 32px 0 0; display: grid; gap: 14px; }
.contacts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contacts dt { color: var(--muted); font-size: 15px; }
.contacts dd { margin: 0; }
.contacts a { text-decoration: none; color: var(--accent); }
.contacts a:hover { color: var(--accent-hover); }
.lead-form { display: grid; gap: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-row-check .check { display: flex; font-size: 14px; color: var(--muted); font-weight: 400; margin: 0; }
.lead-form .invalid { border-color: var(--danger); }
.check.invalid input { border-color: var(--danger); }
.form-status { font-size: 14px; min-height: 1px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin-top: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .burger { display: flex; }
  .hero-grid, .cabinet-grid, .showroom, .faq-wrap, .contact-grid, .wall { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .pillar-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div:nth-child(2) { border-right: 0; }
  .spec-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .season { grid-template-columns: 1fr; }
  .wall-diagram { height: 240px; }
  .cabinet-grid, .showroom, .faq-wrap, .contact-grid, .wall { gap: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .product-grid, .process, .facts { grid-template-columns: 1fr; }
  .seg-4 { grid-template-columns: repeat(2, 1fr); }
  .seg-3 span { font-size: 13px; padding: 6px 4px; }
  .hero-actions .btn { width: 100%; }
  .frame-drawing .chip, .frame-drawing .leader, .frame-drawing .dot { display: none; }
  .pillar, .calc-result, .lead-form { padding: 22px; }
  .product { --pad: 22px; }
  .showroom-art img { aspect-ratio: 4 / 3; }
  .cab-stages { grid-template-columns: repeat(5, 1fr); font-size: 0; }
  .cab-stages li { font-size: 0; }
  .wall-side { width: 36px; font-size: 11px; }
  .faq summary { font-size: 16px; }
  .contacts > div { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-img { clip-path: none; }
  .frame-drawing .draft { opacity: 0; }
  .frame-drawing .notes { opacity: 1; }
}
