/* Макет Centercaps.ru. Не код сайта: токены и раскладка для показа владельцу.
   Концепция раскладки: «чертёжный лист» — графитовый фон, тонкая сетка и выноски размеров,
   крупные узкие заголовки, цифры моноширинным, как в CAD. */
:root {
  color-scheme: dark;
  --bg: #131619;
  --bg-raised: #1b1f23;
  --surface: #252a30;
  --line: #343b43;
  --blueprint: #6f8ba6;
  --text: #eceef0;
  --muted: #a4abb3;
  --metal-1: #7e868f;
  --metal-2: #c9ced3;
  --metal-3: #f4f5f6;
  --accent: #e3a84a;
  --accent-ink: #17130b;
  --ok: #5fbf8a;
  --err: #e36464;
  --stub: #e58fd8;

  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Sofia Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --r: 10px;
  --head-h: 64px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: .95; letter-spacing: .005em; margin: 0; text-wrap: balance; text-transform: uppercase; }
h2 { font-size: clamp(40px, 6.4vw, 84px); }
h3 { font-size: clamp(30px, 3.4vw, 44px); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blueprint); margin-bottom: var(--s-4); }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: var(--s-4); }
.note { font: 400 12px/1.5 var(--f-mono); color: var(--muted); margin-top: var(--s-3); }
.hint { font-size: 14px; color: var(--muted); margin-top: var(--s-2); }

/* метки макета */
.stub { font: 500 .78em/1.3 var(--f-mono); color: var(--stub); background: color-mix(in srgb, var(--stub) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--stub) 60%, transparent); padding: 1px 6px; border-radius: 4px; text-transform: none; letter-spacing: 0; white-space: normal; }
.ill { position: absolute; left: 12px; top: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--metal-2); background: rgb(19 22 25 / .72); border: 1px solid var(--line); padding: 5px 7px; border-radius: 3px; z-index: 2; }
.ill--inline { position: static; display: inline-block; margin-right: 6px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 82%, white); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* ===== шапка ===== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgb(19 22 25 / .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { height: var(--head-h); display: flex; align-items: center; gap: var(--s-5); }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--metal-3); }
.brand__mark { width: 26px; height: 26px; align-self: center; margin-right: 8px; color: var(--accent); transition: color .6s var(--ease); }
.brand__word { font: 800 25px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.brand__tld { font: 400 11px/1 var(--f-mono); color: var(--muted); }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top__act { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--metal-2); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .burger { display: flex; }
  .top__act { margin-left: auto; }
}
@media (max-width: 520px) { .top__act .icon-btn { display: none; } .top__in { gap: var(--s-3); } }

