/* ==========================================================================
   Ясень · стили
   ========================================================================== */

:root {
  --bg: #f4efe8;
  --paper: #fbf8f3;
  --tile: #ebe4d9;
  --tile-2: #e3dacd;
  --ink: #1f1c19;
  --ink-2: #48423b;
  --muted: #847a6f;
  --line: #e1d8cb;
  --line-2: #d3c7b7;
  --accent: #2f4b3d;
  --accent-2: #3d5f4e;
  --accent-ink: #f4efe8;
  --clay: #b45a35;
  --gold: #b48d4b;
  --danger: #b8402c;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 8px 30px -12px rgba(40, 30, 20, .18);
  --shadow-l: 0 30px 80px -30px rgba(40, 30, 20, .35);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1360px;
  --gut: clamp(16px, 3vw, 32px);
  --header: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.55 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: #2f4b3d33; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.serif { font-family: var(--serif); font-weight: 500; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.02; }
h2.section-title { font-size: clamp(34px, 4.4vw, 54px); }

/* ---------------- полоса и шапка ---------------- */

.notice {
  background: var(--accent); color: #dfe7df; font-size: 12.5px; text-align: center; padding: 8px 16px; letter-spacing: .01em;
}
.notice a { color: #fff; border-bottom: 1px solid #ffffff55; }

.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo-mark { width: 30px; height: 30px; stroke: none; }
.logo-mark path { fill: var(--accent); }
.logo-mark .vein { fill: none; stroke: var(--bg); stroke-width: 1.3; }
.logo-word { font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: .01em; line-height: 1; margin-top: -4px; }
.logo-light .logo-mark path { fill: #e9e2d6; }
.logo-light .logo-mark .vein { stroke: var(--ink); }

.main-nav { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.main-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav a:hover { background: var(--tile); color: var(--ink); }
.main-nav a.active { color: var(--ink); background: var(--tile); }
.main-nav a svg { width: 17px; height: 17px; }
.nav-planner { color: var(--accent) !important; font-weight: 600; }

.header-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  transition: background .15s; color: var(--ink);
}
.icon-btn:hover { background: var(--tile); }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.icon-btn .count.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.35); } }
.burger { display: none; margin-left: -8px; }

/* ---------------- кнопки и поля ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .15s, transform .1s, box-shadow .15s, color .15s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 24px -12px #2f4b3d; }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.done { background: #355c47; }

.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-weight: 500; opacity: .6; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, .select, textarea.input {
  height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
textarea.input { height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px #2f4b3d1a; }
.input.bad { border-color: var(--danger); }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23847a6f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }

/* ---------------- главная: первый экран ---------------- */

