@font-face { font-family: 'Alumni Sans'; src: url('../fonts/alumni-cyr.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alumni Sans'; src: url('../fonts/alumni-lat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-cyr.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-lat.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-cyr.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Martian Mono'; src: url('../fonts/martian-lat.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 31.10 restyle: layout of sketch A (dense grotesk headings, stencil only on tags and figures, photos edge to edge),
   colours of sketch B by default — graphite + mixer orange; the light theme is palette A — concrete + yellow (html[data-theme="light"]).
   Every colour is a token; contrast of the text pairs is checked in both themes (HISTORY.md, 31.10). */
:root {
  --paper: #1b1c1e;        /* page */
  --paper-rgb: 27 28 30;   /* the photo fades into the page: rgb(var(--paper-rgb) / a) */
  --concrete: #222326;     /* configurator, alternating sections */
  --concrete-2: #2a2b2f;   /* panels */
  --field: #33353a;        /* chips, inputs */
  --ink: #efe9e0;
  --ink-2: #cdc6bb;
  --ink-3: #a8a196;
  --line: rgba(239, 233, 224, .15);
  --signal: #ff7a1f;       /* mixer orange: bars, fills, plates */
  --signal-ink: #ff9a52;   /* orange text */
  --signal-btn: #ff7a1f;   /* button fill, dark text on it */
  --signal-btn-h: #ff9447;
  --on-signal: #17120d;
  --signal-on-dark: #ff9a52;
  --mark: #ff7a1f;         /* painted frames, the current page, the focus ring */
  --graphite: #141517;     /* darkest sections */
  --graphite-2: #2a2b2f;
  --on-dark: #efe9e0;
  --on-dark-2: #bdb6ab;
  --on-dark-3: rgba(239, 233, 224, .4);
  --line-dark: rgba(239, 233, 224, .14);
  --hdr-bg: #141517;
  --hover-wash: rgba(239, 233, 224, .08);
  --wash: rgba(239, 233, 224, .12);
  --signal-45: rgba(255, 122, 31, .45);
  --field-dark: #222326;
  --doc-bg: #e9e6df;
  --tape-dark: #161719;
  --scroll-thumb: #5e5a55;
  --shade: 20 18 16;       /* photo overlays: rgb(var(--shade) / a) */
  --shade-2: 15 13 12;     /* the trip pill, the phone bar */
  --scrim: rgb(var(--shade-2) / .88);
  --modal-scrim: rgb(0 0 0 / .66);
  --meter: rgba(239, 233, 224, .1);
  --photo-f: brightness(.82) contrast(1.06) saturate(.85);
  --logo-f: grayscale(1) invert(1) brightness(1.15);
  --logo-blend: screen;
  --logo-bg: #2a2b2f;
  --logo-ln: #cdc6bb;
  --d-cap: #47484c;        /* concrete faces of the drawings (lib/draw.mjs) */
  --d-top: #3c3d41;
  --d-side: #2d2e32;
  --col-gap: clamp(24px, 4vw, 48px);
  --r: 2px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --edge: max(0px, (100vw - var(--max)) / 2);   /* from the wrap to the screen edge: photos bleed by --pad + --edge */
  --f-display: 'Alumni Sans', 'Arial Narrow', sans-serif;   /* stencil figures and tags only */
  --f-text: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --f-head: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --f-mono: 'Martian Mono', Consolas, monospace;
  --bar-h: 0px;
  /* concrete: fine grain + large wet blotches, drawn by the browser (no image files) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --blot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .006' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 .9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.28'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #d8d7d2;
  --paper-rgb: 216 215 210;
  --concrete: #cfcdc7;
  --concrete-2: #e3e2dd;
  --field: #ecebe7;
  --ink: #151515;
  --ink-2: #3a3a37;
  --ink-3: #4e4e49;
  --line: rgba(21, 21, 21, .18);
  --signal: #f4a51c;       /* marking yellow: fills and plates, never text */
  --signal-ink: #7a4600;
  --signal-btn: #f4a51c;
  --signal-btn-h: #ffb83a;
  --on-signal: #151515;
  --signal-on-dark: #6e3f00;
  --mark: #151515;
  --graphite: #c4c2bb;
  --graphite-2: #b8b6af;
  --on-dark: #151515;
  --on-dark-2: #33332f;
  --on-dark-3: rgba(21, 21, 21, .45);
  --line-dark: rgba(21, 21, 21, .18);
  --hdr-bg: #d8d7d2;
  --hover-wash: rgba(21, 21, 21, .06);
  --wash: rgba(21, 21, 21, .08);
  --signal-45: rgba(21, 21, 21, .3);
  --field-dark: #e3e2dd;
  --doc-bg: #f1f0ec;
  --tape-dark: #151515;
  --scroll-thumb: #8f8d87;
  --shade: 216 215 210;
  --shade-2: 226 225 221;
  --modal-scrim: rgb(0 0 0 / .45);
  --meter: rgba(21, 21, 21, .1);
  --photo-f: contrast(1.04) saturate(.9);
  --logo-f: grayscale(1) contrast(1.1);
  --logo-blend: multiply;
  --logo-bg: #151515;
  --logo-ln: #d8d7d2;
  --d-cap: #bdbbb5;
  --d-top: #c9c7c1;
  --d-side: #aeaca6;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --blot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .007' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.4 .8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.06'/%3E%3C/svg%3E");
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
body { margin: 0; font: 400 17px/1.55 var(--f-text); color: var(--ink); background: var(--grain), var(--blot), var(--paper); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--signal-btn); color: var(--on-signal); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- type: dense grotesk headings (sketch A); the stencil is only on tags and figures ---------- */
h1, h2, h3, .display { font-family: var(--f-head); font-weight: 800; letter-spacing: -.04em; line-height: .96; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 88px); line-height: .94; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.9vw, 60px); }
h3 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.15; letter-spacing: -.015em; }
.h3 { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
/* stencil: there is no local stencil typeface with Cyrillic, so the bridge is cut with a mask at 58 % of the line box, under the crossbars */
.mtag b, .ptag b, .facts b, .proc__meter {
  -webkit-mask-image: linear-gradient(#000 calc(58% - .03em), transparent calc(58% - .03em) calc(58% + .03em), #000 calc(58% + .03em));
  mask-image: linear-gradient(#000 calc(58% - .03em), transparent calc(58% - .03em) calc(58% + .03em), #000 calc(58% + .03em));
}
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .15s ease, background-color .15s; }
.btn:active, .chip:active, .qty button:active, .trip button:active { transform: translateY(1px); }
.btn:disabled, .chip:disabled { opacity: .5; cursor: not-allowed; }
.btn--signal { background: var(--signal-btn); color: var(--on-signal); }
.btn--signal:hover { background: var(--signal-btn-h); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--hover-wash); }
.btn--dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn--dark:hover { background: var(--hover-wash); }
.btn { white-space: nowrap; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr-bg); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 800 17px/1 var(--f-head); letter-spacing: -.02em; }
.brand__name small { display: block; font: 400 12px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; white-space: nowrap; padding: 10px 12px; border-radius: var(--r); font-weight: 400; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--hover-wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--mark); border-radius: 0; }
.hdr__tel { text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr__tel small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
/* theme switch: sun in the dark theme, moon in the light one */
.theme { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { background: var(--hover-wash); }
.theme svg { width: 22px; height: 22px; }
.theme__moon, [data-theme="light"] .theme__sun { display: none; }
[data-theme="light"] .theme__moon { display: block; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; border-radius: var(--r); cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s; }
/* ≤1180 without JS the links stay a plain row under the brand; the folded menu exists only once site.js has run (html.js) */
@media (max-width: 1180px) {
  .hdr__in { flex-wrap: wrap; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; margin: 0 0 8px; }
  .nav a { padding: 10px 10px 10px 0; }
  .js .hdr__in { flex-wrap: nowrap; }
  .js .nav { order: 0; margin: 0; flex-wrap: nowrap; position: fixed; inset: 68px 0 0 0; flex-direction: column; background: var(--paper); padding: 20px var(--pad); gap: 0; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; visibility: hidden; }
  .js .nav a { font: 800 26px/1.15 var(--f-head); letter-spacing: -.03em; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--signal-ink); }
  body.menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .burger { display: block; }
  .hdr__tel { margin-left: auto; }
  .hdr__tel + .theme, .theme + .burger { margin-left: 0; }
}
@media (max-width: 560px) { .hdr__tel { display: none; } .brand__name small { display: none; } .theme { margin-left: auto; } .hdr__in { gap: 12px; } }

/* ---------- home first screen: the headline on the page concrete, the client's photo slides in under its end (sketch A) ---------- */
/* text never sits on the bare photo: it stays on >= 90 % of the page colour, the tags are solid plates */
.top { position: relative; isolation: isolate; overflow: hidden; min-height: min(calc(100svh - 68px), 900px); display: grid; align-items: end; background: var(--grain), var(--blot), var(--paper); border-bottom: 1px solid var(--line); }
.top__bg { position: absolute; inset: 0 0 0 44%; z-index: -3; }
.top__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: var(--photo-f); }
/* the overlay carries the page blotches too, so there is no seam where the photo starts */
.top::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--blot), linear-gradient(90deg, rgb(var(--paper-rgb)) 0 44%, rgb(var(--paper-rgb) / .9) 56%, rgb(var(--paper-rgb) / 0) 70%); }
.top::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain); pointer-events: none; }
.top__in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(32px, 6vh, 64px); }
.top h1 { font-size: clamp(38px, 5.2vw, 92px); max-width: 12ch; }
.top__sub { font: 600 clamp(17px, 1.35vw, 21px)/1.45 var(--f-text); color: var(--ink-2); margin: 24px 0 0; max-width: 34ch; }
.top__sub span { color: var(--signal-ink); font-weight: 800; }
.top__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.top__cta .btn--ghost { color: var(--ink); font-variant-numeric: tabular-nums; background: var(--paper); }
.mtags { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
/* tags: solid plates in the accent colour with stencilled marks (sketch A) */
.mtag { position: relative; display: grid; gap: 1px; min-width: 210px; padding: 14px 22px 12px; border-left: 2px solid var(--on-signal); background: var(--signal); font: 400 12px/1.5 var(--f-mono); color: var(--on-signal); font-variant-numeric: tabular-nums; }
.mtag:first-child { border-left: 0; }
.mtag b { font: 800 34px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 1180px) { .top__in { grid-template-columns: minmax(0, 1fr); } .mtags { justify-self: end; } }
@media (max-width: 860px) {
  .top { min-height: calc(100svh - 68px - var(--bar-h)); }
  /* phone: the photo is the top of the screen, the headline below it on the concrete */
  .top__bg, .top::before { inset: 0 0 auto 0; height: 44svh; }
  .top__bg img { object-position: 50% 35%; }
  .top::before { background: var(--blot), linear-gradient(0deg, rgb(var(--paper-rgb)) 0%, rgb(var(--paper-rgb) / .9) 14%, rgb(var(--paper-rgb) / 0) 48%); }
  .top__in { gap: 24px; padding-top: 38svh; padding-bottom: 24px; }
  .top h1 { font-size: 9.4vw; }
  .top__sub { margin-top: 16px; }
  .top__cta { margin-top: 20px; }
  .top__cta .btn { flex: 1 1 auto; }
  /* tags: one row, swiped sideways inside the block */
  .mtags { justify-self: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; }
  .mtag { min-width: 196px; flex: none; scroll-snap-align: start; }
}

/* ---------- «Соберите рейс»: heading, the truck full width, the controls as a strip under it ---------- */
/* the whole block fits one screen on desktop (1440×800, 1920×940): heading one line, the stage takes what is left above the strip */
.cfg { position: relative; background: var(--grain), var(--blot), var(--concrete); border-bottom: 1px solid var(--line); padding: 14px 0 14px; overflow-x: clip; scroll-margin-top: 68px; }
.cfg__head { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; justify-content: space-between; }
.cfg__head h1, .cfg__head h2 { font-size: clamp(28px, 2.7vw, 44px); }
.cfg__sub > * { margin: 0; }
.hero__lead, .hero__sub { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.cfg__stage { position: relative; height: clamp(260px, calc(100svh - 68px - 424px), 640px); margin-top: 2px; }
.cfg__floor { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 62%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 62% 70% at 50% 62%, #000 25%, transparent 72%); }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.stage-poster { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.stage-poster svg { width: min(70%, 640px); height: auto; opacity: .5; }
.is-live .stage-poster { display: none; }
/* placed right under the truck by pogruzka.js (fit) */
.trip { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: var(--scrim); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; z-index: 2; }
.trip button { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--wash); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.trip button:disabled { background: transparent; color: var(--ink-3); cursor: not-allowed; }
.trip output { padding: 0 8px; font-variant-numeric: tabular-nums; }
/* the selected product as a stencilled title block, 2 × 2 in the panel */
.stamp { margin: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1.5px solid var(--mark); font: 400 12px/1.35 var(--f-mono); letter-spacing: -.02em; }
.stamp div { padding: 5px 8px; border-top: 1px solid var(--signal-45); min-width: 0; }
.stamp div:nth-child(-n+2) { border-top: 0; }
.stamp div:nth-child(even) { border-left: 1px solid var(--signal-45); }
.stamp dt, .stamp dd { margin: 0; }
.stamp dt { color: var(--ink-3); font-size: 12px; }
.stamp dd { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* controls strip */
.cfg-panel, .cfg-panel > * { min-width: 0; }
.cfg-panel { background: var(--concrete-2); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, 1.2fr); }
.cfg-col { display: grid; gap: 12px; align-content: start; padding: 12px 18px 14px; border-left: 1px solid var(--line); }
.cfg-col:first-child { border-left: 0; }
.cfg-row__label { display: block; font: 400 12px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* marks wrap instead of scrolling: a chip cut at the panel edge read as a broken label */
.chips--scroll { gap: 5px; }
.chips--scroll .chip { min-height: 44px; padding: 0 9px; font-size: 13.5px; }
.chips--scroll:not(.is-open) .chip:nth-child(n+6):not([data-more]) { display: none; }
.chips--scroll.is-open .chip--more { display: none; }
.chip--more { background: transparent; border-style: dashed; color: var(--ink-2); }
.chip { min-height: 44px; padding: 0 11px; border-radius: var(--r); border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--signal-btn); color: var(--on-signal); border-color: var(--signal-btn); font-weight: 700; }
.qty { display: grid; grid-template-columns: 44px 76px 44px 1fr; gap: 8px; align-items: center; }
.qty button { height: 44px; border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--field); color: var(--ink); font-size: 20px; cursor: pointer; }
.qty input[type=number] { height: 44px; width: 100%; border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--field); color: var(--ink); text-align: center; font: 700 17px var(--f-text); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=range] { width: 100%; accent-color: var(--signal); height: 22px; margin: 0; border-radius: 999px; align-self: center; cursor: pointer; }
/* Chrome marks a slider :focus-visible after a mouse drag too: the ring shows only after the keyboard was used (html.kbd, site.js) — a thin rounded ring, not a box */
input[type=range]:focus-visible { outline: none; }
.kbd input[type=range]:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.res { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink-3); border-radius: var(--r); }
.res div { padding: 10px 10px 9px; border-left: 1px solid var(--line); }
.res div:first-child { border-left: 0; }
.res b { display: block; font: 800 clamp(28px, 2.5vw, 38px)/1 var(--f-display); letter-spacing: .01em; white-space: nowrap; }
.res b small { font-size: .55em; font-weight: 700; color: var(--ink-2); margin-left: .12em; letter-spacing: .02em; }
.res span { font: 400 12px/1.3 var(--f-mono); color: var(--ink-3); }
.res .hot b { color: var(--signal-ink); }
.res-note { font-size: 13px; color: var(--ink-3); line-height: 1.4; margin: 0; }
.res-note b { color: var(--ink); font-weight: 700; }
.cfg-col--res { gap: 8px; }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-actions .btn { min-height: 46px; }
.cfg-actions .btn--signal { flex: 1 1 100%; }
.cfg-actions .btn--ghost { flex: 1 1 0; }
@media (max-width: 1180px) {
  .cfg-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cfg-col--res { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .cfg-col--res > .res, .cfg-col--res > .loadbar, .cfg-col--res > .res-note { grid-column: 1; }
  .cfg-col--res > .cfg-actions { grid-column: 2; grid-row: 1 / span 4; align-content: start; }
}
@media (max-width: 860px) {
  .cfg__head { grid-template-columns: minmax(0, 1fr); }
  /* phone: the truck sticks under the header while the controls scroll beneath it — truck, quantity and totals are seen together */
  .cfg__stage { position: sticky; top: 68px; z-index: 5; height: min(38svh, 320px); background: var(--grain), var(--concrete); border-bottom: 1px solid var(--line); }
  .cfg { padding-top: 20px; }
  .stamp { display: none; }
  .cfg-panel { grid-template-columns: minmax(0, 1fr); }
  .cfg-col { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .cfg-col:first-child { border-top: 0; }
  .cfg-col--res { grid-template-columns: minmax(0, 1fr); }
  .cfg-col--res > .cfg-actions { grid-column: 1; grid-row: auto; }
  .chip, .chips--scroll .chip { min-height: 44px; }
  .res { grid-template-columns: repeat(2, 1fr); }
  .res div:nth-child(3) { border-left: 0; }
  .res div:nth-child(n+3) { border-top: 1px solid var(--line); }
}


/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec--dark { background: var(--graphite); color: var(--on-dark); }
.sec--dark .lead, .sec--dark p { color: var(--on-dark-2); }
.sec--concrete { background: var(--grain), var(--blot), var(--concrete); }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--col-gap); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* advantages strip */
.adv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adv li { list-style: none; padding: 20px 18px; border-left: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font: 800 16px/1.2 var(--f-head); letter-spacing: -.01em; }
.adv li::before { content: ''; flex: none; width: 22px; height: 2px; background: var(--signal); }
.adv li:first-child { border-left: 0; }
.adv svg { width: 28px; height: 28px; flex: none; color: var(--signal-ink); }
.adv { margin: 0; padding: 0; }
@media (max-width: 980px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adv li:nth-child(odd) { border-left: 0; } .adv li { border-top: 1px solid var(--line); } .adv li:nth-child(-n+2) { border-top: 0; } .adv li:last-child { grid-column: 1 / -1; } }

/* catalog: rows with hairlines — the drawing as a thumbnail, the name, the link (two columns on desktop) */
.cat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--line); }
.cat__item { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.cat__item svg { width: 128px; height: 64px; color: var(--ink); }
.cat__item svg .dim { color: var(--signal-ink); }
.cat__item h3 { font-size: clamp(17px, 1.3vw, 20px); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.cat__item:not(.cat__item--plain):hover h3 { text-decoration-color: var(--signal); }
.cat__item .cat__go--none { color: var(--ink-3); font-weight: 400; }
.cat__item .cat__go { font-size: 13px; color: var(--signal-ink); font-weight: 700; justify-self: end; text-align: right; max-width: 16ch; }
.cat__item:hover svg .draw { stroke-dashoffset: 0; }
.cat__item svg .draw { stroke-dasharray: 600; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .cat__item svg .draw { stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1); }
  .js .cat__item.in svg .draw { stroke-dashoffset: 0; }
}
@media (max-width: 860px) {
  .cat { grid-template-columns: minmax(0, 1fr); }
  .cat__item { grid-template-columns: 88px minmax(0, 1fr); gap: 2px 14px; padding: 12px 0; }
  .cat__item svg { width: 88px; height: 48px; grid-row: span 2; }
  .cat__item .cat__go { justify-self: start; text-align: left; max-width: none; }
}

/* process scene: pinned */
.proc { position: relative; height: 300vh; background: var(--graphite); color: var(--on-dark); }
.proc { --edge: max(0px, (100vw - var(--max)) / 2); }
.proc__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: calc(var(--edge) + clamp(320px, 34vw, 440px)) 1fr; }
.proc__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 861px) { .proc__canvas { left: calc(var(--edge) + clamp(320px, 34vw, 440px) + 32px); width: auto; } }
.proc__copy { position: relative; z-index: 2; padding: clamp(84px, 10vh, 120px) 0 40px calc(var(--edge) + var(--pad)); display: flex; flex-direction: column; gap: 20px; }
.proc__copy h2 { color: var(--on-dark); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 2px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); transition: color .3s; }
.steps li::before { content: attr(data-n); font: 400 12px/1.9 var(--f-mono); color: var(--on-dark-3); }
.steps li b { display: block; font: 700 17px/1.3 var(--f-text); color: inherit; }
.steps li span { font-size: 14.5px; line-height: 1.45; display: block; margin-top: 2px; opacity: .62; transition: opacity .3s; }
.steps li.on { color: var(--on-dark); }
.steps li.on::before { color: var(--signal-on-dark); }
.steps li.on span { opacity: 1; }
.proc__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); z-index: 3; width: 100%; }
.proc__meter { position: absolute; right: calc(var(--edge) + var(--pad)); bottom: 28px; z-index: 2; font: 800 clamp(56px, 9vw, 140px)/1 var(--f-display); color: var(--meter); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
@media (max-width: 860px) {
  .proc { height: 260vh; }
  .proc__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .proc__copy { padding: 76px var(--pad) 0; gap: 10px; }
  .proc__copy .lead { display: none; }
  .steps li { padding: 8px 0; }
  .steps li:not(.on) { display: none; }
  .proc__canvas { top: 34%; height: 66%; }
  .proc__meter { bottom: 16px; }
}
.still .proc, .reduced .proc { height: auto; }
.still .proc__pin, .reduced .proc__pin { position: relative; height: auto; min-height: 640px; }
.still .steps li span, .reduced .steps li span { opacity: 1; }
.still .steps li, .reduced .steps li { display: grid !important; color: var(--on-dark); }
/* phone without motion: all five steps are text, the finished slab goes below them, not over them */
@media (max-width: 860px) {
  .still .proc__pin, .reduced .proc__pin { min-height: 0; }
  .still .proc__canvas, .reduced .proc__canvas { position: relative; top: auto; height: 320px; order: 2; }
  .still .proc__meter, .reduced .proc__meter { display: none; }
}

/* split text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }
.ph { position: relative; background: repeating-linear-gradient(-45deg, var(--concrete) 0 12px, var(--concrete-2) 12px 24px); border: 1px dashed var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: 14px; padding: 20px; overflow: hidden; }
.ph b { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a photo in the right column of a split runs to the screen edge (sketch A: big photos without frames) */
@media (min-width: 861px) { .split > div:last-child > .ph--img:first-child:not(.ph--contain) { margin-right: calc(-1 * (var(--pad) + var(--edge))); aspect-ratio: 5 / 4; } }
@media (max-width: 860px) { .split > div > .ph--img:first-child:not(.ph--contain):not(.ph--tall) { margin-inline: calc(-1 * var(--pad)); } }
.ph--img { background: var(--concrete); border: 0; }
.ph--contain img { object-fit: contain; background: var(--doc-bg); }
.ph--doc { aspect-ratio: 3 / 4 !important; background: var(--doc-bg); }
.ph--doc img { object-fit: contain; padding: 10px; }
.ph--tall { aspect-ratio: 4 / 5; margin-top: 24px; }
.obj figcaption { font-size: 14px; color: var(--ink-2); }
.list-tick { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.list-tick li { padding-left: 26px; position: relative; }
.list-tick li::before { content: ''; position: absolute; left: 0; top: .6em; width: 14px; height: 2px; background: var(--signal); }
.quote-band { background: var(--concrete-2); color: var(--ink); padding: 18px 20px; border-left: 4px solid var(--signal); }
.quote-band p { color: var(--ink); margin: 0; max-width: none; font-weight: 700; font-size: 16px; }
.tag { display: inline-block; font: 400 12px/1.3 var(--f-mono); text-transform: none; letter-spacing: 0; color: var(--ink-2); background: var(--wash); padding: 3px 8px; border-radius: 3px; vertical-align: middle; }
.sec--dark .tag { background: var(--wash); color: var(--on-dark); }
.note-demo { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin: 12px 0; max-width: 62ch; }
.sec--dark .note-demo { color: var(--on-dark-2); }

/* numbers */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 18px 0 0; }
.facts b { display: block; font: 800 clamp(44px, 4.8vw, 68px)/1 var(--f-display); letter-spacing: .01em; color: var(--signal-ink); }
.sec--dark .facts b { color: var(--signal-on-dark); }
.facts span { font-size: 14px; color: var(--ink-3); }
.sec--dark .facts { border-color: var(--line-dark); }
.sec--dark .facts span { color: var(--on-dark-2); }

/* catalog page table of marks */
.marks { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.marks th, .marks td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.marks th { font: 400 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.marks td:last-child { text-align: right; }
/* phone: one card per mark — the mark, three labelled values, then the link on its own line */
@media (max-width: 640px) {
  .marks thead { display: none; }
  .marks tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .marks td { border: 0; padding: 0; }
  .marks td:first-child { grid-column: 1 / -1; font-size: 17px; margin-bottom: 4px; }
  .marks td[data-l] { display: contents; }
  .marks td[data-l]::before { content: attr(data-l); color: var(--ink-3); font-size: 14px; }
  .marks td:last-child { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .marks td:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
}
.tbl-wrap { overflow-x: auto; }
.group { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: 24px var(--col-gap); }
.group svg { width: 100%; max-width: 280px; height: 140px; }
@media (max-width: 860px) { .group { grid-template-columns: 1fr; } }

/* objects + logos as text */
.objs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.obj { margin: 0; }
@media (max-width: 1000px) { .objs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.obj .ph { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.clients li { border: 1px solid var(--line); padding: 10px 14px; border-radius: var(--r); font-weight: 700; font-size: 14px; background: var(--field); }

/* forms */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form textarea { font: 400 16px var(--f-text); padding: 13px 14px; border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--field); color: var(--ink); width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .demo { font-size: 13px; color: var(--ink-3); margin: 0; }
.form .ok { background: transparent; border: 1.5px solid var(--mark); padding: 12px 14px; border-radius: var(--r); font-size: 15px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.form .consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--signal); }
.sec--dark .form input, .sec--dark .form textarea { background: var(--field-dark); color: var(--on-dark); border-color: var(--ink-3); }
.sec--dark .form .demo, .sec--dark .form .consent { color: var(--on-dark-2); }
.sec--dark .form .ok { background: transparent; border-color: var(--on-dark); }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

/* contacts */
.cts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cts > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.cts dt { font-size: 13px; color: var(--ink-3); }
.cts dd { margin: 2px 0 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cts a { text-decoration: none; }
.cts a:hover { text-decoration: underline; }
.cmap { margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px var(--col-gap); align-items: end; }
.cmap .ph { aspect-ratio: 16 / 9; }
.cmap img { filter: grayscale(.25) contrast(1.05); }
.cmap a { font-weight: 700; color: var(--signal-ink); }
@media (max-width: 700px) { .cmap { grid-template-columns: minmax(0, 1fr); } }

/* page head */
.phead { padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 3vw, 40px); background: var(--grain), var(--blot), var(--concrete); border-bottom: 1px solid var(--line); }
.phead h1 { max-width: 18ch; }
.phead__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px var(--col-gap); align-items: end; }
/* inner page heads hold the first screen like the home photo does (R1) */
@media (min-width: 1200px) { .phead { display: grid; align-items: end; min-height: min(520px, calc(100svh - 68px - 160px)); } .phead > .wrap { width: 100%; } }
.phead + .sec, .phead + .tape + .sec { padding-top: 48px; }
.phead .lead { margin-top: 16px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

/* footer */
.ftr { background: var(--graphite); border-top: 1px solid var(--line); color: var(--on-dark-2); padding: 56px 0 calc(28px + var(--bar-h)); font-size: 15px; }
.ftr a { color: var(--on-dark); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px var(--col-gap); }
.ftr h3 { color: var(--on-dark); font-size: 22px; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr__demo { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr; } }

/* sticky mobile bar */
.mbar { display: none; }
@media (max-width: 980px) {
  :root { --bar-h: 68px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--graphite); box-shadow: 0 -1px 0 var(--line); }
  .mbar .btn { min-height: 50px; font-size: 15px; }
  .mbar .btn--ghost { color: var(--ink); }
}

/* modal: расчёт / КП */
.modal { position: fixed; inset: 0; z-index: 80; background: var(--modal-scrim); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal__box { background: var(--concrete); border: 1px solid var(--line); border-radius: var(--r); width: min(720px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(18px, 3vw, 32px); position: relative; }
.modal__x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.kp__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); margin: 12px 0; background: var(--concrete); }
.kp__contacts { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.kp table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kp td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kp td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bar-h)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); opacity: 0; transition: opacity .2s, transform .2s; z-index: 90; font-size: 15px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-rv].in { opacity: 1; transform: none; }
}

@media print {
  :root, :root[data-theme] { --paper: #fff; --concrete: #fff; --ink: #111; --ink-2: #333; --ink-3: #555; --line: rgba(0,0,0,.2); --signal: #c25500; --signal-ink: #8a3d00; --mark: #111; }
  body { background: var(--paper); color: var(--ink); }
  /* the modal lives inside <main>: hide everything but the open modal and the boxes around it */
  body > *:not(.modal):not(:has(.modal.open)), body :has(> .modal.open) > *:not(.modal.open) { display: none !important; }
  body :has(> .modal.open) { display: block !important; margin: 0 !important; padding: 0 !important; }
  .modal { position: static; background: none; display: block !important; padding: 0; }
  .modal__box { max-height: none; width: 100%; box-shadow: none; }
  .modal__x, .kp__actions { display: none !important; }
  /* A4 portrait, one sheet: picture 16:9 across the width, totals, note, contacts */
  @page { size: A4 portrait; margin: 12mm; }
  .modal__box { border: 0; padding: 0; overflow: visible; }
  .kp__img { border-color: var(--line); break-inside: avoid; }
  .kp .res { break-inside: avoid; grid-template-columns: repeat(4, 1fr) !important; }
  .kp .res div { border-top: 0 !important; }
  .kp .res div:nth-child(3) { border-left: 1px solid var(--line) !important; }
  .kp .note-demo, .kp__contacts { color: var(--ink-2); }
}

/* reviews as a magazine spread (sketch A): the engineer's review on a solid panel over the mixer photo, the rest set as text in uneven columns.
   Review text never lies on a photo: the panel is the page colour at 100 %. */
.spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.spread__ph { margin-left: calc(-1 * (var(--pad) + var(--edge))); aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.spread__ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-f); }
.big-q { --q-bg: var(--paper); position: relative; z-index: 2; margin: 0 0 0 -14%; background: var(--grain), var(--q-bg); padding: clamp(24px, 3vw, 44px); border-top: 6px solid var(--signal); }
.sec--concrete .big-q { --q-bg: var(--concrete); }
.big-q blockquote { margin: 0; font: 700 clamp(18px, 1.5vw, 23px)/1.45 var(--f-head); letter-spacing: -.01em; }
.big-q blockquote::before { content: '«'; display: block; font: 800 110px/.6 var(--f-head); color: var(--signal); margin-bottom: 6px; }
.big-q figcaption, .mag__i figcaption { margin-top: 16px; font: 400 13px/1.4 var(--f-mono); color: var(--ink-2); }
.mag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.mag__i { margin: 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.mag__i:nth-child(2) { margin-top: 72px; }
.mag__i:nth-child(3) { margin-top: 144px; }
.mag__i img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; filter: var(--photo-f); }
.mag__i img.is-cut { aspect-ratio: 16 / 9; object-fit: contain; padding: 12px; background: var(--grain), var(--concrete); filter: none; }
.sec--concrete .mag__i img.is-cut { background: var(--grain), var(--paper); }
.mag__i blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 860px) {
  .spread, .mag { grid-template-columns: minmax(0, 1fr); }
  .spread__ph { margin: 0 calc(-1 * var(--pad)); }
  .big-q { margin: -48px 0 0; }
  .mag { margin-top: 8px; }
  .mag__i, .mag__i:nth-child(n) { margin-top: 40px; }
}
.logos { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-ph { height: 96px; display: grid; place-items: center; font-size: 12px; color: var(--ink-3); isolation: isolate; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-ph img { width: 72%; height: 62%; object-fit: contain; filter: var(--logo-f); mix-blend-mode: var(--logo-blend); opacity: .78; transition: opacity .3s; }
.logo-ph:hover img { opacity: 1; }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(4, 1fr); } }

