/* kazandoors — дизайн-система в грамматике shadcn/ui (zinc + один акцент), Geist, motion в духе transitions.dev */

/* ---------- Tokens ---------- */
:root {
  --background: #fafafa;
  --card: #ffffff;
  --foreground: #09090b;
  --muted: #f4f4f5;
  --muted-2: #e4e4e7;
  --muted-foreground: #6b6b74;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --input: #e4e4e7;
  --ring: #bc4749;
  --primary: #bc4749;
  --primary-hover: #a93e40;
  --primary-foreground: #ffffff;
  --primary-soft: #fbeeee;
  --primary-soft-2: #f5d9da;
  --success: #15803d;
  /* Радиусы: одна шкала. Вложенный угол = внешний − отступ (концентрично), пол 6px. */
  --radius-xs: 6px;   /* мелкое: фокус-кольцо, вложенное в 12px */
  --radius-sm: 8px;   /* табы, пресеты, вложенные картинки */
  --radius: 12px;     /* кнопки, инпуты, миниатюры, чипы-плитки */
  --radius-lg: 16px;  /* карточки, сцена, чеки */
  --radius-xl: 20px;  /* фотографии и большие поверхности */
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .04);
  --shadow-md: 0 1px 2px rgba(9, 9, 11, .05), 0 12px 32px -16px rgba(9, 9, 11, .18);
  --shadow-lg: 0 2px 4px rgba(9, 9, 11, .04), 0 24px 60px -24px rgba(9, 9, 11, .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
}

/* Geist: подмножество Latin + Cyrillic (34 КБ), preload в head. Пока грузится, текст показывает Arial с подогнанными метриками, поэтому не «прыгает». */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable-subset.woff2?v=2") format("woff2-variations"), url("../fonts/Geist-Variable-subset.woff2?v=2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.7%;
  ascent-override: 85.4%;
  descent-override: 20.4%;
  line-gap-override: 9.3%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--primary-soft-2); color: var(--foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-xs); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Typography ---------- */
.h1 { font-size: clamp(2.25rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--muted-foreground); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted-foreground); }
.small { font-size: .875rem; }
.accent { color: var(--primary); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head .lead { margin-top: 14px; }
/* Заголовок слева, описание справа по сетке (с планшета); на телефоне — столбиком */
@media (min-width: 900px) {
  .section-head-split { max-width: none; display: grid; grid-template-columns: 6fr 6fr; gap: 24px 48px; align-items: start; }
  .section-head-split .h2 { max-width: none; }
  .section-head-split .lead { margin-top: .3em; max-width: 56ch; }
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(32px, 4.2vw, 60px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section + .section { border-top: 1px solid var(--border); }
.grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-5-7 { grid-template-columns: 5fr 7fr; }
  .grid-7-5 { grid-template-columns: 7fr 5fr; }
}

/* ---------- Buttons (shadcn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, box-shadow .18s, color .18s;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 20px -10px rgba(188,71,73,.6); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 12px 24px -10px rgba(188,71,73,.7); }
.btn-outline { background: var(--card); border-color: var(--border-strong); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .label { opacity: .7; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badge / Chip / Card ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 500; border: 1px solid var(--border); background: var(--card); color: var(--foreground);
}
.badge-accent { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary); }
.badge-solid { background: var(--foreground); border-color: var(--foreground); color: #fff; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.hairline { border-top: 1px solid var(--border); }
.check { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); align-items: center; justify-content: center; flex: none; }
.check svg { width: 12px; height: 12px; }

/* Spotlight card (originkit-style, pointer-tracked radial border) */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(188,71,73,.12), transparent 60%);
  transition: opacity .35s var(--ease-out);
}
.spot:hover::before { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(250,250,250,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(250,250,250,.86); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* Логотип: вектор 128×32 (4:1), масштабируется от высоты; цвет бренда #611025 */
.logo { display: block; height: 48px; width: auto; aspect-ratio: 196 / 59; color: #611025; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand small { display: block; font-size: .74rem; color: var(--muted-foreground); line-height: 1.25; letter-spacing: 0; }
.footer-logo .logo { height: 44px; }
@media (max-width: 640px) { .logo { height: 38px; } }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--muted-foreground); transition: color .18s, background-color .18s; }
.nav-links a:hover { color: var(--foreground); background: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: none; font-weight: 500; font-size: .95rem; letter-spacing: -.01em; }
.nav-phone small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted-foreground); line-height: 1.1; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-phone { display: block; } }
@media (max-width: 640px) { .nav .btn { height: 38px; padding: 0 14px; font-size: .875rem; } .brand small { display: none; } }