/* ===== 3D-сцена ===== */
.stage3d { position: relative; width: 100%; height: 100%; min-height: 280px; }
.stage3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage3d__wait { position: absolute; inset: 0; display: grid; place-items: center; font: 400 12px var(--f-mono); color: var(--muted); pointer-events: none; }
.stage3d.is-ready .stage3d__wait, .stage3d.is-fallback .stage3d__wait { display: none; }
.stage3d__fallback { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 10px; padding: 24px; }
.stage3d.is-fallback .stage3d__fallback { display: grid; }
.stage3d.is-fallback canvas { display: none; }
.stage3d__fallback img { width: min(78%, 520px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.stage3d__fallback p { font: 400 11px/1.4 var(--f-mono); color: var(--muted); text-align: center; max-width: 36ch; }
.stage3d--framed { background: radial-gradient(60% 55% at 50% 50%, #232930 0%, var(--bg) 75%); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stage3d--framed::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .28; pointer-events: none; }

.cad { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); }
.cad__c { position: absolute; width: 14px; height: 14px; border-color: var(--blueprint); border-style: solid; border-width: 0; }
.cad__c--tl { left: 12px; top: 12px; border-left-width: 1px; border-top-width: 1px; }
.cad__c--tr { right: 12px; top: 12px; border-right-width: 1px; border-top-width: 1px; }
.cad__c--bl { left: 12px; bottom: 12px; border-left-width: 1px; border-bottom-width: 1px; }
.cad__c--br { right: 12px; bottom: 12px; border-right-width: 1px; border-bottom-width: 1px; }
.cad__count { position: absolute; left: 22px; top: 20px; font-size: 13px; color: var(--muted); }
.cad__count b { font: 700 40px/1 var(--f-display); color: var(--accent); margin-right: 4px; vertical-align: -6px; transition: color .6s var(--ease); }
.cad__name { position: absolute; right: 22px; top: 22px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blueprint); text-align: right; }
.cad__bar { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 2px; background: var(--line); }
.cad__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s var(--ease), background .6s var(--ease); }
.cad__dims { position: absolute; inset: 15% 8%; width: 84%; height: 70%; opacity: 0; transition: opacity .8s var(--ease); }
.cad__dims.is-on { opacity: 1; }
.cad__dims path { fill: none; stroke: var(--blueprint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cad__dims text { fill: var(--metal-3); font: 400 11px var(--f-mono); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.cad__dims .cad__ok { fill: var(--ok); }

.dim { width: 100%; height: auto; margin-top: var(--s-2); }
.dim path { fill: none; stroke: var(--blueprint); stroke-width: 1; }
.dim text { fill: var(--muted); font: 400 11px var(--f-mono); text-anchor: middle; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding-block: var(--s-8) var(--s-7); border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; margin: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgb(19 22 25 / .75) 45%, rgb(19 22 25 / .2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__bg .ill { left: auto; right: 16px; top: auto; bottom: 16px; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.hero__title { font-size: clamp(52px, 7.2vw, 104px); line-height: .88; font-weight: 800; }
.hero__title em { display: block; font-style: normal; color: var(--accent); margin-top: .12em; font-weight: 600; transition: color .6s var(--ease); }
.hero__who { font: 400 14px/1.4 var(--f-mono); color: var(--metal-2); margin-top: var(--s-5); padding-left: 14px; border-left: 2px solid var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__stage { position: relative; aspect-ratio: 1 / 1; max-height: 620px; width: 100%; }
.hero__stage .stage3d { position: absolute; inset: 0 0 40px; }
.hero__stage .dim { position: absolute; left: 10%; right: 10%; bottom: 0; width: 80%; }
.specline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--s-7) 0 0; border-top: 1px solid var(--line); }
.specline > div { padding: var(--s-4) var(--s-3) 0 0; }
.specline dt { font: 400 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blueprint); }
.specline dd { margin: 6px 0 0; font: 500 15px/1.3 var(--f-mono); color: var(--metal-3); }
@media (max-width: 900px) {
  .hero { padding-block: var(--s-6) var(--s-6); }
  .hero__in { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero__stage { max-width: 420px; margin-inline: auto; }
  .specline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specline > div:last-child { grid-column: 1 / -1; }
}

/* ===== ПРОЦЕСС ===== */
.process { padding-block: var(--s-9) var(--s-7); }
.process__head { margin-bottom: var(--s-7); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); align-items: start; }
.process__stage { order: 2; position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 16px); height: calc(100vh - var(--head-h) - 32px); max-height: 760px; }
.process__steps { order: 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 92vh; display: flex; align-items: center; padding-block: var(--s-7); opacity: .35; transition: opacity .8s var(--ease); }
.step.is-active { opacity: 1; }
.step--long { min-height: 110vh; }
.step__card { display: grid; gap: var(--s-4); max-width: 520px; }
.step__num { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--blueprint); }
.step__num span { color: var(--accent); margin-left: 10px; text-transform: uppercase; }
.step__key { font: 700 clamp(46px, 5vw, 72px)/.9 var(--f-display); color: var(--metal-3); background: linear-gradient(180deg, var(--metal-3) 30%, var(--metal-1) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step__key small { display: block; font: 400 13px/1.4 var(--f-mono); color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 10px; }
.step__key .stub { -webkit-text-fill-color: var(--stub); font-size: 15px; }
.step__card > p:not([class]) { color: var(--muted); max-width: 46ch; }
.quote { margin: 0; font: italic 400 18px/1.45 var(--f-body); color: var(--text); padding-left: 16px; border-left: 2px solid var(--accent); transition: border-color .6s var(--ease); }
.quote--stub { font-style: normal; font-size: 15px; color: var(--muted); border-left-color: var(--line); }
.quote--big { font: 600 clamp(34px, 4vw, 54px)/1 var(--f-display); text-transform: uppercase; font-style: normal; border: 0; padding: 0; color: var(--metal-3); }
.quote--big cite { display: block; font: 400 13px var(--f-mono); color: var(--accent); margin-top: 14px; text-transform: none; }
.clip { position: relative; margin: var(--s-2) 0 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.clip video, .clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { font: 400 11px/1.4 var(--f-mono); color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .process { padding-block: var(--s-8) var(--s-6); }
  .process__head { margin-bottom: var(--s-5); }
  .process__grid { grid-template-columns: 1fr; gap: 0; }
  .process__stage { order: 0; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); height: 40vh; min-height: 250px; z-index: 5; background: var(--bg); padding-block: 8px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .process__stage .stage3d { min-height: 0; }
  .step { min-height: 0; padding-block: var(--s-6) var(--s-7); align-items: flex-start; scroll-margin-top: calc(var(--head-h) + 40vh + 8px); }
  .step--long { min-height: 0; padding-bottom: var(--s-8); }
  .cad__count b { font-size: 30px; }
  .step { opacity: 1; }
  .cad__name { max-width: 52%; font-size: 9px; top: 26px; }
  .cad__dims text { font-size: 9px; }
  .quote--big { font-size: 34px; }
}

/* ===== КОНФИГУРАТОР ===== */
.config { padding-block: var(--s-9); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 100%); border-top: 1px solid var(--line); }
.config__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); margin-top: var(--s-7); align-items: start; }
.config__view { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 16px); }
.config__view .stage3d { aspect-ratio: 1 / 1; height: auto; }
.config__form { display: grid; gap: var(--s-5); }
.opt { border: 0; margin: 0; padding: 0 0 var(--s-5); border-bottom: 1px solid var(--line); min-width: 0; }
.opt legend { font: 600 17px/1.3 var(--f-body); margin-bottom: var(--s-3); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.opt__n { font: 500 11px/1 var(--f-mono); color: var(--accent-ink); background: var(--accent); width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .6s var(--ease); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.sw { display: grid; justify-items: center; gap: 6px; cursor: pointer; font: 400 12px var(--f-mono); color: var(--muted); }
.sw { position: relative; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.sw i { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, white) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, black) 100%); box-shadow: 0 0 0 1px var(--line), inset 0 0 0 4px rgb(255 255 255 / .06); transition: box-shadow .3s var(--ease); }
.sw input:checked + i { box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 4px var(--accent); }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 4px; }
.sw input:checked ~ span { color: var(--text); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px var(--f-body); color: var(--muted); transition: all .3s var(--ease); }
.seg input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg--sm span { min-height: 36px; padding: 0 12px; font-size: 13px; }
.range { display: flex; align-items: center; gap: var(--s-4); }
.range input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.range__out { font: 500 14px var(--f-mono); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.range__out input { width: 70px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px; font: 500 15px var(--f-mono); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--f-body); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--text); }
.tabpane { margin-top: var(--s-3); }
.total { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.total__price { font: 800 clamp(48px, 6vw, 72px)/.9 var(--f-display); color: var(--metal-3); }
.total__price small { display: block; font: 400 13px var(--f-mono); color: var(--muted); margin-top: 8px; }
.total__note { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .config { padding-block: var(--s-8); }
  .config__grid { grid-template-columns: 1fr; gap: var(--s-5); margin-top: var(--s-5); }
  .config__view { top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--bg); padding-block: 8px; }
  .config__view .stage3d { aspect-ratio: auto; height: 34vh; min-height: 220px; }
}

