@import url("/assets/fonts/google-sans.css");

/* Royal Mats — дизайн-система по образцу autozs.ru (сетка, отступы, радиусы, шрифт), акцент зелёный #1F9D55. Логотип и тексты свои. */
:root {
  --ink: #1a1a1a;
  --ink-2: #222222;
  --muted: #656c79;
  --paper: #ffffff;
  --paper-2: #f3f4f6;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --royal: #1f9d55;          /* акцент: зелёный */
  --royal-ink: #187f45;      /* наведение */
  --royal-soft: #f3f4f6;     /* фон выбранного: нейтральный, чтобы не путать с ошибкой и красным ковриком */
  --accent-2: #1f9d55;
  --on-accent: #ffffff;
  --accent-text: #187f45;
  --sel: #1a1a1a;
  --header-bg: #ffffff;
  --hero-bg: #ebf6ef;
  --hero-btn: #1f9d55;
  --hero-btn-text: #ffffff;
  --alt-bg: #f6f6f6;
  --footer-bg: #111111;
  --footer-ink: #ffffff;
  --footer-muted: #9ca3af;
  --rule-w: 1px;
  --rule-c: #e5e7eb;
  --nav-rule: 2px;
  --ok: #2e9e5b;
  --bad: #e63329;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .05);
  --shadow-pop: 0 10px 25px rgba(0, 0, 0, .1);
  --header: 72px;
  --gutter: 20px;
  --container: 1440px;
  --font: "Google Sans", "Segoe UI", Arial, sans-serif;
  --font-head: var(--font);
  --head-w: 500;
  --head-track: -0.01em;
}

@media (min-width: 1480px) { :root { --gutter: 20px; } }



*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--paper); font-feature-settings: "tnum" 0; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: var(--head-track); font-weight: var(--head-w); font-family: var(--font-head); }
h1 { font-size: calc(clamp(28px, 3.1vw, 44px) * var(--head-scale, 1)); }
h2 { font-size: calc(clamp(24px, 2.3vw, 34px) * var(--head-scale, 1)); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--container, 1312px), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.fine { font-size: 13px; color: var(--muted); }
.h-sm { font-size: 20px; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--royal); color: var(--on-accent, #fff); }
.btn-primary:hover { background: var(--royal-ink); }
.hero .picker-note, .hero .lead { color: var(--hero-muted, var(--ink-2)); }
.hero .picker .picker-note { color: var(--muted); }
.btn-primary:disabled { background: var(--line-2); color: var(--surface); cursor: not-allowed; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--royal-soft); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--ink); }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 0 12px; font-size: 16px; font-weight: 400; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--sel); outline: none; box-shadow: 0 0 0 3px var(--royal-soft); }
.field-sm input { height: 42px; }
.is-bad input, .is-bad.consent { color: var(--bad); }
.is-bad input { border-color: var(--bad); }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0,0,0,.08); }
.header-row { height: var(--header); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; color: var(--ink); text-decoration: none; }
.logo-svg { height: 26px; width: auto; }
.logo-mark { fill: var(--royal); }
.logo-loop { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font: 600 20px var(--font); letter-spacing: -0.04em; fill: currentColor; }
.logo-word-2 { font-weight: 400; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: var(--nav-rule, 2px) solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-color: var(--sel); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.phone { font-weight: 600; text-decoration: none; font-size: 15px; }

/* ---------- экран конструктора (помещается в один экран) ---------- */
.builder-screen { padding: 14px 0 20px; }
.builder-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.builder-head .crumbs { width: 100%; }
.builder-head h1 { font-size: calc(clamp(22px, 2.2vw, 32px) * var(--head-scale, 1)); margin: 0; }
.h1-years { color: var(--muted); font-weight: 500; }
.change-car { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.change-car:hover { text-decoration-color: var(--ink); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; height: calc(100dvh - var(--header) - 112px); min-height: 600px; max-height: 860px; }
.builder-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.stage-canvas { flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.stage-canvas svg { width: 100%; height: 100%; }
.stage-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.stage-note { position: absolute; left: 16px; top: 12px; margin: 0; max-width: 300px; font-size: 12px; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }

.builder-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.panel-h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.panel-block { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper-2); border-radius: var(--r); padding: 4px; gap: 4px; }
.seg { border: 0; background: transparent; border-radius: 7px; height: 36px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg.is-on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sel); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; }
.preset b { font-size: 15px; font-weight: 600; }
.preset:last-child:nth-child(odd) { grid-column: span 2; grid-template-columns: 1fr auto; align-items: center; }
.preset:hover { border-color: var(--ink); }
.preset.is-on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--royal-soft); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.swatch { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 2px; cursor: pointer; min-width: 0; }
.swatch span { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; overflow: hidden; }
.swatch span::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.18) 0 1px, transparent 1px 3px); }
.swatch em { font-style: normal; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.swatch.is-on span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sel); }
.swatch.is-on em { color: var(--ink); font-weight: 600; }
.panel-total { margin-top: auto; display: grid; gap: 8px; }
.total-sum { margin: 0; font-size: 34px; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.total-what { margin: 0; font-size: 14px; color: var(--ink-2); }
.total-note { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.panel-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--muted); }
.panel-facts b { display: block; color: var(--ink); font-size: 13px; }

