/*! Сайт zadoorhome.ru. (c) 2026 Семенкевич Олег Сергеевич. Все права защищены.
 * Копирование, изменение и использование кода без письменного разрешения автора запрещено (ГК РФ, ст. 1259, 1261, 1270).
 * id: bb238a9253262139e7f1852f⁠‌​‌‌‌​‌‌​​‌​​​‌‌‌​​​‌​‌​‌​​‌​​‌​​‌​‌​​‌‌​​‌​​‌‌​​​‌​​​​‌​​‌‌‌​​‌‌‌‌​​‌‌‌‌‌‌‌​​​‌‌​​​​‌​‌​​‌​‌‌‌‌⁠ */
/* Шрифты проекта: локальные woff2, variable, сабсеты cyrillic и latin. Заменяет Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/literata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Дизайн: палитра ZADOOR (белый, графит, терракота), минимализм, мягкие пружинные анимации.
   Источники приемов: ui-ux-pro-max (Minimal + motion, чеклист доступности), 21st.dev
   (Spatial Product Showcase - витрина первого экрана; Product Card - карточка с подъемом фото). */
:root {
  --ink: #2d2f32;
  --ink-2: #4b4d51;
  --ink-3: #6f6a65;
  --line: #e7e3de;
  --bg: #ffffff;
  --surface: #ffffff;      /* карточки, панели, поля */
  --band: #2d2f32;         /* темные полосы: подвал, верхняя строка, CTA */
  --on-ink: #ffffff;       /* текст на заливке цветом --ink (выбранные чипы, бейджи) */
  --hdr-bg: rgba(255,255,255,.82);
  --glass: rgba(255,255,255,.9);
  --soft: #f6f3ef;
  --soft-2: #eee8e1;
  --accent: #c35c46;
  --accent-2: #a64834;
  --accent-soft: rgba(195, 92, 70, .1);
  --accent-ink: #a3452f;
  --accent-btn: #ad4b37;
  --muted: var(--ink-2);
  --font-display: var(--font-head);
  --display-weight: 500;
  --display-tracking: -.025em;
  --t-h2: clamp(28px, 3.4vw, 46px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(45,47,50,.04), 0 8px 24px rgba(45,47,50,.06);
  --shadow-lg: 0 2px 6px rgba(45,47,50,.05), 0 24px 48px rgba(45,47,50,.12);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --fast: .2s;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-logo: "Montserrat", "Segoe UI", Arial, sans-serif;
  --z-header: 20;
  --z-modal: 50;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; font-optical-sizing: auto; }
h1 em, .hero h1 em { font-style: italic; }
h3 { font-size: 20px; letter-spacing: -.01em; }
.lbl { margin: 0 0 .5em; font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }
.wrap { --gut: 24px; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

/* кнопки */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.btn--accent { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); transform: translateY(-1px); }
  .btn--accent:hover { background: color-mix(in oklab, var(--accent-btn) 86%, var(--ink)); border-color: color-mix(in oklab, var(--accent-btn) 86%, var(--ink)); color: #fff; }
  .btn:hover .m-arrow, .link:hover .m-arrow, .tile:hover .m-arrow { transform: translateX(3px); }
  .btn:active { transform: translateY(1px) scale(.985); }
}
.m-arrow { transition: transform 150ms var(--ease); }
.btn--sm { padding: 0 20px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn__arrow { transition: transform .3s var(--spring); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 150ms var(--ease); }
.link:hover { background-size: 100% 1px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--band); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }
.link:hover { color: var(--accent-2); }
.link svg { transition: transform .3s var(--spring); }
.link:hover svg { transform: translateX(3px); }

/* шапка */
.hdr { position: sticky; top: 0; z-index: var(--z-header); background: var(--hdr-bg); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(45,47,50,.06); }
.hdr__in { display: flex; align-items: center; gap: 36px; height: 76px; transition: height .3s var(--spring); }
.hdr.is-scrolled .hdr__in { height: 64px; }
.logo { font-family: var(--font-logo); font-weight: 800; font-size: 30px; letter-spacing: -1.2px; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: 800; }
.logo--inv { color: #fff; font-size: 36px; }
.nav { display: flex; gap: 28px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 0; color: var(--ink-2); transition: color var(--fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--spring); }
.nav a:hover, .nav a.is-on { color: var(--ink); }
.nav a:hover::after, .nav a.is-on::after { transform: none; }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hdr__phone { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hdr__ico { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); transition: background var(--fast); }
.hdr__ico:hover { background: var(--soft); }
.hdr__count { position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--ink); color: var(--on-ink); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.hdr__count.is-pop { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .3s var(--spring), opacity .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* первый экран: примерка двери в интерьере */
.hero { position: relative; background: var(--soft); padding: 32px 0 28px; overflow: clip; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: end; margin-bottom: 20px; }
.hero__aside { padding: 0 4px 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font: 600 12px var(--font); color: var(--accent-ink); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; max-width: 680px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 480px; }
.stats { display: flex; gap: 36px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--soft-2); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__aside .hero__btns { margin-top: 16px; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--soft-2); }
.facts div { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--soft-2); }
.facts dt { font: 700 20px/1.2 var(--font-head); letter-spacing: -.02em; min-width: 150px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 14px; }
.more-cols { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); overflow-x: auto; scrollbar-width: none; }
.more-cols::-webkit-scrollbar { display: none; }
.more-col, .more-cols__lbl { flex: none; }
.more-cols__lbl { font-weight: 600; margin-right: 8px; }
.more-col { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); text-decoration: none; transition: box-shadow .3s, transform .3s var(--spring); }
.more-col:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.more-col img { width: 22px; height: 54px; object-fit: fill; mix-blend-mode: multiply; }
.more-col span { display: flex; flex-direction: column; line-height: 1.2; }
.more-col small { color: var(--ink-2); font-size: 12px; }
.ftr__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ftr .btn:not(.btn--accent) { color: #fff; border-color: rgba(255,255,255,.55); }
.card, .card__body { min-width: 0; }
.more-cols { overflow-wrap: anywhere; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--ink-2); }

.to { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.to__stage { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.to__scene { position: relative; aspect-ratio: 1800 / 1344; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #e9e4de; box-shadow: var(--shadow-lg); touch-action: none; }
.to__scene > svg { display: block; width: 100%; height: 100%; }
.to__scene > svg.is-next { position: absolute; inset: 0; }
.to__scene.is-photo { background: #24262a; }
.to__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.to__float { position: absolute; left: 0; top: 0; width: 200px; height: 484px; transform-origin: 0 0; cursor: move; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.to__float img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.to__corner { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; touch-action: none; }
.to__corner:active { cursor: grabbing; }
.to__note { position: absolute; left: 16px; right: 16px; top: 16px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--glass); font-size: 13px; color: var(--ink-2); text-align: center; pointer-events: none; }
.to__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--band); color: #fff; }
.to__hint { font-size: 13px; color: #c9cbce; flex: 1 1 240px; }
.to__range { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.to__range input { accent-color: var(--accent); width: 140px; }
.to__rooms { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 2px 2px; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.to__rooms > * { scroll-snap-align: start; }
.to__scroll { scroll-snap-type: x proximity; }
.to__scroll > * { scroll-snap-align: start; }
.to__rooms::-webkit-scrollbar { display: none; }
.to__room { flex: none; display: flex; flex-direction: column; gap: 6px; width: 104px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 12px var(--font); color: var(--ink-2); text-align: left; }
.to__room-scene, .to__up-ico { display: block; width: 104px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; transition: border-color var(--fast), transform .3s var(--spring); }
.to__room-scene svg { display: block; width: 100%; height: 100%; }
.to__room:hover .to__room-scene, .to__room:hover .to__up-ico { transform: translateY(-2px); }
.to__room.is-on .to__room-scene, .to__room.is-on .to__up-ico { border-color: var(--accent); }
.to__room.is-on span:last-child { color: var(--ink); font-weight: 600; }
.to__up-ico { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px dashed #cfc8c0; color: var(--accent); }
.to__upload:focus-within .to__up-ico { outline: 2px solid var(--accent); outline-offset: 2px; }
.to__panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.to__step .lbl { margin-bottom: 10px; }
.to__scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
.to__scroll::-webkit-scrollbar { display: none; }
.chips.chips--nowrap { flex-wrap: nowrap; }
.to__step--rail { position: relative; }
.to__select { width: 100%; min-height: 48px; font-weight: 600; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232d2f32' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; padding-right: 40px; }
.to__more { position: absolute; right: 0; top: -12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.to__more:hover { background: var(--ink); color: var(--on-ink); }
.chips--nowrap .chip { flex: none; }
.chips--sm .chip { min-height: 36px; padding: 4px 12px; font-size: 12.5px; }
.to__models { gap: 10px; }
.to__model { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); cursor: pointer;
  font: 500 11px/1.25 var(--font); color: var(--ink-2); text-align: center; transition: border-color var(--fast), background var(--fast); }
.to__model img { mix-blend-mode: multiply; height: 92px; aspect-ratio: 1 / 2.42; width: auto; object-fit: fill; }
.to__model span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.to__model:hover { border-color: var(--ink-3); }
.to__model.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.to__sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.to__name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.to__sub { font-size: 13px; color: var(--ink-2); }
.to__price { text-align: right; white-space: nowrap; }
.to__price small { display: block; font-size: 12px; color: var(--ink-3); }
.to__price b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.to__btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.to__fine { margin: -6px 0 0; font-size: 12px; color: var(--ink-3); }
.to__how { display: none; list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.to__how li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.6); font-size: 14px; color: var(--ink-2); }
.to__how b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-head); }

/* глухие и остекленные */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kind { display: flex; flex-direction: column; border-radius: calc(var(--radius) + 6px); background: var(--surface); text-decoration: none; overflow: hidden; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .kind:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,47,50,.1); } }
.kind__scene { aspect-ratio: 1800 / 1344; overflow: hidden; }
.kind__scene svg { transition: transform 600ms var(--ease); }
.kind:hover .kind__scene svg { transform: scale(1.03); }
.kind__body { padding: 22px 26px 26px; }
.kind__body h3 { margin-bottom: 4px; }
.kind__body p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* полоса преимуществ */
.perks { padding: 0 0 8px; background: var(--soft); }
.perks__in { border-top: 1px solid var(--soft-2); }
.perk b { font: 800 26px/1.15 var(--font-head); letter-spacing: -.03em; margin-bottom: 4px; color: var(--ink); }
.perk span { font-size: 14px; }
.perks__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.perk::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: var(--accent); }
.perk + .perk { border-left: 1px solid var(--soft-2); }
.perk svg { flex: none; color: var(--accent); }
.perk b { display: block; font-size: 14px; font-weight: 600; }
.perk span { font-size: 13px; color: var(--ink-2); }

/* секции */
.sec { padding: 96px 0; }
.screen { display: block; }
.screen > .wrap { width: 100%; }
.statement { background: var(--soft); }
.statement .eyebrow { margin-bottom: 24px; }
.mo-wh__text { margin: 0; font-size: clamp(28px, 3vw, 44px) !important; font-weight: 500 !important; line-height: 1.2 !important; max-width: 22ch !important; letter-spacing: -.02em !important; }
.statement__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.statement__scene { aspect-ratio: 1800 / 1344; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); }
.statement__scene svg { display: block; width: 100%; height: 100%; }
.mo-wh .mo-w { color: color-mix(in oklab, var(--ink) 64%, var(--bg)) !important; }
.mo-wh .mo-w.is-on { color: var(--ink) !important; }
.mo-wh strong .mo-w.is-on { color: var(--accent-ink) !important; }
.grid.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-cols { margin: 20px 0 0; color: var(--ink-2); font-size: 15px; }
.close__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.close__text h2 { font-size: clamp(30px, 3.6vw, 48px); }
.close__text p { color: var(--ink-2); font-size: 17px; max-width: 460px; margin: 0; }
.close__scene { aspect-ratio: 1800 / 1344; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); }
.close__scene svg, .kind__scene svg { display: block; width: 100%; height: 100%; }
.sec--soft { background: var(--soft); }
.sec--tight { padding: 56px 0 80px; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.sec__head p { margin: 0; color: var(--ink-2); max-width: 680px; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.sec__head h2 { margin-bottom: 10px; }

/* коллекции: бенто */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: var(--radius);
  background: var(--soft); text-decoration: none; overflow: hidden; isolation: isolate; transition: background .4s var(--spring); }
.tile { transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background .4s var(--spring); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,47,50,.1); } }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__img { position: absolute; z-index: -1; right: 10%; bottom: 20px; height: 70%; transition: transform .7s var(--spring); }
.tile--wide .tile__img { right: 6%; height: 96%; }
.tile--xl .tile__img { height: 88%; right: 10%; bottom: 0; }
.tile:hover .tile__img { transform: scale(1.03); }
.tile__img img { mix-blend-mode: multiply; height: 100%; aspect-ratio: 1 / 2.42; width: auto; object-fit: fill; filter: drop-shadow(0 18px 22px rgba(45,47,50,.18)); }
.tile__text { position: relative; z-index: 1; max-width: 52%; }
.tile__name { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.tile--xl .tile__name, .tile--scene .tile__name { font-size: 20px; }
.tile__scene { position: absolute; inset: 0; z-index: -1; transition: transform .9s var(--spring); }
.tile__scene svg { width: 100%; height: 100%; display: block; }
.tile--scene:hover .tile__scene { transform: scale(1.03); }
.tile--scene .tile__text { max-width: none; align-self: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--glass); backdrop-filter: blur(8px); }
.tile__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--glass); font-weight: 600; font-size: 14px; color: var(--ink); }
.tile__meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tile__meta span { white-space: nowrap; }
.tile:not(.tile--scene) .tile__go { position: absolute; top: 18px; right: 18px; }
.tile__go { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: background .3s, color .3s, transform .4s var(--spring); }
.tile:hover .tile__go { background: var(--ink); color: var(--on-ink); }

/* этапы: таймлайн */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); opacity: .5; }
.steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: 14px; position: relative; transition: background .3s, color .3s; }
.steps li:hover::before { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps h3 { font-size: 18px; margin: 4px 0 0; }
.steps li p { color: var(--ink-2); font-size: 15px; margin: 0; }
.steps--vis::before { display: none; }
.steps--vis li::before { position: absolute; z-index: 1; top: 12px; left: 12px; width: 36px; height: 36px; margin: 0; font-size: 13px; box-shadow: var(--shadow); }
.steps--vis li { background: var(--surface); border-radius: var(--radius); padding: 10px 10px 18px; }
.steps--vis li h3, .steps--vis li p { padding: 0 8px; }
.step__vis { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: #efe9e2; margin-bottom: 10px; }
.step__vis svg { display: block; width: 100%; height: 100%; }
.steps span { color: var(--ink-2); font-size: 14px; }
.cta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--band); color: #fff;
  border-radius: calc(var(--radius) + 6px); padding: 44px 48px; overflow: hidden; isolation: isolate; }

.cta p { margin: 0; color: #c4c6c9; }
.cta h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; flex: none; }
.cta .cta__btns .btn { min-width: 210px; }
.cta--col { flex-direction: column; align-items: stretch; padding: 36px; }

/* карусель */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background var(--fast), border-color var(--fast), color var(--fast); }
.rail__btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.rail__btn:disabled { opacity: .35; cursor: default; }

/* карточки дверей */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 32px 20px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.card__img { position: relative; aspect-ratio: 3 / 4.4; background: var(--soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  padding: 20px 22px; overflow: hidden; transition: background .4s var(--spring); }
.card__img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 10px; border-radius: 50%; background: rgba(45,47,50,.14); filter: blur(6px);
  transition: transform .5s var(--spring), opacity .5s; }