/* ===== поля форм ===== */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font: 500 13px var(--f-body); color: var(--muted); padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 12px 14px; font: 400 16px var(--f-body); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:user-invalid { border-color: var(--err); }
.drop { display: block; position: relative; border: 1px dashed var(--blueprint); border-radius: 8px; padding: 18px; cursor: pointer; color: var(--muted); font-size: 14px; }
.drop b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop--sm { padding: 12px 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
.form { display: grid; gap: var(--s-4); }
.form h3 { font-size: 34px; }
.form__ok { color: var(--ok); font-size: 15px; }
.form__ok i { color: var(--muted); font-style: normal; font-size: 13px; }

/* ===== КАТАЛОГ ===== */
.catalog { padding-block: var(--s-9); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 14px var(--f-body); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--metal-3); color: var(--bg); border-color: var(--metal-3); }
.grid { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.tile { position: relative; border-radius: 8px; overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.tile__tag { font: 400 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile__btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--f-body); cursor: pointer; }
.tile__btn:hover { border-color: var(--accent); }
.disclaimer { margin-top: var(--s-5); font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tile__bar { flex-direction: column; align-items: stretch; } .tile__btn { width: 100%; } }

/* ===== B2B ===== */
.b2b { position: relative; padding-block: var(--s-9); border-top: 1px solid var(--line); overflow: hidden; }
.b2b__bg { position: absolute; inset: 0; margin: 0; }
.b2b__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.b2b__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgb(19 22 25 / .7) 100%); }
.b2b__bg .ill { left: auto; right: 16px; }
.b2b__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s-7); align-items: start; }
.who-list { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: 0; }
.who-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.who-list li::before { content: "→"; font-family: var(--f-mono); color: var(--accent); margin-right: 12px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-6) 0 0; }
.terms dt { font: 400 11px var(--f-mono); color: var(--blueprint); text-transform: uppercase; letter-spacing: .1em; }
.terms dd { margin: 6px 0 0; font: 700 30px/1 var(--f-display); text-transform: uppercase; }
@media (max-width: 900px) { .b2b { padding-block: var(--s-8); } .b2b__grid { grid-template-columns: 1fr; } .terms { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ===== КАЧЕСТВО ===== */
.quality { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.quality__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); margin-top: var(--s-6); align-items: center; }
.drawing { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); padding: var(--s-3); overflow-x: auto; }
.drawing svg { width: 100%; min-width: 320px; height: auto; }
.dw-grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.dw-part { fill: color-mix(in srgb, var(--metal-1) 35%, transparent); stroke: var(--metal-2); stroke-width: 1.2; }
.dw-field { fill: var(--accent); stroke: none; opacity: .9; transition: fill .6s var(--ease); }
.dw-center { stroke: var(--blueprint); stroke-dasharray: 10 4 2 4; stroke-width: 1; }
.dw-dim path { stroke: var(--blueprint); fill: none; stroke-width: 1; }
.dw-dim text { fill: var(--metal-3); font: 400 12px var(--f-mono); text-anchor: middle; }
.dw-dim text[x="494"], .dw-dim text[x="322"] { text-anchor: start; }
.dw-note { fill: var(--muted); font: 400 10px var(--f-mono); }
.dw-stub { fill: var(--stub); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { display: grid; gap: 4px; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.facts b { font: 700 30px/1 var(--f-display); text-transform: uppercase; }
.facts span { color: var(--muted); }
@media (max-width: 900px) { .quality { padding-block: var(--s-8); } .quality__grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ===== КТО ДЕЛАЕТ ===== */
.master { padding-block: var(--s-9); border-top: 1px solid var(--line); background: var(--bg-raised); }
.master__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); align-items: start; }
.master__photo { position: sticky; top: calc(var(--head-h) + 24px); margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.master__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 50%; }
.master__text { display: grid; gap: var(--s-4); }
.master__sub { font: 400 15px var(--f-mono); color: var(--metal-2); }
.prose { display: grid; gap: var(--s-3); max-width: 62ch; color: var(--text); }
.principles { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: var(--s-2); }
.principles li { counter-increment: p; padding-left: 40px; position: relative; color: var(--muted); }
.principles li::before { content: "0" counter(p); position: absolute; left: 0; top: 2px; font: 500 12px var(--f-mono); color: var(--accent); }
.principles b { color: var(--text); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-3) 0; border-block: 1px solid var(--line); padding-block: var(--s-4); }
.nums dt { font: 700 32px/1 var(--f-display); text-transform: uppercase; color: var(--metal-3); }
.nums dd { margin: 6px 0 0; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.sign { font: italic 400 20px/1.4 var(--f-body); }
.sign__name { font: 400 13px var(--f-mono); font-style: normal; color: var(--accent); }
@media (max-width: 900px) { .master { padding-block: var(--s-8); } .master__grid { grid-template-columns: 1fr; gap: var(--s-5); } .master__photo { position: relative; top: 0; } .master__photo img { aspect-ratio: 4 / 3; } .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== КОНТАКТЫ ===== */
.contacts { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.contacts__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
.reach { display: grid; gap: var(--s-3); }
.reach__phone { font: 800 clamp(40px, 5vw, 64px)/1 var(--f-display); text-decoration: none; color: var(--metal-3); }
.reach__name { font: 400 13px var(--f-mono); color: var(--muted); }
.reach__msg { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.reach__list { margin: var(--s-4) 0 0; display: grid; }
.reach__list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.reach__list dt { font: 400 11px/1.8 var(--f-mono); color: var(--blueprint); text-transform: uppercase; letter-spacing: .1em; }
.reach__list dd { margin: 0; }
@media (max-width: 900px) { .contacts { padding-block: var(--s-8); } .contacts__grid { grid-template-columns: 1fr; gap: var(--s-6); } .reach { order: -1; } .reach__list > div { grid-template-columns: 90px minmax(0, 1fr); } }

/* ===== ПОДВАЛ-ШТАМП ===== */
.foot { padding-block: var(--s-7) var(--s-6); border-top: 1px solid var(--line); background: var(--bg); }
.stamp { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--f-mono); color: var(--muted); }
.stamp td { border: 1px solid var(--blueprint); padding: 8px 10px; vertical-align: top; }
.stamp a { color: var(--text); }
.stamp__k { color: var(--blueprint); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; width: 1%; white-space: nowrap; }
.stamp__big { font: 800 30px/1 var(--f-display); color: var(--metal-3); text-transform: uppercase; vertical-align: middle !important; }
.foot__links { margin-top: var(--s-4); font: 400 12px/1.6 var(--f-mono); color: var(--muted); }
@media (max-width: 720px) {
  .stamp, .stamp tbody, .stamp tr, .stamp td { display: block; width: 100%; }
  .stamp tr { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .stamp td { border-width: 0 0 1px; padding: 8px 0; }
  .stamp__big, .stamp tr:last-child td:first-child { grid-column: 1 / -1; }
  .stamp__big { font-size: 26px; }
}

/* ===== юридические страницы ===== */
.legal { padding-block: var(--s-8); }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--head-h) + 24px); font: 400 12px/1.5 var(--f-mono); display: grid; gap: 8px; }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--accent); }
.legal__body { max-width: 72ch; }
.legal__body h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: var(--s-5); }
.legal__body h2 { font-size: 30px; margin: var(--s-7) 0 var(--s-3); }
.legal__body p, .legal__body li { color: var(--text); margin: 0 0 var(--s-3); }
.legal__body ul, .legal__body ol { padding-left: 22px; }
.legal__body code { font: inherit; }
.legal__back { display: inline-block; margin-bottom: var(--s-5); font: 400 13px var(--f-mono); color: var(--muted); }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ===== кинематографичные фоны: сгенерированные кадры, подпись «иллюстрация» =====
   Кадры в высоком качестве (tools/build_bg.sh, 1280/2560 через srcset), мягкая тонировка; затемнение — градиентами здесь.
   Единый уровень заметности: --bg-o (непрозрачность кадра) и одинаковые градиенты. */