/* схема салона */
.car-body path, .car-body rect { stroke: var(--line-2); stroke-width: 10; }
.car-body .glass { stroke: var(--line); stroke-width: 8; }
.car-body .wheel { fill: var(--paper-2); stroke: none; }
.car-front { font: 600 84px var(--font); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); stroke: none; }
.part { cursor: pointer; }
.part-shape { transition: opacity .15s; }
.part.is-off .part-shape { fill: var(--paper); stroke: var(--line-2); stroke-width: 6; stroke-dasharray: 22 14; }
.part.is-off:hover .part-shape { fill: var(--royal-soft); stroke: var(--sel); }
.part.is-on .part-shape { stroke: rgba(0,0,0,.35); stroke-width: 4; }
.part.is-on:hover .part-shape { opacity: .88; }
.part:focus-visible .part-shape { stroke: var(--sel); stroke-width: 10; }
.part .heel { fill: #1b1b1b; stroke: #000; stroke-width: 3; }
.part-label { font: 600 92px var(--font); fill: var(--accent-text, var(--royal)); pointer-events: none; }

/* конструктор для дома */
.places { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px 0; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); height: 34px; padding: 0 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
a.chip.is-on { color: #fff; }
.stage-home .grid line { stroke: var(--line); stroke-width: .25; }
.stage-home .mat { stroke: rgba(0,0,0,.35); stroke-width: .4; }
.stage-home .dims line { stroke: var(--muted); stroke-width: .3; }
.stage-home .dims text { fill: var(--ink-2); font-family: var(--font); font-weight: 600; }
.stage-home .handle { fill: var(--surface); stroke: var(--sel); stroke-width: .6; cursor: grab; touch-action: none; }
.stage-home .handle.is-sel { fill: var(--royal); }
.stage-home .handle { pointer-events: none; }
.stage-home .handle-hit { fill: transparent; cursor: grab; touch-action: none; }
.stage-home .mid-hit { fill: transparent !important; stroke: none !important; }
.stage-home .mid circle { fill: var(--royal-soft); stroke: var(--sel); stroke-width: .3; cursor: copy; }
.stage-home .mid text { fill: var(--sel); font-family: var(--font); font-weight: 600; pointer-events: none; }
.stage-home .edge-len { fill: var(--muted); font-family: var(--font); pointer-events: none; }
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.shape { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 8px 4px 6px; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; }
.shape svg { width: 44px; height: 34px; }
.shape path { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 2; }
.shape.is-on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--royal-soft); }
.shape.is-on path { fill: var(--royal); stroke: var(--sel); }
.dims-row { display: grid; grid-template-columns: 1fr 1fr 72px; gap: 8px; }
.corner-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.corner-row input[type=range] { accent-color: var(--sel); }
.corner-row output { font-weight: 600; font-size: 14px; min-width: 44px; }
.upload { display: grid; gap: 2px; font-size: 13px; color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-2, var(--royal)); text-underline-offset: 3px; font-weight: 600; cursor: pointer; text-align: center; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload em { font-style: normal; color: var(--ink-2); font-weight: 400; }

