/* ── Конструктор шкафов: дизайн-токены ─────────────────────────────────────
   Язык: Tylko — тёплый выбеленный фон, жжёный терракот, pill-формы, воздух.
   Моно — для миллиметров и цен (вернакуляр цеха: этикетки и станок). */
:root {
  --bg: #F5F2EC;
  --surface: #FFFFFF;
  --ink: #23211E;
  --muted: #8A857C;
  --line: #E7E1D6;
  --accent: #D95B29;
  --accent-deep: #B8481D;
  --accent-soft: #F7E4D9;
  --ok: #2E7D5B;
  --radius: 18px;
  --font-ui: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Golos Text", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; }

/* ── Плавающая навигация ── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(231,225,214,.9); box-shadow: 0 6px 30px rgba(35,33,30,.07);
  z-index: 50;
}
.nav .brand { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.nav .brand em { font-style: normal; color: var(--accent); }
.nav .contacts { display: flex; align-items: center; gap: 8px; }
.nav .phone { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .15s;
}
.btn-wa:hover { background: #000; }

/* ── Hero-строка над конфигуратором ── */
.hero { padding: 96px 0 10px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 4.6vw, 46px); line-height: 1.14; letter-spacing: -.01em;
}
.hero h1 .price-word { color: var(--accent); white-space: nowrap; }
.hero .sub { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(14px, 1.6vw, 16.5px); }
.hero .sub b { color: var(--ink); font-weight: 600; }