.loadbar { height: 6px; background: var(--wash); border-radius: 3px; overflow: hidden; }
.loadbar span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.16,1,.3,1); }
/* screenshot mode (tools/shoot.py): header scrolls with the page, the phone bar is hidden in stitched tiles */
.shot .hdr { position: relative; }
.shot .mbar { display: none; }
/* ?still and full-page shots: everything shown at once, nothing waits for a scroll */
.still [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
.still .cat__item svg .draw { stroke-dashoffset: 0 !important; transition: none !important; }


.form-h { font-size: clamp(32px, 3.6vw, 52px); }

.meta { font-size: 13px; color: var(--ink-3); margin: 0 0 6px; }
.trip button { display: grid; place-items: center; }
.trip button svg { width: 18px; height: 18px; }
.modal__x { display: grid; place-items: center; }
.modal__x svg { width: 22px; height: 22px; }
.cat__go { display: inline-flex; align-items: center; gap: 6px; text-wrap: balance; }
.marks td:last-child a { white-space: nowrap; }
@media (max-width: 380px) { .adv li { padding: 18px 12px; gap: 10px; font-size: 14px; overflow-wrap: break-word; } }
.cat__go svg { width: 14px; height: 14px; }
html { scrollbar-color: var(--scroll-thumb) var(--paper); }
.chips--scroll { scrollbar-color: var(--scroll-thumb) transparent; }

/* ---------- 30.10 «сайт сухой»: rhythm and the client's photos ---------- */
.nw { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
/* signal tape between sections: marking stripes, like on a loaded truck */
.tape { height: 10px; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--tape-dark) 14px 28px); opacity: .9; }
/* home: the client's objects edge to edge */
.oband { padding: clamp(56px, 7vw, 96px) 0 0; background: var(--paper); }
.oband__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px var(--col-gap); align-items: end; margin-bottom: 28px; }
.oband__head .lead { margin: 0; }
.oband__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr; gap: 3px; height: clamp(220px, 24vw, 360px); }
.oband__row .ph { aspect-ratio: auto; height: 100%; }
.oband__row img, .mosaic img { filter: var(--photo-f); }
.oband__row .ph::after, .mosaic .ph::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--signal); transition: box-shadow .2s; }
.oband__row .ph:hover::after, .mosaic .ph:hover::after { box-shadow: inset 0 0 0 3px var(--signal); }
@media (max-width: 860px) {
  .oband__head { grid-template-columns: minmax(0, 1fr); }
  .oband__row { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; height: 240px; scrollbar-width: none; }
  .oband__row .ph { scroll-snap-align: start; }
}
/* delivery: objects as a dense mosaic of different sizes */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 12vw, 190px); gap: 4px; }
.mosaic .ph { aspect-ratio: auto; height: 100%; border-radius: 0; }
.mosaic .ph:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic .ph:nth-child(2), .mosaic .ph:nth-child(3) { grid-column: span 3; }
.mosaic .ph:nth-child(4), .mosaic .ph:nth-child(5), .mosaic .ph:nth-child(6) { grid-column: span 2; }
.mosaic .ph:nth-child(7) { grid-column: span 2; grid-row: span 2; }
.mosaic .ph:nth-child(8) { grid-column: span 4; }
.mosaic .ph:nth-child(9), .mosaic .ph:nth-child(10) { grid-column: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .mosaic .ph:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic .ph:nth-child(1), .mosaic .ph:nth-child(8) { grid-column: span 2; grid-row: span 2; }
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 24px; }
.duo .ph { aspect-ratio: 3 / 4; border-radius: 0; }
/* the client's facts as hang tags (address, hours, phone) */
.mtags--facts, .mtags--facts:is(*) { display: grid; gap: 12px; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
.mtags--facts .mtag { max-width: none; }
.mtags--facts .mtag b { font-size: clamp(30px, 3vw, 44px); }
/* footer: the plant photo beside the contacts */
.ftr__grid { grid-template-columns: minmax(0, 1fr) 1.3fr 1fr 1fr; }
.ftr__ph { margin: 0; }
.ftr__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: var(--photo-f); }
@media (max-width: 1100px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr__grid { grid-template-columns: 1fr; } }
/* 390, home: the phone bar shows only after the first screen has scrolled away (site.js) */
@media (max-width: 980px) {
  .mbar-wait .mbar { transform: translateY(110%); transition: transform .2s ease-out; }
  .mbar-wait.mbar-on .mbar { transform: none; }
  .mbar-wait .top { min-height: calc(100svh - 68px); }
}
@media (max-width: 560px) { .adv li { font-size: 15px; padding: 16px 12px; gap: 8px; } .adv li::before { width: 14px; } .adv li span { min-width: 0; overflow-wrap: anywhere; } }