:root { --bg-o: .56; }
.ill--corner { left: auto; top: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 14px; opacity: .75; }
.hero__bg img, .b2b__bg img, .secbg img, .pbg img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

.hero__bg img { opacity: .9; }
.hero__bg::after { background: linear-gradient(90deg, var(--bg) 0%, rgb(19 22 25 / .72) 30%, rgb(19 22 25 / .22) 62%, rgb(19 22 25 / .08) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.b2b__bg img { opacity: .62; }
.b2b__bg::after { background: linear-gradient(90deg, rgb(19 22 25 / .88) 0%, rgb(19 22 25 / .55) 45%, rgb(19 22 25 / .25) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.b2b .card { background: rgb(27 31 35 / .92); }

.secbg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.secbg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.secbg img.is-loaded { opacity: var(--bg-o); }
.secbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(19 22 25 / .35) 16%, rgb(19 22 25 / .35) 84%, var(--bg) 100%), linear-gradient(90deg, rgb(19 22 25 / .7) 0%, rgb(19 22 25 / .3) 55%, rgb(19 22 25 / .15) 100%); }
.secbg--catalog { --bg-o: .4; }            /* каталог темнее: не спорит с фото работ */
.secbg--footer { --bg-o: .5; }
.config, .catalog, .quality, .master, .contacts, .foot { position: relative; overflow: hidden; }
.secbg ~ * { position: relative; z-index: 1; }
.master { background: var(--bg); }
.config { background: var(--bg); }
.card { background: rgb(27 31 35 / .9); }
.drawing { background: rgb(27 31 35 / .82); }
.total { background: rgb(19 22 25 / .82); }
.tile { background: rgb(27 31 35 / .92); }

.process { position: relative; }
.process__bgs { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; z-index: 0; pointer-events: none; }
.pbg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.pbg.is-on { opacity: 1; }
.pbg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.pbg img.is-loaded { opacity: var(--bg-o); }
.process__bgs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(19 22 25 / .82) 0%, rgb(19 22 25 / .5) 42%, rgb(19 22 25 / .25) 100%), linear-gradient(180deg, rgb(19 22 25 / .5) 0%, transparent 22%, transparent 78%, rgb(19 22 25 / .65) 100%); }
.process__head, .process__grid { position: relative; z-index: 1; }
.stage3d--framed { background: radial-gradient(60% 55% at 50% 50%, rgb(40 46 54 / .5) 0%, rgb(19 22 25 / .45) 80%); }
.step__card { text-shadow: 0 1px 14px rgb(0 0 0 / .55); }
@media (max-width: 900px) {
  .hero__bg::after { background: linear-gradient(180deg, rgb(19 22 25 / .35) 0%, rgb(19 22 25 / .6) 55%, var(--bg) 100%); }
  .b2b__bg::after, .secbg::after { background: linear-gradient(180deg, var(--bg) 0%, rgb(19 22 25 / .55) 14%, rgb(19 22 25 / .65) 86%, var(--bg) 100%); }
  .process__bgs::after { background: linear-gradient(180deg, rgb(19 22 25 / .55) 0%, rgb(19 22 25 / .68) 50%, rgb(19 22 25 / .8) 100%); }
  .process__stage, .config__view { background: var(--bg); }
  .process__stage .stage3d--framed { background: radial-gradient(60% 55% at 50% 50%, #232930 0%, var(--bg) 80%); }
  .process__bgs .ill--corner { display: none; }
  .process__stage::after { content: "фон — иллюстрация"; position: absolute; right: calc(max(16px, env(safe-area-inset-right, 0px)) + 10px); bottom: 30px; font: 400 9px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) { .hero__bg img, .b2b__bg img, .secbg img, .pbg img { transform: scale(1.12); } }

/* ===== ЗАМЕРЫ: разрез отверстия, шаги, мини-форма ===== */
.measure { position: relative; padding-block: var(--s-9); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 55%, var(--bg) 100%); }
.measure .lead { max-width: 62ch; }
.measure__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
.measure__view { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 16px); }
.measure__view .stage3d { aspect-ratio: 4 / 3; height: auto; }
.measure__view canvas { cursor: grab; }
.measure__view canvas:active { cursor: grabbing; }
.measure .cad__count { display: flex; align-items: baseline; gap: 6px; }
.measure .cad__count span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cad__read { position: absolute; left: 22px; bottom: 20px; font: 500 20px/1 var(--f-mono); color: var(--metal-3); background: rgb(19 22 25 / .75); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.cad__read:empty { display: none; }
.measure .stage3d__fallback svg { width: min(94%, 680px); height: auto; }
.measure .stage3d.is-fallback .cad__read { display: none; }
.msvg__part { fill: url(#msvg-hatch); stroke: var(--metal-2); stroke-width: 1.4; stroke-linejoin: round; }
.msvg pattern path { stroke: var(--blueprint); stroke-width: 1.3; }
.msvg__center { stroke: var(--blueprint); stroke-dasharray: 10 4 2 4; stroke-width: 1; opacity: .7; }
.msvg__dim path { fill: none; stroke: var(--blueprint); stroke-width: 1; }
.msvg__dim .msvg__arr { fill: var(--blueprint); stroke: none; }
.msvg__dim text { fill: var(--metal-3); font: 600 13px var(--f-mono); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.msvg__dim text[text-anchor=end] { text-anchor: end; }
.msvg.has-active .msvg__dim { opacity: .45; }
.msvg.has-active .msvg__dim.is-on { opacity: 1; }
.msvg__dim.is-on path { stroke: var(--accent); stroke-width: 1.6; }
.msvg__dim.is-on .msvg__arr, .msvg__dim.is-on text { fill: var(--accent); }

.mtabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px var(--f-mono); cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.mtabs button:hover { color: var(--text); }
.mtabs button:focus-visible { outline-offset: -3px; } /* лента с overflow — кольцо рисуем внутрь, чтобы не обрезалось */
.mtabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); }
.mtabs__n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; opacity: .8; }
.mpanel { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.mpanel[hidden] { display: none; }
.mpanel:focus-visible { outline-offset: 6px; }
.mpanel h3 { font-size: clamp(30px, 3.2vw, 42px); }
.mpanel > p:not([class]) { color: var(--muted); max-width: 52ch; }
.mpanel__sym { font-family: var(--f-mono); font-weight: 600; font-size: .62em; color: var(--accent); margin-right: .25em; vertical-align: .18em; }
.mkeys { list-style: none; margin: 0; padding: 0; display: grid; }
.mkeys li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.mkeys b { font: 600 15px/1.5 var(--f-mono); color: var(--accent); }
.mlist { margin: 0; display: grid; }
.mlist > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mlist dt { font: 400 11px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--blueprint); }
.mlist dd { margin: 0; }
.mlist__err dt { color: var(--err); }
.mlist__err dd { color: var(--muted); }
.measure__nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.measure__nav .btn[aria-disabled=true] { opacity: .35; cursor: default; }
.measure__note { margin-top: var(--s-3); font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
.measure__drag { color: var(--blueprint); }

.measure__more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); margin-top: var(--s-8); align-items: start; }
.prep { display: grid; gap: var(--s-4); }
.prep h3, .mform h3 { font-size: 34px; }
.prep .principles li { color: var(--muted); }
.mform__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.mfield { display: grid; gap: 4px; align-content: start; min-width: 0; }
.mfield label { display: grid; gap: 4px; cursor: pointer; }
.mfield__k { font: 600 18px/1 var(--f-mono); color: var(--accent); }
.mfield__n { font-size: 13px; line-height: 1.3; color: var(--muted); min-height: 2.6em; }
.mfield__in { position: relative; display: block; }
.mfield__in input { width: 100%; background: var(--surface); border: 1px solid var(--metal-1); color: var(--text); border-radius: 8px; padding: 12px 36px 12px 12px; font: 500 17px var(--f-mono); -moz-appearance: textfield; }
.mfield__in input::-webkit-outer-spin-button, .mfield__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mfield__in input:focus { outline: none; border-color: var(--accent); }
.mfield__in input::placeholder { color: var(--muted); opacity: .7; font-size: 14px; }
.mfield__in input.is-warn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mfield__in i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 400 12px var(--f-mono); font-style: normal; color: var(--muted); pointer-events: none; }
.mfield small { font: 400 11px/1.4 var(--f-mono); color: var(--muted); }
.mform__msg:empty { padding: 0; border: 0; margin-block: calc(-1 * var(--s-2)); }
.mform__msg { font-size: 15px; color: var(--text); border-left: 2px solid var(--accent); padding: 4px 0 4px 12px; }
.mform__msg.is-ok { border-left-color: var(--ok); }
.mform__ask { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mform__ask .reach__msg { margin-top: 0; }
.osizes__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.osizes__row label { display: grid; gap: 4px; min-width: 0; }
.osizes__row b { font: 600 13px var(--f-mono); color: var(--accent); }
.osizes__row input { width: 100%; background: var(--surface); border: 1px solid var(--metal-1); color: var(--text); border-radius: 8px; padding: 10px; font: 500 15px var(--f-mono); }
.osizes__row input:focus { outline: none; border-color: var(--accent); }
.osizes legend a { color: var(--accent); }
@media (min-width: 1081px) and (max-width: 1280px) { .nav { gap: var(--s-4); } .nav a { font-size: 12px; letter-spacing: .06em; } }
@media (max-width: 1100px) { .mform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .measure { padding-block: var(--s-8); }
  .measure__grid { grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-5); }
  .measure__view { position: relative; top: 0; }
  .measure__view .stage3d { aspect-ratio: 6 / 5; max-height: 60vh; min-height: 250px; }
  .measure__more { grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-6); }
  .mtabs { border-radius: 12px; }
  .mtabs button { padding: 0 10px; min-height: 42px; }
  .mlist > div { grid-template-columns: 1fr; gap: 2px; }
  .measure .cad__name { display: none; } /* название шага есть во вкладке и заголовке — угол отдаём показанию */
  .cad__read { font-size: 15px; left: auto; right: 16px; top: 16px; bottom: auto; padding: 6px 8px; }
}
@media (max-width: 520px) { .osizes__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mform__grid { grid-template-columns: 1fr; } .mfield__n { min-height: 0; } }
@media (max-width: 400px) { .mtabs button { padding: 0 8px; gap: 4px; font-size: 13px; } .mtabs__n { display: none; } }

/* ---------- добавлено для сайта (не из макета) ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: var(--err); font-size: 15px; }
.btn:disabled { opacity: .6; cursor: progress; }