/* ---------- Hero (canon) ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 56px; } }
.hero-copy .h1 { margin-top: 18px; }
.hero-copy .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 4; background: var(--muted); box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.is-loaded .hero-photo img { transform: scale(1); }
.hero-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(9,9,11,.08); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.hero-card-list { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--foreground); }
.hero-card-list span { display: inline-flex; align-items: center; gap: 5px; }
.hero-card-list .check { width: 16px; height: 16px; } .hero-card-list .check svg { width: 9px; height: 9px; }
.hero-card-price { text-align: right; }
.hero-card-price strong { display: block; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1; }
.hero-card-price small { color: var(--muted-foreground); font-size: .72rem; }
@media (min-width: 960px) { .hero-card { left: 20px; right: auto; min-width: 380px; } }
@media (max-width: 959px) { .hero-card { position: static; margin-top: 12px; background: var(--card); } .hero-photo { aspect-ratio: 4 / 3; } }

/* Word-by-word blur reveal (transitions.dev) */
.words .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(5px); animation: wordIn .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .8s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Scroll reveal: только opacity и transform — их анимирует композитор без перерисовки.
   filter: blur() здесь не используем: блоки крупные (сетки фото, рендеры дверей с drop-shadow),
   размытие перерисовывало их каждый кадр и подтормаживало на телефонах. */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], .words .w, .fade-up { opacity: 1; transform: none; filter: none; animation: none; } }

/* ---------- Marquee (одна на страницу): 12 моделей ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 8px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { width: 132px; flex: none; text-align: center; }
.marquee-item img { width: 100%; aspect-ratio: 648 / 1440; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(9,9,11,.14)); transition: transform .5s var(--ease-out); }
.marquee-item:hover img { transform: translateY(-6px); }
.marquee-item span { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; width: auto; overflow-x: auto; } .marquee-item[aria-hidden] { display: none; } }

/* ---------- Included (состав комплекта) ---------- */
.included-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .included-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.included-door { position: relative; display: grid; place-items: center; padding: 24px; border-radius: var(--radius-xl); background: linear-gradient(180deg, #f4f4f5, #ececee); }
.included-door img { width: min(100%, 300px); max-height: 440px; aspect-ratio: 648/1440; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(9,9,11,.22)); }
.included-list { display: grid; gap: 0; }
.included-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.included-item:last-child { border-bottom: 1px solid var(--border); }
.included-thumb { width: 56px; height: 56px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.included-thumb img { width: 100%; height: 100%; object-fit: cover; }
.included-thumb svg { width: 24px; height: 24px; color: var(--muted-foreground); }
.included-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.included-item p { font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Configurator ---------- */
.cfg { display: grid; gap: 28px; }
@media (min-width: 1024px) { .cfg { grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 380px); gap: clamp(24px, 3vw, 40px); align-items: start; } }
.cfg-main { min-width: 0; display: grid; gap: 40px; }
.cfg-step { display: grid; gap: 16px; }
.cfg-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cfg-step-head .h3 { display: flex; align-items: center; gap: 10px; }
.cfg-step-head .h3 .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--foreground); color: #fff; font-size: .8rem; font-weight: 600; }
.cfg-step-head .value { font-size: .9rem; color: var(--muted-foreground); }
.cfg-step-head .value b { color: var(--foreground); font-weight: 500; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--muted); border-radius: var(--radius); max-width: 100%; }
.tab { height: 34px; padding: 0 12px; border-radius: calc(var(--radius) - 3px); font-size: .85rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; transition: color .18s, background-color .18s, box-shadow .18s; }
.tab[aria-selected="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .models { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1200px) { .models { grid-template-columns: repeat(6, 1fr); } }
.model {
  position: relative; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 10px 10px 12px;
  transition: border-color .2s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out); display: grid; gap: 2px;
}
.model img { margin-bottom: 6px; }
.model:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.model[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2), var(--shadow-md); }
.model.is-hidden { display: none; }
.model img { width: 100%; aspect-ratio: 648 / 1440; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(9,9,11,.14)); transition: opacity .4s; }
.model .name { font-size: .85rem; font-weight: 600; letter-spacing: -.01em; }
.model .sub { font-size: .72rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model .mark { position: absolute; z-index: 2; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.model[aria-pressed="true"] .mark { opacity: 1; transform: scale(1); }
.model .mark svg { width: 11px; height: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-size: .85rem; font-weight: 500; transition: border-color .2s, box-shadow .25s var(--ease-out), transform .2s var(--ease-out), background-color .2s;
}
.chip:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); background: #fff; }
.chip .sw { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(9,9,11,.12); background-size: cover; background-position: center; flex: none; }
.chip .sw.is-photo { border-radius: var(--radius-sm); background-color: #fff; }
.chip .sw .mark { display: none; }
.chip-name small { display: none; }
.chip .kind { font-size: .72rem; color: var(--muted-foreground); font-weight: 400; margin-left: 2px; }

.hw { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .hw { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .hw { grid-template-columns: repeat(5, 1fr); } }
.hw-item { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 8px; text-align: left; display: grid; gap: 6px; transition: border-color .2s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.hw-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hw-item[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }
.hw-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-lg) - 8px); background: #fff; }
.hw-item .name { font-size: .8rem; font-weight: 600; }
.hw-item .sub { font-size: .7rem; color: var(--muted-foreground); }
/* Телефон: 2 в ряд, фото не растягиваем — 96px по центру, подписи под ним помещаются в одну строку */
@media (max-width: 639px) { .hw-item { justify-items: center; text-align: center; padding: 10px 8px; } .hw-item img { width: 96px; height: 96px; } .hw-item .name { font-size: .85rem; } .hw-item .sub { font-size: .74rem; } }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--foreground); transition: background-color .15s; }
.stepper button:hover { background: var(--muted); }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 56px; text-align: center; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.qty-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.qty-presets button { height: 36px; min-width: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: .85rem; font-weight: 500; transition: border-color .15s, background-color .15s; }
.qty-presets button[aria-pressed="true"] { border-color: var(--foreground); background: var(--foreground); color: #fff; }

/* Door stage (preview) */
.stage { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, #f4f4f5 0%, #ebebed 100%); padding: 22px; display: grid; place-items: end center; min-height: 380px; overflow: hidden; }
.stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 14px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(9,9,11,.22), transparent); filter: blur(10px); }
.stage-door { position: relative; width: min(58%, 250px); aspect-ratio: 648 / 1440; z-index: 1; }
.stage-door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(9,9,11,.2)); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.stage-door img.is-out { opacity: 0; transform: scale(.985); }
.stage-label { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }

/* Summary (смета) */
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
@media (min-width: 1024px) {
  .summary { max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; scrollbar-width: none; }
  .summary::-webkit-scrollbar { display: none; }
  .summary .stage { min-height: clamp(200px, 32vh, 380px); padding: clamp(10px, 1.6vh, 22px); }
  .summary .stage-door { width: min(58%, 250px, 14.5vh); }
}
}
}
}
.summary .card { overflow: hidden; }
.summary-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.summary-head strong { font-size: 1rem; letter-spacing: -.01em; }
.summary-lines { padding: 8px 20px; }
.summary-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; align-items: baseline; }
.summary-line:last-child { border-bottom: 0; }
.summary-line .k { color: var(--muted-foreground); font-size: .78rem; display: block; }
.summary-line .v { font-weight: 500; }
.summary-line .price { font-variant-numeric: tabular-nums; color: var(--success); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.summary-line.is-new { animation: lineIn .6s var(--ease-out); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); background: var(--primary-soft); } }
.summary-total { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--muted); }
.summary-total .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-total .row small { color: var(--muted-foreground); }
.summary-total .sum { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-total .sum .rub { font-weight: 500; color: var(--muted-foreground); font-size: 1.2rem; margin-left: 2px; }
.summary-total .note { font-size: .78rem; color: var(--muted-foreground); margin-top: 8px; }
.summary-total .btn { margin-top: 14px; }
.summary-sep { padding: 12px 20px 16px; }
.summary-sep summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted-foreground); }
.summary-sep summary::-webkit-details-marker { display: none; }
.summary-sep summary svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.summary-sep[open] summary svg { transform: rotate(180deg); }
.summary-sep ul { margin-top: 10px; display: grid; gap: 6px; font-size: .82rem; }
.summary-sep li { display: flex; justify-content: space-between; gap: 10px; }
.summary-sep li span:last-child { color: var(--muted-foreground); }

/* Mobile bottom bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .4s var(--ease-out); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .sum { font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.mobile-bar small { display: block; color: var(--muted-foreground); font-size: .72rem; margin-top: 3px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Coatings showcase ---------- */
.coat-scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.coat { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--card); text-align: left; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.coat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.coat-tex { aspect-ratio: 4 / 3; background-size: cover; background-position: center; transition: transform 1.2s var(--ease-out); }
.coat:hover .coat-tex { transform: scale(1.06); }
.coat-body { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coat-body strong { font-size: .95rem; letter-spacing: -.01em; display: block; }
.coat-body small { color: var(--muted-foreground); font-size: .78rem; }

/* ---------- Honest price ---------- */
.honest { display: grid; gap: 16px; }
@media (min-width: 900px) { .honest { grid-template-columns: 1fr 1fr; gap: 20px; } }
.honest-col { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); }
.honest-col.is-dark { background: var(--foreground); color: #fff; border-color: var(--foreground); }
.honest-col h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.honest-col .price-tag { font-size: 1.6rem; letter-spacing: -.03em; font-weight: 600; }
.honest-list { margin-top: 18px; display: grid; }
.honest-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .95rem; }
.is-dark .honest-list li { border-color: rgba(255,255,255,.14); }
.is-dark .check { background: rgba(255,255,255,.12); color: #fff; }
.honest-list li span:last-child { margin-left: auto; font-size: .82rem; color: var(--muted-foreground); text-align: right; max-width: 55%; }
.is-dark .honest-list li span:last-child { color: rgba(255,255,255,.6); }
.honest-note { margin-top: 16px; font-size: .85rem; color: var(--muted-foreground); }
.is-dark .honest-note { color: rgba(255,255,255,.66); }

/* ---------- Factory ---------- */
.factory { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .factory { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.factory-photo { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 1; background: var(--muted); }
.factory-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-top: 1px solid var(--border); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--border); }
.facts div:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 16px; }
.facts div:nth-child(even) { padding-left: 16px; }
.facts strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 600; line-height: 1.1; }
.facts span { font-size: .82rem; color: var(--muted-foreground); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; background: var(--muted); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; width: max-content; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: calc(var(--radius-xl) - 12px); background: rgba(255,255,255,.9); font-size: .7rem; font-weight: 500; }
.gallery-open { display: block; width: 100%; height: 100%; cursor: zoom-in; text-align: left; }
.gallery-note { margin-top: 14px; }
/* Лайтбокс галереи: фото на весь экран, подпись, стрелки; создаётся JS при первом открытии */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 1fr auto; background: rgba(9,9,11,.94); color: #fff; opacity: 0; transition: opacity .25s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-stage { position: relative; display: grid; place-items: center; padding: 56px 16px 8px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); font-size: .9rem; }
.lightbox-count { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); }
.lightbox-arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); }
.lightbox-arrow.is-prev { left: 12px; } .lightbox-arrow.is-next { right: 12px; }
.lightbox-close svg, .lightbox-arrow svg { width: 22px; height: 22px; }
@media (hover: hover) { .lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255,255,255,.22); } }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted-foreground); transition: transform .35s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--primary); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq details[open] .a { grid-template-rows: 1fr; }
.faq .a > div { overflow: hidden; }
.faq .a p { padding: 0 0 18px; color: var(--muted-foreground); max-width: 66ch; }