.hero { padding: clamp(20px, 4vw, 44px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5vw, 76px); margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 17.5px; color: var(--ink-2); max-width: 470px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-stage-wrap { position: relative; }
.hero-stage {
  position: relative; aspect-ratio: 1.18; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 25%, #f8f4ee 0%, #ece4d8 58%, #e3d9cb 100%);
  box-shadow: inset 0 0 0 1px #00000008;
}
.hero-chip {
  position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: var(--shadow); max-width: calc(100% - 40px);
}
.hero-chip .t { font-weight: 700; font-size: 14px; }
.hero-chip .s { font-size: 12.5px; color: var(--muted); }
.hero-chip .go { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.drag-hint {
  position: absolute; right: 18px; top: 18px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center;
  background: #fbf8f3cc; padding: 7px 12px; border-radius: 999px; pointer-events: none; transition: opacity .5s;
}
.drag-hint svg { width: 15px; height: 15px; }
.hero-swatches { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.hero-swatches .label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------------- образцы ---------------- */

.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  --c: #ccc; width: 34px; height: 34px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  box-shadow: inset 0 0 0 1px #0000001a; transition: transform .15s;
}
.sw::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s; }
.sw:hover { transform: scale(1.08); }
.sw.on::after { border-color: var(--ink); }
.sw.t-boucle { background-image: radial-gradient(circle at 30% 30%, #ffffff55 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, #00000014 0 2px, transparent 3px), radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 82%, #000) 100%); background-size: 7px 7px, 9px 9px, 100% 100%; }
.sw.t-linen, .sw.t-weave { background-image: repeating-linear-gradient(0deg, #ffffff12 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #0000000f 0 1px, transparent 1px 3px), radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 80%, #000) 100%); }
.sw.t-velvet { background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 40%, color-mix(in srgb, var(--c) 70%, #000) 100%); }
.sw.t-leather { background: radial-gradient(circle at 30% 26%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 32%, color-mix(in srgb, var(--c) 75%, #000) 100%); }
.sw-sm { width: 14px; height: 14px; }
.sw-sm::after { inset: -2px; border-width: 1px; }
.sw-xs { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px #0000001f, 0 0 0 2px var(--paper); }

/* ---------------- секции главной ---------------- */

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 520px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; border-radius: var(--radius); background: var(--tile); overflow: hidden; aspect-ratio: 1.12;
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; transition: background .2s;
}
.cat-tile:hover { background: var(--tile-2); }
.cat-tile .name { font-family: var(--serif); font-size: 28px; line-height: 1; position: relative; z-index: 1; }
.cat-tile .n { font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.cat-tile img { position: absolute; inset: 14% -4% -4% -4%; width: 108%; height: 90%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat-tile:hover img { transform: scale(1.05) translateY(-2%); }

.band {
  border-radius: 32px; background: var(--accent); color: var(--accent-ink); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
}
.band-text { padding: clamp(28px, 5vw, 64px); }
.band h2 { font-size: clamp(36px, 4.6vw, 60px); margin: 14px 0 18px; }
.band p { color: #cfd9d1; max-width: 440px; margin: 0 0 28px; font-size: 16.5px; }
.band .eyebrow { color: #a9bcae; }
.band ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; color: #e3eae4; }
.band li { display: flex; gap: 10px; align-items: center; }
.band li svg { color: #b6d1bf; }
.band-media { position: relative; align-self: stretch; min-height: 340px; background: radial-gradient(90% 80% at 60% 45%, #4f6c5b 0%, #2f4b3d 70%); }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4% 4% 0 0; }

.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.mat { display: grid; gap: 10px; justify-items: start; }
.mat .sw { width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; }
.mat .sw::after { border-radius: 24px; }
.mat b { font-size: 14px; font-weight: 600; }
.mat span { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
.mat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perk { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.perk svg { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.4; }
.perk h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; }
.perk p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- карточки товаров ---------------- */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card-media {
  position: relative; display: block; aspect-ratio: 4 / 3.3; border-radius: var(--radius); background: var(--tile); overflow: hidden;
  transition: background .25s;
}
.card:hover .card-media { background: var(--tile-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .6s cubic-bezier(.2,.7,.2,1); opacity: 0; }
.card-media img.ready { opacity: 1; }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.main.has-alt { opacity: 0; }
.card:hover .card-media img.alt.ready { opacity: 1; }
.card:hover .card-media img { transform: scale(1.03); }
.badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink);
}
.badge.sale { background: var(--clay); color: #fff; }
.badge.new { background: var(--accent); color: #fff; }
.badge-3d {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px;
  background: #fbf8f3d9; display: flex; gap: 5px; align-items: center; opacity: 0; transform: translateY(4px); transition: .2s;
}
.badge-3d svg { width: 14px; height: 14px; }
.card:hover .badge-3d { opacity: 1; transform: none; }
.fav-btn {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #fbf8f3cc; transition: background .15s, transform .15s; color: var(--ink);
}
.fav-btn:hover { background: var(--paper); transform: scale(1.06); }
.fav-btn.on svg { fill: var(--clay); stroke: var(--clay); }
.card-body { display: grid; gap: 2px; padding: 0 2px; }
.card-title { font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.card-kind { font-size: 13.5px; color: var(--muted); }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.price s { font-weight: 500; color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.price .from { font-weight: 500; color: var(--muted); font-size: 13px; margin-right: 3px; }
.dots { display: flex; align-items: center; gap: 5px; }
.dots .more { font-size: 12px; color: var(--muted); margin-left: 2px; }
.skeleton { background: linear-gradient(100deg, transparent 30%, #ffffff55 50%, transparent 70%) var(--tile); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------------- каталог ---------------- */

.page-head { padding-top: 34px; padding-bottom: 10px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span.sep { opacity: .5; }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); margin-top: 14px; }
.page-head h1 sup { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 600; vertical-align: top; position: relative; top: 14px; margin-left: 6px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0 26px; flex-wrap: wrap; position: relative; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { height: 40px; border-radius: 999px; width: auto; font-size: 14px; font-weight: 600; }
.price-filter { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.price-filter input[type=range] { width: 140px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-size: 34px; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }

input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 24px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--line-2); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 3px; background: var(--line-2); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); margin-top: -7.5px; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }

/* ---------------- карточка товара ---------------- */

.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: clamp(20px, 3vw, 48px); padding-top: 18px; padding-bottom: 40px; align-items: start; }
.viewer {
  position: sticky; top: calc(var(--header) + 14px); height: min(76vh, 760px); min-height: 420px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 22%, #f9f5ef 0%, #ece4d8 60%, #e2d8ca 100%);
  box-shadow: inset 0 0 0 1px #00000008;
}
.viewer.fs { position: fixed; inset: 0; height: auto; z-index: 100; border-radius: 0; top: 0; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.grabbing .stage-canvas { cursor: grabbing; }
.stage-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dim-label {
  position: absolute; left: 0; top: 0; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--ink); color: var(--paper); white-space: nowrap; transition: opacity .2s; letter-spacing: .01em;
}
.dim-label.small { font-size: 11.5px; padding: 3px 8px; background: var(--paper); color: var(--ink-2); box-shadow: 0 1px 4px #0002; }
.dim-label.tag { background: var(--accent); }
.dim-label.tag.bad { background: var(--danger); }

.vbar { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 2; }
.vbar > * { pointer-events: auto; }
.seg {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #fbf8f3d9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px #0000000f;
}
.seg button { height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }
.seg button svg { width: 17px; height: 17px; }
.seg.icons button { width: 38px; padding: 0; justify-content: center; }
.vfoot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none; z-index: 2; }
.vfoot > * { pointer-events: auto; }
.vhint { font-size: 12px; color: var(--ink-2); font-weight: 600; background: #fbf8f3b3; padding: 6px 12px; border-radius: 999px; pointer-events: none !important; }
.action-pill {
  height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px -10px #000a; transition: background .15s, transform .1s;
}
.action-pill:hover { background: #3a342e; }
.action-pill.on { background: var(--gold); }
.viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }

.pinfo { padding-top: 6px; }
.pinfo h1 { font-size: clamp(54px, 5.6vw, 80px); margin: 8px 0 4px; }
.pinfo .kind { font-size: 16px; color: var(--ink-2); }
.pprice { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 4px; flex-wrap: wrap; }
.pprice .now { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.pprice s { color: var(--muted); font-size: 18px; }
.pprice .off { background: var(--clay); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.installment { font-size: 13.5px; color: var(--muted); }
.ptext { color: var(--ink-2); margin: 18px 0 6px; max-width: 520px; }

.opt { padding: 20px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { margin-top: 18px; }
.opt-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.opt-head b { font-weight: 700; }
.opt-head span { color: var(--muted); text-align: right; }
.opt-group + .opt-group { margin-top: 12px; }
.opt-group .gname { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.pill:hover { border-color: var(--line-2); }
.pill.on { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 .5px var(--ink); }
.pill small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: -3px; }
.pill.two { height: auto; padding: 8px 16px; text-align: left; }

.buy { display: flex; gap: 10px; padding: 22px 0 12px; border-top: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 50px; background: var(--paper); }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; }
.buy .btn-primary { flex: 1; }
.fav-big { width: 50px; height: 50px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex: none; }
.fav-big:hover { border-color: var(--line-2); }
.fav-big.on svg { fill: var(--clay); stroke: var(--clay); }
.try-room { width: 100%; margin-top: 2px; }
.facts { display: grid; gap: 12px; margin: 22px 0; padding: 18px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); }
.fact { display: flex; gap: 12px; font-size: 14px; }
.fact svg { color: var(--accent); margin-top: 1px; }
.fact b { display: block; font-weight: 700; }
.fact span { color: var(--muted); font-size: 13.5px; }

details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { transition: transform .2s; }
details.acc[open] summary svg { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 0 20px; color: var(--ink-2); font-size: 14.5px; }
.spec { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px 16px; margin: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }

/* ---------------- корзина ---------------- */

.scrim { position: fixed; inset: 0; background: #1f1c1966; z-index: 60; opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 61;
  display: flex; flex-direction: column; transform: translateX(102%); transition: transform .32s cubic-bezier(.3,.7,.2,1), visibility 0s .32s; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: var(--shadow-l); transition: transform .32s cubic-bezier(.3,.7,.2,1); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 32px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.line-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.li-media { width: 92px; height: 80px; border-radius: 12px; background: var(--tile); position: relative; overflow: hidden; }
.li-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.li-media img.ready { opacity: 1; }
.li-top { display: flex; justify-content: space-between; gap: 10px; }
.li-name { font-weight: 700; }
.li-cfg { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; line-height: 1.4; }
.li-bottom { display: flex; justify-content: space-between; align-items: center; }
.li-remove { color: var(--muted); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.li-remove:hover { color: var(--danger); background: var(--tile); }
.li-remove svg { width: 17px; height: 17px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.sum-row.total { font-size: 18px; color: var(--ink); font-weight: 700; margin: 12px 0 16px; }
.free-bar { height: 4px; border-radius: 2px; background: var(--line); margin: 4px 0 14px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty svg { width: 44px; height: 44px; stroke-width: 1.2; color: var(--line-2); margin: 0 auto 14px; }
.drawer-empty h4 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); margin: 0 0 6px; }

/* ---------------- оформление ---------------- */

.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: clamp(20px, 4vw, 56px); padding-top: 10px; padding-bottom: 70px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 34px); }
.form-card h3 { font-family: var(--serif); font-size: 30px; margin: 6px 0 18px; }
.form-card h3:not(:first-child) { margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; transition: border-color .15s; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.radio-card b { font-size: 14.5px; }
.radio-card span { font-size: 13px; color: var(--muted); }
.summary { position: sticky; top: calc(var(--header) + 20px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.summary h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.summary .line-item { grid-template-columns: 64px 1fr; padding: 12px 0; }
.summary .li-media { width: 64px; height: 56px; }
.demo-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; }
.demo-note svg { width: 16px; height: 16px; margin-top: 2px; }
.success { text-align: center; max-width: 600px; margin: 0 auto; padding-top: 70px; padding-bottom: 100px; }
.success .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 26px; }
.success .ok svg { width: 36px; height: 36px; stroke-width: 2; }
.success h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 14px; }
.success p { color: var(--ink-2); font-size: 16px; }

/* ---------------- планировщик ---------------- */

.planner { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--header) - 34px); height: calc(100dvh - var(--header) - 34px); min-height: 520px; border-top: 1px solid var(--line); }
.pl-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); min-height: 0; }
.pl-side-head { padding: 18px 18px 12px; }
.pl-side-head h1 { font-size: 34px; }
.pl-side-head p { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.pl-side .chips { padding: 0 18px 12px; margin: 0; }
.pl-side .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.pl-list { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.pl-item { border-radius: 14px; background: var(--tile); padding: 0 0 10px; text-align: left; transition: background .15s, transform .15s; position: relative; }
.pl-item:hover { background: var(--tile-2); }
.pl-item:active { transform: scale(.98); }
.pl-item .im { aspect-ratio: 1.15; position: relative; }
.pl-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.pl-item img.ready { opacity: 1; }
.pl-item .nm { font-size: 13.5px; font-weight: 700; padding: 0 10px; line-height: 1.2; }
.pl-item .pr { font-size: 12px; color: var(--muted); padding: 0 10px; }
.pl-item .add { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 1px 3px #0001; }
.pl-item .add svg { width: 16px; height: 16px; }
.pl-main { position: relative; min-width: 0; overflow: hidden; }
.pl-stage { position: absolute; inset: 0; }
.pl-stage.can-grab .stage-canvas { cursor: move; }
.pl-stage.dragging .stage-canvas { cursor: grabbing; }
.pl-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 2; flex-wrap: wrap; }
.pl-top > * { pointer-events: auto; }
.pl-room { position: relative; }
.pl-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 290px; background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-l);
  display: grid; gap: 14px; z-index: 5;
}
.pl-pop h4 { margin: 0; font-size: 15px; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; font-size: 13px; font-weight: 600; }
.range-row input { grid-column: 1 / -1; width: 100%; }
.range-row output { color: var(--muted); }
.pl-sel {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 14px;
  background: var(--paper); border-radius: 18px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow-l); max-width: calc(100% - 28px);
}
.pl-sel .info { min-width: 0; }
.pl-sel .info b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sel .info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pl-sel .sw-row { gap: 6px; flex-wrap: nowrap; }
.pl-sel .sw { width: 24px; height: 24px; }
.pl-sel .sw::after { inset: -3px; }
.pl-sel .tools { display: flex; gap: 2px; }
.pl-sel .tools .icon-btn { width: 38px; height: 38px; }
.pl-sel .tools .icon-btn:hover { background: var(--tile); }
.pl-sel .tools .danger:hover { color: var(--danger); }
.pl-sel .vr { width: 1px; align-self: stretch; background: var(--line); }
.pl-sum {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 14px;
  background: #fbf8f3e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
}
.pl-sum .t { font-size: 14px; color: var(--ink-2); }
.pl-sum .t b { color: var(--ink); font-size: 16px; }
.pl-sum .sp { flex: 1; }
#plClear.warn { border-color: var(--danger); color: var(--danger); }
.pl-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 1; max-width: 360px; padding: 26px; border-radius: 22px; background: #fbf8f3d9; }
.pl-hint h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.pl-hint p { margin: 0; color: var(--ink-2); font-size: 14px; }
.planner.evening .pl-sum { background: #2b2a2ce6; color: #eee; }
.planner.evening .pl-sum .t, .planner.evening .pl-sum .t b { color: #f2ede5; }
.planner.evening .pl-sum .btn-ghost { color: #f2ede5; border-color: #ffffff40; }
.planner.evening .vhint { background: #2b2a2cb3; color: #ddd; }
.pl-tip { font-size: 12px; }

/* ---------------- поиск ---------------- */

.search-layer { position: fixed; inset: 0; z-index: 70; background: #f4efe8f2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 14px; overflow-y: auto; }
.search-box { display: flex; align-items: center; gap: 14px; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; padding-top: 24px; }
.search-box input { flex: 1; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); outline: none; padding: 6px 0; min-width: 0; }
.search-ico { width: 30px; height: 30px; color: var(--muted); }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; padding-top: 22px; padding-bottom: 40px; }
.sr { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; transition: background .15s; }
.sr:hover, .sr.hl { background: var(--tile); }
.sr .li-media { width: 76px; height: 64px; }
.sr b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.sr span { font-size: 13px; color: var(--muted); }
.search-empty { color: var(--muted); padding: 10px 0; grid-column: 1 / -1; }

/* ---------------- мобильное меню ---------------- */

.mobile-nav { position: fixed; inset: var(--header) 0 0 0; z-index: 39; background: var(--bg); padding: 12px var(--gut) 30px; overflow-y: auto; display: grid; align-content: start; }
.mobile-nav a { font-family: var(--serif); font-size: 34px; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a small { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ---------------- тосты ---------------- */

.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  background: var(--ink); color: var(--paper); padding: 11px 12px 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-l); pointer-events: auto; animation: toast-in .3s cubic-bezier(.2,.8,.2,1);
}
.toast a, .toast button { color: #e8c98f; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.toast a:hover, .toast button:hover { background: #ffffff14; }
.toast.out { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------------- подвал ---------------- */

.site-footer { background: var(--ink); color: #cfc7bb; padding: 64px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #8f877c; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 14px; font-weight: 600; }
.footer-grid a:not(.logo) { display: block; padding: 4px 0; font-size: 14.5px; }
.footer-grid a:not(.logo):hover { color: #fff; }
.site-footer .logo-word { color: #f4efe8; }
.footer-note { font-size: 14px; max-width: 340px; color: #a59d91; margin: 16px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #ffffff1a; margin-top: 46px; padding-top: 20px; font-size: 13px; color: #8f877c; }
body.planner-page .site-footer { display: none; }

/* ---------------- появление ---------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: page-in .45s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- адаптив ---------------- */

@media (max-width: 1180px) {
  .main-nav a:not(.nav-planner):not([data-nav=catalog]) { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .product, .checkout, .band { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 28px; }
  .viewer { position: relative; top: 0; height: 64vh; min-height: 380px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-media { min-height: 280px; }
  .summary { position: static; }
  .planner { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pl-hint { max-width: calc(100% - 40px); padding: 20px; }
  .pl-hint h3 { font-size: 26px; }
  .pl-side { order: 2; border-right: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  .pl-side-head { display: none; }
  .pl-side .chips { padding-top: 12px; }
  .pl-list { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header: 60px; }
  body { font-size: 14.5px; }
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .logo-word { font-size: 28px; }
  .header-row { gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card-title { font-size: 21px; }
  .card-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price { font-size: 15px; }
  .hero-stage { aspect-ratio: 1; border-radius: 22px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 30px; }
  .hero-chip { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .perks { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .vbar { flex-direction: column; align-items: flex-start; }
  .seg button { padding: 0 10px; font-size: 12.5px; }
  .pprice .now { font-size: 28px; }
  .form-grid, .radio-cards { grid-template-columns: 1fr; }
  .toolbar-right { width: 100%; flex-wrap: wrap; }
  .toolbar-right .select { flex: 1; }
  .price-filter { width: 100%; }
  .price-filter input[type=range] { flex: 1; }
  .price-filter input[type=range] { width: 110px; }
  .pl-sel { bottom: 70px; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px; }
  .pl-sel .vr { display: none; }
  .pl-sum { left: 10px; right: 10px; bottom: 10px; gap: 8px; padding: 6px 6px 6px 14px; }
  .pl-sum .t { font-size: 13px; white-space: nowrap; }
  .pl-sum .lg, #plClear:not(.warn) span { display: none; }
  #plClear { padding: 0 12px; }
  .pl-sel { bottom: 64px; }
  .pl-top .seg button { padding: 0 10px; }
  .pl-sum { padding-left: 14px; }
  .pl-sum .btn { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:nth-child(3) h4 { display: none; }
  .drag-hint { display: none; }
}

/* ---------------- конструктор корпусной мебели ---------------- */

.band-light { background: var(--tile); color: var(--ink); grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.band-light p { color: var(--ink-2); }
.band-light .eyebrow { color: var(--muted); }
.band-light ul { color: var(--ink-2); }
.band-light li svg { color: var(--accent); }
.band-light .band-media { background: radial-gradient(90% 80% at 45% 45%, #f6f1ea 0%, #e2d8ca 75%); }
.band-light .band-media img { padding: 4%; }

.cab { display: grid; grid-template-columns: minmax(0, 1fr) 430px; height: calc(100vh - var(--header) - 34px); height: calc(100dvh - var(--header) - 34px); min-height: 560px; border-top: 1px solid var(--line); }
.cab-stage { position: relative; min-width: 0; background: radial-gradient(120% 90% at 50% 22%, #f9f5ef 0%, #ece4d8 60%, #e2d8ca 100%); }
.cab-view { position: absolute; inset: 0; }
.cab-stage .vfoot { flex-wrap: wrap; }
.cab-stage .seg button span { white-space: nowrap; }
.seg button:disabled { opacity: .35; cursor: default; }
.cab-panel { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-left: 1px solid var(--line); }
.cab-head { padding: 18px 22px 10px; }
.cab-head h1 { font-size: 36px; margin: 4px 0 2px; }
.cab-dims { font-size: 13px; color: var(--muted); font-weight: 600; }
.cab-steps { display: flex; justify-content: space-between; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cab-steps::-webkit-scrollbar { display: none; }
.cab-steps button { padding: 12px 3px 11px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; white-space: nowrap; position: relative; }
.cab-steps button i { font-style: normal; width: 19px; height: 19px; border-radius: 50%; background: var(--tile); color: var(--ink-2); font-size: 11px; display: grid; place-items: center; }
.cab-steps button:hover { color: var(--ink); }
.cab-steps button.on { color: var(--ink); border-bottom-color: var(--ink); }
.cab-steps button.on i { background: var(--ink); color: var(--paper); }
.cab-steps button.warn::after { content: ''; position: absolute; top: 8px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.cab-body { flex: 1; overflow-y: auto; padding: 16px 22px 24px; }
.cab-body .opt:first-of-type { margin-top: 0; }
.cab-body .opt { padding: 18px 0; }
.cab-lead { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.cab-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.cab-foot b { font-size: 22px; font-weight: 700; }
.btn.disabled { opacity: .45; pointer-events: none; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { text-align: left; border-radius: 16px; background: var(--tile); padding: 0 12px 12px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; display: grid; gap: 2px; }
.tpl:hover { background: var(--tile-2); }
.tpl.on { border-color: var(--ink); background: #fff; }
.tpl .im { aspect-ratio: 1.15; position: relative; margin: 0 -12px 4px; }
.tpl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.tpl img.ready { opacity: 1; }
.tpl b { font-size: 14.5px; }
.tpl span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.tpl small { font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-top: 4px; }

.num-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.num-row label { font-weight: 700; font-size: 14px; }
.num-row input[type=range] { grid-column: 1 / -1; width: 100%; }
.num-row small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.num { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; height: 42px; }
.num button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.num button svg { width: 15px; height: 15px; }
.num input { width: 64px; border: 0; background: transparent; text-align: right; font-weight: 700; font-size: 15px; outline: none; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num span { font-size: 12px; color: var(--muted); padding: 0 2px 0 4px; }
.pill.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.sec-count { display: flex; align-items: center; gap: 6px; }
.sec-count b { min-width: 24px; text-align: center; font-size: 18px; }
.sec-count .icon-btn { border: 1.5px solid var(--line); width: 38px; height: 38px; }
.sec-count .chip { margin-left: auto; height: 34px; }
.sec-widths { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.sw-in { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 10px; background: #fff; }
.sw-in > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.sw-in input { width: 100%; min-width: 0; border: 0; outline: none; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.sw-in input.auto { color: var(--muted); }
.sw-in input::-webkit-outer-spin-button, .sw-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mini { height: 26px; padding: 0 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--tile); flex: none; }
.mini.on { background: var(--accent); color: #fff; }

.sec-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.sec-tabs .chip { height: 34px; padding: 0 12px; font-size: 13px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.presets .chip { height: 32px; padding: 0 11px; font-size: 12.5px; }
.cells { display: grid; gap: 6px; }
.cell-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 128px auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.cell-row.k-drawer { background: #f1ebe1; }
.cell-row.k-rail { background: #eef1ec; }
.cell-ico { display: grid; place-items: center; color: var(--ink-2); }
.cell-row select { height: 34px; border: 0; background: transparent; font-weight: 700; font-size: 13.5px; outline: none; cursor: pointer; min-width: 0; }
.cell-h { display: flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 8px; }
.cell-h input { width: 100%; min-width: 0; border: 0; outline: none; font-weight: 700; font-size: 13.5px; background: transparent; -moz-appearance: textfield; }
.cell-h input::placeholder { color: var(--muted); font-weight: 600; }
.cell-h input::-webkit-outer-spin-button, .cell-h input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cell-tools { display: flex; gap: 0; }
.cell-tools button { width: 26px; height: 30px; border-radius: 8px; color: var(--ink-2); font-weight: 700; display: grid; place-items: center; }
.cell-tools button:hover:not(:disabled) { background: var(--tile); color: var(--ink); }
.cell-tools button:disabled { opacity: .25; cursor: default; }
.cell-tools svg { width: 14px; height: 14px; }
.cell-add { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.cell-add .btn { height: 36px; padding: 0 12px; gap: 4px; font-size: 13px; }
.cell-add .btn svg { width: 15px; height: 15px; }

.issue { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #f6efe0; color: #6b4f1d; margin-top: 8px; }
.issue svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.issue.err { background: #f8e4df; color: #8a2f1f; }
.issue.ok { background: #e7efe9; color: #2f4b3d; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.kpis div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpis b { display: block; font-size: 24px; font-family: var(--serif); font-weight: 600; line-height: 1.1; }
.kpis span { font-size: 12.5px; color: var(--muted); }
.spec.cost { grid-template-columns: 1fr auto; font-size: 13.5px; }
.spec.cost dd { text-align: right; white-space: nowrap; }
.spec .tot { font-weight: 700; color: var(--ink); font-size: 15px; border-top: 1px solid var(--line); padding-top: 9px; }
.deliver { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.deliver li { display: flex; gap: 10px; align-items: flex-start; }
.deliver svg { color: var(--accent); width: 18px; height: 18px; flex: none; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.row-btns .btn { height: 36px; padding: 0 12px; font-size: 13px; gap: 5px; }
.row-btns .btn svg { width: 15px; height: 15px; }

/* ---------------- документ для производства ---------------- */

body.doc-page { background: #e9e3da; }
.doc-bar { position: sticky; top: var(--header); z-index: 30; background: #e9e3dae6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.doc-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.doc-bar .back svg { transform: rotate(180deg); }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-actions .btn { gap: 6px; }
.doc { padding-top: 24px; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
.doc-err { width: min(100%, 1120px); }
.sheet-a4 { width: min(100%, 1120px); background: #fff; border-radius: 6px; box-shadow: 0 2px 10px #0000001a; padding: 38px 42px 0; display: flex; flex-direction: column; position: relative; }
.sheet-a4 h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; font-weight: 700; }
.sheet-h { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.doc-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.doc-title h1 { font-size: 52px; margin: 6px 0 4px; }
.doc-title p { margin: 0; color: var(--ink-2); }
.doc-price { text-align: right; }
.doc-price span { display: block; font-size: 12px; color: var(--muted); }
.doc-price b { font-size: 28px; }
.doc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.shot { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; background: radial-gradient(120% 90% at 50% 22%, #f9f5ef 0%, #ece4d8 70%); overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sheet-a4 .spec { font-size: 13.5px; gap: 7px 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tbl.parts td:first-child { font-weight: 700; }
.tbl .note-c { font-size: 12px; color: var(--ink-2); }
.notes { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.draw { width: 100%; height: auto; display: block; }
.draw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: end; flex: 1; }
.draw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: end; }
.draw-pair figure, .draw-row figure { margin: 0; }
.draw-pair svg { max-height: 640px; }
.draw-row svg { max-height: 600px; }
.draw-pair figcaption { text-align: center; font-size: 13px; font-weight: 700; margin-top: 8px; }
.sheet .draw, svg.sheet { max-height: 640px; }
.stamp { display: grid; grid-template-columns: 2.2fr 1.4fr .8fr 1fr .8fr; border: 1.5px solid var(--ink); margin: 26px -14px 18px; font-size: 12px; }
.stamp > div { padding: 7px 10px; border-left: 1px solid var(--ink); display: grid; gap: 1px; }
.stamp > div:first-child { border-left: 0; }
.stamp span { color: var(--muted); font-size: 11px; }
.stamp b { font-size: 12.5px; }

.modal { position: fixed; inset: 0; z-index: 80; background: #1f1c1980; display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-l); }
.modal-card h2 { font-size: 40px; margin: 6px 0 8px; }
.modal-card .form-grid { margin-top: 18px; }
.modal-x { position: absolute; right: 12px; top: 12px; }

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body, body.doc-page { background: #fff; }
  .notice, .site-header, .site-footer, .doc-bar, .toasts, .doc-err, .modal, .drawer, .scrim { display: none !important; }
  .page-enter { animation: none; }
  .doc { padding: 0; gap: 0; max-width: none; }
  .sheet-a4 { width: 100%; box-shadow: none; border-radius: 0; padding: 0; break-after: page; }
  .sheet-a4:last-child { break-after: auto; }
  .stamp { margin: auto 0 0; }
  .draw-pair svg, .draw-row svg, svg.sheet { max-height: 150mm; }
  .tbl { font-size: 10.5px; }
  .doc-shots { margin-top: 8px; }
  .doc-shots .shot { aspect-ratio: auto; height: 46mm; }
  .notes { font-size: 10.5px; }
  .stamp { font-size: 10px; }
  .stamp > div { padding: 3px 8px; }
  .doc-title { padding-bottom: 8px; }
  .doc-title h1 { font-size: 30px; }
  .sheet-a4 h3 { margin: 10px 0 4px; }
  .sheet-a4 .spec { font-size: 11px; gap: 3px 12px; }
  .tbl td, .tbl th { padding: 4px 6px; }
}

@media (max-width: 1100px) {
  .cab { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 860px) {
  .cab { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46vh minmax(0, 1fr); height: auto; min-height: 0; }
  .cab-panel { border-left: 0; border-top: 1px solid var(--line); }
  .cab-body { overflow: visible; }
  .cab-foot { position: sticky; bottom: 0; }
  .cab-stage .vfoot .vhint { display: none; }
  .doc-cols, .draw-pair, .doc-shots { grid-template-columns: 1fr; }
  .sheet-a4 { padding: 22px 18px 0; }
  .stamp { grid-template-columns: 1fr 1fr; margin: 20px 0 14px; }
  .stamp > div:nth-child(odd) { border-left: 0; }
  .stamp > div { border-top: 1px solid var(--ink); }
  .stamp > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .tbl { display: block; overflow-x: auto; max-width: 100%; }
  .tbl th { white-space: normal; }
  .sheet-a4 > * { min-width: 0; max-width: 100%; }
  .doc-title { flex-direction: column; align-items: flex-start; }
  .doc-price { text-align: left; }
  .band-light { grid-template-columns: 1fr; }
  .band-light .band-media { order: -1; }
}
@media (max-width: 760px) {
  .cab-head h1 { font-size: 30px; }
  .cab-stage .seg button span { display: none; }
  .cab-stage .seg button { padding: 0 11px; }
  .cell-row { grid-template-columns: 26px minmax(0, 1fr) 104px; }
  .cell-tools { grid-column: 2 / -1; justify-content: flex-end; margin-top: -4px; }
}

/* ---------------- конструктор: интерактив и новые блоки ---------------- */

.cab-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.cab-labels .dim-label.w { background: var(--accent); }
.cab-labels .dim-label.h { background: #fbf8f3f0; color: var(--ink); box-shadow: 0 1px 4px #0002; }
.cab-labels .dim-label.tot { background: var(--ink); }
.cab-tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; max-width: 340px; padding: 10px 12px; border-radius: 12px;
  background: #1f1c19f0; color: #f4efe8; font-size: 12.5px; line-height: 1.4; display: grid; gap: 2px; box-shadow: 0 10px 30px -10px #000a;
}
.cab-tip b { font-size: 13.5px; }
.cab-tip span { color: #cfc7bb; }
.cab-tip em { font-style: normal; color: #e8c98f; margin-top: 3px; }
.cab-tip.drag { background: var(--accent); font-size: 15px; text-align: center; }
.cab-stage.can-drag-v .stage-canvas { cursor: ns-resize; }
.cab-stage.can-drag-h .stage-canvas { cursor: ew-resize; }
.cab-stage.dragging .stage-canvas { cursor: grabbing; }
.cab-stage .vhint { display: inline-flex; align-items: center; gap: 6px; }
.cab-stage .vhint svg { width: 15px; height: 15px; }
.cab-foot-btns { display: flex; gap: 8px; }
.cab-foot-btns .btn-ghost { width: 50px; padding: 0; }
.cab-foot .btn:disabled { opacity: .4; cursor: default; }
.num-row.dis .num { background: var(--tile); }
.num input:disabled { color: var(--ink-2); }
.opt-sub { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; display: grid; gap: 8px; }
.niche { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 4px 0 4px; }
.niche-pic { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.niche-pic svg { width: 100%; height: 140px; display: block; }
.niche-in { display: grid; gap: 10px; }
.ng { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ng b { grid-column: 1 / -1; font-size: 13px; }
.ni { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ni input { height: 38px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 8px; font-weight: 700; background: #fff; width: 100%; min-width: 0; outline: none; }
.ni input:focus { border-color: var(--accent); }
.fit { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #e7efe9; color: #2f4b3d; font-size: 13px; }
.fit div { display: flex; justify-content: space-between; gap: 10px; }
.fit span { color: #557463; }
.sag { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.sag-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sag-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sag.bad .sag-bar i { background: var(--danger); }
.sag.bad b { color: var(--danger); }
.slide-fills { display: grid; gap: 8px; }
.slide-fills > div { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.slide-fills > div > span { width: 64px; color: var(--muted); }
.spec .grp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 6px; }
.tbl td.bad { color: var(--danger); }
.doc-shots.three { grid-template-columns: repeat(3, 1fr); }
.assembly { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.shot.big { aspect-ratio: 4 / 3.2; margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; font-size: 13px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.steps b { font-size: 13.5px; }
.steps span { color: var(--ink-2); }
.parts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.part-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.part-card figcaption { display: grid; gap: 2px; }
.part-card figcaption b { font-size: 14px; }
.part-card figcaption span { font-size: 12px; color: var(--muted); }
.part-card svg { max-height: 280px; }
.tbl.mini { font-size: 11.5px; }
.tbl.mini td { padding: 3px 6px; }
.draw-pair.one { grid-template-columns: 1.4fr 1fr; align-items: start; }
.draw-pair.one svg { max-height: 560px; }

@media print {
  .doc-shots.three .shot { height: 46mm; }
  .assembly .shot.big { height: 92mm; aspect-ratio: auto; }
  .steps { gap: 4px; }
  .steps li { font-size: 10px; }
  .steps b { font-size: 10.5px; }
  .part-card svg { max-height: 30mm; }
  .parts-grid { gap: 6px; }
  .part-card { padding: 5px; gap: 3px; }
  .part-card figcaption b { font-size: 11px; }
  .part-card figcaption span { font-size: 9px; }
  .tbl.mini { font-size: 8px; }
  .tbl.mini td { padding: 1px 4px; }
  .tbl.parts { font-size: 9px; }
  .tbl.parts td, .tbl.parts th { padding: 2px 4px; }
  .sheet-a4 .doc-cols .tbl { font-size: 9px; }
  .sheet-a4 .doc-cols .tbl td, .sheet-a4 .doc-cols .tbl th { padding: 2px 5px; }
  .sheet-a4 .spec.cost { font-size: 9.5px; gap: 1px 10px; }
  .sheet-h { font-size: 15px; margin-bottom: 6px; }
  .fine { font-size: 9px; margin-top: 4px; }
}
@media (max-width: 860px) {
  .doc-shots.three, .assembly, .parts-grid, .draw-pair.one { grid-template-columns: 1fr; }
  .cab-tip { display: none !important; }
}

.perf-hud {
  position: fixed; left: 12px; bottom: 12px; z-index: 95; pointer-events: none; padding: 8px 11px; border-radius: 10px;
  background: #111c; color: #d7f5d0; font: 600 11.5px/1.45 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; backdrop-filter: blur(6px);
}
.perf-hud b { color: #fff; }

/* ---------------- AR ---------------- */
.ar-qr { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin: 16px 0 6px; font-size: 14px; color: var(--ink-2); }
.ar-qr .qr { background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line); }
.ar-qr .qr svg { width: 100%; height: auto; display: block; }
.ar-qr p { margin: 0 0 8px; }
.xr-overlay { position: fixed; inset: 0; z-index: 200; pointer-events: none; color: #fff; font: 600 15px var(--sans); }
.xr-overlay button { pointer-events: auto; background: #1f1c19d9; color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 700; }
.xr-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-shadow: 0 1px 4px #000; }
.xr-hint { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); background: #1f1c19b3; padding: 8px 14px; border-radius: 999px; font-size: 13px; text-align: center; width: max-content; max-width: 90vw; }
.xr-bottom { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 12px; }
@media (max-width: 600px) { .ar-qr { grid-template-columns: 1fr; } .ar-qr .qr { width: 200px; } }
.try-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.try-row .btn { padding: 0 12px; }
.ar-prompt { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 92; display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow-l); font-weight: 600; font-size: 14px; width: max-content; max-width: calc(100vw - 24px); }
@media (max-width: 760px) { .try-row { grid-template-columns: 1fr; } .ar-prompt span { display: none; } }
.cab-h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; font-weight: 700; }
.presets-grid { margin-bottom: 22px; }

/* ---------------- метки-пояснения ---------------- */
.stage-labels .spot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; transition: opacity .25s; margin: -14px 0 0 -14px; }
.spot i { width: 28px; height: 28px; border-radius: 50%; background: #fbf8f3; color: var(--ink); font-style: normal; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fbf8f366, 0 4px 14px -4px #0006; transition: transform .2s, background .2s; }
.spot:hover i, .spot.open i { background: var(--accent); color: #fff; transform: scale(1.08); }
.spot span { display: none; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 10px; max-width: 230px; text-align: left; line-height: 1.35; box-shadow: var(--shadow-l); }
.spot:hover span, .spot.open span { display: block; }
.spot.back { opacity: 0; pointer-events: none; }