/* ---------- секции ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--alt-bg); border-block: 1px solid var(--line); }
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo { margin: 0; }
.photo img, .proof img, .proof video, .compare-pics img, .anatomy img { border-radius: var(--r-lg); width: 100%; object-fit: cover; }
.photo img { aspect-ratio: 4 / 3; max-height: min(54vh, 420px) !important; }
/* крупные фото и видео не выше половины экрана: блок целиком виден на ноутбуке 1366×768 */
.photo img, .proof img, .proof video, .art-fig img, .art-fig video, .cmp-mini img, .cmp-mini video, .lekalo-fig img { max-height: 54vh; }
figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.spec { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.spec li span:last-child { color: var(--muted); font-weight: 400; text-align: right; }
.fit-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.fit-table > div { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--line); }
.fit-table > div:last-child { border-bottom: 0; }
.fit-table span { padding: 14px 18px; }
.fit-table span:first-child { font-weight: 600; background: var(--paper-2); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof { margin: 0; }
.proof img, .proof video { aspect-ratio: 4 / 5; background: var(--paper-2); }
.compare { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.compare-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-pics figure { margin: 0; }
.compare-pics img { aspect-ratio: 1; }
.ugc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ugc img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); width: 100%; }
.ugc-cta { margin: 16px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.faq > * { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--sel); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); max-width: 70ch; }
.model-links { display: flex; flex-wrap: wrap; gap: 8px; }
.model-links a { border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 14px; text-decoration: none; font-weight: 500; background: var(--surface); }
.model-links a:hover { border-color: var(--ink); }
.steps { padding-left: 20px; display: grid; gap: 10px; }
.plain { padding-left: 18px; display: grid; gap: 8px; }
.place-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.place-cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.place-cards p { color: var(--ink-2); margin: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.prose { max-width: 760px; }

/* ---------- главная ---------- */
.hero { padding: 40px 0; background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy h1 { color: var(--hero-ink, var(--ink)); font-size: calc(clamp(36px, 4.8vw, 72px) * var(--head-scale, 1)); line-height: .98; max-width: 12ch; }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/img/noodle-pattern.svg") 0 0 / 240px 240px repeat; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%); mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%); }
.hero .picker .btn-primary { background: var(--hero-btn); color: var(--hero-btn-text); }
.hero .picker .btn-primary:hover { opacity: .88; }
.picker { display: grid; grid-template-columns: 1fr auto; gap: 10px 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-pop); margin-top: 24px; }
.picker-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.picker-row[hidden] { display: none; }
.picker-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.picker-note a { color: var(--ink-2); font-weight: 500; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.pop span { color: var(--muted); }
.pop a { text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.pop a:hover { border-color: var(--ink); }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); }
.hero-media figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 8px; margin: 0; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; }
.facts div { padding: 18px 20px 0 0; display: grid; gap: 2px; }
.facts b { font-family: var(--font-head); font-size: 26px; letter-spacing: -0.03em; }
.facts span { font-size: 14px; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.price-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; align-content: space-between; min-height: 110px; }
.price-grid span { font-size: 14px; color: var(--ink-2); }
.price-grid b { font-family: var(--font-head); font-size: 22px; letter-spacing: -0.02em; }
.price-grid div { position: relative; }
.price-badge { font-style: normal; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.price-grid .is-main { grid-column: span 2; background: var(--paper-2); border-color: var(--paper-2); }
.price-grid .is-main small { font-size: 13px; color: var(--muted); }
.price-grid + .fine { margin-top: 16px; }
.anatomy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.anatomy figure { margin: 0; }
.anatomy img { aspect-ratio: 4 / 3; max-height: 46vh; }
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.teaser { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; text-decoration: none; align-items: center; }
.teaser:hover { border-color: var(--ink); }
.teaser img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.teaser p { color: var(--ink-2); }
.opt-cta { display: flex; justify-content: flex-end; }

/* ---------- лекала ---------- */
.lk-hero { padding-top: 24px; }
.lk-hero .split { align-items: start; }
.kpis { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpis li { border-top: max(2px, var(--rule-w)) solid var(--ink); padding-top: 10px; display: grid; }
.kpis b { font-family: var(--font-head); font-size: 26px; letter-spacing: -0.03em; }
.kpis span { font-size: 13px; color: var(--muted); }
.lk-sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.lk-sample-svg svg { width: 100%; height: 360px; }
.lk-sample-svg path { fill: var(--royal-soft); stroke: var(--ink); stroke-width: 3; }
.lk-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.lk-meta { display: flex; gap: 18px; align-items: center; margin: 14px 0 8px; font-size: 14px; color: var(--muted); }
.lk-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.lk-row { display: grid; grid-template-columns: 28px 1fr 90px 80px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; background: var(--surface); }
.lk-row:last-child { border-bottom: 0; }
.lk-row:hover { background: var(--paper-2); }
.lk-row.is-on { background: var(--royal-soft); }
.lk-row input { width: 18px; height: 18px; accent-color: var(--sel); }
.lk-brand { display: none; }
.lk-name small { color: var(--muted); font-size: 12px; }
.lk-type { font-size: 13px; color: var(--muted); }
.lk-price { text-align: right; font-weight: 600; }

/* ---------- заявка ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(18, 20, 24, .5); }
.sheet-panel { position: relative; width: min(520px, 100% - 24px); max-height: calc(100dvh - 24px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); border-top: 4px solid var(--royal); }
.sheet-panel h2 { font-size: 22px; margin: 0; }
.sheet-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); width: 40px; height: 40px; }
.order-lines { margin: 0; background: var(--paper-2); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 4px; font-size: 14px; }
.order-lines div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.order-lines dt { color: var(--muted); }
.order-lines dd { margin: 0; font-weight: 600; }
.fields { display: grid; gap: 10px; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.choice legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; width: 100%; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; font-weight: 500; cursor: pointer; }
.choice input:checked + span { border-color: var(--sel); background: var(--royal-soft); box-shadow: inset 0 0 0 1px var(--sel); }
.choice input:focus-visible + span { outline: 2px solid var(--sel); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--sel); }
.consent a { color: var(--accent-text); }

/* ---------- закреплённая панель (мобильные) ---------- */
.sticky-bar { display: none; }

/* ---------- подвал ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); padding: 48px 0 20px; margin-top: 0; border-top: var(--rule-w) solid var(--rule-c); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--footer-ink); text-decoration: none; padding: 3px 0; font-size: 15px; }
.footer-grid a:hover { text-decoration: underline; }
.foot-h { color: var(--footer-muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.logo-foot { color: var(--footer-ink); margin-bottom: 12px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-2); margin-top: 32px; padding-top: 16px; font-size: 13px; }
.footer-legal a { color: var(--footer-muted); }

/* ---------- адаптив ---------- */
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.site-header.is-open .menu-btn svg path { d: path("M6 6l12 12M18 6L6 18"); }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.is-open .nav { display: grid; position: absolute; top: var(--header); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; gap: 0; box-shadow: var(--shadow); }
  .site-header.is-open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .ugc { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header: 56px; }
  .phone { display: none; }
  .builder-grid { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .builder-stage { position: sticky; top: var(--header); z-index: 5; height: auto; min-height: 0; box-shadow: var(--shadow); }
  .stage-canvas { flex: none; aspect-ratio: 2.1 / 1; padding: 6px; }
  .stage-canvas.stage-home { aspect-ratio: 4 / 3; }
  .stage-note { display: none; }
  .stage-hint { padding: 8px 12px; font-size: 12px; }
  .panel-total .btn-lg { display: none; }
  .builder-panel { overflow: visible; }
  .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .sticky-bar b { font-size: 20px; letter-spacing: -0.02em; display: block; }
  .sticky-label { font-size: 12px; color: var(--muted); }
  body:has(.sticky-bar) { padding-bottom: 76px; }
  .opt-cta { justify-content: flex-start; }
  .split, .compare, .hero-grid, .teasers { grid-template-columns: 1fr; gap: 28px; }
  .hero-media img { min-height: 260px; aspect-ratio: 4 / 3; }
  .hero { background: var(--hero-bg); padding-bottom: 24px; }
  .hero::before { inset: 0; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 70%); }
  .btn { white-space: normal; text-align: center; }
  .picker { grid-template-columns: 1fr; }
  .picker-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .proof-grid, .place-cards, .three { grid-template-columns: 1fr; }
  .anatomy { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .anatomy figure { scroll-snap-align: start; }
  .proof img, .proof video { aspect-ratio: 16 / 10; }
  .fit-table > div { grid-template-columns: 1fr; }
  .fit-table span { padding: 12px 16px; }
  .fit-table span:first-child { padding-bottom: 0; background: none; font-size: 13px; font-weight: 500; color: var(--muted); }
  .fit-table span:last-child { padding-top: 2px; }
  .swatches { gap: 2px; }
  .swatch em { font-size: 10.5px; letter-spacing: -0.01em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lk-tools { grid-template-columns: 1fr; }
  .lk-row { grid-template-columns: 24px 1fr 64px; }
  .lk-brand, .lk-type { display: none; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .lk-sample-svg svg { height: 240px; }
  .section { padding: 48px 0; }
  .teaser { grid-template-columns: 110px 1fr; }
  .shapes { grid-template-columns: repeat(4, 1fr); }
  .stage-home { min-height: 0; }
  .places { padding: 10px 12px 6px; }
}
@media (max-width: 560px) {
  .price-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
  .price-grid div { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; align-content: center; min-height: 0; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .price-grid div:last-child { border-bottom: 0; }
  .price-grid div > * { grid-column: 1; }
  .price-grid div > b { grid-column: 2; grid-row: 1; align-self: center; font-size: 20px; }
  .price-grid .is-main > b { grid-row: 1 / span 3; }
  .price-grid .is-main { grid-column: auto; }
  .ugc { grid-template-columns: repeat(2, 1fr); }
  .presets { grid-template-columns: 1fr 1fr; }
  .header-cta .btn { display: none; }
}
.places { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.places .chip { flex: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* выпадающий список (combobox) */
.cb { position: relative; }
.cb input { padding-right: 40px; }
.cb-btn { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 38px; border: 0; background: none; cursor: pointer; border-radius: 0 var(--r) var(--r) 0; }
.cb-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translate(-50%, -70%) rotate(45deg); transition: transform .15s; }
.cb.is-open .cb-btn::after { transform: translate(-50%, -30%) rotate(-135deg); }
.cb-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-pop); max-height: 300px; overflow: auto; font-size: 15px; font-weight: 400; color: var(--ink); }
.cb-list li { padding: 8px 12px; border-radius: calc(var(--r) - 2px); cursor: pointer; }
.cb-list li b { font-weight: 600; }
.cb-list li.is-active { background: var(--royal); color: var(--on-accent); }
.cb-list .cb-sep { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: default; }
.cb-list .cb-sep:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; }
.cb-list .cb-empty { color: var(--muted); cursor: default; font-size: 14px; }

/* просмотр фото и видео: GLightbox */
.zoomable { cursor: zoom-in; transition: opacity .15s; }
.zoomable:hover { opacity: .9; }
.glightbox-clean .gdesc-inner { padding: 12px 16px; }
.glightbox-clean .gslide-title, .glightbox-clean .gslide-desc { font-family: var(--font); }
.goverlay { background: rgba(10, 10, 10, .92); }
.gvideo-container { justify-content: center; }
.gslide-video { margin-left: auto !important; margin-right: auto !important; width: min(92vw, calc(78vh * 9 / 16)) !important; max-width: min(92vw, calc(78vh * 9 / 16)) !important; }
.gslide-video .plyr { width: 100%; }
.gslide-video .plyr__video-wrapper { display: flex; justify-content: center; background: #000; }
.gslide-video video { max-width: 100% !important; width: 100%; object-fit: contain; }
.play { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--r); background: rgba(0,0,0,.72); color: #fff; font: 600 14px var(--font); padding: 8px 14px; cursor: pointer; }
.play span { font-size: 11px; }
.play:hover { background: var(--royal); color: var(--on-accent); }

/* шаги */
.journey { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journey li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.journey-n { display: block; font-size: 32px; line-height: 1; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.journey p { margin: 0; color: var(--ink-2); }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review-tag { margin: 0; font-size: 13px; color: var(--muted); }
.review-stars { margin: 0; color: #f5b400; letter-spacing: 2px; font-size: 14px; }
.review-stars b { color: var(--ink); letter-spacing: 0; margin-left: 4px; }
.review h3 { font-size: 18px; margin: 4px 0; }
.review > p:not([class]) { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.review footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 14px; flex-wrap: wrap; }
.review footer span { color: var(--muted); }
.sub-h { margin: 40px 0 14px; font-size: 22px; }
.customers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.customers figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.customers img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.customers figcaption { margin: 0; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.customers q { color: var(--ink-2); quotes: "«" "»"; }
.customers figcaption span { color: var(--muted); font-size: 13px; }
.customers figcaption .desc { color: var(--ink-2); font-size: 14px; }
.ugc-strip { margin-top: 14px; }

/* цех */
.workshop { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; margin-top: 8px; }
.workshop figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.workshop .w-tall { grid-row: span 2; }
.workshop img, .workshop video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.workshop figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; background: rgba(255,255,255,.92); color: var(--ink); padding: 8px 12px; border-radius: var(--r); font-size: 14px; }
.workshop .play { top: 10px; left: 10px; }
.proof-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .customers { grid-template-columns: repeat(3, 1fr); }
  .proof-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .workshop { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 560px) {
  .reviews { grid-template-columns: 1fr; }
  .customers { grid-template-columns: 1fr 1fr; }
  .proof-4 { grid-template-columns: 1fr; }
}

/* карусели (Splide): единый вид карточек */
.carousel { position: relative; margin-top: 8px; padding-bottom: 36px; }
.card-photo { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.card-photo img, .card-photo video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--paper-2); border-radius: 0; }
.card-photo figcaption { margin: 0; padding: 12px 14px 14px; display: grid; gap: 6px; font-size: 14px; flex: 1; align-content: start; }
.card-photo figcaption b { font-weight: 600; }
.card-photo .q { color: var(--ink-2); }
.card-photo .by { color: var(--muted); font-size: 13px; margin-top: auto; }
.card-video .play { top: 10px; left: 10px; }
.carousel-workshop .card-photo img, .carousel-workshop .card-photo video { aspect-ratio: 1; }
.splide__arrows { position: absolute; right: 0; top: -58px; display: flex; gap: 8px; }
.splide__arrow { position: static; transform: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; opacity: 1; }
.splide__arrow svg { width: 16px; height: 16px; fill: var(--ink); }
.splide__arrow:hover:not(:disabled) { border-color: var(--ink); }
.splide__arrow:disabled { opacity: .35; cursor: default; }
.splide__arrow--prev svg { transform: scaleX(-1); }
.splide__pagination { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.splide__pagination__page { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.splide__pagination__page.is-active { width: 20px; background: var(--ink); }
.splide__slide { height: auto; }
@media (max-width: 900px) { .splide__arrows { display: none; } }

/* сравнение материалов: лёгкий блок */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.why-vs { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.why-card h3 { margin: 0 0 6px; font-size: 20px; }
.why-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.why-perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-perks li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: start; font-size: 15px; }
.why-perks li::before { content: ""; grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--hero-bg) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.why-perks span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .why-grid, .why-perks { grid-template-columns: 1fr; } }

/* сравнение на фото */
.cmp-card { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cmp-photo { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--paper-2); }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.cmp-l, .cmp-r { position: absolute; top: 10px; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 6px; }
.cmp-l { left: 10px; background: rgba(255,255,255,.92); color: var(--ink); }
.cmp-r { right: 10px; background: rgba(26, 26, 26, .78); color: #fff; }
.cmp-todo { display: grid; place-content: center; text-align: center; gap: 6px; border-bottom: 1px dashed var(--line-2); padding: 16px; color: var(--muted); background: repeating-linear-gradient(45deg, var(--paper-2) 0 12px, #fff 12px 24px); }
.cmp-todo span { font-weight: 600; color: var(--ink-2); }
.cmp-todo small { font-size: 13px; max-width: 30ch; }
.cmp-body { padding: 16px 18px 20px; }
.cmp-body h3 { margin: 0 0 6px; font-size: 19px; }
.cmp-body p { margin: 0; color: var(--ink-2); font-size: 15px; }
.carousel-reviews .review { height: 100%; }
.why-perks { margin-top: 8px; }

/* каталог: марки и модели */
.cat-head { padding-top: 24px; padding-bottom: 32px; }
.cat-head h1 { margin-top: 8px; }
.cat-filter { margin-top: 12px; width: min(420px, 100%); height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; font-size: 16px; background: var(--surface); }
.cat-filter:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px var(--royal-soft); }
.bgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.bgrid-5 { grid-template-columns: repeat(5, 1fr); }
.btile { display: grid; gap: 2px; padding: 14px 16px 16px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; }
.btile:hover { border-color: var(--royal); }
.btile b { font-size: 17px; font-weight: 600; }
.btile span { font-size: 13px; color: var(--muted); }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mcard { position: relative; display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; }
.mcard:hover { border-color: var(--royal); }
.mcard b { font-size: 17px; font-weight: 600; padding-right: 90px; }
.mcard-years { font-size: 14px; color: var(--ink-2); }
.mcard-tags { font-size: 13px; color: var(--muted); min-height: 18px; }
.mcard-price { font-weight: 600; margin-top: 4px; }
.mcard-ready { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mcard-ready::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
[data-cat-grid] a[hidden] { display: none; }
@media (max-width: 1100px) { .bgrid { grid-template-columns: repeat(4, 1fr); } .mgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .bgrid { grid-template-columns: repeat(2, 1fr); } .mgrid { grid-template-columns: 1fr; } }

/* логотипы марок */
.blogo { display: grid; place-items: center start; height: 44px; width: 100%; margin-bottom: 8px; }
.blogo img { display: block; object-fit: contain; }
.blogo-txt { width: 44px; height: 44px; border-radius: 50%; background: var(--hero-bg); color: var(--accent-text); font-weight: 600; font-size: 15px; place-items: center; letter-spacing: .02em; }
.brand-h1 { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.brand-h1 h1 { margin: 0; }
.blogo-lg { width: auto; height: 64px; margin: 0; place-items: center; }

.blogo-lg.blogo-txt { width: 56px; height: 56px; font-size: 18px; }
.cb-list li { display: flex; align-items: center; gap: 10px; }
.cb-ico { flex: none; width: 32px; height: 20px; object-fit: contain; }
.cb-ico-txt { display: grid; place-items: center; width: 32px; height: 20px; border-radius: 6px; background: var(--hero-bg); color: var(--accent-text); font-size: 10px; font-weight: 600; }
.cb-list li.is-active .cb-ico-txt { background: rgba(255,255,255,.25); color: #fff; }

/* карточка модели: компактные общие блоки */
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-row .card-photo img { aspect-ratio: 4 / 3; }
.photo-slot { display: grid; align-content: center; gap: 8px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-2); min-height: 200px; }
.photo-slot b { font-weight: 600; color: var(--ink); }
.photo-slot span { font-size: 14px; color: var(--muted); }
.photo-slot:hover { border-color: var(--ink); }
.photo-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 72ch; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cmp-mini { margin: 0; }
.cmp-mini img, .cmp-mini video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); display: block; }
.cmp-mini figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.more-link { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.why-perks + .more-link { margin-top: 24px; }
.rev-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review-sm h3 { font-size: 17px; }
.journey-sm { margin-bottom: 24px; }
.journey-sm .journey-n { font-size: 24px; margin-bottom: 12px; }
.terms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.terms-row div { display: grid; gap: 4px; }
.terms-row b { font-weight: 600; }
.terms-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .cmp-row, .rev-row, .terms-row { grid-template-columns: 1fr; gap: 12px; }
}

/* лекало модели рядом с таблицей */
.fit-split.has-lekalo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.lekalo-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.lekalo-fig img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.lekalo-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .fit-split.has-lekalo { grid-template-columns: 1fr; } }

/* раздел «Для дома» */
.builder-lead { width: 100%; margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.place-cards a.place-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-decoration: none; }
.place-cards a.place-card:hover { border-color: var(--royal); }
.place-card h3 { margin: 0; }
.place-card p { margin: 0; color: var(--ink-2); }
.place-price { font-weight: 600; margin-top: 4px; }
.dom-note { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 16px; margin: 0 0 16px; font-size: 15px; max-width: 760px; }
.dom-note::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--ink-2); -webkit-mask: url("/assets/img/icons/info.svg") center / contain no-repeat; mask: url("/assets/img/icons/info.svg") center / contain no-repeat; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; max-width: 860px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-variant-numeric: tabular-nums; }
.size-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.size-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.size-table tr:last-child td { border-bottom: 0; }
.size-table td span { display: block; font-size: 13px; color: var(--muted); }
.size-table td:last-child { text-align: right; }
.journey-sm li p { margin: 0; }

/* статьи */
.art { padding-top: 24px; }
.art .wrap, .art-more .wrap { max-width: 1064px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 64px; justify-content: space-between; }
.art-main h1 { margin-top: 8px; }
.art-main > .lead { margin-bottom: 24px; }
.art-short { background: var(--hero-bg); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 32px; }
.art-short-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.art-short ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.art-sec { margin-bottom: 40px; scroll-margin-top: calc(var(--header) + 16px); }
.art-sec h2 { font-size: 26px; margin-bottom: 12px; }
.art-sec p, .art-sec li { font-size: 17px; line-height: 1.6; }
.art-sec ul, .art-sec ol { padding-left: 22px; display: grid; gap: 6px; }
.art-fig { margin: 20px 0; }
.art-fig img, .art-fig video { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.art-video video { aspect-ratio: 9 / 12; max-width: 300px; }
.art-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-figs .art-fig { margin: 12px 0; }
.art-figs img { aspect-ratio: 1; }
.art-sec .table-wrap { margin: 16px 0 20px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.art-table th, .art-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-table th { font-weight: 500; color: var(--muted); font-size: 13px; }
.art-table td:first-child { font-weight: 600; }
@media (max-width: 700px) { .art-table { min-width: 560px; } .art-table th:first-child, .art-table td:first-child { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); } }
.art-note { border-left: 3px solid var(--line-2); padding: 4px 0 4px 16px; color: var(--ink-2); }
.art-mistakes { list-style: none; padding: 0 !important; }
.art-mistakes li { border-top: 1px solid var(--line); padding: 12px 0; }
.art-mistakes li b { display: block; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper-2); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 40px; }
.art-cta div { display: grid; gap: 4px; }
.art-cta span { color: var(--muted); font-size: 15px; }
.art-src li { font-size: 15px; }
.art-src a { color: var(--ink-2); }
.art-aside { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 12px; }
.art-aside ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.art-aside a { color: var(--ink-2); text-decoration: none; }
.art-aside a:hover { text-decoration: underline; }
.art-aside .btn { color: var(--on-accent); margin-top: 8px; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-aside { display: none; } .art-cta { flex-direction: column; align-items: flex-start; } }

/* иконки: Lucide (ISC), assets/img/icons */
.ico { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-truck { --i: url("/assets/img/icons/truck.svg"); }
.ico-wallet { --i: url("/assets/img/icons/wallet.svg"); }
.ico-shield { --i: url("/assets/img/icons/shield-check.svg"); }
.ico-send { --i: url("/assets/img/icons/send.svg"); }
.ico-lg { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--hero-bg); -webkit-mask: none; mask: none; margin-bottom: 14px; }
.ico-lg::after { content: ""; position: absolute; inset: 12px; background: var(--ink); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.terms-row div { grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.terms-row .ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--ink-2); }

/* статьи: карточки с фото */
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); }
.acard:hover { border-color: var(--royal); }
.acard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--paper-2); }
.acard div { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.acard b { font-size: 18px; font-weight: 600; line-height: 1.25; }
.acard span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .acards { grid-template-columns: 1fr; } }

/* дом: «Почему ПВХ-петля здесь» */
.zone-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.zone-why .why-card h3 { font-size: 18px; }
.zone-src { margin-top: 16px; }
.zone-src a { color: var(--muted); }
@media (max-width: 1100px) { .zone-why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zone-why { grid-template-columns: 1fr; } }
.logo-credits { margin-top: 24px; } .logo-credits a { color: var(--muted); }

/* иконки мест дома в карточках */
.place-cards a.place-card.has-ico { grid-template-columns: 88px 1fr; align-items: center; column-gap: 16px; }
.place-card.has-ico > div { display: grid; gap: 6px; }
.place-ico { display: block; object-fit: contain; }
.mcard-ico { grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; }
.mcard-ico .place-ico { grid-row: span 2; }
.mcard-ico b { padding-right: 0; }
@media (max-width: 560px) { .place-cards a.place-card.has-ico { grid-template-columns: 72px 1fr; } .place-card.has-ico .place-ico { width: 72px; height: 72px; } }

/* подписи и лиды не вплотную к блокам */
.table-wrap + .fine, .table-wrap + p { margin-top: 12px; }
.brand-h1 + .lead { margin-top: 10px; }
.foot-addr { margin: 8px 0 0; font-size: 15px; color: var(--footer-ink); }
.foot-addr span { display: block; font-size: 13px; color: var(--footer-muted); }

/* карточка модели в каталоге: миниатюра лекала справа */
.mcard.has-lk { grid-template-columns: 1fr 72px; column-gap: 12px; align-content: start; }
.mcard.has-lk > :not(.mcard-lk) { grid-column: 1; }
.mcard-lk { grid-column: 2; grid-row: 1 / span 5; width: 72px; height: 72px; object-fit: contain; align-self: center; opacity: .9; }
.mcard.has-lk b { padding-right: 0; }
.mcard.has-lk .mcard-ready { position: static; margin-top: 2px; }

/* 404 */
.nf { padding-block: 72px 96px; }
.nf-code { margin: 0; font: 600 96px/1 var(--font-head); letter-spacing: -0.04em; color: var(--line-2); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* юридические страницы */
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal li { margin-bottom: 4px; }
.legal-draft { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: var(--r); padding: 10px 14px; font-size: 14px; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.cookie-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: min(520px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 12px 14px; font-size: 14px; }
body:has(.sticky-bar) .cookie-bar { bottom: 88px; }
.teasers:has(> .teaser:only-child) { grid-template-columns: minmax(0, 720px); }