/* ---------- Order form ---------- */
.order { display: grid; gap: 28px; }
@media (min-width: 960px) { .order { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; }
.input { height: 46px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; width: 100%; }
.input::placeholder { color: #8b8b94; }
.input:focus { outline: 0; border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft-2); }
.field.is-invalid .input { border-color: var(--primary); }
.field .err { display: none; font-size: .8rem; color: var(--primary); }
.field.is-invalid .err { display: block; }
.form-note { font-size: .78rem; color: var(--muted-foreground); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-ok { display: none; padding: 22px; border-radius: var(--radius-lg); background: var(--primary-soft); border: 1px solid var(--primary-soft-2); }
.form.is-done { display: none; }
.form.is-done + .form-ok { display: block; animation: fadeUp .6s var(--ease-out); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.order-config { display: grid; gap: 10px; }
.order-config .row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.order-config .row span:first-child { color: var(--muted-foreground); }
.order-config .row b { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: .875rem; color: var(--muted-foreground); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer strong { color: var(--foreground); font-weight: 600; }
.site-footer a:hover { color: var(--foreground); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .78rem; }

/* ---------- /smeta/ (живая смета) ---------- */
.smeta-hero { padding-block: clamp(32px, 5vw, 56px) 24px; }
.smeta-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .smeta-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; } }
.ticket { position: sticky; top: calc(var(--header-h) + 16px); }
.ticket .card { border-radius: var(--radius-xl); }
.ticket-head { padding: 20px 22px; border-bottom: 1px dashed var(--border-strong); display: flex; justify-content: space-between; align-items: center; }
.ticket-head strong { letter-spacing: -.01em; }
.ticket-head small { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.ticket-door { display: grid; place-items: center; padding: 18px; background: linear-gradient(180deg, #f6f6f7, #ededef); }
.ticket-door .stage-door { width: 120px; }
.ticket-lines { padding: 6px 22px; }
.ticket-total { padding: 18px 22px 22px; border-top: 1px dashed var(--border-strong); }
.ticket-total .sum { font-size: 2rem; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.ticket-total .row { display: flex; justify-content: space-between; align-items: baseline; }
.ticket-total .note { font-size: .78rem; color: var(--muted-foreground); margin-top: 8px; }
.ticket-edge { height: 14px; background: radial-gradient(circle at 10px -4px, transparent 8px, var(--card) 9px) repeat-x; background-size: 20px 14px; }

/* ---------- /vitrina/ ---------- */
.vitrina { min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; }
@media (max-width: 1023px) { .wall-door { width: clamp(150px, 44vw, 220px); } .vitrina { min-height: auto; } .wall { padding-bottom: 150px; } .vitrina-bar .inner { grid-template-columns: 1fr; } .vitrina-bar .vitrina-price { justify-content: space-between; } }
.page-template-page-vitrina .mobile-bar { display: none; }
.vitrina-top { padding: 20px 0 8px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.wall { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: clamp(20px, 3vw, 44px); padding: 28px clamp(20px, 8vw, 120px) 16px; scrollbar-width: none; align-items: end; }
.wall::-webkit-scrollbar { display: none; }
.wall-door { flex: none; scroll-snap-align: center; text-align: center; width: clamp(150px, calc((100dvh - 470px) * .45), 260px); transition: transform .5s var(--ease-out), opacity .5s; opacity: .55; }
.wall-door[aria-pressed="true"] { opacity: 1; transform: translateY(-8px) scale(1.06); }
.wall-door .stage-door { width: 100%; }
.wall-door .stage-door img { filter: drop-shadow(0 26px 30px rgba(9,9,11,.22)); }
.wall-door .name { margin-top: 12px; font-weight: 600; font-size: .95rem; }
.wall-door .sub { font-size: .78rem; color: var(--muted-foreground); }
.wall-floor { height: 1px; background: var(--border); margin: 0 var(--gutter); }
.vitrina-bar { position: sticky; bottom: 0; background: rgba(250,250,250,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.vitrina-bar .inner { display: grid; gap: 12px; align-items: center; }
@media (min-width: 1024px) { .vitrina-bar .inner { grid-template-columns: 1fr auto auto; } }
.vitrina-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.vitrina-bar .chips::-webkit-scrollbar { display: none; }
.vitrina-bar .chip { flex: none; }
.vitrina-price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.vitrina-price .sum { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vitrina-price small { color: var(--muted-foreground); }

/* View transitions (vitrina) */
::view-transition-old(door), ::view-transition-new(door) { animation-duration: .5s; animation-timing-function: var(--ease-out); }

/* ---------- /v2/ (главная: больше информации, схема «входит/отдельно», сетки без лент) ---------- */
.v2-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .92rem; }
.v2-proof li { display: inline-flex; align-items: center; gap: 7px; }
.v2-proof svg { width: 17px; height: 17px; color: var(--primary); flex: none; }
.hero-tag {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 1px; padding: 10px 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(9,9,11,.08); border-radius: calc(var(--radius-xl) - 8px); box-shadow: var(--shadow-md);
}
.hero-tag strong { font-size: 1.35rem; letter-spacing: -.03em; line-height: 1; }
.hero-tag span { font-size: .72rem; color: var(--muted-foreground); }

/* Схема двери: списки по бокам, дверь с пинами в центре */
/* Три колонки: дверь с пинами · список 6 пунктов · тёмная плашка «Считается отдельно» */
.anatomy { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .anatomy { grid-template-columns: minmax(240px, 300px) 1fr 320px; gap: 44px; } .sep-list li { gap: 2px; } }
@media (min-width: 1100px) { .anatomy { grid-template-columns: minmax(260px, 340px) 1fr 320px; } }
.anat-list { display: grid; align-self: start; }
.anat-list .anat-item:first-child { border-top: 0; }
.anat-list .anat-item:last-child { border-bottom: 0; }
.anat-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 14px 10px; margin: 0 -10px; border-top: 1px solid var(--border); border-radius: var(--radius); cursor: default; transition: background-color .25s var(--ease-out); }
.anat-item:last-child { border-bottom: 1px solid var(--border); }
.anat-item.is-active, .anat-item:hover { background: rgba(255,255,255,.7); }
.anat-item.is-active { border-color: transparent; }
.anat-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.anat-item p { font-size: .85rem; color: var(--muted-foreground); line-height: 1.45; }
.anat-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s, border-color .25s; }
.anat-item.is-active .anat-n { background: var(--primary); color: #fff; border-color: var(--primary); }
.anat-item .badge { display: none; }
@media (min-width: 1200px) { .anat-item .badge { display: inline-flex; } }
.anat-door { display: grid; place-items: center; padding: clamp(16px, 4vw, 28px); border-radius: var(--radius-xl); background: linear-gradient(180deg, #f4f4f5, #ececee); }
.anat-stage { position: relative; width: min(100%, 300px); aspect-ratio: 648 / 1440; }
.anat-stage > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(9,9,11,.22)); }
.anat-pin {
  position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  background: rgba(255,255,255,.7); color: var(--foreground); border: 1px solid rgba(9,9,11,.14); box-shadow: var(--shadow-md);
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; place-items: center;
  transition: transform .3s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.anat-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(188,71,73,.55); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease-out); }
.anat-pin.is-active, .anat-pin:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.12); }
.anat-pin.is-active::after { opacity: 1; transform: scale(1); }
@media (max-width: 899px) {
  .anat-stage { width: min(100%, 240px); }
  .anat-door { padding-top: 24px; padding-bottom: 24px; }
}

/* «Отдельно»: единственная тёмная поверхность */
.sep-band { padding: clamp(22px, 3vw, 28px); border-radius: var(--radius-xl); background: #444444; color: #fff; display: grid; gap: 22px; align-self: start; }
.sep-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.sep-head p { margin-top: 6px; font-size: .85rem; color: rgba(255,255,255,.72); line-height: 1.45; }
.sep-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.sep-list li { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); align-content: start; }
.sep-list strong { font-size: .95rem; letter-spacing: -.01em; }
.sep-list li > span:last-child { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.4; }
.sep-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12); color: #fff; }
.sep-ic svg { width: 18px; height: 18px; }
.sep-note { font-size: .82rem; color: rgba(255,255,255,.72); }

/* Конфигуратор на v2: sticky-превью на мобиле без кнопки, покрытия плитками */
.preview-strip {
  position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)) 6px; padding: 8px var(--gutter);
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  background: rgba(250,250,250,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px -18px rgba(9,9,11,.25);
}
.preview-strip .stage-door { width: 48px; }
.preview-strip .stage-door img { filter: drop-shadow(0 4px 6px rgba(9,9,11,.2)); }
.preview-text { min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
.preview-text b { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-text small { font-size: .74rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-sum { text-align: right; display: grid; gap: 2px; }
.preview-cta { height: 32px; min-width: 124px; padding: 0 12px; font-size: .8rem; gap: 4px; border-radius: var(--radius-sm); justify-self: end; margin-top: 2px; }
.preview-cta svg { width: 14px; height: 14px; }
.preview-sum { gap: 4px; }
.preview-sum .sum { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
@media (min-width: 1024px) { .preview-strip { display: none; } }
@media (max-width: 1023px) {
  .is-v2 .site-header { position: static; }
  .is-v2 .mobile-bar { display: none; }
  .is-v2 #configurator [id], .is-v2 .cfg-step { scroll-margin-top: 84px; }
  .cfg-v2 .summary { position: static; }
  .cfg-v2 .cfg-main { gap: 32px; }
}
.chips-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .chips-tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; } }
.chips-tiles .chip { display: grid; gap: 8px; padding: 6px 6px 10px; border-radius: var(--radius-lg); text-align: left; }
.chips-tiles .chip .sw { width: 100%; height: auto; aspect-ratio: 1; border-radius: calc(var(--radius-lg) - 6px); }
.chips-tiles .chip .sw .mark { display: grid; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.chips-tiles .chip .sw .mark svg { width: 12px; height: 12px; }
.chips-tiles .chip[aria-pressed="true"] .sw .mark { opacity: 1; transform: scale(1); }
.chips-tiles .chip-name { display: grid; gap: 1px; padding: 0 4px; font-size: .85rem; line-height: 1.25; }
.chips-tiles .chip-name small { display: block; font-size: .72rem; color: var(--muted-foreground); font-weight: 400; }

/* Покрытия сеткой (без горизонтальной прокрутки) */
.coat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .coat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.coat-grid .coat { flex: none; transition-delay: var(--d, 0ms); }
.coat-grid .coat .coat-tex { aspect-ratio: 5 / 4; }
@media (max-width: 480px) { .coat-grid .coat-body { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; } }

/* Сравнение: два чека */
.compare { display: grid; gap: 16px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
.receipt { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.receipt.is-usual { background: var(--muted); border-style: dashed; }
.receipt.is-ours { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2), var(--shadow-md); }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.receipt-head strong { letter-spacing: -.01em; }
.receipt-head > span:not(.badge) { font-size: .82rem; color: var(--muted-foreground); }
.receipt ul { padding: 6px 22px; }
.receipt li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-strong); font-size: .92rem; }
.receipt li:last-child { border-bottom: 0; }
.receipt li b { font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.is-usual li b { color: var(--muted-foreground); }
.is-ours li b { color: var(--success); }
.is-ours li b svg { width: 14px; height: 14px; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 22px 20px; border-top: 1px solid var(--border); }
.receipt-total span { color: var(--muted-foreground); font-size: .9rem; }
.receipt-total b { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.is-usual .receipt-total b { color: var(--muted-foreground); font-weight: 500; font-size: .95rem; }
.is-ours .receipt-total { background: var(--primary-soft); }
.is-ours .receipt-total b { font-size: 1.7rem; letter-spacing: -.03em; color: var(--primary); }

/* Из чего собрана дверь: четыре колонки на hairlines */
/* Разрез полотна + пункты, как на инфографике фабрики: рендер с номерными точками слева, пункты с номерами справа.
   Телефон — колонкой: рендер сверху, пункты ниже с номером слева. */
.build { display: grid; gap: 28px; }
.build-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 320px); }
.build-photo img { display: block; width: 100%; height: auto; }
.build-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255,255,255,.85); border: 1px solid rgba(9,9,11,.18); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.build-items { list-style: none; display: grid; align-content: center; border-top: 1px solid var(--border); }
.build-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.build-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); display: grid; place-items: center; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.build-item h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.build-item p { margin-top: 4px; font-size: .88rem; color: var(--muted-foreground); line-height: 1.5; }
@media (min-width: 720px) {
  .build { grid-template-columns: minmax(260px, 360px) 1fr; gap: 40px; align-items: center; }
  .build-photo { justify-self: start; width: 100%; }
}
@media (min-width: 1100px) { .build { grid-template-columns: 400px 1fr; gap: 64px; } .build-item { padding: 18px 0; } }
.build-item h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; }
.build-item p { margin-top: 10px; font-size: .9rem; color: var(--muted-foreground); line-height: 1.5; }

/* Что будет после заявки: шаги */
.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.steps li { position: relative; display: grid; gap: 10px; padding: 18px 0 18px 46px; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.step-n { position: absolute; left: 0; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--foreground); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.steps p { font-size: .88rem; color: var(--muted-foreground); line-height: 1.5; }
@media (min-width: 900px) {
  .steps li { padding: 22px 0 0; border-bottom: 0 !important; }
  .step-n { position: static; margin-bottom: 4px; }
  .steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 30px; height: 2px; background: var(--primary); }
}

/* ---------- Просмотрщик двери (все страницы) ---------- */
.model-cell { position: relative; display: grid; }
.model-cell.is-hidden { display: none; }
.model-cell .model { padding-bottom: 34px; }
.model-zoom { position: absolute; z-index: 3; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 2px; font-size: .78rem; font-weight: 600; color: var(--primary); border-radius: var(--radius-sm); transition: color .2s, background-color .2s; }
.model-zoom svg { width: 14px; height: 14px; }
.model-zoom:hover { background: var(--primary-soft); }
.model-zoom:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stage-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid rgba(9,9,11,.1); box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 500; transition: background-color .2s, color .2s, transform .2s var(--ease-out); }
.stage-zoom svg { width: 15px; height: 15px; }
.stage-zoom:hover { background: #fff; color: var(--primary); transform: translateY(-1px); }
.preview-door { display: block; width: 48px; }
.preview-door .stage-door { display: block; width: 48px; }
body.is-locked { overflow: hidden; }

.viewer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(9,9,11,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.viewer-panel { position: relative; width: 100%; height: 100dvh; display: flex; flex-direction: column; background: var(--background); opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.viewer.is-open .viewer-backdrop { opacity: 1; }
.viewer.is-open .viewer-panel { opacity: 1; transform: none; }
@media (min-width: 720px) { .viewer-panel { width: min(92vw, 560px); height: min(92vh, 920px); border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; } }
.viewer-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border); }
.viewer-title { min-width: 0; flex: 1; display: grid; line-height: 1.2; }
.viewer-title b { font-size: 1.05rem; letter-spacing: -.01em; }
.viewer-title small { font-size: .78rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-top .badge { display: none; } @media (min-width: 480px) { .viewer-top .badge { display: inline-flex; } }
.viewer-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted-foreground); transition: background-color .2s, color .2s; }
.viewer-close:hover { background: var(--muted); color: var(--foreground); }
.viewer-close svg { width: 20px; height: 20px; }
.viewer-stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 20px 56px 44px; overflow: hidden; background: linear-gradient(180deg, #f4f4f5, #e9e9eb); }
.viewer-stage::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 40px; height: 36px; border-radius: 50%; background: radial-gradient(closest-side, rgba(9,9,11,.22), transparent); filter: blur(10px); }
.viewer-stage .stage-door { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; aspect-ratio: 648 / 1440; cursor: zoom-in; transition: transform .5s var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.viewer-stage .stage-door img { filter: drop-shadow(0 24px 30px rgba(9,9,11,.24)); }
.viewer-stage .stage-door.is-zoomed { transform: scale(2.4); cursor: zoom-out; touch-action: none; }
.viewer-stage .stage-door.is-zoomed img { filter: none; }
.viewer-arrow { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid rgba(9,9,11,.1); box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform .25s var(--ease-out), background-color .2s; }
.viewer-arrow svg { width: 20px; height: 20px; }
.viewer-arrow.is-prev { left: 10px; } .viewer-arrow.is-next { right: 10px; }
.viewer-arrow:hover { background: #fff; transform: scale(1.06); }
.viewer-hint { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: .74rem; color: var(--muted-foreground); white-space: nowrap; transition: opacity .3s; }
.viewer-hint svg { width: 13px; height: 13px; }
.stage-door.is-zoomed ~ .viewer-hint { opacity: 0; }
.viewer-bottom { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card); display: grid; gap: 12px; }
.viewer-colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 419px) { .viewer-sw { width: 32px; height: 32px; } .viewer-colors { gap: 6px; } }
.viewer-sw { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(9,9,11,.14); background-size: cover; background-position: center; box-shadow: 0 0 0 2px #fff inset; transition: transform .25s var(--ease-out), box-shadow .2s; }
.viewer-sw:hover { transform: scale(1.1); }
.viewer-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--primary); transform: scale(1.1); }
.viewer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-count { font-size: .82rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .viewer-stage .stage-door { transition: none; } }