/* ── Конфигуратор: сцена + панель ── */
.builder {
  width: min(1180px, calc(100% - 24px)); margin: 26px auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px;
  align-items: start;
}
.stage-wrap { position: sticky; top: 86px; align-self: start; }
.stage {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: linear-gradient(180deg, #EFEAE1 0%, #E9E3D8 78%, #DCD5C7 78%, #D5CDBE 100%);
  border: 1px solid var(--line); height: min(66vh, 640px); min-height: 400px;
}
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage .dims {
  position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.dim-chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.stage .view-toggle {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; display: none;
}
.stage .view-toggle.on { display: block; }
.stage .hint {
  position: absolute; top: 14px; left: 14px; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 11px;
}

/* ── Панель контролов ── */
.panel { display: flex; flex-direction: column; gap: 14px; padding-bottom: 120px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.card > .card-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

/* сегмент-переключатель режима */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  border-radius: 999px; padding: 10px 8px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.seg button.on { background: var(--ink); color: #fff; }

/* слайдеры размеров */
.slider-row { display: grid; grid-template-columns: 74px 1fr 84px; align-items: center; gap: 12px; margin-bottom: 14px; }
.slider-row:last-child { margin-bottom: 2px; }
.slider-row label { font-size: 14px; font-weight: 600; }
.slider-row .val {
  font-family: var(--font-mono); font-size: 13.5px; text-align: right; color: var(--ink);
  background: var(--bg); border-radius: 10px; padding: 6px 9px;
  display: flex; align-items: center; gap: 3px;
}
.slider-row .val input {
  width: 52px; border: none; background: transparent; font-family: var(--font-mono);
  font-size: 13.5px; text-align: right; color: var(--ink); outline: none; padding: 0;
  -moz-appearance: textfield;
}
.slider-row .val input::-webkit-outer-spin-button, .slider-row .val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slider-row .val:focus-within { box-shadow: 0 0 0 2px var(--accent-soft); }
.slider-row .val small { color: var(--muted); font-size: 10.5px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); margin-top: -9px; box-shadow: 0 2px 8px rgba(35,33,30,.18);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }

/* stepper секций */
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  font-size: 19px; font-weight: 600; line-height: 1; transition: all .15s; background: var(--surface);
}
.stepper button:hover:not(:disabled) { border-color: var(--ink); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .num { font-family: var(--font-mono); font-size: 17px; font-weight: 600; min-width: 22px; text-align: center; }

/* карточки секций */
.secs { display: flex; flex-direction: column; gap: 10px; }
/* вкладки секций: редактируется одна выбранная (тап по 3D или по вкладке) */
.sec-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; scroll-margin-top: 96px; }
.sec-tabs:empty { display: none; margin: 0; }
.sec-tab {
  min-width: 46px; padding: 5px 9px 6px; border-radius: 11px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  transition: border-color .15s, background .15s, color .15s;
}
.sec-tab b { font-size: 14px; font-weight: 700; }
.sec-tab i { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.sec-tab.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.sec-tab.on i { color: rgba(255,255,255,.8); }
.sec-tabs .tabs-hint { font-size: 12px; color: var(--muted); margin-left: 2px; }
.sec-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; scroll-margin-top: 96px; }
.sec-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; }
.chip.on svg * { stroke: #fff; }

/* плитки-схемы наполнения (паттерн «Варианты наполнения» ПМ) */
.fill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fill-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 7px 6px;
  color: var(--muted); background: var(--surface); transition: all .12s; min-width: 62px;
}
.fill-tile svg { width: 30px; height: 42px; }
.fill-tile span { font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; }
.fill-tile:hover { border-color: var(--ink); color: var(--ink); }
.fill-tile.on { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

/* ширина секции + пофасадные мини-свотчи */
.sec-w { display: inline-flex; align-items: center; gap: 8px; }
.w-auto { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.w-auto input { accent-color: var(--accent); }
.w-input {
  width: 62px; font-family: var(--font-mono); font-size: 13px; text-align: right;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 7px; background: var(--bg); outline: none;
}
.w-input:disabled { opacity: .5; }
.w-input:focus { border-color: var(--accent); }
.sec-fac { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.mini-sw {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line);
  font-size: 12px; line-height: 1; color: var(--muted); background: var(--surface);
}
.mini-sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* выпадающие списки секции (мобильный системный пикер) */
.sec-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.row-sel { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; }
.row-sel .rs-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.row-sel select {
  width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-family: var(--font-ui); font-size: 14.5px; background: var(--bg);
  color: var(--ink); outline: none; appearance: auto;
}
.row-sel select:focus { border-color: var(--accent); }
.sec-compose { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* размеры на 3D (как у ПМ) */
.dim-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dim-lbl {
  position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: 10.5px;
  color: #8A8478; background: rgba(245,242,236,.85); border-radius: 6px; padding: 1px 5px;
  white-space: nowrap; will-change: transform;
}
.dim-lbl.big { font-size: 12px; font-weight: 700; color: var(--ink); }

/* попап высоты ячейки */
.cell-popup {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(35,33,30,.18); padding: 14px 16px; z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  width: min(320px, calc(100% - 32px));
}
.cell-popup.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cell-popup .cp-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.cell-popup .cp-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cell-popup .cp-row label { font-weight: 600; }
.cell-popup .cp-row input {
  width: 84px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 6px 10px; font-family: var(--font-mono); font-size: 15px; text-align: right;
  background: var(--bg); outline: none;
}
.cell-popup .cp-row input:focus { border-color: var(--accent); }
.cell-popup .cp-actions { display: flex; gap: 8px; margin-top: 12px; }
.cell-popup .cp-actions button {
  flex: 1; min-height: 42px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.cell-popup .cp-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.layout-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cab-note { font-size: 11.5px; color: var(--muted); flex-basis: 100%; margin-top: 4px; }
/* кнопка на 3D теперь «Открыть дверцы» */

.stage.pickable canvas { cursor: pointer; }
.swatch-group { margin-bottom: 6px; }
.swatch-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sec-card .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sec-card .sec-name { font-size: 13px; font-weight: 700; }
.sec-card .fill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .12s;
}
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-mini { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.chip-mini button { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 14px; line-height: 1; }
.chip-mini .n { font-family: var(--font-mono); font-size: 13px; min-width: 14px; text-align: center; }
.door-row { display: flex; gap: 6px; margin-top: 8px; }

/* свотчи цвета */
.swatches { display: flex; gap: 22px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line);
  position: relative; transition: transform .12s;
}
.swatch.on { border-color: var(--accent); transform: scale(1.08); }
.swatch.on::after {
  content: ""; position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 50%;
}
.swatch span {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--muted); white-space: nowrap; max-width: 64px;
  overflow: hidden; text-overflow: ellipsis;
}
.swatches { padding-bottom: 22px; }

/* тумблер задника */
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-row .lbl { font-size: 14px; font-weight: 600; }
.toggle-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 29px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: left .15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { left: 24px; }

/* ── Прайс-док (signature) ── */
.price-dock {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(35,33,30,.94); backdrop-filter: blur(12px); color: #fff;
  border-radius: 999px; padding: 12px 12px 12px 26px;
  box-shadow: 0 12px 40px rgba(35,33,30,.28); z-index: 60;
}
.price-dock .pd-left { display: flex; align-items: baseline; gap: 14px; position: relative; }
.price-dock .pd-label { font-size: 12px; color: rgba(255,255,255,.55); }
.price-dock .pd-price { font-family: var(--font-mono); font-size: clamp(17px, 2.6vw, 27px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price-dock .pd-price.thinking { opacity: .45; }
.price-dock .pd-meta { font-size: 12px; color: rgba(255,255,255,.55); }
.price-dock .pd-cta {
  background: var(--accent); color: #fff; border-radius: 999px; padding: 14px 28px;
  font-size: 15px; font-weight: 700; transition: background .15s; white-space: nowrap;
}
.price-dock .pd-cta:hover { background: var(--accent-deep); }
.delta-badge {
  position: absolute; top: -34px; left: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 999px; padding: 5px 12px; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.delta-badge.neg { background: #E4F0EA; color: var(--ok); }
.delta-badge.show { opacity: 1; transform: translateY(0); }

/* ── Контентные секции ниже ── */
.section { width: min(1180px, calc(100% - 24px)); margin: 90px auto 0; }
.section h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -.01em; margin-bottom: 28px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-card .ico { font-size: 26px; margin-bottom: 12px; }
.step-card h3 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-card { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px; }
.why-card h3 { font-size: 15px; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--muted); }

.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.preset-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: left; transition: border-color .15s, transform .15s;
}
.preset-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.preset-card .pc-scheme { font-family: var(--font-mono); font-size: 22px; letter-spacing: 3px; margin-bottom: 10px; color: var(--accent); }
.preset-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.preset-card .pc-dims { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.preset-card .pc-open { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent); }

.sec-sub { color: var(--muted); font-size: 14px; margin: -16px 0 24px; }

/* живые расцветки */
.colors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.color-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: var(--surface);
}
.color-card img, .color-card canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.color-card .cc-label {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 8px 12px;
}
.color-card .cc-name { font-size: 14px; font-weight: 700; }
.color-card .cc-sub { font-size: 11.5px; color: var(--muted); }

/* отзывы покупателей (скриншоты с Kaspi — показываем целиком, кладкой) */
.works-grid { columns: 3; column-gap: 14px; }
.works-grid img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; margin-bottom: 14px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
@media (max-width: 900px) {
  .colors-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { columns: 2; }
}

.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-size: 14.5px; font-weight: 600; cursor: pointer; }
.faq p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

footer { margin: 90px 0 120px; text-align: center; color: var(--muted); font-size: 13px; }
footer .foot-brand { font-family: var(--font-display); color: var(--ink); font-size: 14px; margin-bottom: 8px; }

/* ── Модалка заказа ── */
.modal-back {
  position: fixed; inset: 0; background: rgba(35,33,30,.5); backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center; z-index: 100;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--surface); width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 26px 22px 30px;
}
.modal h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.modal .m-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.modal .m-price { font-family: var(--font-mono); font-weight: 700; color: var(--accent-deep); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: var(--font-ui); font-size: 15px; background: var(--bg); outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 64px; }
.pay-modes { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.pay-mode {
  display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 14px; cursor: pointer; transition: border-color .15s;
}
.pay-mode.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-mode input { margin-top: 3px; accent-color: var(--accent); }
.pay-mode .pm-t { font-size: 14px; font-weight: 600; }
.pay-mode .pm-s { font-size: 12px; color: var(--muted); }
.wa-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.wa-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.m-submit {
  width: 100%; background: var(--accent); color: #fff; border-radius: 999px;
  padding: 15px; font-size: 16px; font-weight: 700; margin-top: 8px; transition: background .15s;
}
.m-submit:hover { background: var(--accent-deep); }
.m-submit:disabled { opacity: .5; }
.m-close { position: absolute; } /* not used, close by backdrop */
.m-success { text-align: center; padding: 20px 0 10px; }
.m-success .big { font-size: 44px; margin-bottom: 10px; }
.m-success .num { font-family: var(--font-mono); font-weight: 700; }
.m-error { color: #B3261E; font-size: 13px; margin-top: 8px; display: none; }

/* ── Адаптив ── */
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  /* нав НЕ плавает на мобиле — иначе перекрывает липкую 3D и кнопку «Показать наполнение» */
  .nav { position: absolute; }
  /* 3D прилипает сверху — крутишь настройки и сразу видишь изменения (паттерн ПМ) */
  .stage-wrap { position: sticky; top: 0; z-index: 30; }
  .stage { height: 38vh; min-height: 260px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(35,33,30,.10); }
  .stage .hint { display: none; }
  /* выбранная в 3D секция встаёт ровно ПОД липкой сценой */
  .sec-card { scroll-margin-top: calc(38vh + 16px); }
  .sec-tabs { scroll-margin-top: calc(38vh + 16px); }
  /* чипы на 3D не должны съедать место: остаётся только размер, полупрозрачно */
  .stage .dims .dim-chip { display: none; }
  .stage .dims .dim-chip:first-child {
    display: inline-block; opacity: .55; font-size: 10.5px; padding: 3px 9px;
    background: rgba(255,255,255,.6);
  }
  .hero { padding-top: 84px; }
  .steps, .why, .presets { grid-template-columns: 1fr 1fr; }
  .nav .phone { display: none; }
  .panel { padding-bottom: 96px; }
  .price-dock { padding-left: 18px; }
  .modal-back { align-items: flex-end; }
}
@media (max-width: 540px) {
  .steps, .why, .presets { grid-template-columns: 1fr; }
  .slider-row { grid-template-columns: 64px 1fr 76px; gap: 8px; }
  .price-dock .pd-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
button:focus-visible, input:focus-visible, .track:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