/* ---------- 30.10 Hallmark: home in 9 blocks ---------- */
.oband__revs { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 128px); }
.sec__head + .adv { margin-bottom: clamp(24px, 3vw, 40px); }
.about { align-items: end; }
.about__clients { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.about__clients h2 { font-size: clamp(28px, 3.2vw, 46px); }
/* 1920×1080: the configurator block ends inside the screen */
@media (min-width: 1800px) { .cfg__stage { height: clamp(260px, calc(100svh - 68px - 440px), 640px); } }

/* ---------- 31.10 inner page heads, sketch A: the heading on the page concrete, the client's photo comes in from the right ---------- */
/* the text stays on >= 90 % of the page colour (never on a light part of the photo); the plate is a solid accent tag on the photo */
/* 31.10 owner: «поднять, не слишком много пустого места» — the head is part of a screen, the content starts right under it; only the home first screen is full height */
.phead--ph { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: max(460px, min(62svh, 640px)); padding: 96px 0 72px; background: var(--grain), var(--blot), var(--paper); border-bottom: 1px solid var(--line); }
.phead--ph > .wrap { width: 100%; }
.phead__bg { position: absolute; inset: -40px 0 0 46%; z-index: -3; }
.phead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); filter: var(--photo-f); transform: translate3d(0, var(--plx, 0px), 0); }
.phead--ph::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--blot), linear-gradient(90deg, rgb(var(--paper-rgb)) 0 46%, rgb(var(--paper-rgb) / .9) 57%, rgb(var(--paper-rgb) / 0) 70%); }
.phead--ph::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain); pointer-events: none; }
.phead--ph .phead__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.phead--ph h1 { max-width: 13ch; font-size: clamp(36px, 4.6vw, 80px); }
.phead--ph .lead { max-width: 38ch; margin: 22px 0 0; }   /* no bottom margin: the plate stands on the same baseline */
.phead--ph .crumbs { margin-bottom: 22px; width: fit-content; }
/* the plate: a solid accent tag with a stencilled figure (the words of the old green tag, as they were) */
.ptag { margin: 0; justify-self: end; max-width: 400px; display: grid; gap: 3px; padding: 14px 22px 12px; background: var(--signal); font: 400 12px/1.5 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--on-signal); }
.ptag b { font: 800 clamp(34px, 3.2vw, 50px)/.9 var(--f-display); white-space: nowrap; letter-spacing: .02em; margin-bottom: 8px; }
@media (max-width: 860px) {
  /* phone: the photo is the top of the screen, the heading below it on the concrete */
  .phead--ph { min-height: 70svh; align-items: end; padding-top: 34svh; padding-bottom: 28px; }
  .phead__bg, .phead--ph::before { inset: 0 0 auto 0; height: 40svh; }
  .phead--ph::before { background: var(--blot), linear-gradient(0deg, rgb(var(--paper-rgb)) 0%, rgb(var(--paper-rgb) / .9) 14%, rgb(var(--paper-rgb) / 0) 50%); }
  .phead--ph .phead__in { grid-template-columns: minmax(0, 1fr); }
  .phead--ph h1 { font-size: clamp(32px, 8.6vw, 52px); }
  .ptag { justify-self: start; max-width: none; }
}