/* ---------- /v2/: hero на всю ширину ---------- */
.hero-full { position: relative; min-height: clamp(520px, 82vh, 780px); display: grid; align-items: end; overflow: hidden; color: #fff; background: #b9aba1; }
.hero-full picture { position: absolute; inset: 0; }
.hero-full-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); transition: transform 1.8s var(--ease-out); }
.is-loaded .hero-full-img { transform: none; }
/* Затемнение диагональю из левого нижнего угла (под текстом), дверь справа-сверху чистая. Одно правило на все экраны (подобрано владельцем). */
.hero-full-scrim { position: absolute; inset: 0; background: linear-gradient(45deg, rgba(38,28,26,.52) 0%, rgba(38,28,26,.36) 30%, rgba(38,28,26,.08) 50%, rgba(38,28,26,0) 58%), linear-gradient(45deg, rgba(38,28,26,.3) 0%, rgba(38,28,26,.08) 26%, rgba(38,28,26,0) 42%); }
.hero-full .h1, .hero-full .lead, .hero-full .v2-proof { text-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.18); }
.hero-full .lead { color: rgba(255,255,255,.9); }
.hero-full-copy { position: relative; z-index: 1; padding-block: clamp(40px, 7vh, 72px) clamp(36px, 6vh, 64px); max-width: min(100% - 2 * var(--gutter), var(--container)); }
.hero-full .h1 { max-width: none; font-size: clamp(1.5rem, min(8vw, 5.2vh + 1rem), 4rem); line-height: 1.08; }
.h1-three .h1-line { display: block; white-space: nowrap; }
/* Вторая и третья строки: плашка растягивается на ширину «за комплект», цифры внутри подгоняются по ширине (JS fitPrice) */
.h1-block { display: inline-grid; justify-items: stretch; width: max-content; max-width: 100%; }
.h1-block .h1-price { display: block; text-align: center; margin: .06em 0 .1em; padding: .06em .28em .1em; line-height: 1; }
.h1-block .h1-price span { display: inline-block; white-space: nowrap; font-size: 1.3em; line-height: 1; }
.hero-full .lead { margin-top: 34px; max-width: 52ch; line-height: 1.35; }
.hero-full .v2-proof { color: rgba(255,255,255,.92); }
.hero-full .v2-proof svg { color: #fff; opacity: .9; }
.hero-full .hero-actions { margin-top: 26px; }
.h1-price { display: inline-block; background: var(--primary); color: #fff; padding: .02em .28em .06em; border-radius: var(--radius); line-height: 1.05; box-shadow: 0 10px 30px -12px rgba(188,71,73,.7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-on-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; }
.btn-on-dark:hover { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 640px) { .hero-full { min-height: 86svh; } .hero-full-img { object-position: 50% 40%; } .hero-full .hero-actions .btn { flex: 1 1 auto; } }

/* Схема двери на мобиле: списки скрыты, пин открывает подсказку */
.anat-door { position: relative; }
.anat-pop { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 26px auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 14px 14px; background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.anat-pop > div { grid-column: 1 / -1; }
.anat-pop.is-swap > div { animation: popIn .3s var(--ease-out); }
.anat-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.anat-pop .anat-n { width: 26px; height: 26px; font-size: .75rem; background: var(--primary); color: #fff; border-color: var(--primary); }
.anat-pop b { display: block; font-size: .9rem; letter-spacing: -.01em; }
.anat-pop p { margin-top: 3px; font-size: .78rem; color: var(--muted-foreground); line-height: 1.4; }
.anat-pop .badge { grid-column: 2; grid-row: 1; height: 22px; font-size: .7rem; }
.anat-pop .anat-n { grid-column: 1; grid-row: 1; }
.anat-hint { display: none; text-align: center; margin: -8px 0 16px; }
@media (max-width: 899px) { .anat-list { display: none; } .anat-hint { display: block; } }
@media (min-width: 900px) { .anat-pop { display: none !important; } }

/* Смета на v2: количество рядом с ценой */
.summary-qty { padding: 14px 20px 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.summary-qty-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.summary-qty-head strong { font-size: .95rem; letter-spacing: -.01em; }
.summary-qty-head small { font-size: .75rem; color: var(--muted-foreground); }
.qty-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.summary-qty .stepper button { width: 40px; height: 40px; }
.summary-qty .stepper output { min-width: 44px; font-size: 1rem; }
.summary-qty .qty-presets button { height: 34px; min-width: 34px; padding: 0 8px; }

/* Покрытия: заголовок слева и липнет, сетка 3×3 справа */
@media (min-width: 900px) {
  .coat-layout { display: grid; grid-template-columns: minmax(240px, .8fr) 2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  .coat-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
  .coat-layout .coat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Попап заявки */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 0; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9,9,11,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.modal-panel { position: relative; width: 100%; max-height: 100dvh; overflow-y: auto; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--card); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
@media (min-width: 640px) { .modal { padding: 24px; } .modal-panel { width: min(100%, 520px); max-height: calc(100dvh - 48px); padding: 28px 28px 30px; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); } }
@media (max-width: 639px) { .modal { align-items: end; } .modal-panel { border-radius: var(--radius-xl) var(--radius-xl) 0 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted-foreground); transition: background-color .2s, color .2s; }
.modal-close:hover { background: var(--muted); color: var(--foreground); }
.modal-close svg { width: 20px; height: 20px; }
.modal-panel .h3 { padding-right: 44px; }
.modal-config { margin: 16px 0 18px; padding: 4px 14px; border-radius: var(--radius); background: var(--muted); font-size: .88rem; }
.modal-config > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border-strong); }
.modal-config > div:last-child { border-bottom: 0; }
.modal-config span { color: var(--muted-foreground); }
.modal-config b { font-weight: 500; text-align: right; }
.modal .form-ok { margin-top: 12px; }

/* Согласие: чекбокс, по умолчанию снят */
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: .85rem; line-height: 1.4; color: var(--muted-foreground); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box { width: 22px; height: 22px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: var(--card); display: grid; place-items: center; color: #fff; transition: background-color .15s, border-color .15s, box-shadow .15s; margin-top: 1px; }
.consent-box svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .25s var(--ease-out); }
.consent input:checked + .consent-box { background: var(--primary); border-color: var(--primary); }
.consent input:checked + .consent-box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 3px var(--primary-soft-2); }
.consent a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.field-consent.is-invalid .consent-box { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }

.summary-brief { display: none; }
/* Невысокие экраны (ноутбуки, 900px и ниже): сцена меньше, строки сметы сворачиваются в одну подпись, итог и кнопка видны без прокрутки */
@media (min-width: 1024px) and (max-height: 980px) {
  .summary .stage { min-height: 0; padding: 12px 14px 16px; }
  .summary .stage-door { width: min(50%, 12vh); }
  .summary .stage::after { bottom: 8px; height: 22px; }
  .summary-head { padding: 12px 18px 10px; }
  .summary-lines { display: none; }
  .summary-brief { display: block; padding: 8px 18px 12px; font-size: .8rem; color: var(--muted-foreground); line-height: 1.45; }
  .summary-brief b { color: var(--foreground); font-weight: 500; }
  .summary-qty { padding: 10px 18px 12px; gap: 6px; }
  .summary-qty .stepper button { width: 36px; height: 36px; }
  .summary-qty .stepper output { min-width: 40px; font-size: .95rem; }
  .summary-qty .qty-presets { gap: 4px; }
  .summary-qty .qty-row { gap: 8px 10px; }
  .summary-qty .qty-presets button { height: 30px; min-width: 30px; padding: 0 6px; font-size: .8rem; }
  .summary-total { padding: 12px 18px 14px; }
  .summary-total .sum { font-size: 1.5rem; }
  .summary-total .note { font-size: .72rem; margin-top: 6px; }
  .summary-total .btn { margin-top: 10px; height: 42px; }

/* Телефоны: липкие панели без backdrop-filter (пересчёт размытия на каждый кадр прокрутки), фон почти непрозрачный. */
@media (max-width: 640px) {
  .site-header, .site-header.is-scrolled { background: rgba(250,250,250,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .preview-strip { background: rgba(250,250,250,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-bar { background: rgba(255,255,255,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