.card__img img { mix-blend-mode: multiply; position: relative; z-index: 1; height: 88%; aspect-ratio: 1 / 2.42; width: auto; object-fit: fill; transition: transform .55s var(--spring); }
.card:hover .card__img, .card.is-pressed .card__img { background: var(--soft-2); }
.card { transition: transform 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-2px); } }
.card:hover .card__img img, .card.is-pressed .card__img img { transform: scale(1.03); }
.card:hover .card__img::after, .card.is-pressed .card__img::after { transform: scaleX(.8); opacity: .6; }
.card__tag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.card__none { align-self: center; color: var(--ink-3); font-size: 13px; text-align: center; padding-bottom: 40%; }
.card__body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__col { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.card__name { font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.card__name::after { content: ""; position: absolute; inset: 0; }
.card__colors { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 17px; }
.card__price small { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.heart { position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .3s var(--spring), color var(--fast); }
.heart:hover { transform: scale(1.08); }
.heart.is-on { color: var(--accent); }
.heart.is-on path { fill: currentColor; }
.heart.is-pop { animation: pop .5s var(--spring); }

/* каталог */
.page { padding-top: 28px; padding-bottom: 96px; }
.page__h { margin: 12px 0 32px; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; transition: color var(--fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: #c3c5c8; }
.cat { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.fgroup .lbl { margin-bottom: 10px; }
.fgroup label { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; transition: color var(--fast); }
.fgroup label:hover { color: var(--accent); }
.fgroup label small { color: var(--ink-3); margin-left: auto; }
.fgroup input { accent-color: var(--accent); width: 16px; height: 16px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--ink-2); font-size: 14px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.filters-btn { display: none; }
.more { margin-top: 40px; }

/* поля */
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.fld small { color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font: 400 16px var(--font); color: var(--ink); transition: border-color var(--fast), box-shadow var(--fast); }
textarea { resize: vertical; min-height: 72px; }
select { width: auto; min-height: 42px; padding: 6px 14px; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: #d3cdc6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chk { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: flex-start; cursor: pointer; }
.chk input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* карточка двери */
.door { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 24px; }
.door__img { position: sticky; top: 92px; background: var(--soft); border-radius: calc(var(--radius) + 6px); display: flex; align-items: flex-end; justify-content: center;
  padding: 0 40px 0; height: min(78vh, 720px); overflow: hidden; }
.door__img::before { content: ""; position: absolute; inset: 14% 12% auto; aspect-ratio: 1; border-radius: 50%; background: var(--surface); opacity: .7; }
.door__img img { mix-blend-mode: multiply; position: relative; height: 100%; aspect-ratio: 1 / 2.42; width: auto; object-fit: fill; filter: drop-shadow(0 24px 26px rgba(45,47,50,.2)); animation: doorIn .6s var(--spring) both; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%); mask-image: linear-gradient(180deg, transparent 0, #000 7%); }
.door__alt { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; font-size: 12px; color: var(--ink-2); text-align: center; background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 12px; }
.door__col { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.door h1 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 10px; }
.door__price { font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 12px 0 4px; }
.door__price small { font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.opt { margin-top: 28px; }
.opt .lbl { margin-bottom: 12px; }
.opt .lbl b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 13px var(--font); color: var(--ink); cursor: pointer;
  transition: border-color var(--fast), background var(--fast), color var(--fast), transform .3s var(--spring); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.chip sup { color: var(--accent); }
.door__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.specs { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 14px; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-2); padding-right: 24px; }
.specs dd { margin: 0; }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* избранное, контакты */
.favbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.favbar p { margin: 0; }
.empty { text-align: center; padding: 80px 0; color: var(--ink-2); }
.empty svg { color: var(--accent); margin: 0 auto 16px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.cinfo { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: 16px; border-top: 1px solid var(--line); align-content: start; }
.cinfo dt, .cinfo dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { color: var(--ink-2); padding-right: 32px; }
.cinfo dd { margin: 0; font-weight: 500; }
.text { max-width: 760px; }
.cinfo-empty { padding: 28px; border-radius: var(--radius); background: var(--soft); }
.cinfo-empty p { color: var(--ink-2); margin: 0; }
.note { background: #fff6e8; border: 1px solid #f0d9b0; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }

/* модальное окно заявки */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__back { position: absolute; inset: 0; background: rgba(30,31,33,.5); backdrop-filter: blur(4px); animation: fade .3s ease both; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-lg); animation: modalIn .45s var(--spring) both; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2); transition: background var(--fast), color var(--fast); }
.modal__x:hover { background: var(--ink); color: var(--on-ink); }
.lead { display: flex; flex-direction: column; gap: 14px; }
.lead__title { margin: 0; padding-right: 44px; font-size: 26px; }
.lead__sub { margin: -6px 0 4px; color: var(--ink-2); font-size: 14px; }
.lead--ok { align-items: flex-start; }
.lead__ok-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lead__doors { background: var(--soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; }
.lead__doors ul { margin: 4px 0 0; padding-left: 18px; }
.lead__err { margin: 0; color: var(--accent-2); font-size: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* подвал */
.ftr { background: var(--band); color: #d6d8db; padding: 72px 0 28px; font-size: 14px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr .lbl { color: #a7aaae; margin-bottom: 14px; }
.ftr a { display: flex; align-items: center; min-height: 44px; text-decoration: none; transition: color var(--fast); }
.ftr a.exp, .ftr a.logo { display: flex; }
.ftr a:hover { color: #fff; }
.ftr p { margin: 0 0 6px; }
.ftr .logo__mark { color: #fff; font-size: 34px; }
.ftr__note { margin-top: 18px !important; color: #c4c6c9; max-width: 360px; }
.ftr__note--dim { color: #a7aaae; font-size: 12px; margin-top: 8px !important; }
.exp { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 18px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid #45484c; text-decoration: none; transition: background .3s, border-color .3s; }
.exp:hover { background: rgba(255,255,255,.08); border-color: #5c5f63; }
.exp__logo { flex: none; display: block; height: 26px; width: auto; color: #f5f5f2; overflow: visible; }
.exp span { color: #b4b6b9; font-size: 13px; }
.exp b { color: #fff; font-weight: 600; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 0;
  background: linear-gradient(#45484c, #45484c) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat; color: #a7aaae; font-size: 12px; }

/* корзина */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font: 500 18px var(--font); color: var(--ink); cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--soft); }
.qty output, .qty span { min-width: 30px; text-align: center; font-weight: 600; }
.cart { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
.cart__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cart__item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto 44px; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart__img { display: flex; justify-content: center; align-items: flex-end; height: 112px; border-radius: var(--radius-sm); background: var(--soft); padding-top: 8px; }
.cart__img img { mix-blend-mode: multiply; height: 100%; aspect-ratio: 1 / 2.42; width: auto; object-fit: fill; }
.cart__name { font-weight: 600; text-decoration: none; }
.cart__name:hover { color: var(--accent); }
.cart__meta { font-size: 13px; color: var(--ink-2); }
.cart__sum { font-weight: 600; white-space: nowrap; min-width: 110px; text-align: right; }
.cart__del { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart__del:hover { background: var(--soft); color: var(--accent-2); }
.cart__box { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: calc(var(--radius) + 6px); background: var(--soft); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--soft-2); }
.cart__total b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.radio { display: flex; flex-direction: column; gap: 8px; }
.radio label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: 14px; transition: border-color var(--fast); }
.radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { accent-color: var(--accent); margin-top: 3px; }
.radio small { display: block; color: var(--ink-2); font-size: 12px; }
.ok { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px; border-radius: calc(var(--radius) + 6px); background: var(--soft); max-width: 640px; }

/* доставка */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 40px; }
.dl__card { padding: 28px; border-radius: var(--radius); background: var(--soft); }
.dl__card svg { color: var(--accent); margin-bottom: 14px; }
.dl__card p, .dl__card li { color: var(--ink-2); font-size: 15px; }
.dl__card ul { padding-left: 18px; margin: 0; }
.dl__card li + li { margin-top: 6px; }

/* уведомление */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 999px; background: var(--band); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .4s var(--spring); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffb4a2; font-weight: 600; margin-left: 8px; }

/* вход первого экрана: заголовок, затем лид и кнопки, затем примерка; один раз, около 1.1 с */
[data-enter] .e-1, [data-enter] .e-2, [data-enter] .e-3, [data-enter] .e-4 { animation: rise .4s var(--ease-enter) both; }
[data-enter] .e-2 { animation-delay: .05s; } [data-enter] .e-3 { animation-delay: .12s; } [data-enter] .e-4 { animation-delay: .18s; }
@keyframes rise { from { opacity: .6; transform: translateY(10px); } }

/* адаптив */
@media (max-width: 1180px) {
  .hdr__phone { display: none; }
  .nav { gap: 20px; }
  .rail__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile--xl { grid-column: span 2; }
}
@media (max-width: 900px) {
  .wrap { --gut: 16px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; animation: fade .25s ease both; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav a::after { display: none; }
  .hdr__right .btn { display: none; }
  .hero { padding: 32px 0 40px; }
  .hero__top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .hero__aside { padding: 0; }
  .facts dt { min-width: 120px; font-size: 17px; }
  .to { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: relative; }
  .to__stage { display: contents; }
  .to__scene { position: sticky; top: 64px; z-index: 5; aspect-ratio: 4 / 3; }
  .to__note { position: static; border-radius: var(--radius-sm); }
  .to__how { display: none; }
  .hero__aside .hero__btns .btn:not(.btn--accent) { display: none; }
  .statement__in { grid-template-columns: 1fr; gap: 28px; }
  .to__btns { grid-template-columns: 1fr; }
  .to__rooms { gap: 8px; }
  .tile--scene .tile__text { padding: 6px 10px; }
  .tile--scene .tile__meta { font-size: 11px; margin-top: 0; }
  .tile__cta { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .tile__scene svg { transform-origin: 50% 60%; }
  .hero { padding-top: 20px; }
  .steps--vis { grid-template-columns: 1fr 1fr; }
  .to__panel { padding: 20px; }
  .kinds { grid-template-columns: 1fr; }
  .grid.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close__in { grid-template-columns: 1fr; gap: 28px; }
  .screen { min-height: 0; }
  .to__how { grid-template-columns: 1fr; gap: 8px; }
  .to__how li { padding: 12px 14px; }
  .cart { grid-template-columns: 1fr; }
  .cart__box { position: static; }
  .dl { grid-template-columns: 1fr; }
  .stats { gap: 24px; margin-top: 32px; }
  .perks__in { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 48px 0; }
  .sec__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; gap: 12px; }
  .tile--xl, .tile--wide { grid-column: span 2; grid-row: span 1; }
  .tile--xl .tile__name { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .steps::before { display: none; }
  .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 2.4); gap: 16px; }
  .cat { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: flex; }
  .filters-btn { display: inline-flex; }
  .door { grid-template-columns: 1fr; gap: 28px; }
  .door__img { position: relative; top: 0; height: 62vh; }
  .contacts { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__bottom { flex-direction: column; }
  .cta { flex-direction: column; align-items: stretch; padding: 32px 24px; }
  .favbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .stats b { font-size: 24px; }
  .stats { gap: 20px; }
  .to__scene { aspect-ratio: 4 / 3.1; border-radius: var(--radius); }
  .tile--scene .tile__text { padding: 8px 12px; }
  .tile--scene .tile__name { font-size: 15px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .to__scene { aspect-ratio: auto; height: 32vh; min-height: 200px; }
  .perk b { font-size: 20px; }
  .chips--sm .chip { min-height: 40px; }
  .to__room, .to__room img, .to__up-ico { width: 88px; }
  .to__room img, .to__up-ico { height: 58px; }
  .kind { grid-template-columns: 1fr; padding: 22px 22px 0; }
  .kind__img { height: 180px; order: 2; }
  .kind__body { padding-bottom: 0; }
  .cart__item { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 12px; }
  .cart__img { height: 92px; }
  .cart__item .qty, .cart__item .cart__sum { grid-column: 2; justify-self: start; }
  .cart__item .cart__sum { text-align: left; }
  .cart__del { grid-row: 1; grid-column: 3; }
  .logo { font-size: 26px; }
  .perks__in { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .perk { padding: 18px 4px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 10px; }
  .tile { padding: 16px; }
  .tile__text { max-width: none; }
  .tile__name { font-size: 15px; }
  .tile__meta { font-size: 12px; }
  .tile__img { height: 62%; right: 10%; }
  .tile__go { width: 34px; height: 34px; }
  .tile:not(.tile--scene) .tile__go { top: 12px; right: 12px; }
  .tile__text { padding-right: 36px; }
  .tile--xl, .tile--wide { grid-column: span 2; }

  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card__img { padding: 14px 14px 0; }
  .card__name { font-size: 14px; }
  .card__price { font-size: 15px; }
  .rail__track { grid-auto-columns: 62%; }
  .cat__bar { flex-wrap: wrap; }
  .sort span { display: none; }
  .modal__box { padding: 24px 20px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-enter] .e-1, [data-enter] .e-2, [data-enter] .e-3, [data-enter] .e-4 { animation: none; }
}

/* карточка двери: покупка */
.door__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.door__buy .qty button { width: 48px; height: 50px; }
.door__buy .btn--accent { flex: 1 1 200px; }
.btn--icon { width: 52px; padding: 0; }
.btn--icon[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.btn--icon[aria-pressed="true"] path { fill: currentColor; }
.btn--icon[aria-pressed="true"]:hover { color: #fff; }
.door__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.link--btn { border: 0; background: none; padding: 0; font: 600 14px var(--font); cursor: pointer; }
.lead-text { font-size: 18px; color: var(--ink-2); margin: -12px 0 32px; max-width: 640px; }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); margin-bottom: 20px; }
.seg-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.seg-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* первый экран в одно окно: ряд интерьеров лежит на нижнем крае сцены (только на широких экранах) */
@media (min-width: 901px) {
  .hero { padding: 24px 0 24px; }
  .hero__top { margin-bottom: 16px; }
  .to { grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); }
  .hero__aside .hero__btns { display: none; }
  .to__stage { position: relative; }
  .to__rooms { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; padding: 8px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(10px); -webkit-mask-image: none; mask-image: none; }
  .to__room { width: 84px; font-size: 11px; }
  .to__room-scene, .to__up-ico { width: 84px; height: 54px; }
  .to__tools { position: absolute; left: 12px; right: 12px; bottom: 100px; z-index: 3; }
}

/* строка "Еще N коллекций": обычный текст, не лента */
.more-cols { display: block !important; padding: 0 !important; background: none !important; overflow: visible !important; border-radius: 0 !important; }

/* строка остальных коллекций: чипы-ссылки 44px */
.more-cols { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
.more-cols .chip { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.more-cols__lbl { margin-right: 6px; color: var(--ink-2); }
@media (max-width: 520px) { .steps.steps--vis { grid-template-columns: 1fr 1fr; gap: 18px 12px; } .steps--vis li p { font-size: 13px; } .steps--vis h3 { font-size: 15px; } }

/* популярные: переключатель типа и кнопка каталога */
#popular .sec__head { flex-wrap: wrap; }
.pop__more { display: flex; justify-content: center; margin-top: 36px; }
.seg-tabs span { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.seg-tabs button { min-height: 44px; }
@media (min-width: 901px) {
  .hero__top { grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); }
  .to__panel { gap: 12px; padding: 20px 22px; }
  .to__model img { height: 74px; }
  .to__model { width: 66px; padding: 6px 4px; }
  .to__sum { padding-top: 12px; }
}

/* телефон: превью примерки не залипает, панель компактная */
@media (max-width: 900px) {
  .to__scene { position: relative !important; top: auto !important; }
  .to__rooms { gap: 8px !important; }
  .to__room-scene { border-radius: 10px; }
  .to__model img { height: 70px; }
  .to__model { width: 62px; }
  .to__panel { gap: 12px; }
}

/* крупные плитки коллекций: название прямо на фото, затемнение снизу */
.tile--scene { justify-content: flex-end; }
.tile--scene::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(18,14,10,.72) 0, rgba(18,14,10,.35) 38%, transparent 62%); pointer-events: none; }
.tile--scene .tile__text { position: relative; z-index: 1; order: 1; padding: 0; background: none; backdrop-filter: none; color: #fff; }
.tile--scene .tile__name { color: #fff; font-size: 26px; }
.tile--scene.tile--xl .tile__name { font-size: 34px; }
.tile--scene .tile__meta { color: rgba(255,255,255,.86); display: block; }
.tile--scene .tile__cta { position: relative; z-index: 1; order: 2; margin-top: 14px; }
.tile__name { font-weight: 500; }
/* шаги без белых рамок */
.steps--vis li { background: none; padding: 0; }
.steps--vis li h3, .steps--vis li p { padding: 0; }
.step__vis { border-radius: var(--radius); }
/* подписи моделей в конструкторе: 13px, одна строка */
.to__model { width: 82px; }
.to__model span { -webkit-line-clamp: 1; font-size: 13px; }
/* стрелка ленты на правом краю самой ленты */
.to__step--rail .to__more { top: auto; bottom: 22px; right: -10px; }
.to__step--rail:has([data-to-colors]) .to__more { bottom: 0; }
@media (max-width: 900px) {
  [data-enter] .e-1, [data-enter] .e-2, [data-enter] .e-3, [data-enter] .e-4 { animation: none; }
  .to__rooms { scroll-snap-type: x mandatory; padding-right: 40px; }
  .to__room { scroll-snap-align: start; width: 96px; }
  .to__room-scene, .to__up-ico { width: 96px; height: 62px; }
  .tile--scene .tile__name, .tile--scene.tile--xl .tile__name { font-size: 20px; }
  .tile--scene .tile__meta { font-size: 12px; }
}

#collections { padding-bottom: 64px; }
@media (max-width: 900px) { .hdr__right { gap: 10px; } }

/* примерка: крупная сцена, интерьеры под ней, справа карточки "Модель", "Цвет", "Цвет стены" */
.to { grid-template-columns: minmax(0, 1fr) 380px !important; align-items: start; }
.to__stage { position: relative; }
.to__rooms { position: static !important; padding: 4px 2px !important; background: none !important; backdrop-filter: none !important; }
.to__tools { position: static !important; }
.to__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.to__card { background: var(--surface); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.to__card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.to__card-head .lbl { margin: 0; }
.to__cur { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-align: right; }
.to__cur i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.to__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 8px; max-height: 300px; overflow-y: auto; padding: 4px 2px; scrollbar-width: thin; }
.to__sw { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 11.5px/1.25 var(--font); color: var(--ink-2); text-align: center; }
.to__sw i { display: block; width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(45,47,50,.12); transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.to__sw:hover i { transform: translateY(-2px); }
.to__sw.is-on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-btn); }
.to__sw.is-on span { color: var(--ink); font-weight: 600; }
.to__sw span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.to__sw sup { color: var(--accent-ink); }
.to__model small { display: block; font-size: 10.5px; color: var(--ink-3); -webkit-line-clamp: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.chip--xs { min-height: 34px; padding: 4px 12px; font-size: 12px; }
.to__groups { display: flex; flex-wrap: wrap; gap: 6px; }
.to__ral { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px 6px; max-height: 200px; overflow-y: auto; }
.to__ral-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 10.5px var(--font); color: var(--ink-2); }
.to__ral-sw i { width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.to__ral-sw.is-on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-btn); }
.to__wall .to__fine { margin: 0; }
@media (max-width: 1180px) { .to { grid-template-columns: minmax(0, 1fr) 320px !important; } }
@media (max-width: 900px) {
  .to { display: flex !important; flex-direction: column; align-items: stretch !important; }
  .to__side { width: 100%; }
  .to__swatches { max-height: none; }
}

/* примерка: сетка областей. Обычно: сцена слева на две строки, справа модель и под ней цвета.
   Широкий экран (от 1500 px): цвета слева, сцена в центре, модель справа; первый экран шире общей сетки сайта. */
.to { grid-template-columns: minmax(0, 1fr) 380px !important; grid-template-areas: "stage side" "stage colors"; grid-template-rows: auto 1fr; }
.to__stage { grid-area: stage; }
.to__side { grid-area: side; }
.to__colors-card { grid-area: colors; align-self: start; }
.to__wall { margin-top: 12px; animation: wallIn .3s var(--ease-enter) both; }
.to__wall .to__ral { max-height: none; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.to__wall .to__groups .chip { min-height: 38px; }
@keyframes wallIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 1500px) {
  .hero--wide .wrap { max-width: 1720px; }
  .to { grid-template-columns: 250px minmax(0, 1fr) 380px !important; grid-template-areas: "colors stage side"; grid-template-rows: auto; }
  .to__colors-card { align-self: start; }
  .hdr .wrap { max-width: 1720px; }
  .to__colors-card .to__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .hero__top { grid-template-columns: 250px minmax(0, 1fr) 380px; }
  .hero__top > div:first-child { grid-column: 2; }
  .hero__top > .hero__aside { grid-column: 3; }
}
@media (max-width: 900px) {
  .to__colors-card { order: 3; align-self: stretch; }
  .to__side { order: 2; }
}

/* цвет стены: строка-кнопка, палитра RAL раскрывается по нажатию */
.to__wall { gap: 12px; padding: 0; overflow: hidden; }
.to__wall-btn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 10px 22px; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.to__wall-btn .lbl { margin: 0; }
.to__wall-btn .to__cur { margin-right: auto; }
.to__wall-act { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.to__wall-act svg { transition: transform 200ms var(--ease); }
.to__wall.is-open .to__wall-act svg { transform: rotate(180deg); }
.to__wall-btn:hover .to__wall-act { text-decoration: underline; }
.to__wall.is-open { padding-bottom: 18px; }
.to__wall .to__groups, .to__wall .to__ral, .to__wall .to__fine { margin-left: 22px; margin-right: 22px; }

/* интерьеры: редакционная сетка рендеров фабрики на графитовом фоне */
.sec--dark { background: var(--band); color: #f3efe9; }
.sec--dark .sec__head p { color: #c9c3bb; }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15.5vw, 236px); gap: 12px; }
.gal__i { position: relative; grid-column: span 3; overflow: hidden; border-radius: var(--radius-sm); background: #3a3c40; display: block; }
.gal__i--xl { grid-column: span 6; grid-row: span 2; }
.gal__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gal__i:hover img { transform: scale(1.03); }
.gal__i:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1024px) {
  .gal { grid-auto-rows: clamp(150px, 22vw, 220px); }
  .gal__i { grid-column: span 4; }
  .gal__i--xl { grid-column: span 8; }
}
@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 8px; }
  .gal__i { grid-column: span 1; }
  .gal__i--xl { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) { .gal__i img { transition: none; } }

/* покрытия вблизи: кадр из шоурума слева, список коллекций справа; выбор пункта меняет кадр */
.mat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.mat__pic { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #e2dad0; }
.mat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.mat__img.is-on { opacity: 1; }
.mat__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mat__list li { border-bottom: 1px solid var(--line); }
.mat__btn { display: grid; gap: 2px; width: 100%; min-height: 44px; padding: 14px 0 14px 18px; border: 0; border-left: 2px solid transparent; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.mat__btn .lbl { margin: 0; }
.mat__h { font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.mat__p { display: none; color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.mat__btn[aria-pressed="true"] { border-left-color: var(--accent); }
.mat__btn[aria-pressed="true"] .mat__p { display: block; }
.mat__btn[aria-pressed="true"] .lbl { color: var(--accent-ink); }
.mat__btn:hover .mat__h { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mat__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mat__more { margin: 28px 0 0; }
@media (max-width: 900px) {
  .mat { grid-template-columns: 1fr; gap: 20px; }
  .mat__more .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .mat__img { transition: none; } }

/* покрытия вблизи, v2: пункт списка - строка-кнопка с миниатюрой и стрелкой */
.mat__list { border-top: 0; display: grid; gap: 8px; }
.mat__list li { border-bottom: 0; }
.mat__btn { grid-template-columns: 64px minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--fast), background var(--fast), transform var(--fast), box-shadow var(--fast); }
.mat__thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.mat__txt { display: grid; gap: 2px; min-width: 0; }
.mat__h { font-size: 17px; }
.mat__go { color: var(--ink-3); transition: transform var(--fast), color var(--fast); }
.mat__btn:hover { border-color: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow); }
.mat__btn:hover .mat__go { color: var(--ink); transform: translateX(2px); }
.mat__btn:hover .mat__h { text-decoration: none; }
.mat__btn:active { transform: translateY(0); }
.mat__btn[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); border-left-color: var(--accent); }
.mat__btn[aria-pressed="true"] .mat__go { color: var(--accent); transform: rotate(90deg); }
@media (max-width: 900px) { .mat__btn { grid-template-columns: 56px minmax(0, 1fr) 20px; gap: 12px; } .mat__thumb { width: 56px; height: 42px; } }

/* страница "Дизайнерам": партнерская программа */
.ds-hero { padding: 48px 0 72px; background: var(--soft); }
.ds-hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ds-hero h1 { font-size: clamp(34px, 4vw, 58px); line-height: 1.05; margin-bottom: 20px; }
.ds-hero h1 em { font-style: normal; color: var(--accent-ink); }
.ds-hero__lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.ds-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-hero__fact { margin: 28px 0 0; color: var(--ink-2); font-size: 15px; }
.ds-hero__fact b { font-family: var(--font-head); font-size: 28px; font-weight: 500; color: var(--ink); margin-right: 6px; }
.ds-hero__pic, .ds-split__pic { border-radius: var(--radius); overflow: hidden; background: #e2dad0; }
.ds-hero__pic img, .ds-split__pic img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.ds-split__pic:hover img { transform: scale(1.03); }
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-3); }
.ds-steps li { padding: 28px 32px 8px 0; }
.ds-steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.ds-steps__n { display: block; font-family: var(--font-head); font-size: 44px; line-height: 1; color: var(--accent-ink); margin-bottom: 20px; }
.ds-steps h3 { font-size: 22px; margin-bottom: 10px; }
.ds-steps p { color: var(--ink-2); margin: 0; }
.ds-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ds-split__text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.ds-split__text > p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; max-width: 540px; }
.ds-split__text .ds-hero__btns { margin-top: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link-arrow svg { transition: transform var(--fast); }
.link-arrow:hover svg { transform: translateX(3px); }
.ds-perks { list-style: none; margin: 8px 0 0; padding: 0; }
.ds-perks li { padding: 18px 0 18px 28px; border-top: 1px solid var(--line); position: relative; }
.ds-perks li::before { content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ds-perks h3 { font-size: 20px; margin: 0 0 4px; }
.ds-perks p { margin: 0; color: var(--ink-2); }
.ds-band { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; padding: 72px 0; overflow: hidden; background: #3a3c40; }
.ds-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-band .wrap { position: relative; width: 100%; }
.ds-band__box { max-width: 560px; background: var(--glass); border-radius: var(--radius); padding: 32px 36px; }
.ds-band__box h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 12px; }
.ds-band__box p { margin: 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 900px) {
  .ds-hero { padding: 24px 0 48px; }
  .ds-hero__in, .ds-split { grid-template-columns: 1fr; gap: 28px; }
  .ds-hero__pic { order: -1; }
  .ds-split--rev .ds-split__pic { order: -1; }
  .ds-hero__btns .btn { flex: 1 1 100%; justify-content: center; }
  .ds-steps { grid-template-columns: 1fr; }
  .ds-steps li, .ds-steps li + li { padding: 24px 0 8px; border-left: 0; }
  .ds-steps li + li { border-top: 1px solid var(--line); }
  .ds-steps__n { font-size: 34px; margin-bottom: 12px; }
  .ds-band { min-height: 0; padding: 0; display: block; background: var(--soft); }
  .ds-band__img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .ds-band__box { border-radius: 0; padding: 28px 0 40px; background: none; }
}
@media (prefers-reduced-motion: reduce) { .ds-split__pic img, .link-arrow svg { transition: none; } }
@media (min-width: 901px) { .ds-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ds-hero h1 { font-size: clamp(30px, 3.4vw, 50px); overflow-wrap: anywhere; hyphens: auto; }

/* вопросы и ответы: оглавление слева, раскрывающиеся ответы справа */
.faq { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; margin: 40px 0 64px; }
.faq__toc { position: sticky; top: 96px; display: grid; gap: 4px; }
.faq__toc a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color var(--fast), border-color var(--fast); }
.faq__toc a:hover { color: var(--ink); border-color: var(--accent); }
.faq__group { scroll-margin-top: 96px; }
.faq__group + .faq__group { margin-top: 48px; }
.faq__group > h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.faq__q { border-bottom: 1px solid var(--line); }
.faq__q:first-of-type { border-top: 1px solid var(--line); }
.faq__q summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.3; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2f32' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .25s var(--ease), background-color var(--fast), border-color var(--fast); }
.faq__q[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq__q summary:hover::after { border-color: var(--ink-3); }
.faq__q summary:hover { color: var(--accent-ink); }
.faq__q summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq__a { padding: 0 52px 22px 0; color: var(--ink-2); max-width: 760px; }
.faq__a p { margin: 0 0 12px; }
.faq__a ul { margin: 0 0 12px; padding-left: 20px; }
.faq__a li { margin-bottom: 6px; }
.faq__a h3 { font-size: 17px; color: var(--ink); margin: 16px 0 6px; }
.faq__a h3:first-child { margin-top: 0; }
.faq__a b { color: var(--ink); font-weight: 600; }
.faq__a a { color: var(--accent-ink); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 24px; margin: 24px 0 40px; }
  .faq__toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq__toc a { border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 16px; }
  .faq__q summary { font-size: 17px; }
  .faq__a { padding-right: 0; }
}

/* вторая кнопка на темной плашке .cta: светлый контур */
.btn--light { color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (hover: hover) { .btn--light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); } }

/* мессенджеры: значки Telegram и WhatsApp в шапке и подвале */
.msg svg { display: block; transition: transform var(--fast); }
.hdr__ico.msg:hover { background: none; }
.msg:hover svg { transform: translateY(-1px) scale(1.06); }
.msg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ftr__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ftr__msg-a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 7px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; transition: border-color var(--fast), background var(--fast); }
.ftr__msg-a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 520px) { .hdr__ico.msg { width: 38px; } .hdr__ico.msg svg { width: 28px; height: 28px; } }
@media (max-width: 520px) {
  .hdr__right { gap: 2px; }
  .hdr__ico.msg { width: 36px; }
  .hdr .logo { font-size: 26px; }
}
@media (min-width: 901px) { .hdr__right { gap: 6px; } .hdr__right .btn { margin-left: 10px; } }

/* шапка: при 7 пунктах меню, значках мессенджеров и переключателе темы меню сворачивается в бургер до 1500 px */
@media (min-width: 901px) and (max-width: 1499px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; animation: fade .25s ease both; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav a::after { display: none; }
}

/* статус официального дилера: полоса над шапкой и строка в подвале */
.topbar { background: var(--band); color: #e9e5df; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; }
.topbar__seal { display: flex; align-items: center; gap: 10px; margin: 0; }
.topbar__seal b { display: block; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .01em; line-height: 1.2; }
.topbar__sub { display: block; color: #b9b3ab; font-size: 12px; line-height: 1.3; }
.seal { flex: none; display: block; }
.topbar__facts { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; color: #cfc9c1; }
.topbar__facts li { display: flex; align-items: center; gap: 8px; }
.topbar__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ftr__dealer { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: #fff; font-weight: 600; font-size: 14px; }
@media (max-width: 1024px) { .topbar__facts li:nth-child(n+2) { display: none; } }
@media (max-width: 640px) {
  .topbar__facts { display: none; }
  .topbar__in { justify-content: center; min-height: 44px; }
  .topbar__seal b { font-size: 13px; }
  .topbar__sub { display: none; }
  .seal { width: 28px; height: 28px; }
}

/* согласие на обработку персональных данных: карточка реквизитов, оглавление, нумерованные разделы */
.pd-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.pd-meta > div { padding: 18px 22px; }
.pd-meta > div + div { border-left: 1px solid var(--line); }
.pd-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.pd-meta dd { margin: 0; font-weight: 500; color: var(--ink); }
.pd-meta a { color: var(--accent-ink); }
.pd { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; margin: 40px 0 72px; }
.pd__toc { position: sticky; top: 96px; display: grid; gap: 2px; }
.pd__toc a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: background var(--fast), color var(--fast); }
.pd__toc a span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.pd__toc a:hover { background: var(--soft); color: var(--ink); }
.pd__body { max-width: 780px; }
.pd__sec { scroll-margin-top: 96px; padding-bottom: 32px; }
.pd__sec + .pd__sec { padding-top: 32px; border-top: 1px solid var(--line); }
.pd__sec h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 18px; }
.pd__n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-family: var(--font); font-size: 16px; font-weight: 600; }
.pd__sec p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.65; }
.pd__sec p b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.pd__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.pd__list li { position: relative; padding: 10px 14px 10px 36px; background: var(--soft); border-radius: 10px; color: var(--ink); }
.pd__list li::before { content: ""; position: absolute; left: 15px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pd__note { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; }
.pd__box { margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.pd__box p { margin-bottom: 12px; }
.pd__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd__contacts li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; color: var(--ink); font-weight: 500; }
.pd__contacts li span { color: var(--ink-3); font-weight: 400; }
.pd__contacts a { color: var(--accent-ink); }
.pd__date { margin-top: 22px !important; font-size: 14px; color: var(--ink-3) !important; }
@media (max-width: 900px) {
  .pd-meta { grid-template-columns: 1fr; }
  .pd-meta > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pd { grid-template-columns: 1fr; gap: 24px; margin: 28px 0 48px; }
  .pd__toc { position: static; grid-template-columns: 1fr 1fr; }
  .pd__contacts li { grid-template-columns: 1fr; gap: 2px; }
}

/* каталог: панель "Подбор двери" на графитовом фоне - поиск с подсказками, цвет кружками, коллекции плитками с дверью */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 901px) { .cat { grid-template-columns: 290px minmax(0, 1fr); } }
.filters { gap: 22px; padding: 22px 20px 24px; background: var(--band); color: #e9e5df; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; scrollbar-color: #5a5c60 transparent; }
.filters .lbl { color: #a8a29a; margin-bottom: 12px; }
.fl__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fl__title { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 500; color: #fff; }
.fl__reset { min-height: 44px; padding: 0; border: 0; background: none; color: #e7a593; font: 600 13px var(--font); cursor: pointer; }
.fl__reset:hover { color: #fff; text-decoration: underline; }
.fl__search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #3a3c40; color: #a8a29a; border: 1px solid transparent; transition: border-color var(--fast); }
.fl__search:focus-within { border-color: var(--accent); color: #fff; }
.fl__search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 15px var(--font); outline: none; padding: 12px 0; }
.fl__search input::placeholder { color: #8f8a84; }
.fl__hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -10px; }
.fhint { min-height: 32px; padding: 0 10px; border: 1px dashed #5a5c60; border-radius: 999px; background: none; color: #cfc9c1; font: 13px var(--font); cursor: pointer; transition: border-color var(--fast), color var(--fast); }
.fhint:hover { border-color: #e7a593; color: #fff; }
.fl__tones { display: grid; gap: 4px; }
.tone { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 8px; border: 1px solid transparent; border-radius: 12px; background: none; color: #e9e5df; font: 14px var(--font); text-align: left; cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.tone i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.tone small, .fcol small { color: #8f8a84; font-size: 12px; }
.tone:hover { background: #3a3c40; }
.tone[aria-pressed="true"] { border-color: var(--accent); background: #3a3c40; }
.tone[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent); }
.fl__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fcol { position: relative; display: grid; grid-template-rows: 64px auto auto; justify-items: start; gap: 2px; min-height: 44px; padding: 10px 10px 9px; border: 1px solid #45474b; border-radius: 12px; background: #34363a; color: #fff; text-align: left; cursor: pointer; transition: border-color var(--fast), background var(--fast), transform var(--fast); }
.fcol img, .fcol > span { justify-self: center; height: 64px; width: auto; aspect-ratio: 1 / 2.42; object-fit: fill; border-radius: 2px; background: #f1ede7; }
.fcol b { margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.fcol:hover { border-color: #6a6c70; transform: translateY(-1px); }
.fcol[aria-pressed="true"] { border-color: var(--accent); background: #40342f; }
.fcol[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.fl__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { min-height: 36px; padding: 0 12px; border: 1px solid #45474b; border-radius: 999px; background: none; color: #e9e5df; font: 13px var(--font); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.fchip:hover { border-color: #8f8a84; }
.fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters .range { margin-top: 10px; }
.filters .range input { min-height: 44px; padding: 0 12px; border: 1px solid #45474b; border-radius: 10px; background: #3a3c40; color: #fff; font: 14px var(--font); width: 100%; }
.filters .range input::placeholder { color: #8f8a84; }
.filters .range input:focus { outline: none; border-color: var(--accent); }
/* у рендеров внизу наличник короче полотна: срезаем нижнюю кромку кадра, иначе по бокам видны светлые уголки фона */
.card__img img { clip-path: inset(0 0 4.5% 0); }
@media (max-width: 900px) {
  .filters { max-height: none; overflow: visible; }
  .fl__cols { grid-template-columns: repeat(3, 1fr); }
  .fl__tones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .fl__cols { grid-template-columns: 1fr 1fr; } .fl__tones { grid-template-columns: 1fr; } }
/* девиз под статусом дилера */
.topbar__sub { font-family: var(--font-head); font-style: italic; font-size: 13px; color: #e7a593; letter-spacing: .01em; }

/* девиз справа в полосе дилера: тонкий разделитель, курсив заголовочного шрифта, вторая часть терракотовая */
.topbar__in { gap: 28px; }
.topbar__facts { margin-left: auto; }
.topbar__motto { display: flex; align-items: center; gap: 6px; margin: 0; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); font-family: var(--font-head); font-style: italic; font-size: 15px; line-height: 1.2; color: #e7a593; white-space: nowrap; }
.topbar__motto span { color: #fff; }
.topbar__motto::before { content: ""; width: 18px; height: 1px; background: var(--accent); margin-right: 6px; flex: none; }
@media (max-width: 1379px) { .topbar__facts li:nth-child(4) { display: none; } }
@media (max-width: 1279px) { .topbar__facts { display: none; } .topbar__motto { margin-left: auto; } }
@media (max-width: 899px) { .topbar__motto { display: none; } }
.topbar__seal b, .topbar__facts li { white-space: nowrap; }
.topbar__seal, .topbar__facts { flex: none; }
.topbar__in { gap: 22px; }
.topbar__facts { gap: 18px; }
.topbar__motto { padding-left: 22px; font-size: 14px; }

/* расчет двери с комплектом (EXP S) на странице модели */
.kit { margin: 20px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); animation: wallIn .3s var(--ease-enter) both; }
.kit__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kit__title { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.kit__badge { padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font: 800 12px var(--font-logo); letter-spacing: .02em; }
.kit__badge::after { content: "."; color: #ff5b2e; }
.kit__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.kit__f { display: grid; gap: 6px; align-content: start; }
.kit__f .lbl { margin: 0; }
.kit__f select, .kit__wall input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 15px var(--font); color: var(--ink); }
.kit__f select:focus, .kit__wall input:focus { outline: none; border-color: var(--accent); }
.kit__seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.kit__seg button { flex: 1 1 auto; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; transition: background var(--fast), color var(--fast); }
.kit__seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.kit__seg button:disabled { opacity: .4; cursor: not-allowed; }
.kit__fixed { margin: 0; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); font-size: 14px; }
.kit__wall { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kit__wall input { width: 130px; }
.kit__wall input:disabled { background: var(--soft); color: var(--ink-3); }
.kit__wall > span { color: var(--ink-3); font-size: 14px; }
.kit__chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ink); cursor: pointer; }
.kit__chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.kit__chk--row { grid-column: 1 / -1; }
.kit__lines { list-style: none; margin: 14px 0 0; padding: 0; }
.kit__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kit__lines b { display: block; font-weight: 600; }
.kit__lines small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.kit__q { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.kit__sum { text-align: right; font-weight: 600; white-space: nowrap; }
.kit__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 6px; }
.kit__total span { color: var(--ink-2); }
.kit__total b { font-size: 26px; font-weight: 700; }
.kit__notes { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.kit__notes li { margin-bottom: 4px; }
.kit__warn { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--accent); }
.kit__warn p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.kit__warn b { color: var(--ink); }
.kit__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .kit { padding: 16px; }
  .kit__form { grid-template-columns: 1fr; }
  .kit__lines li { grid-template-columns: minmax(0, 1fr) auto; }
  .kit__q { grid-column: 1; }
  .kit__sum { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .kit__btns .btn { flex: 1 1 100%; justify-content: center; }
}
.kit__form { grid-template-columns: 1fr; }
.kit__f { grid-template-columns: 140px minmax(0, 1fr); align-items: center; }
.kit__f .lbl { align-self: center; }
.kit__seg { flex-wrap: nowrap; }
.kit__seg button { white-space: nowrap; }
@media (max-width: 640px) { .kit__f { grid-template-columns: 1fr; } .kit__seg { flex-wrap: wrap; } }

/* карточка модели кликабельна целиком: ссылка названия растянута на всю карточку, сердечко выше нее */
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card__name:focus-visible { outline: none; }
.card__name:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* дверь под покраску: палитра RAL на странице модели */
.paint { margin: 6px 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.paint__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.paint__head .lbl { margin: 0; }
.paint__cur { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.paint__cur i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.paint__clear { min-height: 32px; border: 0; background: none; color: var(--accent-ink); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }
.paint__groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.paint__groups .chip { min-height: 36px; font-size: 13px; }
.paint__sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 236px; overflow: auto; padding: 2px; }
.paint__c { display: grid; justify-items: center; gap: 3px; min-height: 58px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: 11px var(--font); color: var(--ink-2); }
.paint__c i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.paint__c:hover { background: var(--soft); }
.paint__c.is-on { border-color: var(--accent); background: var(--soft); color: var(--ink); font-weight: 600; }
.paint .hint { margin: 10px 0 0; }

/* FiloMuro: идеи отделки скрытой двери */
.ideas__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ideas__i { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.ideas__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ideas__i:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .ideas__grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* заметная кнопка расчета комплекта с логотипом EXP·S */
.kitbtn { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--fast), transform var(--fast), box-shadow var(--fast); }
.kitbtn:hover { background: color-mix(in oklab, var(--accent) 11%, var(--surface)); transform: translateY(-1px); box-shadow: var(--shadow); }
.kitbtn:active { transform: translateY(0); }
.kitbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kitbtn__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.kitbtn__txt b { display: block; font-size: 16px; font-weight: 700; color: var(--accent-ink); }
.kitbtn__txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.kitbtn__via, .kit__via { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.kitbtn__go { color: var(--accent-ink); transition: transform .25s var(--ease); }
.kitbtn.is-open .kitbtn__go { transform: rotate(180deg); }
.exps { display: inline-flex; align-items: center; gap: 6px; }
.exps svg { display: block; border-radius: 5px; }
.exps b { font: 800 14px var(--font); letter-spacing: .02em; color: #1D3B6E; }
.exps i { font-style: normal; color: #ff5b2e; }
@media (max-width: 520px) {
  .kitbtn { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .kitbtn__ico { width: 40px; height: 40px; }
  .kitbtn__via { grid-column: 2; grid-row: 2; }
  .kitbtn__go { grid-column: 3; grid-row: 1 / span 2; }
}

/* каталог v3: панель подбора над сеткой. Поиск и подсказки, лента коллекций, тип полотна и выпадающие фильтры в одну строку */
.cat.cat--top { display: block; }
.ftop { display: grid; gap: 14px; margin: 8px 0 18px; }
.ftop__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ftop__search { flex: 1 1 420px; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-3); box-shadow: var(--shadow); transition: border-color var(--fast); }
.ftop__search:focus-within { border-color: var(--accent); color: var(--ink); }
.ftop__search input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--font); color: var(--ink); outline: none; padding: 14px 0; }
.ftop__hints { display: flex; flex-wrap: wrap; gap: 6px; }
.ftop__hints .fhint { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink-2); font: 13px var(--font); cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); }
.ftop__hints .fhint:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--surface); }
.ftop__cols { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ftop__cols .fcol { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast); grid-template-rows: none; }
.ftop__cols .fcol img { height: 48px; width: auto; aspect-ratio: 1 / 2.42; object-fit: fill; border-radius: 2px; background: none; mix-blend-mode: multiply; }
.ftop__cols .fcol span { display: grid; gap: 1px; }
.ftop__cols .fcol b { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ftop__cols .fcol small { color: var(--ink-3); font-size: 12px; }
.ftop__cols .fcol--all { padding: 8px 18px; flex-direction: column; justify-content: center; gap: 0; align-items: flex-start; }
.ftop__cols .fcol:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.ftop__cols .fcol[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.ftop__cols .fcol[aria-pressed="true"] small { color: #cfc9c1; }
.ftop__cols .fcol[aria-pressed="true"] img { mix-blend-mode: normal; background: #f1ede7; }
.ftop__cols .fcol[aria-pressed="true"]::after { display: none; }
.ftop__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ftop__bar .seg-tabs { margin: 0; }
.fdrop { position: relative; }
.fdrop summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 14px var(--font); cursor: pointer; list-style: none; }
.fdrop summary::-webkit-details-marker { display: none; }
.fdrop summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--fast); }
.fdrop[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fdrop summary:hover { border-color: var(--ink-3); }
.fdrop__n:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.fdrop__pop { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: 320px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.fdrop__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fdrop__pop .fchip { min-height: 38px; border-color: var(--line); color: var(--ink); }
.fdrop__pop .fchip:hover { border-color: var(--ink-3); }
.fdrop__pop .fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.fdrop__pop .range { margin-top: 10px; }
.fdrop__pop .range input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--font); width: 100%; }
.ftop__reset { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent-ink); font: 600 14px var(--font); cursor: pointer; }
.ftop__reset:hover { text-decoration: underline; }
.ftop__bar .sort { margin-left: auto; }
.cat__count { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.cat--top .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .cat--top .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .cat--top .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .cat--top .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftop__search { flex-basis: 100%; min-height: 50px; }
  .ftop__bar .seg-tabs { width: 100%; }
  .ftop__bar .sort { margin-left: 0; }
  .fdrop__pop { width: min(320px, calc(100vw - 32px)); }
  .fdrop:nth-of-type(2) .fdrop__pop { left: auto; right: auto; }
}
.ftop__cols .fcol > span { height: auto; width: auto; aspect-ratio: auto; background: none; justify-self: auto; border-radius: 0; }
.ftop__cols .fcol small { white-space: nowrap; }
@media (max-width: 700px) {
  .ftop__bar { position: relative; }
  .ftop__bar .fdrop { position: static; }
  .ftop__bar .fdrop__pop { left: 0; right: 0; width: auto; }
}
@media (max-width: 700px) { .ftop__bar .fdrop:nth-of-type(2) .fdrop__pop { left: 0; right: 0; } }
.kit__need { margin: 0; color: var(--accent-ink) !important; font-weight: 600; }

/* скрытая дверь под покраску: сцена "дверь в стене" вместо полотна на фоне */
.door__img--wall { padding: 0; background: #e9e6e1; }
.door__img--wall::before { display: none; }
.wallscene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: doorIn .6s var(--spring) both; }
/* домен сайта в стиле логотипа: zadoor + home.ru */
.pd-site { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--ink); }
.pd-site .logo { font-size: 20px; letter-spacing: -.8px; }
.pd-site__tld { font-family: var(--font-logo); font-weight: 800; font-size: 20px; letter-spacing: -.8px; color: var(--accent); }
.pd-site:hover .pd-site__tld { text-decoration: underline; }
/* переход по якорю (#tryon, #collections и т.д.): раздел встает под закрепленную шапку, а не под нее */
html { scroll-padding-top: 84px; }
@media (max-width: 900px) { html { scroll-padding-top: 72px; } }

/* шапка 1280-1439 px: с третьим значком (почта) пункты меню чуть плотнее, чтобы ряд помещался */
@media (min-width: 1280px) and (max-width: 1439px) { .hdr__in { gap: 24px; } .nav { gap: 22px; } }
/* телефон: в ряд шапки почта не помещается, она остается в подвале */
@media (max-width: 520px) { .hdr__ico.msg--mail { display: none; } }

/* примерка: цвета двери списком - образец, название, наценка справа */
.to__card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.to__cnt { font-size: 12px; color: var(--ink-3); }
.to__clist { display: flex; flex-direction: column; gap: 2px; margin: 10px -8px 0; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.to__crow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font: 500 14px/1.25 var(--font); color: var(--ink-2); transition: background 150ms var(--ease), color 150ms var(--ease); }
.to__crow:hover { background: var(--soft); color: var(--ink); }
.to__crow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.to__crow i { flex: none; width: 30px; height: 30px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow 150ms var(--ease); }
.to__crow span { flex: 1; min-width: 0; }
.to__crow em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.to__crow.is-on { background: var(--soft); color: var(--ink); font-weight: 600; }
.to__crow.is-on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-btn); }
.to__colors-card .to__fine { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .to__clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: none; } }

/* кнопки: при наведении заливка поднимается снизу (::before) и по кнопке пробегает блик (::after), кнопка приподнимается;
   при нажатии кнопка проседает. Оба слоя под текстом */
.btn { isolation: isolate; overflow: hidden; --fill: var(--ink); --on-fill: var(--on-ink); --glint: rgba(255, 255, 255, .5); }
.btn--accent { --fill: color-mix(in oklab, var(--accent-btn) 80%, #000); }
.btn--light, .ftr .btn:not(.btn--accent) { --fill: #fff; --on-fill: #2d2f32; --glint: rgba(255, 255, 255, .8); }
.btn::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: 0; height: 140%; pointer-events: none;
  background: var(--fill); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform: translateY(105%); transition: transform .5s cubic-bezier(.6, 0, .2, 1), border-radius .5s cubic-bezier(.6, 0, .2, 1); }
.btn::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, var(--glint) 50%, transparent 100%); opacity: .55;
  transform: translateX(-160%) skewX(-18deg); }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { background: transparent; color: var(--on-fill); border-color: var(--fill); transform: translateY(-2px); }
  .btn--accent:not(:disabled):hover { background: var(--accent-btn); color: #fff; box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--accent-btn) 75%, transparent); }
  .btn:not(:disabled):hover::before { transform: translateY(-14%); border-radius: 0; }
  .btn:not(:disabled):hover::after { animation: btnGlint .75s cubic-bezier(.4, 0, .2, 1) .12s; }
  .btn:not(:disabled):active { transform: translateY(0) scale(.97); transition-duration: 90ms; }
  .btn--icon[aria-pressed="true"]:hover { color: var(--on-fill); }
}
@keyframes btnGlint { to { transform: translateX(380%) skewX(-18deg); } }
.btn { transition: background-color 150ms var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--spring), box-shadow .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } .btn::after { display: none; } .btn:hover { transform: none !important; } }

/* ---------- темная тема ---------- */
/* включается атрибутом data-theme="dark" на <html> (переключатель в шапке, выбор хранится в localStorage) */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ecebe8;
  --ink-2: #c9c5bf;
  --ink-3: #a29c95;
  --line: #36383c;
  --bg: #151617;
  --surface: #1e1f21;
  --soft: #222326;
  --soft-2: #2b2d30;
  --band: #0d0e0f;
  --on-ink: #151617;
  --accent: #dc7660;
  --accent-2: #e88a75;
  --accent-ink: #ef9c87;
  --accent-soft: rgba(220, 118, 96, .16);
  --hdr-bg: rgba(21, 22, 23, .82);
  --glass: rgba(30, 31, 33, .9);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.5);
}
/* подложки под фото дверей: фото сняты на белом и смешиваются через multiply, поэтому подложка и текст на ней остаются в светлой гамме */
html[data-theme="dark"] :is(.heart, .tile__go, .card__img, .door__img, .cart__img, .to__model, .tile:not(.tile--scene), .more-col, .ftop__cols .fcol, .fcol img, .fcol > span, .to__sw i, .tile--scene .tile__text, .tile__cta) {
  --ink: #2d2f32; --ink-2: #4b4d51; --ink-3: #6f6a65; --line: #e7e3de; --surface: #ffffff; --soft: #f1ede8; --on-ink: #ffffff;
  --accent: #c35c46; --accent-ink: #a3452f; --glass: rgba(255,255,255,.9); --hdr-bg: rgba(255,255,255,.82);
}
html[data-theme="dark"] :where(.heart, .tile__go, .card__img, .door__img, .cart__img, .to__model, .tile:not(.tile--scene), .more-col, .ftop__cols .fcol, .tile--scene .tile__text, .tile__cta) { color: var(--ink); }
html[data-theme="dark"] :is(.card__img, .door__img, .cart__img, .to__model, .tile:not(.tile--scene)) { background: #ece7e0; }
html[data-theme="dark"] .door__img::before { opacity: .4; }
html[data-theme="dark"] .note { background: #2b2519; border-color: #5a4a2c; }
html[data-theme="dark"] img:not([src*="doors/"]):not(.exp__logo) { filter: brightness(.92); }
html[data-theme="dark"] .logo { color: var(--ink); }
html[data-theme="dark"] ::selection { background: rgba(220, 118, 96, .35); }
html { transition: background-color .3s var(--ease); }

/* группа радиокнопок без рамки браузера по умолчанию */
fieldset.radio { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.radio legend { padding: 0; }
/* телефон: с переключателем темы значки шапки уже, чтобы ряд помещался в 360-390 px */
@media (max-width: 520px) { .hdr__in { gap: 12px; } .hdr__right { gap: 0; } .hdr__right .hdr__ico:not(.msg) { width: 36px; } }
@media (max-width: 374px) { .hdr .logo { font-size: 23px; } .hdr__ico.msg { width: 32px; } .hdr__ico.msg svg { width: 26px; height: 26px; } }
html[data-theme="dark"] .exps b { color: #9fb6e0; }

/* переключатель темы: длинная капсула с двумя половинами, подложка переезжает под выбранную */
.themesw { position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.themesw__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(45,47,50,.12);
  transition: transform .45s var(--spring), background-color .3s var(--ease); }
.themesw[data-on="light"] .themesw__thumb { transform: translateX(100%); }
.themesw button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  font: 600 13px var(--font); color: var(--ink-3); white-space: nowrap; cursor: pointer; transition: color .3s var(--ease); }
.themesw button:hover { color: var(--ink); }
.themesw button[aria-pressed="true"] { color: var(--ink); }
.themesw[data-on="dark"] button[aria-pressed="true"] { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.themesw[data-on="light"] button[aria-pressed="true"] { color: #1f3550; }
.themesw button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.themesw button svg { flex: none; transition: transform .5s var(--spring); }
.themesw button[aria-pressed="true"] svg { transform: rotate(-20deg) scale(1.08); }
.hdr__right .themesw { margin-right: 8px; }
.themesw--nav { display: none; }
/* 1280-1499 px: рядом с меню места мало, в капсуле остаются значки */
@media (min-width: 901px) and (max-width: 1099px), (min-width: 1500px) and (max-width: 1719px) { .hdr__right .themesw span { display: none; } .hdr__right .themesw button { padding: 0 11px; } }
/* телефон и планшет: капсула переезжает в выпадающее меню */
@media (max-width: 900px) {
  .hdr__right .themesw { display: none; }
  .nav .themesw--nav { display: grid; margin-top: 14px; }
  .nav .themesw--nav button { min-height: 44px; padding: 0 12px; border-bottom: 0; font-size: 14px; }
}

/* первый экран: пояснение и три факта над панелью примерки */
.hero__facts { display: flex; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hero__facts li { flex: 1 1 0; min-width: 0; padding: 12px 14px 0 0; }
.hero__facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.hero__facts b { display: block; font: 500 17px/1.2 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.hero__facts span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.hero__lead { max-width: 520px; }
@media (max-width: 520px) { .hero__facts b { font-size: 16px; } .hero__facts li { padding-right: 8px; } .hero__facts li + li { padding-left: 10px; } }

/* панель примерки */
.to__step .lbl .to__cnt { margin-left: 6px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.to__sum { margin: 0 -8px; padding: 14px 16px; border: 0; border-radius: var(--radius-sm); background: var(--soft); }
.to__panel .to__btns { margin-top: -4px; }

/* широкий экран: панель на всю высоту сцены, модели сеткой с прокруткой, итог внизу */
@media (min-width: 1500px) {
  .to__side { align-self: stretch; display: flex; contain: size; min-height: 520px; }
  .to__side .to__panel { flex: 1; min-height: 0; }
  .to__doorui:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; } /* обертка режима "Двери": высоту ограничивает панель */
  .to__step--models { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .to__step--models .to__more { display: none; }
  .to__models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 8px; flex: 1; min-height: 0;
    overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; scrollbar-width: thin; padding: 2px 4px 14px 2px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  .to__models::-webkit-scrollbar { display: block; width: 6px; }
  .to__models::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .to__models .to__model { width: auto; padding: 10px 6px 8px; transition: border-color .2s var(--ease), transform .25s var(--spring), box-shadow .25s var(--ease); }
  .to__models .to__model img { height: 112px; }
  .to__models .to__model:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}
@media (min-width: 1500px), (max-width: 520px) { .hero__facts b { font-size: 15.5px; white-space: nowrap; letter-spacing: -.03em; } .hero__facts li + li { padding-left: 10px; } .hero__facts li { padding-right: 8px; } }
@media (max-width: 380px) { .hero__facts b { font-size: 14px; } .hero__facts span { font-size: 11.5px; } }

/* рисунок в подложке переключателя: ночь с луной и закатом для темной темы, солнечное небо для светлой */
.themesw__thumb { overflow: hidden; background: #141a36; }
.themesw[data-on="light"] .themesw__thumb { background: #7cc4f5; }
.themesw__thumb .sc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .5s var(--ease); }
.themesw[data-on="dark"] .sc--day, .themesw[data-on="light"] .sc--night { opacity: 0; }
/* при включении темы светило поднимается из-за горизонта, облако и звезды появляются следом */
.sc__moon, .sc__sun { transition: transform .8s var(--spring) .12s; }
.themesw[data-on="light"] .sc__moon, .themesw[data-on="dark"] .sc__sun { transform: translateY(26px); transition-delay: 0s; }
.sc__cloud { transition: transform 1s var(--spring) .2s, opacity .6s .2s; }
.themesw[data-on="dark"] .sc__cloud { transform: translateX(-18px); opacity: 0; }
.sc__stars circle { animation: scTwinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sc__stars circle:nth-child(2n) { animation-delay: -.9s; } .sc__stars circle:nth-child(3n) { animation-delay: -1.7s; animation-duration: 3.4s; }
@keyframes scTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.sc__rays { transform-box: fill-box; transform-origin: center; animation: scSpin 14s linear infinite; }
@keyframes scSpin { to { transform: rotate(360deg); } }
.sc__cloud ellipse { animation: scDrift 7s ease-in-out infinite alternate; }
@keyframes scDrift { to { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .sc__stars circle, .sc__rays, .sc__cloud ellipse { animation: none; } .sc__moon, .sc__sun, .sc__cloud { transition: none; } }
.hdr__right .themesw:not(.themesw--nav) button, .themesw--nav button { padding: 0 26px 0 12px; }
@media (min-width: 901px) and (max-width: 1099px), (min-width: 1500px) and (max-width: 1719px) { .hdr__right .themesw button { padding: 0 11px; } .hdr__right .themesw .sc__moon, .hdr__right .themesw .sc__sun { transform: translate(-6px, 1px) scale(.8); transform-origin: 128px 13px; } }

/* ---------- заставка при первом входе ---------- */
.intro { display: none; }
@media (max-width: 820px), (max-height: 520px) { html.zd-intro .intro { display: none; } }
html.zd-intro .intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
  background: #000; color: #f3efe9; }
html.zd-intro-lock, html.zd-intro-lock body { overflow: hidden; }
/* уход шторкой вверх со скругленным низом, как заставка EXP */
.intro { transition: transform 1s cubic-bezier(.76, 0, .24, 1), border-radius 1s cubic-bezier(.76, 0, .24, 1); }
.intro.is-out { transform: translateY(-104%); border-radius: 0 0 50% 50% / 0 0 14vh 14vh; pointer-events: none; }
.intro__glow { position: absolute; left: 50%; top: 42%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 112, .22), transparent 62%); opacity: 0; animation: inFade 1.2s ease 1.4s forwards; }
.intro__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__door { width: clamp(110px, 16vh, 170px); height: auto; overflow: visible; }
.intro__frame { stroke-dasharray: 720; stroke-dashoffset: 720; animation: inDraw 1s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
.intro__floor { stroke-dasharray: 160; stroke-dashoffset: 160; animation: inDraw .8s ease .3s forwards; }
.intro__leaf { opacity: 0; transform-box: fill-box; transform-origin: 100% 50%; animation: inFade .5s ease .7s forwards, inOpen 1.3s cubic-bezier(.5, 0, .2, 1) 2s forwards; }
.intro__lines path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: inDraw .7s ease forwards; }
.intro__lines path:nth-child(1) { animation-delay: .9s; } .intro__lines path:nth-child(2) { animation-delay: 1s; } .intro__lines path:nth-child(3) { animation-delay: 1.1s; }
.intro__lines path:nth-child(4) { animation-delay: 1.15s; } .intro__lines path:nth-child(5) { animation-delay: 1.25s; } .intro__lines path:nth-child(6) { animation-delay: 1.3s; } .intro__lines path:nth-child(7) { animation-delay: 1.4s; }
.intro__opening { opacity: 0; animation: inFade .6s ease 2.05s forwards; }
/* полотно поворачивается на петлях справа: сжимается по ширине и чуть темнеет */
@keyframes inOpen { to { transform: perspective(600px) rotateY(-58deg); filter: brightness(.86); } }
@keyframes inDraw { to { stroke-dashoffset: 0; } }
@keyframes inFade { to { opacity: 1; } }
.intro__logo { display: flex; font: 800 clamp(46px, 7vw, 76px)/1 var(--font-logo); letter-spacing: -.045em; }
.intro__clip { display: flex; overflow: hidden; padding: .06em .02em .08em; }
.intro__l { display: inline-block; color: #dc7660; transform: translateY(115%); animation: inUp .9s var(--ease-enter) forwards; }
.intro__l--ink { color: #f3efe9; }
.intro__l:nth-child(1) { animation-delay: .5s; } .intro__l:nth-child(2) { animation-delay: .56s; } .intro__l:nth-child(3) { animation-delay: .62s; }
.intro__l:nth-child(4) { animation-delay: .68s; } .intro__l:nth-child(5) { animation-delay: .74s; } .intro__l:nth-child(6) { animation-delay: .8s; }
.intro__dot { animation: inUp .7s var(--spring) .95s forwards, inPulse 1.6s ease 1.7s infinite; }
@keyframes inUp { to { opacity: 1; transform: none; } }
@keyframes inPulse { 50% { color: #ffb08f; } }
.intro__line { display: block; width: min(420px, 70vw); height: 1px; margin: -8px 0 -6px; background: rgba(255, 255, 255, .18); transform: scaleX(0); animation: inLine 1.3s var(--ease-enter) .7s forwards; }
@keyframes inLine { to { transform: none; } }
.intro__tag { margin: 0; font: 500 12px var(--font); letter-spacing: .32em; text-transform: uppercase; color: #8d918e; opacity: 0; transform: translateY(8px); animation: inUp .8s var(--ease-enter) 1.3s forwards; }
.intro__dealer { position: absolute; left: 50%; bottom: max(36px, 7vh); display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; border: 1px solid rgba(243, 239, 233, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .04); transform: translate(-50%, 24px); opacity: 0; animation: inDealer .9s var(--spring) 1.5s forwards; white-space: nowrap; }
@keyframes inDealer { to { opacity: 1; transform: translate(-50%, 0); } }
.intro__dealer::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 190, .35) 50%, transparent 70%) no-repeat; background-size: 250% 100%; background-position: 120% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px; animation: inShine 1.4s ease 2.2s forwards; }
@keyframes inShine { to { background-position: -120% 0; } }
.intro__seal { flex: none; transform: scale(.4) rotate(-90deg); animation: inSeal .8s var(--spring) 1.7s forwards; }
@keyframes inSeal { to { transform: none; } }
.intro__check { stroke-dasharray: 20; stroke-dashoffset: 20; animation: inDraw .45s ease 2.25s forwards; }
.intro__dealer-txt { display: flex; flex-direction: column; line-height: 1.2; }
.intro__dealer-txt b { font: 600 16px var(--font-head); letter-spacing: -.01em; color: #fff; }
.intro__dealer-txt span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a29c95; }
.intro__skip { position: absolute; top: 18px; right: 18px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(243, 239, 233, .2); border-radius: 999px; background: none; color: #a29c95;
  font: 500 13px var(--font); cursor: pointer; opacity: 0; animation: inFade .4s ease .8s forwards; }
.intro__skip:hover { color: #fff; border-color: rgba(243, 239, 233, .5); }
@media (max-width: 520px) { .intro__dealer { bottom: 28px; padding: 10px 18px 10px 12px; } .intro__dealer-txt b { font-size: 15px; } .intro__tag { font-size: 11px; letter-spacing: .24em; } }
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro *::after { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* заставка, правки: плашка дилера и блик на логотипе */
.intro__logo { position: relative; }
.intro__shine { position: absolute; inset: 0; padding: .06em .02em .08em; pointer-events: none; color: transparent; letter-spacing: inherit;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 244, 230, .95) 48%, rgba(255, 214, 170, .9) 52%, transparent 62% 100%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; -webkit-background-clip: text; background-clip: text;
  animation: inSheen 1.4s cubic-bezier(.45, 0, .2, 1) 1.25s forwards; }
@keyframes inSheen { to { background-position: -30% 0; } }
.intro__logo { filter: drop-shadow(0 0 0 rgba(220, 118, 96, 0)); animation: inLogoGlow 1.6s ease 1.25s forwards; }
@keyframes inLogoGlow { 50% { filter: drop-shadow(0 0 18px rgba(255, 190, 150, .35)); } to { filter: drop-shadow(0 0 8px rgba(220, 118, 96, .18)); } }

.intro__dealer { gap: 12px; padding: 9px 22px 9px 10px; border: 0; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(233, 138, 111, .35), 0 10px 40px -12px rgba(220, 118, 96, .45); }
.intro__seal { transform: scale(.6) rotate(-120deg); opacity: 0; animation: inSeal .9s var(--spring) 1.55s forwards; }
@keyframes inSeal { to { transform: none; opacity: 1; } }
.intro__check { stroke-dasharray: 18; stroke-dashoffset: 18; animation: inDraw .45s ease 2s forwards; }
.intro__dealer-txt { gap: 1px; }
.intro__dealer-txt b { font: 600 15px/1.2 var(--font); letter-spacing: -.005em; color: #fff; }
.intro__dealer-txt span { font: 500 11px/1.3 var(--font); letter-spacing: .2em; color: #e9a58f; }

/* заставка с видео двери */
.intro__film { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.intro.is-film .intro__film { opacity: 1; }
/* телефон: видео не грузится, вместо него постер двери */
.intro.intro--still .intro__film { background: #0b0b0c url(intro/door-poster.webp) center center / cover no-repeat; filter: none; }
.intro.intro--still .intro__video { visibility: visible; }
/* телефон: дверь показываем обычной картинкой, ее браузер и Lighthouse считают за LCP */
.intro__still { display: none; }
.intro.intro--still .intro__still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.intro.intro--still.intro--img .intro__video { display: none; }
@keyframes stillZoomImg { from { transform: scale(1); } to { transform: scale(1.06); } }
.intro.intro--still.intro--img .intro__film { background: #0b0b0c; animation: none; }
.intro.intro--still.intro--img .intro__still { animation: stillZoomImg 2.4s cubic-bezier(.35,0,.4,1) forwards; }
/* кадр двери на телефоне занимает весь экран, логотип и плашка остаются сверху */

/* на телефоне лишние подписи убираем, логотип и плашку держим читаемыми */
/* подписи прячем плавно, но место сохраняем: иначе логотип прыгает при появлении двери */
.intro.intro--still .intro__line, .intro.intro--still .intro__tag { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.intro.intro--still .intro__logo { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.intro.intro--still .intro__skip { color: #f3efe9; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
/* легкий наезд кадра, чтобы заставка не выглядела статичной */
@keyframes stillZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.intro.intro--still.is-film .intro__film { animation: stillZoom 2.4s cubic-bezier(.35,0,.4,1) forwards; opacity: 1; }
.intro.intro--still.is-film .intro__film { opacity: 1; }
.intro__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__video { object-position: 50% 50%; }
.intro__flash { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, #fff3df, #ffd6a3 45%, rgba(255, 200, 140, 0) 100%); opacity: 0; transition: opacity .4s ease; }
.intro.is-flash .intro__flash { opacity: .85; }
.intro__stage { transition: opacity .6s ease, transform .9s cubic-bezier(.6, 0, .2, 1), filter .6s ease; }
.intro.is-film .intro__stage { opacity: 0; transform: translateY(-24px) scale(.96); filter: blur(6px); }
.intro__glow { display: none; }
/* вход в сайт через проем: заставка приближается и растворяется в свете */
.intro.is-through { transition: opacity .9s ease .1s, transform 1s cubic-bezier(.5, 0, .2, 1); opacity: 0; transform: scale(1.12); pointer-events: none; }
.intro__dealer { z-index: 2; }
.intro__skip { z-index: 3; }
/* плашка дилера читается и на светлом проеме видео */
.intro__dealer { background: rgba(14, 14, 16, .72); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
/* рендер двери виден сразу: под логотипом он приглушен, потом разгорается и дверь открывается */
.intro__film { opacity: 0; filter: brightness(.42) saturate(.9); animation: inFade 1.1s ease .05s forwards; transition: filter 1.1s ease; }
.intro.is-film .intro__film { filter: none; }
.intro__film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 52%, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); transition: opacity .9s ease; }
.intro.is-film .intro__film::after { opacity: 0; }
.intro__logo, .intro__tag { text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.intro__tag { color: #c9c3bb; }
.intro__line { background: rgba(255, 255, 255, .32); }
/* заставка, итог: черный фон, рендер двери в кадре над логотипом, в конце кадр растет на весь экран (вход в проем) */
.intro__film { position: relative; inset: auto; flex: none; height: min(46vh, 440px); aspect-ratio: .54; overflow: hidden; opacity: 0; filter: none;
  animation: inDoorIn 1s var(--ease-enter) .05s forwards; transition: transform 1.2s cubic-bezier(.6, 0, .2, 1);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(70% 62% at 50% 48%, #000 62%, transparent 100%); }
@keyframes inDoorIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.intro__film::after { display: none; }
.intro.is-film .intro__film { filter: none; }
.intro__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.intro.is-film .intro__stage { opacity: 1; transform: none; filter: none; }
.intro__stage { gap: 18px; }
.intro__logo, .intro__tag { text-shadow: none; }
.intro__tag { color: #8d918e; }
.intro__line { background: rgba(255, 255, 255, .18); }
/* дверь открылась: логотип и подписи уходят, кадр с дверью растет на весь экран */
.intro__logo, .intro__line, .intro__tag { transition: opacity .5s ease; }
.intro.is-flash .intro__logo, .intro.is-flash .intro__line, .intro.is-flash .intro__tag, .intro.is-flash .intro__dealer { opacity: 0; transition: opacity .4s ease; }
.intro.is-flash .intro__film { animation: none; opacity: 1; transform: translateY(var(--fdy, 0px)) scale(var(--fs, 3.4)); -webkit-mask-image: none; mask-image: none; }
.intro__flash { z-index: 1; }
@media (max-width: 520px) { .intro__film { height: min(44vh, 380px); } }
/* края кадра с дверью растворяются в черном: по бокам и сверху, снизу короче, чтобы свет на полу остался */
.intro__film { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 88%, transparent 100%); mask-composite: intersect; }
.intro.is-flash .intro__film { -webkit-mask-image: none; mask-image: none; }
/* на вспышке подписи и плашка гаснут через filter: их opacity удерживает анимация появления */
.intro__line, .intro__tag, .intro__dealer, .intro__skip { transition: filter .45s ease; }
.intro.is-flash .intro__line, .intro.is-flash .intro__tag, .intro.is-flash .intro__dealer, .intro.is-flash .intro__skip { filter: opacity(0); }
.intro.is-flash .intro__logo { animation: none; filter: opacity(0); transition: filter .45s ease; }

/* ---------- Почему мы? ---------- */
.whyus { position: relative; overflow: hidden; }
.whyus::before { content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 600px; margin-left: -450px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); filter: blur(10px); }
.whyus .wrap { position: relative; }
.whyus__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.whyus__head .eyebrow { justify-content: center; }
.whyus__h { margin: 4px 0 16px; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; }
/* подсветка заголовка: маркер терракотой прорисовывается слева направо, по тексту проходит блик */
.whyus__mark { position: relative; display: inline-block; padding: 0 .14em; isolation: isolate;
  background: linear-gradient(100deg, var(--ink) 0 40%, var(--accent) 50%, var(--ink) 60% 100%) no-repeat; background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.whyus__mark::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: .08em; height: .36em; border-radius: .12em;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, transparent), color-mix(in oklab, var(--accent) 25%, transparent));
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.65, 0, .25, 1) .25s; }
.whyus__head.in .whyus__mark::after { transform: none; }
.whyus__head.in .whyus__mark { animation: whySheen 1.8s cubic-bezier(.45, 0, .2, 1) .5s forwards; }
@keyframes whySheen { to { background-position: 0 0; } }
.whyus__lead { margin: 0 auto; max-width: 640px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }

.whyus__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.whyus__story { padding: 32px 34px; border-radius: calc(var(--radius) + 6px); background: var(--band); color: #e9e5df; }
.whyus__story h3 { margin: 0 0 14px; font-size: 26px; color: #fff; }
.whyus__story p { margin: 0 0 12px; color: #c9c3bb; text-wrap: pretty; }
.whyus__story p:last-child { margin: 0; color: #fff; }

/* "чек": расходы салона зачеркиваются по очереди, когда блок появляется на экране */
.whyus__check { position: relative; padding: 28px 30px; border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow); }
.whyus__check::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 7px -1px, transparent 7px, var(--surface) 7.5px) 0 0 / 14px 14px repeat-x; filter: drop-shadow(0 4px 3px rgba(0,0,0,.06)); }
.whyus__check-h { margin: 0 0 10px; font: 600 12px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.whyus__check-h--plus { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.whyus__minus, .whyus__plus { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.whyus__minus li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-2); }
.whyus__minus li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in oklab, var(--ink-3) 18%, transparent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.whyus__minus span { position: relative; }
.whyus__minus span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65, 0, .25, 1); }
.whyus__check.in .whyus__minus li:nth-child(1) span::after { transform: none; transition-delay: .35s; }
.whyus__check.in .whyus__minus li:nth-child(2) span::after { transform: none; transition-delay: .65s; }
.whyus__check.in .whyus__minus li:nth-child(3) span::after { transform: none; transition-delay: .95s; }
.whyus__plus li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.whyus__plus li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

.whyus__cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.whyus__card { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.whyus__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.whyus__card i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.whyus__card h3 { margin: 0 0 8px; font-size: 20px; }
.whyus__card p { margin: 0; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

.whyus__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(110deg, color-mix(in oklab, var(--accent) 16%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.whyus__cta h3 { margin: 0 0 6px; font-size: 22px; }
.whyus__cta p { margin: 0; max-width: 680px; color: var(--ink-2); text-wrap: pretty; }
.whyus__btns { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* появление при прокрутке */
.whyus .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-enter), transform .8s var(--ease-enter); }
.whyus .rv.in { opacity: 1; transform: none; }
.whyus__cards .rv:nth-child(2) { transition-delay: .08s; } .whyus__cards .rv:nth-child(3) { transition-delay: .16s; } .whyus__cards .rv:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .whyus .rv { opacity: 1; transform: none; } .whyus__mark::after, .whyus__minus span::after { transform: none; transition: none; } .whyus__mark { background-position: 0 0; animation: none; } }

@media (max-width: 1100px) { .whyus__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .whyus__grid { grid-template-columns: 1fr; }
  .whyus__cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .whyus__head { text-align: left; }
  .whyus__head .eyebrow { justify-content: flex-start; }
  .whyus__lead { font-size: 16px; }
  .whyus__story, .whyus__check, .whyus__cta { padding: 22px 20px; }
  .whyus__story h3 { font-size: 22px; }
  .whyus__cards { grid-template-columns: 1fr; }
  .whyus__btns, .whyus__btns .btn { width: 100%; }
}
.whyus__check::after { display: none; }
/* заголовок "Почему мы?": буквы сплошным цветом поверх маркера, маркер прорисовывается слева направо, знак вопроса терракотой со свечением */
.whyus__mark { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; animation: none !important; z-index: 0; }
.whyus__mark::after { bottom: .04em; height: .3em; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 50%, transparent), color-mix(in oklab, var(--accent) 18%, transparent)); }
.whyus__mark em { font-style: normal; color: var(--accent); text-shadow: 0 0 28px color-mix(in oklab, var(--accent) 55%, transparent); }
.whyus__head.in .whyus__mark em { animation: whyGlow 2.4s ease-in-out 1.2s 2; }
@keyframes whyGlow { 50% { text-shadow: 0 0 6px color-mix(in oklab, var(--accent) 70%, transparent), 0 0 42px color-mix(in oklab, var(--accent) 60%, transparent); } }
/* выделение в тексте блока "Почему мы?": терракота сайта
   (в темной карточке - светлый оттенок, чтобы читался на графите) */
.whyus__hl { background: none; color: #ef9c87; font-weight: 700; }
/* ореол за заголовком "Почему мы?": целиком внутри секции и гаснет во все стороны, без резкой кромки у верхнего края */
.whyus::before { top: 10px; height: 640px; width: 1100px; margin-left: -550px; border-radius: 0; filter: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in oklab, var(--accent) 16%, transparent) 0%, color-mix(in oklab, var(--accent) 7%, transparent) 45%, transparent 100%); }

/* Почему мы: из чего складывается цена двери, примерочная и просчет EXP S */
.whyus__price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 20px; padding: 32px 34px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.whyus__price h3 { margin: 0 0 12px; font-size: 26px; }
.whyus__price-text > p:not(.whyus__check-h) { margin: 0 0 20px; color: var(--ink-2); text-wrap: pretty; }
.whyus__parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; counter-reset: part; border-top: 1px solid var(--line); }
.whyus__parts li { counter-increment: part; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.whyus__parts li::before { content: counter(part); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 13px var(--font); }
.whyus__parts b { font-weight: 600; font-size: 15px; }
.whyus__parts span { font-size: 13px; color: var(--ink-3); }
.whyus__tools { display: flex; flex-direction: column; gap: 12px; }
.whyus__tool { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.whyus__tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.whyus__tool > span:last-child { display: flex; flex-direction: column; gap: 6px; }
.whyus__tool b { font: 500 19px/1.25 var(--font-head); letter-spacing: -.01em; }
.whyus__tool > span:last-child > span { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.whyus__tool em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.whyus__tool em::after { content: " \2192"; display: inline-block; transition: transform .25s var(--spring); }
.whyus__tool:hover em::after { transform: translateX(4px); }
.whyus__tool-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.whyus__tool-ico--exps { background: #eef2f9; width: 56px; padding: 0; }
.whyus__tool-ico--exps .exps { flex-direction: column; gap: 2px; }
.whyus__tool-ico--exps .exps svg { width: 26px; height: 26px; }
.whyus__tool-ico--exps .exps b { font-size: 9.5px; color: #1D3B6E; }
.whyus__tool-note { margin: 2px 2px 0; font-size: 13px; color: var(--ink-3); text-wrap: pretty; }
@media (max-width: 1100px) { .whyus__price { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .whyus__price { padding: 22px 20px; }
  .whyus__price h3 { font-size: 22px; }
  .whyus__parts { grid-template-columns: 1fr; }
  .whyus__tool { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .whyus__tool-ico { width: 48px; height: 48px; }
}
.kit { scroll-margin-top: 96px; }
html .whyus__tool-ico--exps .exps b { color: #1D3B6E; }
.intro__dealer-txt { align-items: flex-start; }
.intro__dealer-txt span { display: inline-block; white-space: nowrap; font-size: 11.5px; }

/* ---------- панель каталога: поиск и сортировка, лента коллекций со стрелками, фильтры и счетчик ---------- */
.ftop__row { flex-wrap: nowrap; }
.ftop__row .sort { flex: none; margin: 0; }
.ftop__row .sort span { color: var(--ink-3); font-size: 14px; }
.sort select { min-height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--surface); color: var(--ink); font: 500 14px var(--font); cursor: pointer; }
.ftop__strip { position: relative; display: flex; align-items: center; }
.ftop__strip .ftop__cols { flex: 1; min-width: 0; scrollbar-width: none; padding: 4px 2px 6px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.ftop__strip.is-start .ftop__cols { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
.ftop__strip.is-end .ftop__cols { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.ftop__strip.is-start.is-end .ftop__cols { -webkit-mask-image: none; mask-image: none; }
.ftop__strip .ftop__cols::-webkit-scrollbar { display: none; }
.ftop__arr { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: opacity .2s, transform .2s var(--spring), border-color .2s; }
.ftop__arr:hover { border-color: var(--accent); transform: scale(1.06); }
.ftop__arr:disabled { opacity: 0; pointer-events: none; }
.ftop__arr--prev { left: -6px; } .ftop__arr--next { right: -6px; }
/* плитка коллекции в обеих темах на поверхности сайта; миниатюра двери на светлой подложке */
.ftop__cols .fcol, html[data-theme="dark"] .ftop__cols .fcol { --ink: inherit; color: var(--ink); background: var(--surface); border-color: var(--line); padding: 7px 16px 7px 7px; gap: 12px; min-height: 62px; border-radius: 16px; }
html[data-theme="dark"] .ftop__cols .fcol { --ink: #ecebe8; --ink-3: #a29c95; --line: #36383c; --surface: #1e1f21; }
.ftop__cols .fcol img { height: 48px; padding: 3px 6px; box-sizing: content-box; border-radius: 9px; background: #f1ede8; mix-blend-mode: normal; }
html[data-theme="dark"] .ftop__cols .fcol img { background: #ebe6df; }
.ftop__cols .fcol:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.ftop__cols .fcol[aria-pressed="true"], html[data-theme="dark"] .ftop__cols .fcol[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.ftop__cols .fcol[aria-pressed="true"] small { color: var(--accent-ink); }
.ftop__cols .fcol[aria-pressed="true"] img { background: #fff; }
.ftop__cols .fcol--all { padding: 8px 20px; }
.ftop__bar .cat__count { margin: 0 0 0 auto; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 760px) {
  .ftop__row { flex-wrap: wrap; }
  .ftop__row .sort { width: 100%; justify-content: space-between; }
  .ftop__arr { display: none; }
  .ftop__strip .ftop__cols { -webkit-mask-image: none; mask-image: none; }
  .ftop__bar .cat__count { width: 100%; margin: 4px 0 0; }
}
.ftop { grid-template-columns: minmax(0, 1fr); } .ftop > * { min-width: 0; }
@media (max-width: 520px) { .ftop__bar .seg-tabs button { padding: 0 10px; font-size: 13.5px; white-space: nowrap; } }
/* стрелки ленты коллекций стоят по бокам, а не поверх плиток: крайняя плитка не перекрывается и читается целиком */
.ftop__strip { gap: 10px; }
.ftop__arr { position: static; flex: none; margin: 0; }
.ftop__arr:disabled { opacity: .3; }
.ftop__strip .ftop__cols { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); scroll-snap-type: x mandatory; scroll-padding-inline: 2px; }
.ftop__strip.is-start .ftop__cols { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%); }
.ftop__strip.is-end .ftop__cols { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px); mask-image: linear-gradient(90deg, transparent 0, #000 22px); }
@media (max-width: 760px) { .ftop__strip { gap: 0; } .ftop__strip .ftop__cols { scroll-snap-type: x proximity; } }
/* выделение на светлых карточках: терракота текущей темы */
.whyus__tool .whyus__hl { color: var(--accent-ink); }

/* верхняя строка: значки приложений EXP·F (примерка) и EXP·S (расчет) */
.topbar__facts a { color: inherit; text-decoration: none; }
.topbar__facts a:hover { color: #fff; }
.tb-exp { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); vertical-align: middle; }
.tb-exp svg { display: block; border-radius: 4px; }
.tb-exp b { font: 800 11px/1 var(--font); letter-spacing: .02em; color: #fff; }
.tb-exp--f i { font-style: normal; color: #FF5B2E; }
.tb-exp--s i { font-style: normal; color: #7fa2e0; }

/* уведомление о cookie */
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--ink-2); animation: fade .3s ease both; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent-ink); }
.cookie .btn { flex: none; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ---------- Контакты: каналы связи, замер, салоны фабрики ---------- */
.ct-lead { max-width: 720px; margin: -6px 0 28px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.ct { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.ct__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface);
  color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.ct-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.ct-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-card__ico svg { display: block; }
.ct-card__ico--call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.ct-card__body { display: flex; flex-direction: column; gap: 4px; }
.ct-card__body b { font: 600 13px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ct-card__val { font: 500 21px/1.25 var(--font-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ct-card__body small { font-size: 14px; color: var(--ink-2); }
.ct-card__go { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.ct-card:hover .ct-card__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-8deg); }
.ct__measure { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: calc(var(--radius) + 4px); background: var(--band); color: #f3efe9; }
.ct__measure h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); color: #fff; }
.ct__measure .eyebrow { margin: 0; color: #ef9c87; }
.ct-steps { list-style: none; margin: 4px 0 8px; padding: 0; counter-reset: st; display: grid; gap: 0; }
.ct-steps li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ct-steps li::before { content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(239, 156, 135, .16); color: #ef9c87; font: 700 13px var(--font); }
.ct-steps b { font-weight: 600; font-size: 15px; color: #fff; }
.ct-steps span { font-size: 13.5px; color: #c9c3bb; }
.ct__measure .btn--wide { margin-top: 2px; }
.ct-live { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; padding: 26px 30px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(110deg, color-mix(in oklab, var(--accent) 14%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line)); }
.ct-live h3 { margin: 0 0 6px; font-size: 22px; }
.ct-live p { margin: 0; max-width: 760px; color: var(--ink-2); text-wrap: pretty; }
.ct-live .btn { flex: none; }
@media (max-width: 1100px) { .ct { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ct-lead { font-size: 16px; }
  .ct__ways { grid-template-columns: 1fr; gap: 12px; }
  .ct-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 52px 16px 16px; }
  .ct-card__go { top: 50%; right: 14px; margin-top: -17px; width: 34px; height: 34px; }
  .ct-card__val { font-size: 18px; }
  .ct__measure { padding: 22px 20px; }
  .ct-live { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
}
/* пункт меню "Почему мы?": терракота и мягко пульсирующая точка-маячок */
.nav a.nav__hl { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); font-weight: 600; }
html[data-theme="dark"] .nav a.nav__hl { color: #ef9c87; }
.nav a.nav__hl::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); animation: navPing 2.4s ease-out infinite; }
.nav a.nav__hl:hover { color: var(--accent); }
@keyframes navPing { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .nav a.nav__hl::before { animation: none; } }

/* пункт меню "Примерка": значок EXP·F, при наведении значок чуть поворачивается */
.nav a.nav__try { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; }
.nav__exp { flex: none; display: block; border-radius: 5px; box-shadow: 0 2px 8px rgba(255, 91, 46, .35); transition: transform .35s var(--spring); }
.nav a.nav__try:hover .nav__exp { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 1499px) { .nav.is-open a.nav__try, .nav a.nav__try { gap: 10px; } }
/* заставка: наезд камеры - кадр с дверью растет на весь экран, логотип и плашка гаснут */
.intro.is-push .intro__film { animation: none; opacity: 1; transform: translateY(var(--fdy, 0px)) scale(var(--fs, 3.4)); transition: transform 1.5s cubic-bezier(.45, 0, .2, 1); }
.intro.is-push .intro__line, .intro.is-push .intro__tag, .intro.is-push .intro__dealer, .intro.is-push .intro__skip { filter: opacity(0); transition: filter .6s ease; }
.intro.is-push .intro__logo { animation: none; filter: opacity(0); transition: filter .6s ease; }
/* наезд камеры без черного ореола: ширина затемненных краев кадра - анимируемые переменные, кадр раскрывается на весь экран */
@property --fm { syntax: '<percentage>'; inherits: false; initial-value: 22%; }
@property --fv { syntax: '<percentage>'; inherits: false; initial-value: 14%; }
.intro__film { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fm), #000 calc(100% - var(--fm)), transparent 100%), linear-gradient(to bottom, transparent 0, #000 var(--fv), #000 calc(100% - var(--fv)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fm), #000 calc(100% - var(--fm)), transparent 100%), linear-gradient(to bottom, transparent 0, #000 var(--fv), #000 calc(100% - var(--fv)), transparent 100%); }
.intro.is-push .intro__film, .intro.is-flash .intro__film { transform: none; }
.intro.is-flash .intro__film { -webkit-mask-image: none; mask-image: none; }

/* рейтинг клиентов в верхней строке: золотые звезды с дробным заполнением и бликом */
.rate { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: 22px; padding: 5px 12px 5px 14px; border-radius: 999px; text-decoration: none; color: #e9e5df;
  background: linear-gradient(100deg, rgba(255, 196, 70, .1), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px rgba(255, 196, 70, .28); transition: box-shadow .25s, background .25s; }
.rate:hover { box-shadow: inset 0 0 0 1px rgba(255, 196, 70, .6); background: linear-gradient(100deg, rgba(255, 196, 70, .16), rgba(255, 255, 255, .06)); }
.rate__txt { font-size: 13px; white-space: nowrap; }
.rate__val { font: 700 15px/1 var(--font); color: #fff; }
.rate__stars { position: relative; display: inline-block; line-height: 0; }
.rate__stars svg { width: 15px; height: 15px; margin-right: 1px; }
.rate__base svg { fill: rgba(255, 255, 255, .18); }
.rate__fill { position: absolute; inset: 0; width: var(--r); overflow: hidden; white-space: nowrap; }
.rate__fill svg { fill: #ffc446; filter: drop-shadow(0 0 4px rgba(255, 196, 70, .45)); }
/* блик проходит по звездам раз в несколько секунд */
.rate__fill::after { content: ""; position: absolute; inset: -2px; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); mix-blend-mode: overlay; transform: translateX(-120%); animation: rateShine 4.5s ease-in-out 1.5s infinite; }
@keyframes rateShine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(320%); } }
.rate__src { font-size: 11.5px; color: #a29c95; white-space: nowrap; }
@media (max-width: 1499px) { .rate__src { display: none; } }
@media (max-width: 1279px) { .rate { margin-left: auto; } }
@media (max-width: 760px) { .rate__txt { display: none; } .rate { padding: 4px 10px; gap: 6px; } .rate__stars svg { width: 13px; height: 13px; } }
@media (max-width: 380px) { .rate__stars { display: none; } }
@media (prefers-reduced-motion: reduce) { .rate__fill::after { animation: none; display: none; } }
/* знак гарантии фабрики (пока нет рейтинга с площадки отзывов) */
.rate--guard { position: relative; overflow: hidden; padding: 5px 14px 5px 8px; }
.rate--guard b { color: #ffd27a; font-weight: 600; }
.rate__shield { width: 20px; height: 20px; flex: none; }
.rate__shield path:first-child { fill: #ffc446; filter: drop-shadow(0 0 4px rgba(255, 196, 70, .5)); }
.rate__tick { fill: none; stroke: #2d2f32; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rate--guard::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 220, 160, .22), transparent); transform: translateX(-160%); animation: guardShine 5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes guardShine { 0% { transform: translateX(-160%); } 35%, 100% { transform: translateX(360%); } }
@media (max-width: 760px) { .rate--guard .rate__txt { display: inline; font-size: 12px; } }
@media (max-width: 520px) { .rate--guard .rate__txt { display: none; } .rate--guard { padding: 4px 8px; } }
@media (prefers-reduced-motion: reduce) { .rate--guard::after { animation: none; display: none; } }
/* с плашкой гарантии или рейтинга в верхней строке остаются примерка EXP·F и расчет EXP·S; цены и доставка есть на первом экране */
.topbar__in:has(.rate) .topbar__facts li:nth-child(1), .topbar__in:has(.rate) .topbar__facts li:nth-child(4) { display: none; }
.topbar__in:has(.rate) .topbar__facts { margin-left: auto; }
@media (max-width: 520px) { .rate { margin-left: auto; } .topbar__seal b { font-size: 12.5px; } }
@media (max-width: 380px) { .rate--guard { display: none; } }
/* выход из заставки: сайт проявляется из белого финального кадра ролика, без рывка масштаба */
.intro.is-through { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1); transform: none; }
/* строка EXP в подвале: логотип внутри фразы, по высоте строки */
.exp { justify-content: center; }
.exp__txt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 8px; color: #b4b6b9; font-size: 14px; line-height: 1.5; }
.exp__txt b { color: #fff; font-weight: 600; }
.exp__logo--in { height: 17px; width: auto; transform: translateY(-1px); transition: transform .3s var(--spring); }
.exp:hover .exp__logo--in { transform: translateY(-1px) scale(1.06); }

/* примерка, интерьер "Цвет стены": подсказка со стрелкой к кнопке "Выбрать цвет" */
.to__nudge { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: -6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.to__wall-btn .to__nudge + .to__wall-act { margin-left: 0; }
.to__nudge svg { color: var(--accent); animation: nudgeArrow 1.1s var(--ease) infinite; }
.to__nudge.is-new { animation: nudgeIn .55s var(--spring) both; }
@keyframes nudgeIn { from { opacity: 0; transform: translateX(-18px); } }
@keyframes nudgeArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.to__wall-btn:has(.to__nudge) .to__wall-act { animation: nudgeGlow 2.2s ease-in-out .6s infinite; }
@keyframes nudgeGlow { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 12px color-mix(in oklab, var(--accent) 70%, transparent); } }
@media (max-width: 640px) { .to__nudge { font-size: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .to__nudge svg, .to__nudge.is-new, .to__wall-btn .to__wall-act { animation: none; } }
/* лента интерьеров без скругления: скругленный угол обрезал подпись первой миниатюры */
.to__rooms { border-radius: 0 !important; }
.to__wall-btn:has(.to__nudge) .to__cur { margin-right: 0; }

/* SEO-тексты: вводный абзац страницы коллекции и описание модели под карточкой */
.cat-lead { max-width: 820px; margin: -6px 0 22px; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.door-about { max-width: 860px; }
.door-about h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 12px; }
.door-about p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }

/* SEO: подборки (ссылки-ярлыки под каталогом), статьи и их карточки */
.picks { margin: 40px 0 8px; }
.picks .lbl { margin-bottom: 12px; }
.picks__row { display: flex; flex-wrap: wrap; gap: 8px; }
.picks__a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: border-color var(--fast), color var(--fast), background var(--fast); }
.picks__a:hover { border-color: var(--accent); color: var(--ink); }
.picks__a.is-on { background: var(--accent-soft); border-color: transparent; color: var(--ink); font-weight: 600; }
.art { max-width: 780px; }
.art__meta { margin: -8px 0 14px; color: var(--ink-3); font-size: 14px; }
.art__lead { font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0 0 28px; text-wrap: pretty; }
.art h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 36px 0 12px; }
.art p, .art li { line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.art ul, .art ol { padding-left: 22px; }
.art li { margin-bottom: 6px; }
.art li b { color: var(--ink); }
.art a:not(.btn) { color: var(--accent-ink); }
.art__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 40px 0 0; padding: 24px 26px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
.art__cta b { display: block; font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.art__cta span { color: var(--ink-2); font-size: 14.5px; }
.art__btns { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s var(--spring), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.art-card:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.art-card b { font: 500 19px/1.3 var(--font-head); }
.art-card span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 760px) { .art__cta { flex-direction: column; align-items: flex-start; } .art__lead { font-size: 17px; } }

/* ---------- О фабрике (fabrika.html) ---------- */
.fx-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.fx-stats li { min-width: 190px; padding: 18px 22px; border-radius: calc(var(--radius) + 2px); background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.fx-stats b { display: block; font: 500 clamp(28px, 3vw, 40px)/1.1 var(--font-head); color: #fff; }
.fx-stats span { font-size: 14px; color: #cfcbc5; }
.fx-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.fx-intro h2, .fx-tech h2, .fx-why h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); text-wrap: balance; }
.fx-intro__txt p, .fx-tech p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.fx-band { padding: 88px 0; background: var(--band); color: #eceae6; }
.fx-band h2 { margin: 0 0 36px; color: #fff; font-size: clamp(28px, 3vw, 42px); }
.fx-band .eyebrow { color: #ef9c87; }
.fx-steps { list-style: none; margin: 0; padding: 0; counter-reset: fx; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fx-step { counter-increment: fx; display: flex; flex-direction: column; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .3s var(--spring), box-shadow .3s var(--ease); }
.fx-step:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(239, 156, 135, .4); }
.fx-step img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform .6s var(--ease); }
.fx-step:hover img { transform: scale(1.03); }
.fx-step > div { position: relative; padding: 20px 22px 24px; }
.fx-step b { display: flex; align-items: center; gap: 12px; font-size: 18px; color: #fff; margin-bottom: 8px; }
.fx-step b::before { content: counter(fx, decimal-leading-zero); font: 700 13px var(--font); color: #ef9c87; letter-spacing: .06em; }
.fx-step p { margin: 0; font-size: 15px; line-height: 1.55; color: #c9c5bf; }
.fx-tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fx-tech__pics { position: relative; padding: 0 0 18% 0; }
.fx-tech__pics img { display: block; height: auto; border-radius: calc(var(--radius) + 4px); object-fit: cover; box-shadow: var(--shadow); }
.fx-tech__a { width: 82%; aspect-ratio: 4 / 3; }
.fx-tech__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; outline: 6px solid var(--bg); }
.fx-tech h2 { margin-bottom: 18px; }
.fx-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.fx-brands li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font: 600 14px var(--font); letter-spacing: .04em; color: var(--ink); }
.fx-people { padding: 88px 0 96px; background: var(--surface); }
.fx-people h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 42px); max-width: 720px; }
.fx-people__lead { max-width: 680px; margin: 0 0 32px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.fx-people__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 16px; overflow-x: auto; padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px)) 8px; scroll-padding-inline: max(24px, calc((100vw - 1280px) / 2 + 24px)); scroll-snap-type: x mandatory; scrollbar-width: none; }
.fx-people__row::-webkit-scrollbar { display: none; }
.fx-people__row img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px); scroll-snap-align: start; }
.fx-why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.fx-why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fx-why__list li { padding: 22px 24px; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--surface); }
.fx-why__list b { display: block; font: 500 20px/1.3 var(--font-head); margin-bottom: 8px; color: var(--ink); }
.fx-why__list span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fx-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 80px; padding: 36px 40px; border-radius: calc(var(--radius) + 8px); background: var(--band); color: #eceae6; }
.fx-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(24px, 2.4vw, 32px); }
.fx-cta p { margin: 0; color: #c9c5bf; }
.fx-cta__btns { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .fx-intro, .fx-tech, .fx-why { grid-template-columns: 1fr; gap: 28px; }
  .fx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-people__row { grid-auto-columns: minmax(260px, 60%); }
}
@media (max-width: 640px) {
  .fx-stats li { min-width: 0; flex: 1 1 140px; padding: 14px 16px; }
  .fx-steps, .fx-why__list { grid-template-columns: 1fr; }
  .fx-band, .fx-people { padding: 56px 0; }
  .fx-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .fx-people__row { grid-auto-columns: 82%; }
}
/* пункты меню в одну строку */
.nav a { white-space: nowrap; }
/* 1500-1719 px: в меню 8 пунктов, промежутки уже, чтобы шапка помещалась без прокрутки */
@media (min-width: 1500px) and (max-width: 1719px) { .hdr .nav { gap: 14px; } .hdr__right { gap: 2px; } }

/* О фабрике, первый экран: текст и рисунок завода в стиле чертежа (линии прорисовываются по очереди, затем загораются окна) */
.fxh { position: relative; padding: 40px 0 72px; overflow: hidden;
  background-image: linear-gradient(color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top; }
.fxh::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 70% 45%, transparent 30%, var(--bg) 78%); }
.fxh__in { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.fxh h1 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; text-wrap: balance; }
.fxh__lead { max-width: 560px; margin: 0 0 30px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.fxh .fx-stats li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fxh .fx-stats b { color: var(--ink); }
.fxh .fx-stats span { color: var(--ink-2); }
@media (max-width: 1000px) { .fxh__in { grid-template-columns: 1fr; gap: 28px; } .fxh__art { max-width: 640px; } }
@media (max-width: 640px) { .fxh { padding: 24px 0 48px; } .fx-stats li { min-width: 0; flex: 1 1 140px; padding: 14px 16px; } }
.fxh .fx-stats { flex-wrap: nowrap; } .fxh .fx-stats li { min-width: 0; flex: 1 1 0; }
@media (max-width: 520px) { .fxh .fx-stats { flex-wrap: wrap; } .fxh .fx-stats li { flex: 1 1 140px; } }
.fxh__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 1000px) { .fxh__in { grid-template-columns: 1fr; } }
.fxh .fx-stats b { font-size: clamp(22px, 2.1vw, 32px); white-space: nowrap; }
.fxh .fx-stats li { padding: 16px 18px; }

/* О фабрике: рисунок завода без подложки. Темная тема - оранжевые линии на черном, черное растворяется в фоне
   (наложение "экран"), по окончании прорисовки загорается неон надписи. Светлая тема - графит на белом (наложение "умножение") */
.fxd { position: relative; margin: 0 -2% 0 0; aspect-ratio: 3 / 2; }
.fxd__still, .fxd__vid, .fxd__neon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fxd--night .fxd__still, .fxd--night .fxd__vid, .fxd--night .fxd__neon { mix-blend-mode: screen; }
.fxd--day .fxd__still, .fxd--day .fxd__vid { mix-blend-mode: multiply; }
.fxd__vid { transition: opacity .7s ease; }
.fxd.is-done .fxd__vid { opacity: 0; pointer-events: none; }
.fxd__neon { opacity: 0; transition: opacity 1.2s ease .2s; }
.fxd.is-done .fxd__neon { opacity: 1; animation: fxNeon 5s ease-in-out 1.6s infinite; }
@keyframes fxNeon { 0%, 100% { opacity: 1; } 47% { opacity: .78; } 50% { opacity: .95; } 53% { opacity: .82; } }
.fxd--day { display: none; }
html:not([data-theme="dark"]) .fxd--night { display: none; }
html:not([data-theme="dark"]) .fxd--day { display: block; }
@media (prefers-reduced-motion: reduce) { .fxd.is-done .fxd__neon { animation: none; } }
.fxd__still { transition: opacity .7s ease; }
.fxd:not(.is-done) .fxd__still { opacity: 0; }

/* пункт меню "О фабрике": значок цеха оранжевыми линиями с неоновым свечением, как рисунок на странице фабрики;
   при наведении значок прорисовывается заново */
.nav a.nav__fab { display: inline-flex; align-items: center; gap: 8px; }
.nav__fab-ico { flex: none; display: block; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; overflow: visible;
  filter: drop-shadow(0 0 2px color-mix(in oklab, var(--accent) 70%, transparent)); animation: fabGlow 3.6s ease-in-out infinite; }
html[data-theme="dark"] .nav__fab-ico { stroke: #ef8a6d; filter: drop-shadow(0 0 3px rgba(255, 128, 92, .75)) drop-shadow(0 0 7px rgba(255, 128, 92, .35)); }
.nav__fab-ico path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.nav a.nav__fab:hover .nav__fab-ico path { animation: fabDraw .9s cubic-bezier(.6, 0, .3, 1) both; }
.nav a.nav__fab:hover .nav__fab-ico path + path { animation-delay: .35s; }
@keyframes fabDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fabGlow { 0%, 100% { opacity: 1; } 48% { opacity: .72; } 51% { opacity: 1; } 54% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .nav__fab-ico, .nav a.nav__fab:hover .nav__fab-ico path { animation: none; } }

/* ---------- О фабрике: цифры, "Кто мы", "Что это значит для вас" в стиле светящегося чертежа ---------- */
.fx-ico { display: block; flex: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
html[data-theme="dark"] .fx-ico { stroke: #ef8a6d; filter: drop-shadow(0 0 3px rgba(255, 128, 92, .6)) drop-shadow(0 0 8px rgba(255, 128, 92, .25)); }
.fx-ico path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes fxIcoDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* цифры: без плашек, размерная линия с засечками под числом */
.fx-nums { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.fx-nums li { position: relative; padding: 0 22px; }
.fx-nums li:first-child { padding-left: 0; }
.fx-nums li + li::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(transparent, var(--line) 20%, var(--line) 80%, transparent); }
.fx-nums b { display: block; font: 500 clamp(30px, 3vw, 44px)/1.05 var(--font-head); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-nums b small { font-size: .5em; color: var(--ink-2); letter-spacing: 0; margin-right: .1em; }
html[data-theme="dark"] .fx-nums b { background: linear-gradient(180deg, #fff 30%, #f2a58f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 22px rgba(255, 128, 92, .18); }
html[data-theme="dark"] .fx-nums b small { -webkit-text-fill-color: var(--ink-2); }
.fx-dim { position: relative; display: block; height: 9px; margin: 10px 0 9px; max-width: 150px; }
.fx-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--accent); opacity: .85; box-shadow: 0 0 6px color-mix(in oklab, var(--accent) 60%, transparent); transform-origin: left; animation: fxDim 1.2s cubic-bezier(.6, 0, .3, 1) .3s both; }
.fx-dim::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); opacity: .85; }
@keyframes fxDim { from { transform: scaleX(0); } }
.fx-nums span { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: block; }
.fx-nums b span { display: inline; font: inherit; color: inherit; }

/* Кто мы */
.fx-intro__lead { font-size: clamp(18px, 1.5vw, 21px) !important; line-height: 1.55 !important; color: var(--ink) !important; }
.fx-caps { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.fx-caps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.fx-caps .fx-ico { grid-row: span 2; width: 46px; height: 46px; padding: 9px; border-radius: 12px; box-sizing: border-box; background: color-mix(in oklab, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent); }
.fx-caps b { font: 500 17px/1.3 var(--font-head); color: var(--ink); margin: 2px 0 4px; }
.fx-caps span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fx-caps li:hover .fx-ico path { animation: fxIcoDraw .9s cubic-bezier(.6, 0, .3, 1) both; }
.fx-caps li:hover .fx-ico path + path { animation-delay: .3s; }

/* Что это значит для вас */
.fx-why__list li { position: relative; overflow: hidden; padding: 24px 24px 26px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--spring); }
.fx-why__list li::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55; }
.fx-why__list li:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: 0 18px 40px -22px color-mix(in oklab, var(--accent) 55%, transparent), inset 0 0 30px -18px color-mix(in oklab, var(--accent) 60%, transparent); }
.fx-why__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fx-why__top em { font: 600 12px var(--font); font-style: normal; letter-spacing: .12em; color: var(--ink-3); }
.fx-why__list .fx-ico { width: 30px; height: 30px; }
.fx-why__list li:hover .fx-ico path { animation: fxIcoDraw .9s cubic-bezier(.6, 0, .3, 1) both; }
.fx-why__list li:hover .fx-ico path + path { animation-delay: .3s; }
.fx-why h2 { position: relative; }
.fx-why h2::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 22px; background: var(--accent); box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 70%, transparent); }

@media (max-width: 1000px) { .fx-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fx-nums li { padding: 0 12px; }
  .fx-nums b { font-size: 26px; }
  .fx-nums span { font-size: 12.5px; }
  .fx-caps { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .fx-dim::before { animation: none; } .fx-caps li:hover .fx-ico path, .fx-why__list li:hover .fx-ico path { animation: none; } }
.fx-nums { grid-template-columns: repeat(3, auto); justify-content: start; }
.fx-nums li { padding: 0 30px; }
.fx-nums li:first-child { padding-left: 0; }
.fx-nums span { max-width: 170px; }
@media (max-width: 640px) { .fx-nums { grid-template-columns: repeat(3, minmax(0, auto)); } .fx-nums li { padding: 0 12px; } .fx-nums li:first-child { padding-left: 0; } }
/* расчет комплекта в узкой колонке: подпись над переключателем, кнопки переносятся (зависит от ширины блока, а не экрана) */
.kit { container-type: inline-size; }
@container (max-width: 600px) { .kit__f { grid-template-columns: 1fr; } .kit__seg { flex-wrap: wrap; } .kit__seg button { white-space: normal; } }

/* ---------- Фурнитура к двери (в расчете комплекта): ручки, завертки, упоры из каталога EXP S ---------- */
.kit-hw { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.kit-hw__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kit-hw__head .kit__title { margin: 0; }
.kit-hw__tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kit-hw__lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.kit-hw__tabs small { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.kit-hw__fams { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-hw__fam { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color var(--fast), color var(--fast), background var(--fast); }
.kit-hw__fam i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.kit-hw__fam:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); color: var(--ink); }
.kit-hw__fam[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.kit-hw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hwc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .3s var(--spring); }
.hwc:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.hwc.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 28px -16px color-mix(in oklab, var(--accent) 70%, transparent); }
.hwc__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; border: 0; background: #fff; cursor: pointer; }
.hwc__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.hwc:hover .hwc__img img { transform: scale(1.04); }
.hwc__chk { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .25); background: rgba(255, 255, 255, .9); transition: background .2s, border-color .2s; }
.hwc.is-on .hwc__chk { background: var(--accent); border-color: var(--accent); }
.hwc.is-on .hwc__chk::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hwc__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.hwc__body b { font: 600 13.5px/1.25 var(--font); color: var(--ink); }
.hwc__brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hwc__cols { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 5px 0 1px; }
.hwc__dot { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 2px var(--surface); cursor: pointer; }
.hwc__dot.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.hwc__more { font-size: 11px; color: var(--ink-3); }
.hwc__col { font-size: 12px; color: var(--ink-2); min-height: 16px; }
.hwc__price { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
html[data-theme="dark"] .hwc__price { color: #ef9c87; }
.kit-hw__pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.kit-hw__pick p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); flex: 1 1 260px; }
@container (max-width: 600px) { .kit-hw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-theme="dark"] .hwc__img img { filter: none; }
.hwc__alt { display: block; font-size: 11px; color: var(--ink-3); }

/* "Люди": пять фото ровной сеткой по ширине страницы, без прокрутки; на телефоне - лента */
.fx-people__row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 0; scroll-snap-type: none; }
@media (max-width: 1000px) { .fx-people__row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(240px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; } }
@media (max-width: 640px) { .fx-people__row { grid-auto-columns: 80%; } }

/* год основания: контурные цифры (без счетчика), подписи сверху и снизу - знак, а не показатель */
.fx-nums li.fx-est b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.4px var(--accent); text-shadow: none; letter-spacing: .02em; margin: 2px 0 8px; }
html[data-theme="dark"] .fx-nums li.fx-est b { -webkit-text-stroke-color: #ef8a6d; filter: drop-shadow(0 0 6px rgba(255, 128, 92, .45)); }
.fx-est__top { font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink) !important; margin-bottom: 2px; }
html[data-theme="dark"] .fx-est__top { color: #ef9c87 !important; }
.fx-nums li.fx-est { position: relative; }
.fx-est__top { position: absolute; top: -20px; left: 0; white-space: nowrap; }
.fx-nums li.fx-est b { margin-top: 0; }
.kit__size { display: flex; align-items: center; gap: 8px; }
.kit__size select { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 15px var(--font); color: var(--ink); }
.kit__size span { color: var(--ink-3); font-size: 14px; }

/* страница модели: вместо светлого круга с краем - мягкая подсветка за дверью без границы и легкая тень на полу */
/* слой подсветки на весь кадр: у слоя нет своего края, который мог бы проступить ступенькой (iPhone) */
.door__img::before { inset: 0; aspect-ratio: auto; border-radius: inherit; opacity: 1;
  background: radial-gradient(ellipse 44% 36% at 50% 38%, rgba(255, 255, 255, .78), rgba(255, 255, 255, .32) 55%, rgba(255, 255, 255, 0) 100%); }
.door__img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 26px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)); }
html[data-theme="dark"] .door__img::before { opacity: .85; }
.door__img--wall::after { display: none; }

/* фурнитура: снимки без фона (tools/hw-cutout.py) на теплой светлой плитке, как карточки дверей в каталоге */
.hwc__img { background: var(--soft); }
html[data-theme="dark"] .hwc__img { background: #ece7e0; }
.hwc__img img { filter: drop-shadow(0 6px 8px rgba(45, 47, 50, .18)); }
html[data-theme="dark"] .hwc__img img { filter: drop-shadow(0 6px 8px rgba(45, 47, 50, .18)); }
/* снимки, где фон оставлен (белые изделия), сливаются с плиткой: белое * цвет плитки = цвет плитки */
.hwc__img img { mix-blend-mode: multiply; }
.hwc__img img, html[data-theme="dark"] .hwc__img img { filter: none; mix-blend-mode: multiply; }
/* общее затемнение картинок темной темы не для фурнитуры: белый фон снимка должен остаться белым, чтобы умножение его скрыло */
.hwc__img img { filter: none !important; }
/* шапка у верха страницы вырастает (64 -> 80 px); браузерное якорение прокрутки при этом сдвигало страницу на 10-16 px
   вниз, и верхняя строка обрезалась. Без якорения прокрутка у верха всегда доходит до нуля */
html, body { overflow-anchor: none; }

/* ---------- Плинтусы (plintusy.html) ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-bottom: 28px; }
.pl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.pl-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.pl-card__img { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18px 26px; background: var(--soft); }
html[data-theme="dark"] .pl-card__img { background: #ece7e0; }
.pl-card__img img { max-width: 100%; max-height: 100%; filter: none !important; transition: transform .5s var(--ease); }
.pl-card:hover .pl-card__img img { transform: scale(1.04); }
.pl-card__body { display: grid; gap: 12px; padding: 18px 20px 20px; }
.pl-card h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.pl-card h2 small { font: 500 15px var(--font); color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.pl-card__len { margin: -6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.pl-card__price { display: flex; align-items: baseline; gap: 8px; }
.pl-card__price b { font: 500 26px/1 var(--font-head); color: var(--ink); }
.pl-card__price span { font-size: 13px; color: var(--ink-3); }
.pl-f { display: grid; gap: 6px; }
.pl-f .lbl { margin: 0; }
.pl-f .lbl b { color: var(--ink); text-transform: none; letter-spacing: 0; }
.pl-f select, .pl-qty input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 14px var(--font); color: var(--ink); }
.pl-f select:focus, .pl-qty input:focus { outline: none; border-color: var(--accent); }
.pl-qty { grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-qty label { display: grid; gap: 6px; }
.pl-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 40px; padding: 10px 14px; border-radius: 10px; background: var(--soft); font-size: 13.5px; color: var(--ink-2); }
.pl-sum b { font: 600 18px var(--font); color: var(--ink); white-space: nowrap; }
.pl-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 48px; padding: 22px 26px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
.pl-help b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.pl-help span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 640px) { .pl-help { flex-direction: column; align-items: flex-start; } }

/* заставка: плашка дилера под подписью, раскрывается из печати вправо (успевает до наезда камеры на 2,9 с) */
.intro__dealer { position: relative; left: auto; bottom: auto; margin-top: 10px; transform: none; opacity: 0;
  clip-path: inset(0 calc(100% - 58px) 0 0 round 999px);
  animation: inFade .3s ease 1.35s forwards, inDealerOpen .8s cubic-bezier(.65, 0, .2, 1) 1.8s forwards; }
.intro__seal { animation-delay: 1.35s; }
.intro__dealer-txt { opacity: 0; transform: translateX(-14px); animation: inDealerTxt .55s var(--ease-enter) 2.05s forwards; }
.intro__dealer::after { animation-duration: 1s; animation-delay: 2.4s; }
.intro__check { animation-delay: 1.75s; }
@keyframes inDealerOpen { to { clip-path: inset(-40px -40px -40px -40px round 999px); } }
@keyframes inDealerTxt { to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .intro__dealer { bottom: auto; margin-top: 6px; clip-path: inset(0 calc(100% - 52px) 0 0 round 999px); } }
@media (prefers-reduced-motion: reduce) { .intro__dealer { clip-path: none; animation: none; opacity: 1; } .intro__dealer-txt { opacity: 1; transform: none; animation: none; } }

/* фурнитура из расчета слева от двери: петли, замок, выбранные ручки */
.door__parts { position: absolute; left: clamp(2px, 1.6vw, 14px); right: clamp(2px, 1.6vw, 14px); top: clamp(40px, 6.5%, 96px); bottom: 6px; z-index: 2; display: flex; flex-flow: column wrap; align-content: space-between; gap: 10px 12px; padding: 8px; box-sizing: border-box; overflow: hidden; pointer-events: none; }
.door__parts:empty { display: none; }
/* миниатюра: круглый медальон с белым полем и оранжевой окантовкой ZADOOR, подпись - плашкой под ним */
.door__parts { gap: 12px; }
.door__part { --ring: var(--accent, #c8553d); margin: 0; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: auto; cursor: default; }
.door__part-i { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 2px var(--ring); transition: transform .35s var(--spring), box-shadow .3s var(--ease); }
.door__part-i img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; padding: 0; border-radius: 0; background: none; box-shadow: none; mix-blend-mode: normal; filter: none; animation: none; aspect-ratio: auto; transition: transform .35s var(--spring); }

.door__part:hover .door__part-i { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ring); }
.door__part:hover .door__part-i img { transform: scale(1.02); }
.door__part figcaption { max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .82); font: 600 8.5px/1.2 var(--font); letter-spacing: 0; text-transform: uppercase; color: #5d5148; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
/* появление: медальон раскрывается из точки, окантовка вспыхивает, подпись выезжает следом */
.door__part.is-new .door__part-i { animation: partPop .6s var(--spring) calc(var(--i, 0) * 90ms) both, partRing 1.1s var(--ease) calc(var(--i, 0) * 90ms + .25s) both; }
.door__part.is-new .door__part-i img { animation: partImg .55s var(--ease) calc(var(--i, 0) * 90ms + .12s) both; }
.door__part.is-new figcaption { animation: partCap .4s var(--ease) calc(var(--i, 0) * 90ms + .3s) both; }
@keyframes partPop { from { opacity: 0; transform: scale(.35) rotate(-25deg); } 60% { opacity: 1; } }
@keyframes partRing { 0% { box-shadow: 0 0 0 2px var(--ring), 0 0 0 0 color-mix(in oklab, var(--ring) 60%, transparent); }
  100% { box-shadow: 0 0 0 2px var(--ring), 0 0 0 16px transparent; } }
@keyframes partImg { from { opacity: 0; transform: scale(.6); } }
@keyframes partCap { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 720px) { .door__parts { gap: 8px; } .door__part { width: 50px; } .door__part-i { width: 44px; height: 44px; } .door__part figcaption { max-width: 56px; font-size: 8.5px; padding: 1px 5px; } }
@media (prefers-reduced-motion: reduce) { .door__part.is-new .door__part-i, .door__part.is-new .door__part-i img, .door__part.is-new figcaption { animation: none; } }

/* выбор цвета скрытых петель Krona K1019/26 в расчете комплекта */
.kit__hcol { display: grid; gap: 8px; margin: 0 0 14px; }
.kit__hcols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kit__hc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: none; color: var(--ink-2); font: 500 11.5px/1.2 var(--font); text-align: center; cursor: pointer; transition: border-color var(--fast), background var(--fast), transform var(--fast); }
.kit__hc img { width: 100%; max-width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #ece7e0; mix-blend-mode: normal; padding: 4px; }
.kit__hc:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.kit__hc.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
@media (max-width: 720px) { .kit__hcols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* подбор фурнитуры: фото не шире карточки (на телефоне ячейка сетки растягивалась по ширине снимка и он уезжал вправо) */
.hwc__img { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.hwc__img img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }

/* о фабрике, телефон: три числа в ряд помещаются целиком (до 45 000 обрезалось) */
@media (max-width: 560px) {
  .fx-nums li { padding: 0 10px; }
  .fx-nums b { font-size: clamp(21px, 6.2vw, 30px); letter-spacing: -.03em; }
  .fx-nums span { font-size: 13px; }
}

/* ---------- межкомнатные перегородки: конструктор ---------- */
.pt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin: 8px 0 56px; }
.pt__stage { position: sticky; top: 92px; display: grid; gap: 14px; }
.pt__view { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px) 16px; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(ellipse 60% 44% at 50% 40%, #fff, rgba(255, 255, 255, 0) 100%), linear-gradient(#ece7e0 0 84%, #ddd5ca 84% 100%); }
.pt__view svg { width: auto; height: min(62vh, 560px); max-width: 100%; filter: drop-shadow(0 24px 24px rgba(45, 47, 50, .22)); animation: doorIn .5s var(--spring) both; }
.pt__render { margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.pt__render img { display: block; width: 100%; height: auto; }
.pt__side { display: grid; gap: 22px; }
.pt__f { display: grid; gap: 10px; }
.pt__f .lbl b { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.pt__lays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pt__lay { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--ink-2); font: 500 11px/1.2 var(--font); text-align: center; cursor: pointer; transition: border-color var(--fast), background var(--fast), transform var(--fast); }
.pt__lay svg { width: 30px; height: 66px; }
.pt__lay:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.pt__lay.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
.pt__cat { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.pt__cat-n { padding-top: 8px; font-size: 12px; color: var(--ink-3, var(--ink-2)); }
.pt__fill { display: inline-flex; align-items: center; gap: 7px; }
.pt__sw { width: 14px; height: 14px; border-radius: 4px; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pt__sw--clear { background: linear-gradient(135deg, color-mix(in oklab, var(--c) 55%, #fff) 45%, #fff 50%, color-mix(in oklab, var(--c) 55%, #fff) 55%); }
.pt__sw--mirror { background: linear-gradient(135deg, #f1f4f6, var(--c) 50%, #9aa3a8); }
.pt__sw--fluted { background: repeating-linear-gradient(90deg, var(--c) 0 2px, #fff 2px 3px); }
.pt__sw--none { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line) 3px 4px); }
.pt__frames { display: flex; flex-wrap: wrap; gap: 8px; }
.pt__frame { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 0 0 2px transparent; cursor: pointer; transition: box-shadow var(--fast), transform var(--fast); }
.pt__frame:hover { transform: translateY(-2px); }
.pt__frame.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 0 0 2px var(--bg, #fff), 0 0 0 4px var(--accent); }
.pt__nums { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pt__nums label { display: grid; gap: 6px; }
.pt__nums input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 16px var(--font); color: var(--ink); }
.pt__warn { margin: -10px 0 0; font-size: 13px; color: var(--accent-ink, var(--accent)); }
.pt__sum { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--soft); }
.pt__sum span { display: block; font-weight: 600; color: var(--ink); }
.pt__sum small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.pt__sum b { font: 600 clamp(24px, 2.4vw, 30px)/1 var(--font); color: var(--ink); white-space: nowrap; }
html[data-theme="dark"] .pt__sum { background: rgba(255, 255, 255, .05); }
.pt__note { margin: -10px 0 0; font-size: 13px; color: var(--ink-2); }
.pt__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-info { margin: 0 0 48px; }
.pt-info h2 { margin: 0 0 10px; }
.pt-info h3 { margin: 28px 0 12px; font-size: 18px; }
.pt-info > p { max-width: 760px; color: var(--ink-2); }
.pt-table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
.pt-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.pt-table th, .pt-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pt-table thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pt-table tbody th { text-align: left; white-space: normal; }
.pt-table tbody th b { display: block; font-weight: 600; }
.pt-table tbody th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.pt-table thead th:first-child { text-align: left; }
.pt-table tr:last-child th, .pt-table tr:last-child td { border-bottom: 0; }
.pt-adds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pt-adds li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 960px) {
  .pt { grid-template-columns: 1fr; }
  .pt__stage { position: relative; top: 0; }
  .pt__view svg { height: 48vh; }
  .pt__lays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt__cat { grid-template-columns: 1fr; gap: 6px; }
  .pt__cat-n { padding-top: 0; }
}

/* примерка: под списком цветов - вход на страницу перегородок */
.to__left { grid-area: colors; align-self: start; display: grid; gap: 12px; min-width: 0; }
.to__left .to__colors-card { grid-area: auto; }
.to__parts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: var(--ink); transition: transform var(--fast), border-color var(--fast); }
.to__parts > svg { color: var(--ink); transition: transform .4s var(--spring); }
.to__parts:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.to__parts:hover > svg { transform: scale(1.04); }
.to__parts-t { display: grid; gap: 6px; }
.to__parts-t b { font: 600 16px/1.25 var(--font-head); }
.to__parts-t > span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.to__parts-t i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--accent); }
@media (min-width: 1500px) { .to__parts { grid-template-columns: 1fr; justify-items: start; } .to__parts > svg { width: 72px; height: 78px; } }
@media (max-width: 900px) { .to__left { order: 3; align-self: stretch; } }
.pt__photo { position: relative; margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #ece7e0; aspect-ratio: 4 / 5; }
.pt__photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: doorIn .5s var(--spring) both; }
.pt__mini { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 64px; padding: 10px 0; border-radius: 12px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); }
.pt__mini svg { width: 34px; height: 75px; }
.pt__badge { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 110px); padding: 7px 11px; border-radius: 10px; background: rgba(20, 20, 22, .72); color: #fff; font-size: 12px; line-height: 1.35; }
@media (max-width: 960px) { .pt__photo { aspect-ratio: 4 / 5; max-height: 72vh; } }

/* корзина: комплект к двери (коробка, наличники, петли, замок, фурнитура) с миниатюрами без фона */
.cart__kit { margin-top: 8px; font-size: 13px; }
.cart__kit summary { cursor: pointer; color: var(--ink-2); list-style: revert; }
.cart__kit ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cart__kit li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cart__kit li img, .cart__kit li > i { width: 40px; height: 40px; object-fit: contain; }
.cart__kit li span { display: grid; line-height: 1.3; }
.cart__kit li small { color: var(--ink-2); }
.cart__kit li b { font-weight: 600; white-space: nowrap; }
.cart__kit { grid-column: 1 / -1; margin: -6px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
html[data-theme="dark"] .cart__kit { background: rgba(255, 255, 255, .04); }

@media (max-width: 600px) { .cart__kit li { grid-template-columns: 34px minmax(0, 1fr); } .cart__kit li img, .cart__kit li > i { width: 34px; height: 34px; } .cart__kit li b { grid-column: 2; font-size: 12.5px; } }

/* ---------- примерочная: переключатель "Двери / Перегородки" и режим перегородок ---------- */
.to__kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--soft); }
html[data-theme="dark"] .to__kind { background: rgba(255, 255, 255, .05); }
.to__kind button { min-height: 40px; border: 0; border-radius: 9px; background: none; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background var(--fast), color var(--fast), box-shadow var(--fast); }
.to__kind button:hover { color: var(--ink); }
.to__kind button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
html[data-theme="dark"] .to__kind button[aria-pressed="true"] { background: #2b2c2f; }
.to__pp .to__pp-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.to__pp .to__model { width: auto; padding: 6px 4px 8px; }
.to__pp .to__model img { height: auto; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; mix-blend-mode: normal; }
.to__pp .to__model span { font-size: 11.5px; line-height: 1.2; text-align: center; -webkit-line-clamp: 2; }
.to__pp .to__model small { font-size: 10.5px; }
.to__pp-glass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.to__pp-g { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: none; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color var(--fast), background var(--fast), color var(--fast), transform var(--fast); }
.to__pp-g .pt__sw { width: 38px; height: 50px; border-radius: 6px; }
.to__pp-g:hover { transform: translateY(-2px); color: var(--ink); }
.to__pp-g.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
.to__pp-more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 6px 0; border: 0; background: none; font: 600 13px var(--font); color: var(--accent); cursor: pointer; }
.to__pp-side .to__clist .pt__sw { width: 26px; height: 26px; border-radius: 50%; }
.to__pp-side .pt__frames { gap: 7px; }
.to__pp-side .pt__frame { width: 28px; height: 28px; }
.to__pp-fh { margin-top: 16px; }
.to__pp-fh .to__cnt { max-width: 60%; text-align: right; }
@media (min-width: 1500px) { .to__pp-glass { grid-template-columns: 1fr; } .to__pp-g { flex-direction: row; justify-content: flex-start; padding: 8px 10px; } .to__pp-g .pt__sw { width: 26px; height: 34px; } }
@media (max-width: 900px) { .to__pp .to__pp-models { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* каталог: перегородки - плитка в ленте коллекций и карточка над сеткой дверей */
.fcol--parts { text-decoration: none; color: inherit; }
.cat-parts { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 0 0 22px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform var(--fast), border-color var(--fast), box-shadow var(--fast); }
html[data-theme="dark"] .cat-parts { background: rgba(255, 255, 255, .03); }
.cat-parts:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .5); }
.cat-parts img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; transition: transform .4s var(--spring); }
.cat-parts:hover img { transform: scale(1.03); }
.cat-parts__t { display: grid; gap: 6px; }
.cat-parts__t b { font: 600 20px/1.2 var(--font-head); }
.cat-parts__t > span { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 640px; }
.cat-parts__p { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.cat-parts__p small { font-size: 12px; color: var(--ink-2); }
.cat-parts__p b { font: 600 22px var(--font); }
.cat-parts__p i { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent); }
@media (max-width: 760px) { .cat-parts { grid-template-columns: 76px minmax(0, 1fr); } .cat-parts img { width: 76px; height: 96px; } .cat-parts__p { grid-column: 1 / -1; justify-items: start; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; } .cat-parts__p i { grid-column: 1 / -1; margin: 0; } .cat-parts__t > span { display: none; } }

/* ---------- страница перегородок в стиле примерочной ---------- */
/* эти две строки относятся к широкой вёрстке: на телефоне .pt__stage сдвигался вниз на 84px
   (#position: relative + top) и ряд переключателей вида наезжал на карточку систем */
@media (min-width: 961px) {
  .pt { grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); }
  .pt__stage { top: 84px; gap: 12px; }
}
.pt__scene { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #ece7e0; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6); }
.pt__scene > svg, .pt__scene > img { display: block; width: 100%; height: 100%; object-fit: cover; animation: doorIn .45s var(--ease-enter, ease) both; }
.pt__scene .pt__badge { bottom: 14px; left: 14px; }
.pt__views { display: flex; gap: 10px; flex-wrap: wrap; }
.pt__vw { display: grid; gap: 6px; justify-items: start; width: 132px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 600 12px var(--font); text-align: left; cursor: pointer; }
.pt__vw img { width: 132px; height: 92px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--fast), transform var(--fast); }
.pt__vw:hover img { transform: translateY(-2px); }
.pt__vw.is-on { color: var(--ink); }
.pt__vw.is-on img { box-shadow: 0 0 0 2px var(--accent); }
.pt__side { gap: 14px; }
.pt__card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
html[data-theme="dark"] .pt__card { background: rgba(255, 255, 255, .03); }
.pt__card .lbl b { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; }
.pt__lays { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pt__lay { padding: 6px 4px 8px; gap: 5px; font-size: 11.5px; }
.pt__lay img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 8px; }
.pt__lay small { font-size: 10.5px; color: var(--ink-2); }
.pt__lay.is-on small { color: var(--accent); }
.pt__rest { display: flex; flex-wrap: wrap; gap: 6px; }
.pt__rest .chip { min-height: 34px; font-size: 13px; }
.pt__lbl2 { margin-top: 6px; }
.pt__card .pt__sum { margin-top: 2px; }
.pt__card .pt__note, .pt__card .pt__warn { margin: 0; }
@media (max-width: 960px) { .pt { grid-template-columns: 1fr; } .pt__lays { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pt__vw, .pt__vw img { width: 108px; } .pt__vw img { height: 76px; } }
.cart__img--part img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; mix-blend-mode: normal; }
.to__kind button[aria-pressed="true"] { background: var(--accent-btn, var(--accent)); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
html[data-theme="dark"] .to__kind button[aria-pressed="true"] { background: var(--accent-btn, var(--accent)); color: #fff; }

/* ---------- страница перегородок: блок цен ---------- */
.pt-price > p { max-width: 720px; }
.pt-w { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 18px; }
.pt-w .lbl { margin-right: 8px; }
.pt-w__b { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.pt-w__b:hover { color: var(--ink); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.pt-w__b[aria-pressed="true"] { background: var(--accent-btn, var(--accent)); border-color: transparent; color: #fff; }
.pt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pt-cat { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); transition: transform var(--fast), border-color var(--fast); }
html[data-theme="dark"] .pt-cat { background: rgba(255, 255, 255, .03); }
.pt-cat:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.pt-cat__sw { display: flex; flex-wrap: wrap; gap: 5px; }
.pt-cat__sw .pt__sw { width: 22px; height: 30px; border-radius: 5px; }
.pt-cat__t { font: 600 17px/1.25 var(--font-head); }
.pt-cat__n { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pt-cat__p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pt-cat__p small { font-size: 12px; color: var(--ink-2); }
.pt-cat__p b { display: inline-block; font: 600 22px var(--font); color: var(--ink); white-space: nowrap; }
.pt-lays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pt-lays li { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px; text-align: center; color: var(--ink); }
.pt-lays svg { color: var(--ink); --pt-glass: color-mix(in oklab, var(--bg, #fff) 70%, #cfe0e0); }
html[data-theme="dark"] .pt-lays svg { color: #e9e6e0; --pt-glass: #3a3d40; }
.pt-lays span { font-size: 12.5px; line-height: 1.25; color: var(--ink-2); }
.pt-lays b { font-size: 14px; }
.pt-frs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.pt-frs li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pt-frs i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.pt-full { margin-top: 26px; }
.pt-full summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.pt-full .pt-table { margin-top: 12px; }

/* ---------- перегородки: конструктор по калькулятору салона ---------- */
.pt__systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; align-items: stretch; }
.pt__sys { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--ink-2); font: 600 12px var(--font); text-align: left; cursor: pointer; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.pt__sys { align-content: start; }
.pt__sys .pt-plan { display: block; width: 100%; height: auto; color: var(--ink); }
.pt__sys:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); color: var(--ink); }
.pt__sys.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); color: var(--ink); }
.pt__hint { margin: 0; font-size: 13px; color: var(--ink-2); }
.pt__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt__lays--svg { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pt__lays--svg .pt__lay { padding: 8px 4px 6px; }
.pt__lays--svg .pt__lay svg { width: 28px; height: 62px; color: var(--ink); --pt-glass: #dfe9ea; }
html[data-theme="dark"] .pt__lays--svg .pt__lay svg { color: #e9e6e0; --pt-glass: #3a3d40; }
.pt__fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt__fams .to__pp-g { padding: 10px 6px; font-size: 12px; text-align: center; }
.pt__fams .to__pp-g .pt__sw { width: 30px; height: 40px; }
.pt__tg { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.pt__tg input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.pt__tg span { display: grid; gap: 2px; }
.pt__tg b { font-size: 14px; font-weight: 600; }
.pt__tg small { font-size: 12.5px; color: var(--ink-2); }
.pt__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.pt__seg button { flex: 1 1 auto; }
.pt__profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt__pf { display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: none; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.pt__pf small { font-size: 12px; font-weight: 600; color: var(--ink); }
.pt__pf span { font-size: 12px; }
.pt__pf b { margin-top: 4px; font: 600 clamp(20px, 2vw, 24px) var(--font); color: var(--ink); white-space: nowrap; }
.pt__pf.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.pt__result .kit__lines { margin: 4px 0 0; }
.pt-cat__p2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pt-cat__p2 > span { display: grid; gap: 2px; }
.pt-cat__p2 small { font-size: 11.5px; color: var(--ink-2); }
.pt-cat__p2 b { display: inline-block; font: 600 18px var(--font); color: var(--ink); white-space: nowrap; }
.pt-sub { margin: -6px 0 12px; font-size: 14px; color: var(--ink-2); }
.pt-lays { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
@media (max-width: 960px) { .pt__lays--svg { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pt__fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.to__pp-lays { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.to__pp-lays .pt__lay { padding: 6px 2px 4px; }
.to__pp-lays .pt__lay svg { width: 22px; height: 48px; color: var(--ink); --pt-glass: #dfe9ea; }
html[data-theme="dark"] .to__pp-lays .pt__lay svg { color: #e9e6e0; --pt-glass: #3a3d40; }
.to__pp .to__price small:last-child { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-2); }
/* стекло в примерочной: 3 плитки в ряд, образец сверху, короткое название под ним; 7 цветов профиля в один ряд */
.to__pp-side .to__pp-glass { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.to__pp-side .to__pp-g { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 2px 7px; text-align: center; font-size: 11.5px; line-height: 1.15; min-width: 0; }
.to__pp-side .to__pp-g span { max-width: 100%; hyphens: manual; }
.to__pp-side .to__pp-g .pt__sw { width: 22px; height: 30px; flex: none; }
.to__pp-side .pt__frames { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.to__pp-side .pt__frame { width: 100%; height: auto; aspect-ratio: 1; max-width: 30px; }
.to__pp-list { margin-top: 8px; max-height: 260px; overflow: auto; }
.hero__kind { display: inline-block; will-change: transform, opacity; }

/* кнопка расчета перегородки в примерочной: длинный текст в две строки */
.to__btns .btn.to__btn-wrap { white-space: normal; line-height: 1.15; text-align: center; padding: 8px 14px; font-size: 13px; min-width: 0; }

/* ---------- Напольный плинтус в расчете двери (магазин za-door, +40%) ---------- */
.kit-pl:empty { display: none; }
.kit-pl { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.kit-pl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kit-pl__head .kit__title { margin: 0; }
.kit-pl__on { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.kit-pl__on input { width: 18px; height: 18px; accent-color: var(--accent); }
.kit-pl__lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.kit-pl__models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kit-pl__m { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .3s var(--spring); }
.kit-pl__m:hover { transform: translateY(-2px); }
.kit-pl__m.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kit-pl__m img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; margin-bottom: 8px; background: #f4f3f0; }
.kit-pl__m b, .kit-pl__m span, .kit-pl__m em { padding: 0 10px; }
.kit-pl__m b { font-size: 13.5px; }
.kit-pl__m span { font-size: 12.5px; color: var(--ink-3); }
.kit-pl__m em { font-style: normal; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.kit-pl__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kit-pl__cols { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kit-pl__c { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 2px transparent; transition: box-shadow var(--fast), transform .25s var(--spring); }
.kit-pl__c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-pl__c:hover { transform: translateY(-1px); }
.kit-pl__c.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.kit-pl__cn { margin-left: 4px; font-size: 13.5px; font-weight: 600; }
.kit-pl__q { display: grid; gap: 6px; justify-items: start; }
.kit-pl__q small { font-size: 12px; color: var(--ink-3); }


/* конструктор перегородки: фото выбранной системы (вертикальное 4:5) целиком по центру, по бокам размытая копия;
   название системы - плашкой слева внизу, живой рисунок полотна - вставкой справа внизу */
.pt__scene > img.pt__sysbg { position: absolute; inset: 0; object-fit: cover; filter: blur(26px) brightness(.8) saturate(1.05) !important; transform: scale(1.2); animation: none; }
.pt__scene > img.pt__sysph { position: relative; object-fit: contain; }
.pt__sysname { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: rgba(20, 18, 16, .62); color: #fff; font: 600 15px/1.2 var(--font); backdrop-filter: blur(8px); }
.pt__sysname small { font-size: 12px; font-weight: 500; opacity: .8; }
.pt__inset { position: absolute; right: 16px; bottom: 16px; display: grid; justify-items: center; gap: 4px; padding: 10px 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px var(--accent), 0 14px 30px -14px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); animation: insetIn .5s var(--spring, ease) .1s both; }
.pt__inset svg { width: 46px; height: auto; display: block; }
.pt__inset small { font: 600 9.5px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: #5d5148; }
@keyframes insetIn { from { opacity: 0; transform: translateY(10px) scale(.85); } }
@media (max-width: 640px) { .pt__sysname { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 13px; } .pt__inset { right: 10px; bottom: 10px; padding: 7px 9px 6px; } .pt__inset svg { width: 32px; } }
@media (prefers-reduced-motion: reduce) { .pt__inset { animation: none; } }

/* ---------- Каталог: панель подбора одной карточкой (поиск, коллекции, тип, покрытие, цена, сортировка) ---------- */
.ftop { gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 50px -42px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .ftop { background: #1b1c1e; border-color: #2e3033; }
.ftop__row { gap: 10px; }
.ftop__search { flex: 1 1 100%; min-height: 52px; border-color: transparent; background: var(--soft); transition: border-color var(--fast), background var(--fast); }
.ftop__search:focus-within { background: var(--surface); border-color: var(--accent); }
html[data-theme="dark"] .ftop__search { background: #232427; }
html[data-theme="dark"] .ftop__search:focus-within { background: #1b1c1e; }
/* коллекции: плитки одной высоты, "Все коллекции" - со значком из четырех полотен */
.ftop__cols .fcol, html[data-theme="dark"] .ftop__cols .fcol { min-height: 60px; }
html[data-theme="dark"] .ftop__cols .fcol { --surface: #232427; --line: #34363a; }
.ftop__cols .fcol--all, html[data-theme="dark"] .ftop__cols .fcol--all { flex-direction: row; align-items: center; gap: 12px; padding: 7px 16px 7px 10px; }
.fcol__all { flex: none; display: grid; grid-template-columns: repeat(2, 13px); grid-template-rows: repeat(2, 20px); gap: 3px; }
.fcol__all s { border-radius: 2px; background: #ebe6df; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.fcol__all s:nth-child(2), .fcol__all s:nth-child(3) { background: #d8d0c5; }
.ftop__cols .fcol[aria-pressed="true"] .fcol__all s { background: #fff; }
.ftop__cols .fcol[aria-pressed="true"] .fcol__all s:nth-child(2), .ftop__cols .fcol[aria-pressed="true"] .fcol__all s:nth-child(3) { background: color-mix(in oklab, var(--accent) 35%, #fff); }
.ftop__arr { background: var(--surface); }
html[data-theme="dark"] .ftop__arr { background: #232427; border-color: #34363a; }
/* нижняя строка: фильтры слева, число моделей и сортировка справа, отделена линией */
.ftop__bar { gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
html[data-theme="dark"] .ftop__bar { border-top-color: #2e3033; }
.ftop__bar .seg-tabs { padding: 3px; }
.ftop__bar .seg-tabs button { min-height: 38px; padding: 0 16px; }
.ftop__bar .fdrop summary { min-height: 44px; }
.ftop__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ftop__end .cat__count { margin: 0; white-space: nowrap; font-weight: 500; }
.ftop__end .sort { margin: 0; }
.ftop__end .sort select { min-height: 44px; }
@media (max-width: 760px) {
  .ftop { padding: 12px; border-radius: 20px; gap: 10px; }
  .ftop__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .ftop__end .sort select { max-width: 60vw; }
}

/* коллекции сеткой (без прокрутки вбок): плитки переносятся, видны 2 ряда, плитка "Еще N" раскрывает остальные */
.ftop__strip .ftop__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; overflow: visible; padding: 0; scroll-snap-type: none; -webkit-mask-image: none !important; mask-image: none !important; }
.ftop__cols .fcol[hidden] { display: none !important; }
.ftop__cols .fcol, html[data-theme="dark"] .ftop__cols .fcol { min-width: 0; min-height: 54px; padding: 6px 12px 6px 6px; gap: 10px; border-radius: 14px; }
.ftop__cols .fcol img { height: 42px; }
.ftop__cols .fcol b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.ftop__cols .fcol > span { min-width: 0; }
.ftop__cols .fcol--all, html[data-theme="dark"] .ftop__cols .fcol--all { padding: 6px 12px 6px 10px; }
.fcol__all { grid-template-columns: repeat(2, 12px); grid-template-rows: repeat(2, 18px); }
.ftop__cols .fcol--more, html[data-theme="dark"] .ftop__cols .fcol--more { justify-content: center; padding: 6px 12px; border-style: dashed; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.ftop__cols .fcol--more b { color: var(--accent-ink, var(--accent)); }
html[data-theme="dark"] .ftop__cols .fcol--more b { color: var(--accent); }
.ftop__cols .fcol--more:hover { border-color: var(--accent); }
@media (max-width: 760px) { .ftop__strip .ftop__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ftop__cols .fcol b { white-space: normal; overflow: visible; line-height: 1.15; } .ftop__cols .fcol { align-items: center; } }

/* каталог: плитка "Межкомнатные перегородки" - заголовок, строка описания, цифры плашками, кнопка расчета справа */
.cat-parts { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; padding: 16px 24px 16px 16px; }
.cat-parts img { width: 112px; height: 136px; }
.cat-parts__t { gap: 8px; }
.cat-parts__t > b { font: 600 22px/1.2 var(--font-head); }
.cat-parts__lead { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.cat-parts__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cat-parts__facts > span { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
html[data-theme="dark"] .cat-parts__facts > span { background: rgba(255, 255, 255, .06); }
.cat-parts__facts strong { font-weight: 700; color: var(--ink); }
.cat-parts__go { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14.5px var(--font); white-space: nowrap; transition: transform .3s var(--spring), box-shadow .3s var(--ease); }
.cat-parts:hover .cat-parts__go { box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent) 80%, transparent); }
.cat-parts:hover .cat-parts__go svg { transform: translateX(3px); }
.cat-parts__go svg { transition: transform .3s var(--spring); }
@media (max-width: 900px) { .cat-parts { grid-template-columns: 96px minmax(0, 1fr); } .cat-parts img { width: 96px; height: 120px; } .cat-parts__go { grid-column: 1 / -1; justify-content: center; } }
@media (max-width: 520px) { .cat-parts { gap: 14px; padding: 14px; } .cat-parts img { width: 76px; height: 96px; } .cat-parts__t > b { font-size: 19px; } .cat-parts__lead { font-size: 14px; } .cat-parts__facts { grid-column: 1 / -1; } }
@media (max-width: 760px) { .cat-parts__t > .cat-parts__facts { display: flex; } .cat-parts__t > .cat-parts__lead { display: block; } }
@media (max-width: 520px) { .cat-parts__t > .cat-parts__lead { display: none; } .cat-parts__facts > span { padding: 4px 9px; font-size: 12px; } }


/* Блоки для статей. Все цвета через переменные темы, поэтому работают в светлой и тёмной. */

/* врезка: важное или коротко */
.art-note { margin: 26px 0; padding: 18px 20px 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--soft); }
.art-note b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.art-note p { margin: 0; color: var(--ink-2); }
.art-note p + p { margin-top: 8px; }

/* нумерованные шаги: как 01, 02, 03 на странице дизайнерам */
.art-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0; counter-reset: artstep; }
.art-step { padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.art-step::before { counter-increment: artstep; content: counter(artstep, decimal-leading-zero); display: block; margin-bottom: 8px; font: 500 30px/1 var(--font-head); letter-spacing: -.02em; color: var(--accent); }
.art-step h3 { margin: 0 0 6px; font-size: 17px; }
.art-step p { margin: 0; font-size: 15px; }

/* карточки: виды стекла, покрытия, элементы комплекта */
.art-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.art-card { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.art-card h3 { margin: 0 0 6px; font-size: 16px; }
.art-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* таблица сравнения */
.art-table-wrap { margin: 26px 0; overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.art-table th, .art-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art-table th { color: var(--ink); font-weight: 600; font-size: 14px; }
.art-table td { color: var(--ink-2); }
.art-table tr:last-child td { border-bottom: 0; }

/* чек-лист с галочками */
.art-check { display: grid; gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.art-check li { position: relative; padding-left: 30px; }
.art-check li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.art-check li::after { content: ''; position: absolute; left: 5px; top: .62em; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* вопросы и ответы */
.art-faq { margin: 26px 0; border-top: 1px solid var(--line); }
.art-faq details { border-bottom: 1px solid var(--line); }
.art-faq summary { position: relative; padding: 14px 34px 14px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; font-size: 20px; line-height: 1; color: var(--accent); }
.art-faq details[open] summary::after { content: '\2013'; }
.art-faq details p { margin: 0 0 16px; }

/* блок призыва в конце статьи */
.art__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 34px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--soft); }

@media (max-width: 760px) {
  .art-steps, .art-cards { grid-template-columns: 1fr; }
  .art-step::before { font-size: 26px; }
  .art__cta { flex-direction: column; align-items: flex-start; }
}
/* упор: изделие на фото смещено влево, подправляем положение внутри круга */
.door__part[data-cat="stop"] .door__part-i img { transform: translateX(5%); }
.door__part[data-cat="stop"]:hover .door__part-i img { transform: translateX(5%) scale(1.02); }

/* размер изделия по категории: круглые детали не должны занимать весь круг */
.door__part[data-cat="stop"] img { transform: scale(.72); }
.door__part[data-cat="turn"] img { transform: scale(.82); }
.door__part[data-cat="handle"] img { transform: scale(.9); }
.door__part[data-cat="plinth"] img { transform: scale(.86); }

/* текст о коллекции на странице /dveri/<коллекция>/ */
.col-about__body { max-width: 78ch; }
.col-about__body p { margin: 0 0 14px; line-height: 1.68; color: var(--ink-soft, inherit); }
.col-about__body p:last-of-type { margin-bottom: 0; }
.col-about__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.col-about__list li { position: relative; padding-left: 22px; line-height: 1.5; }
.col-about__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .col-about__body { max-width: none; } }
/* описание выбранной коллекции над сеткой каталога */
.cat-lead { margin: 0 0 clamp(18px, 2vw, 26px); max-width: 76ch; }
.cat-lead__text { margin: 0 0 16px; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.65; color: var(--ink-soft, inherit); }
.cat-lead__list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.cat-lead__list li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft, inherit); }
.cat-lead__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cat-lead__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); padding-bottom: 3px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.cat-lead__link:hover { color: var(--accent-2, var(--accent)); border-bottom-color: currentColor; }
@media (max-width: 900px) { .cat-lead__list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cat-lead__list li { font-size: 14px; } }

/* описание выбранной коллекции: карточка под заголовком каталога */
.cat-lead--rich { max-width: none; padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); border: 1px solid var(--line, color-mix(in oklab, currentColor 14%, transparent)); border-radius: 20px; background: color-mix(in oklab, currentColor 4%, transparent); }
.cat-lead--rich .cat-lead__text { max-width: 84ch; }
.cat-lead--rich .cat-lead__list { margin-bottom: 20px; }
.cat-lead--rich .cat-lead__link { margin-top: 2px; }

:root{--x-sig:"bb238a9253262139e7f1852f⁠‌​‌‌‌​‌‌​​‌​​​‌‌‌​​​‌​‌​‌​​‌​​‌​​‌​‌​​‌‌​​‌​​‌‌​​​‌​​​​‌​​‌‌‌​​‌‌‌‌​​‌‌‌‌‌‌‌​​​‌‌​​​​‌​‌​​‌​‌‌‌‌⁠"}