/* ---------- 31.10 catalogue: category chips + search (pinned), marks as compact rows, the trip basket ---------- */
.kbar { position: sticky; top: 68px; z-index: 30; background: var(--grain), var(--paper); border-bottom: 1px solid var(--line); }
.kbar__in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.kchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.kchips .chip { flex: none; font-size: 13px; white-space: nowrap; }
.ksearch { flex: 0 0 260px; }
.ksearch input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--field); color: var(--ink); font: 400 15px var(--f-text); }
.ksearch input::placeholder { color: var(--ink-3); opacity: 1; }
.ksec { padding-top: 20px; }
.ksec .kgrp:first-child { margin-top: 0; }
.ksec [id] { scroll-margin-top: 140px; }
.kgrp { margin-top: clamp(32px, 4vw, 56px); }
.kgrp__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.kgrp__h h2 { font-size: clamp(22px, 2.2vw, 32px); }
.kgrp__h span { font-size: 13px; color: var(--ink-3); max-width: 70ch; }
.kgrp__none { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.klist { list-style: none; margin: 0; padding: 0; }
/* one mark = one row, 60 px: silhouette · mark · dimensions · mass · the button */
.krow { display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .6fr) 128px; align-items: center; gap: 0 20px; min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.krow svg, .krow__pic { width: 72px; height: 36px; color: var(--ink-2); }
.krow__mark { font: 600 15px/1.25 var(--f-mono); letter-spacing: -.02em; }
.krow__dims { font-size: 15px; color: var(--ink-2); }
.krow__mass { font-size: 15px; font-weight: 700; text-align: right; }
.kadd, .kask { justify-self: end; min-height: 40px; min-width: 112px; padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--ink-3); background: transparent; color: var(--ink); font: 700 14px var(--f-text); cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; white-space: nowrap; }
.kadd:hover, .kask:hover { border-color: var(--ink); background: var(--hover-wash); }
.kadd__on, .kadd[aria-pressed="true"] .kadd__off { display: none; }
.kadd[aria-pressed="true"] .kadd__on { display: inline; }
.kadd[aria-pressed="true"] { background: var(--signal-btn); border-color: var(--signal-btn); color: var(--on-signal); }
.krow[hidden], .kgrp[hidden] { display: none; }
.kempty { margin: 32px 0; font-size: 17px; }
/* the basket: pinned to the bottom (above the phone bar) once something is in it */
.tripbar { position: fixed; left: 0; right: 0; bottom: var(--bar-h); z-index: 45; background: var(--hdr-bg); border-top: 2px solid var(--signal); box-shadow: 0 -8px 24px rgb(0 0 0 / .18); }
.tripbar[hidden] { display: none; }
.tripbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.tripbar p { margin: 0; font-size: 16px; }
.has-tripbar .ftr { padding-bottom: calc(28px + var(--bar-h) + 64px); }
@media (max-width: 860px) {
  .kbar__in { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .kchips { margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); }
  .ksearch { flex: none; }
  .ksec [id] { scroll-margin-top: 190px; }
  .krow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic mark add" "pic dims add"; gap: 0 12px; min-height: 64px; }
  .krow svg, .krow__pic { grid-area: pic; width: 56px; height: 30px; }
  .krow__mark { grid-area: mark; align-self: end; }
  .krow__dims { grid-area: dims; align-self: start; font-size: 13px; }
  .krow__mass { display: none; }
  .krow__dims::after { content: ' · ' attr(data-mass); }
  .krow__dims[data-mass=""]::after { content: none; }
  .kadd, .kask { grid-area: add; min-width: 0; min-height: 44px; }
  .tripbar__in { min-height: 60px; }
  .tripbar p { font-size: 14px; }
}
/* /raschet/#trip: the positions from the catalogue above the panel, a click loads that position */
.triplist { margin-bottom: 10px; padding: 12px 16px; background: var(--concrete-2); border: 1px solid var(--line); border-left: 4px solid var(--signal); }
.triplist[hidden] { display: none; }
.triplist__h { margin: 0 0 8px; font: 400 12px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.triplist__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.triplist__list li { display: flex; }
.triplist__pos { display: grid; gap: 1px; text-align: left; min-height: 44px; padding: 5px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--field); color: var(--ink); cursor: pointer; }
.triplist__pos b { font: 600 14px/1.2 var(--f-mono); }
.triplist__pos span { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.triplist__pos[aria-pressed="true"] { background: var(--signal-btn); border-color: var(--signal-btn); color: var(--on-signal); }
.triplist__pos[aria-pressed="true"] span { color: var(--on-signal); }
.triplist__del { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) 0; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.triplist__del:hover { color: var(--ink); background: var(--hover-wash); }
.triplist__sum { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); max-width: none; }
.triplist__sum b { color: var(--ink); }
