/*
 * Раскладка: молочный фон, белые рабочие поверхности, графитовый текст, без декоративных карточек.
 * Номер детали — главный объект сайта: везде набран моноширинным шрифтом, как выбит на шильдике.
 */
:root {
  --milk: #f4f2ed;
  --paper: #ffffff;
  --sand: #ebe8e1;
  --line: #e0dcd4;
  --line-2: #c8c3b9;
  --ink: #222426;
  --ink-hover: #3a3d40;
  --ink-2: #55595d;
  --ink-3: #696d70; /* не светлее: подписи должны читаться и на солнце (контраст к фону не меньше 4,5) */
  --on-ink: #ffffff;
  --ok: #2d6a41;
  --ok-bg: #e2ede4;
  --low: #87570f;
  --low-bg: #f4ead6;
  --none: #64686c;
  --none-bg: #ebe9e4;
  --bad: #a03128;
  --bad-bg: #f6e3e0;
  --shadow: 0 1px 2px rgb(34 36 38 / 0.05), 0 10px 28px rgb(34 36 38 / 0.08);

  --f-display: 'Manrope', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r: 10px;
  --r-sm: 7px;
  --wrap: 1200px;
  --head-h: 68px;
  --tab-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --milk: #141516; --paper: #1c1e1f; --sand: #26292a; --line: #2c2f31; --line-2: #3d4144;
    --ink: #ebe9e4; --ink-hover: #ffffff; --ink-2: #b3b5b5; --ink-3: #868a8d; --on-ink: #141516;
    --ok: #8cc79c; --ok-bg: #1d2b21; --low: #e1b56b; --low-bg: #2e2716; --none: #a3a6a8; --none-bg: #26292a;
    --bad: #f08c82; --bad-bg: #3a1f1c; --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 10px 28px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --milk: #141516; --paper: #1c1e1f; --sand: #26292a; --line: #2c2f31; --line-2: #3d4144;
  --ink: #ebe9e4; --ink-hover: #ffffff; --ink-2: #b3b5b5; --ink-3: #868a8d; --on-ink: #141516;
  --ok: #8cc79c; --ok-bg: #1d2b21; --low: #e1b56b; --low-bg: #2e2716; --none: #a3a6a8; --none-bg: #26292a;
  --bad: #f08c82; --bad-bg: #3a1f1c; --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 10px 28px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--on-ink); }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.num { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 15px/1 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-line { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-added { background: var(--ok-bg); color: var(--ok); }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); font-size: 15px;
}
.textarea { resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sand); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.field-err { font-size: 13px; color: var(--bad); }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
/* Отслеживание посылки: ТК, номер накладной с копированием, ссылка на страницу ТК */
.track-line { margin: 6px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.track-line .copy-inline { margin-left: 0; }
/* «Как вам покупка?» — выданный заказ просит отзыв о магазине */
.review-ask { margin-top: 8px; background: var(--sand); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; font-size: 14px; }
.review-ask p { margin: 0; }
.review-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.review-btns .btn svg { width: 16px; height: 16px; fill: currentColor; stroke-width: 1.5; }
[data-carrier-box] small { display: block; margin-top: 6px; line-height: 1.45; }
/* Согласие на обработку персональных данных — своя галочка у каждой формы */
.consent-check { align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.consent-check input { flex: none; margin-top: 1px; }
.consent-check a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.consent-text { display: grid; gap: 10px; padding-left: 22px; }

/* ---------- шапка ---------- */
.demo-bar { background: var(--ink); color: var(--on-ink); font-size: 13px; }
.demo-bar .wrap { padding-block: 7px; }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
/* Логотип ведёт на главную; рядом — кнопка меню кабинета: инициалы покупателя и стрелка */
.brand { position: relative; flex: none; display: flex; align-items: center; gap: 2px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none;
  margin: -4px 0 -4px -8px; padding: 4px 8px; border-radius: var(--r); color: var(--ink);
  transition: background-color .15s;
}
.logo-menu {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 36px; min-height: 36px;
  margin: -4px -8px -4px 0; padding: 4px 8px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s;
}
.logo:hover, .logo-menu:hover, .logo-menu[aria-expanded="true"] { background: var(--sand); }
.logo:focus-visible, .logo-menu:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.logo-name { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo-user {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: var(--ok-bg); color: var(--ok); font: 600 12px/1 var(--f-body); letter-spacing: 0.02em;
}
.logo-guest { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; flex: none; }
.logo-caret { width: 12px; height: 12px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.logo-menu[aria-expanded="true"] .logo-caret { transform: rotate(180deg); }

/* ---------- меню кабинета под логотипом ---------- */
.account-pop {
  position: absolute; left: -8px; top: calc(100% + 12px); z-index: 60; width: 300px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 12px;
}
.ap-user { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 700 14px var(--f-display); flex: none; }
.ap-who { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.ap-who b { font-size: 15px; }
.ap-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-title { font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.ap-text { font-size: 14px; color: var(--ink-2); }
.ap-actions { display: flex; gap: 8px; }
.ap-actions .btn { flex: 1; }
.ap-links { display: grid; border-top: 1px solid var(--line); padding-top: 6px; }
.ap-user + .ap-links { border-top: 0; padding-top: 0; }
.ap-links a { padding: 9px 8px; margin: 0 -8px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; }
.ap-links a:hover { background: var(--sand); }
.ap-logout { justify-self: start; border: 0; background: none; padding: 6px 0; color: var(--ink-2); font-size: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ap-logout:hover { color: var(--bad); }

/* ---------- страница кабинета ---------- */
.account-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 18px; }
.auth-h { font-size: 20px; }
.auth-form { display: grid; gap: 14px; }
.auth-forgot { justify-self: center; font-size: 14px; color: var(--ink-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--milk); border-radius: var(--r-sm); padding: 4px; }
.tabs a { text-align: center; padding: 9px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.tabs a[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acc-grid { margin-top: 18px; }
.acc-side { display: grid; gap: 12px; }
.acc-pw summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.acc-pw summary::-webkit-details-marker { display: none; }
.acc-pw summary::after { content: "+"; color: var(--ink-3); font-size: 18px; line-height: 1; }
.acc-pw[open] summary::after { content: "−"; }
.acc-pw[open] summary { margin-bottom: 4px; }
@media (max-width: 900px) {
  .account-auth { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .account-auth .auth-card { order: -1; }
}
@media (max-width: 420px) {
  .logo-name { font-size: 17px; }
}
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }

.hsearch { position: relative; flex: 1; min-width: 0; max-width: 560px; display: flex; }
.hsearch input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--milk); font-size: 15px;
}
.hsearch input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.hsearch .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 0 14px; }

/* ---------- сканер штрихкода: кнопка в строке поиска и окно с камерой ---------- */
.scan-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; padding: 0;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.scan-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scan-btn:hover, .scan-btn:focus-visible { color: var(--ink); }
.hsearch .scan-btn { height: 44px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--milk); }
.hsearch:focus-within .scan-btn { border-color: var(--ink); background: var(--paper); }
.scanner { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: relative; width: min(80vw, 420px); aspect-ratio: 2 / 1; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.45); }
.scanner-hint { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 28px); margin: 0; color: #fff; text-align: center; font-size: 17px; font-weight: 600; }
.scanner [data-scan-close] { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translateX(-50%); min-width: 200px; }
.own-search .top .hsearch { visibility: hidden; }

.top-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; }
.top-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--ink); color: var(--on-ink); font: 600 12px/1 var(--f-body); font-variant-numeric: tabular-nums;
}

/* ---------- подсказки поиска ---------- */

/* ---------- метки наличия и номера ---------- */
.stock {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  background: var(--ok-bg); color: var(--ok);
}
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock.low { background: var(--low-bg); color: var(--low); }
.stock.none { background: var(--none-bg); color: var(--none); }
.stock.none::before { background: transparent; border: 1.5px solid currentColor; width: 7px; height: 7px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper);
  font-size: 14px; text-decoration: none; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.num { font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- главная ---------- */
.hero { padding-block: 44px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); margin-bottom: 26px; }
.bigsearch { position: relative; }
.bigsearch-row { display: flex; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.bigsearch input {
  flex: 1; min-width: 0; height: 64px; padding: 0 20px; border: 0; background: transparent;
  font: 600 20px var(--f-mono); letter-spacing: 0.01em; border-radius: var(--r) 0 0 var(--r);
}
.bigsearch input::placeholder { font: 400 17px var(--f-body); color: var(--ink-3); letter-spacing: 0; }
/* «Часто ищут»: номер в подсказке сменяется плавно (app.js, rotateTips) */
.bigsearch input[data-tips]::placeholder { transition: opacity .25s; }
.bigsearch input.tip-out::placeholder { opacity: 0; }
.bigsearch input:focus { outline: none; }
.bigsearch-row:focus-within { box-shadow: 0 0 0 4px var(--sand), var(--shadow); }
.bigsearch .btn { height: auto; margin: 7px; padding: 0 22px; font-size: 16px; }
.hint { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.sync { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

.bulk-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; margin-top: 6px; }
.bulk-card h2 { font-size: 20px; }
.bulk-card p { color: var(--ink-2); font-size: 14px; }
.bulk-card textarea { font: 500 14px/1.6 var(--f-mono); min-height: 150px; }

.band { padding-block: 44px; }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: 26px; }
.sec-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }

/* Подбор по технике — карточки марок: значок, марка, число моделей; внутри — модели со счётчиком и звёздочкой */
/* Карточки в ряду — одной высоты: в каждой не больше 4 моделей, «ещё N» прижата к низу */
.families { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; align-items: stretch; }
.family { padding: 12px 16px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.family ul { flex: 1; }
.family[hidden], .family li[hidden] { display: none; }
.family-more { align-self: flex-start; margin: 2px 0 4px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.family-more:hover { color: var(--ink); text-decoration-color: currentColor; }
.families-all { display: flex; justify-content: center; margin-top: 14px; }
.family-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.family-head svg { width: 28px; height: 28px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.family h3 { font-size: 16px; }

/* Разделы — плитки со значком вида запчасти */
.group-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.group-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.group-tile:hover { border-color: var(--ink); }
.group-tile .cat-ico { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--ink-2); }
.gt-name { font-weight: 600; font-size: 15px; line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; } /* «Электрооборудование» в узкой плитке — с переносом */
.gt-cnt { font-size: 13px; color: var(--ink-3); }
@media (max-width: 579px) {
  /* Телефон: две плитки в ряд, значок сверху */
  .group-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .group-tile { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .group-tile .cat-ico { grid-row: auto; margin-bottom: 6px; }
  .gt-name { font-size: 14px; }
}

/* «Сообщить о поступлении» в карточке товара, которого нет на складе */
.wait-box { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.wait-box summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.wait-box summary::-webkit-details-marker { display: none; }
.wait-box summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wait-box summary:hover span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.wait-form { display: grid; gap: 12px; margin-top: 6px; }
.wait-form .btn { justify-self: start; }
.wait-done { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ok); }
.wait-done svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* «Часто заказывают» — в строке поиска и в карточке товара */
.hit-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--ink); font: 600 12px/1.4 var(--f-body); white-space: nowrap; }

/* «Полезное»: карточки статей и страница статьи */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.article-card {
  display: grid; gap: 8px; align-content: start; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink); transition: border-color .15s;
}
.article-card:hover { border-color: var(--ink); }
.article-card h3 { font-size: 17px; }
.article-card p { color: var(--ink-2); font-size: 14px; }
.article-more { font-size: 14px; font-weight: 600; }
.page > .articles { margin-top: 22px; }
.article { max-width: 70ch; }
.article-lead { margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.article-body { margin-top: 22px; display: grid; gap: 12px; font-size: 16px; line-height: 1.6; }
.article-body h3 { font-size: 20px; margin-top: 12px; }
.article-body ul, .article-body ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.article-page .photo-cta { margin-top: 28px; max-width: 70ch; }
.article-others { margin-top: 36px; }
.family ul, .group-children { list-style: none; margin: 0; padding: 0; }
.family li a, .group-children a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; text-decoration: none; color: var(--ink-2);
}
.family li a:hover, .group-children a:hover { color: var(--ink); }
.family .cnt, .groups .cnt { font: 500 13px var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.group > a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.group > a:hover { text-decoration: underline; }
.group-children { margin-top: 8px; font-size: 14px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts h3 { font-size: 16px; margin-bottom: 8px; }
.facts p { color: var(--ink-2); font-size: 14px; }

/* ---------- страницы ---------- */
.page { padding-block: 28px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }
.page-h { font-size: clamp(24px, 3.4vw, 34px); }
.page-sub { margin-top: 8px; color: var(--ink-2); }
.list-h { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; margin: 28px 0 10px; }
.note {
  display: block; margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: 14px; color: var(--ink-2);
}
.note .btn { margin-left: 8px; vertical-align: middle; }
.note.warn { background: var(--low-bg); border-color: transparent; color: var(--low); }
.note.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }

/* ---------- список товаров ---------- */
.plist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.prow {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 116px 236px; gap: 10px 16px; align-items: center;
  padding: 14px 18px;
}
.prow-thumb { display: block; text-decoration: none; }
.prow-thumb:hover .thumb { border-color: var(--line-2); }
.prow-num { font-size: 16.5px; color: var(--ink); }
.prow + .prow { border-top: 1px solid var(--line); }
.prow-main { display: grid; gap: 3px; min-width: 0; text-decoration: none; }
.prow-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prow-top .num { font-size: 16.5px; }
.prow-brand { font-size: 13px; color: var(--ink-3); }
.prow-name { font-weight: 500; color: var(--ink); }
.prow-main:hover .prow-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prow-meta { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-match { font-size: 12.5px; color: var(--ink-2); }
.prow-match b { font-family: var(--f-mono); font-weight: 600; }
.prow-price { text-align: right; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow-price small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.prow-buy { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.prow-incart { grid-column: 1 / -1; font-size: 13px; color: var(--ok); margin-top: -4px; }

.qty { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); flex: none; }
.qty button { width: 34px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-2); border-radius: var(--r-sm); }
.qty button:hover { color: var(--ink); background: var(--sand); }
.qty input { width: 46px; border: 0; text-align: center; font: 600 15px var(--f-mono); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink); }
.qty-lg { height: 52px; }
.qty-lg button { width: 44px; }
.qty-lg input { width: 56px; font-size: 17px; }

.more { display: flex; justify-content: center; margin-top: 18px; }
.empty { padding: 36px 22px; text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 22px; color: var(--ink); }
.loading { padding: 48px 0; color: var(--ink-3); text-align: center; }

/* ---------- каталог ---------- */
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 22px; }
.filters { position: sticky; top: calc(var(--head-h) + 16px + env(safe-area-inset-top, 0px)); display: grid; gap: 22px; }
.filters summary { display: none; }
.filters-body { display: grid; gap: 22px; }
.ftree { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ftree ul { list-style: none; margin: 2px 0 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.ftree a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); }
.ftree a:hover { background: var(--sand); color: var(--ink); }
.ftree a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.ftree a[aria-current="true"] .cnt { color: inherit; opacity: .7; }
.ftree .cnt { font: 500 12.5px var(--f-mono); color: var(--ink-3); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar .select { width: auto; min-height: 38px; padding-block: 6px; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters .chip::after { content: "×"; color: var(--ink-3); font-size: 16px; line-height: 1; }

/* ---------- карточка товара ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; margin-top: 8px; }
.ph {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.ph img { width: 100%; height: 100%; object-fit: contain; }
.ph-plate {
  display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px;
}
.ph-plate .num { font-size: clamp(20px, 3vw, 30px); padding: 10px 18px; border: 2px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }
.ph-plate small { color: var(--ink-3); font-size: 13px; }
.ph.is-empty { background: var(--milk); border-style: dashed; }
.ph.is-empty .cat-ico { width: 76px; height: 76px; stroke-width: 1.1; color: var(--ink-3); }

/* Галерея фото товара: лента с прокруткой по одному фото, счётчик и миниатюры */
.gal { position: relative; display: grid; gap: 10px; min-width: 0; }
.gal-track { display: flex; place-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: #fff; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.gal-slide:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.gal-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; font: 500 13px var(--f-mono); pointer-events: none; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; cursor: pointer; opacity: 0.6; transition: opacity .15s, border-color .15s; }
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Фото на весь экран */
:root:has(dialog.lightbox[open]) { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0e0f10; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track.is-zoomed { overflow: hidden; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.lb-slide.is-zoom { display: block; overflow: auto; }
.lb-slide.is-zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.14); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / 0.26); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-count { position: absolute; top: max(24px, calc(env(safe-area-inset-top, 0px) + 12px)); left: 50%; transform: translateX(-50%); font: 500 14px var(--f-mono); color: rgb(255 255 255 / 0.8); }
/* На телефоне листают пальцем — стрелки только мешают */
@media (hover: none) and (pointer: coarse) { .lb-prev, .lb-next { display: none; } }
.pp-num { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-num .num { font-size: 22px; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); font-size: 13px; color: var(--ink-2); cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.pp h1 { font-size: clamp(24px, 3vw, 32px); }
.pp-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.pp-meta b { font-weight: 500; color: var(--ink); }
.buybox { margin-top: 22px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 16px; }
.buybox-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buybox-price strong { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buybox-price span { color: var(--ink-3); font-size: 14px; }
.wh { display: grid; gap: 6px; font-size: 14px; }
.wh-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.wh-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wh-row .num { font-weight: 500; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.buy-note { font-size: 13px; color: var(--ink-2); }
.pp-sec { margin-top: 26px; }
.pp-sec h2 { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.props { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; font-size: 14px; }
.props dt, .props dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.props dt { color: var(--ink-2); padding-right: 12px; }
.props dd { font-weight: 500; }
.desc { max-width: 65ch; color: var(--ink-2); }
.desc > * { margin: 0; }
.desc > * + * { margin-top: 10px; }
.desc ul, .desc ol { padding-left: 22px; }
.desc li + li { margin-top: 4px; }

/* ---------- список номеров ---------- */
.bulk-form { display: grid; gap: 12px; margin-top: 18px; }
.bulk-form textarea { font: 500 15px/1.65 var(--f-mono); min-height: 190px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bulk-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 26px 0 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); z-index: 5;
}
.bulk-summary p { font-size: 15px; }
.bulk-summary b { font-variant-numeric: tabular-nums; }
.btable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.btable th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--milk); }
.btable td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.btable tr.is-miss td { background: var(--bad-bg); }
.btable .t-num { font-family: var(--f-mono); font-weight: 600; white-space: nowrap; }
.btable .t-right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btable .t-item a { text-decoration: none; font-weight: 500; }
.btable .t-item a:hover { text-decoration: underline; }
.btable .t-item .muted { font-size: 13px; }
.state { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.state.ok { color: var(--ok); }
.state.multi { color: var(--low); }
.state.miss { color: var(--bad); }
.btable .select { min-height: 36px; padding-block: 4px; font-size: 14px; }

/* ---------- корзина и оформление ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 22px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px 36px; gap: 8px 16px; align-items: center; padding: 14px 18px; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow-sum { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crow-warn { grid-column: 1 / -1; font-size: 13px; color: var(--low); margin-top: -2px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.checkout { position: sticky; top: calc(var(--head-h) + 16px + env(safe-area-inset-top, 0px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; }
.checkout h2 { font-size: 20px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.total strong { font-family: var(--f-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.fieldset legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.choice input { margin-top: 3px; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--milk); }
.choice small { display: block; color: var(--ink-3); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.legal { font-size: 12.5px; color: var(--ink-3); }
.done { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 24px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done .num { font-size: 18px; }
.done .page-h .num { font: inherit; font-variant-numeric: tabular-nums; } /* номер заказа в заголовке — тем же шрифтом, что и заголовок */
.max-follow { display: grid; justify-items: center; gap: 6px; margin: 0; } /* «Следить за заказом в MAX» */
.max-follow .muted { font-size: 14px; }
.pp-max { white-space: nowrap; }

/* ---------- мои заказы ---------- */
.orders { display: grid; gap: 12px; margin-top: 22px; }
.ocard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.ocard-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.ocard-head h2 { font-size: 18px; }
.ocard ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.ocard li { display: flex; gap: 10px; }
.ocard li .num { min-width: 120px; color: var(--ink); }
.ostatus { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.status-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 28px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); }

.prose { max-width: 70ch; display: grid; gap: 14px; color: var(--ink-2); margin-top: 18px; }
.prose h2 { font-size: 18px; color: var(--ink); margin-top: 10px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 24px; font-size: 14px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid p + p { margin-top: 6px; }
.foot-name { font-family: var(--f-display); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.foot-h { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- нижнее меню (телефон) ---------- */
.tabbar { display: none; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(20px + var(--tab-h) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); font-size: 14px;
}
.toast a, .toast button { color: inherit; font-weight: 600; white-space: nowrap; }
.toast button { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast .num { white-space: nowrap; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .top-nav { gap: 16px; }
  .prow { grid-template-columns: 52px minmax(0, 1fr) 140px 108px 210px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  :root { --tab-h: 62px; --head-h: 119px; }
  .top-row { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; min-height: 0; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .own-search .top .hsearch { display: none; }
  .own-search { --head-h: 65px; }
  .top-nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .hero { padding-block: 26px 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cat-layout, .cart-layout, .pp { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .filters, .checkout { position: static; }
  .filters { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
  .filters summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters summary::after { content: "+"; font-size: 20px; color: var(--ink-3); }
  .filters[open] summary::after { content: "−"; }
  .filters-body { padding: 4px 16px 16px; }
  .ph { aspect-ratio: 16 / 9; }
  .ph.is-empty { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .bulk-summary { top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 720px) {
  .prow {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "thumb main main" "stock stock price" "buy buy buy";
    gap: 10px 12px; padding: 14px;
  }
  .prow-thumb { grid-area: thumb; align-self: start; }
  .prow-thumb .thumb { width: 48px; height: 48px; }
  .prow-main { grid-area: main; }
  .prow-stock { grid-area: stock; }
  .prow-price { grid-area: price; }
  .prow-buy { grid-area: buy; justify-content: stretch; }
  .prow-buy .btn { flex: 1; }
  .prow-meta { white-space: normal; }
  .crow { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .crow-main { grid-column: 1 / -1; }
  /* Карточки марок на телефоне — по две в ряд, компактнее: число моделей под названием */
  .families { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .family { padding: 10px 12px 6px; }
  .family-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 0; }
  .family-head svg { width: 22px; height: 22px; grid-row: 1 / 3; }
  .family-head .cnt { font-size: 12px; }
  .family h3 { font-size: 15px; overflow-wrap: anywhere; }
  /* С «схемой» в узкой карточке число деталей не помещается — его прячем, длинное название — многоточием */
  .family li:has(.fam-sch) .cnt { display: none; }
  .family li a { gap: 6px; font-size: 14px; }
  .family li a > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bulk-summary { position: static; }
  .btable thead { display: none; }
  .btable, .btable tbody { display: block; width: 100%; }
  .btable tr {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 10px; align-items: center;
    grid-template-areas: "on num price" "item item item" "stock stock stock" "qty qty sum";
    padding: 14px; border-top: 1px solid var(--line);
  }
  .btable tr:first-child { border-top: 0; }
  .btable tr.is-miss { background: var(--bad-bg); }
  .btable td { display: block; padding: 0; border: 0; background: transparent !important; min-width: 0; }
  .btable .t-on { grid-area: on; }
  .btable .t-num { grid-area: num; }
  .btable .t-item { grid-area: item; }
  .btable .t-stock { grid-area: stock; }
  .btable .t-price { grid-area: price; color: var(--ink-3); }
  .btable .t-qty { grid-area: qty; }
  .btable .t-sum { grid-area: sum; font-weight: 600; }
  .status-form { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .bigsearch input { height: 58px; font-size: 18px; padding: 0 14px; }
  .bigsearch .btn { padding: 0 14px; }
  .bigsearch .btn span { display: none; }
  .props { grid-template-columns: minmax(0, 1fr); }
  .props dt { border-bottom: 0; padding-bottom: 0; }
  .band { padding-block: 32px; }
  .sec-head h2 { font-size: 22px; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.notfound { display: grid; gap: 18px; max-width: 600px; margin-top: 20px; }
.notfound > p { color: var(--ink-2); }
.request-form { position: static; }

/* ---------- номера в названиях, услуги, страницы о компании ---------- */
.num-in { font-family: var(--f-mono); font-weight: 600; font-size: 0.95em; letter-spacing: 0.01em; white-space: nowrap; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.service { display: grid; gap: 8px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
a.service:hover { border-color: var(--ink-3); }
.service h3, .service h2 { font-size: 17px; }
.service p { color: var(--ink-2); font-size: 14px; }
.services-page { margin-top: 22px; }
.services-page .service p { font-size: 15px; max-width: 60ch; }
.band-paper .service { background: var(--milk); }
.facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.info-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.info-card .btn { justify-self: start; }
.info-card dd { overflow-wrap: anywhere; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.info-card h2 { font-size: 18px; }
.contacts { display: grid; gap: 4px; margin: 0; font-size: 15px; }
.contacts dt { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.contacts dt:first-child { margin-top: 0; }
.contacts dd { margin: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 900px) { .info-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- фото к заявке ---------- */
.hero-side { display: grid; gap: 12px; align-content: start; }
.hero-side .bulk-card { margin-top: 6px; }
.photo-cta {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--r);
  text-decoration: none; color: var(--ink-2); font-size: 14px; background: transparent;
}
.photo-cta b { color: var(--ink); font-weight: 600; }
.photo-cta:hover { border-color: var(--ink); color: var(--ink); }
.photo-cta svg, .photo-add svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.photo-field { gap: 10px; }
.photo-field:focus-within .photo-add { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sand); }
.photo-add { justify-self: start; cursor: pointer; }
/* Номер на фото прочитан — найденные детали прямо под фото (app.js, renderOcr) */
.ocr-box { display: grid; gap: 10px; padding: 12px; background: var(--milk); border-radius: var(--r-sm); }
.ocr-box p { margin: 0; }
.ocr-box .pp-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.photos:empty { display: none; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); border: 1px solid var(--line); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; color: var(--ink-3); }
.photo-rm {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--on-ink); cursor: pointer; opacity: 0.88;
}
.photo-rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.request-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
.request-page .page-sub { max-width: 58ch; }
.steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 58ch; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--ink-2); min-height: 28px; display: flex; align-items: center; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font: 600 13px var(--f-mono); color: var(--ink);
}
@media (max-width: 900px) { .request-page { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.photo-cta-inline { display: none; }
@media (max-width: 900px) {
  .photo-cta-inline { display: flex; margin-top: 16px; background: var(--paper); border-style: solid; border-color: var(--line); }
  .hero-side .photo-cta { display: none; }
}

/* ---------- единая страница поиска ---------- */
.find { padding-top: 22px; }
.find-search .bigsearch-row { box-shadow: none; }
.find-search input { height: 56px; font-size: 18px; }
.find-filters {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end;
  margin: 14px 0 16px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.ff { display: grid; gap: 5px; min-width: 0; }
.ff-label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.ff .select { min-height: 42px; font-size: 15px; }
.ff-check { min-height: 42px; white-space: nowrap; padding-right: 4px; }
.find-summary { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; margin: 24px 0 14px; }
.find-summary + .find-filters { margin-top: 0; }
.find-h { font-size: clamp(22px, 3vw, 30px); }
.find-summary .muted { margin-top: 4px; }
.find-crumbs { margin: 18px 0 8px; }
.find-crumbs + .find-summary { margin-top: 0; }
.crumbs [aria-current] { color: var(--ink-2); }
/* Коротко о разделе — под списком деталей, спокойным текстом */
.land-intro { margin: 28px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; max-width: 76ch; display: grid; gap: 6px; }
.land-intro p { margin: 0; }
.find .list-h { margin-top: 18px; }
.find .notfound { margin-top: 18px; }
.group-chips { gap: 10px; }
.group-chip { min-height: 40px; padding: 6px 12px; gap: 10px; font-size: 15px; }
.group-chip .cnt { font: 500 12.5px var(--f-mono); color: var(--ink-3); }
.ff-toggle { display: none; }
.find-filters.has-asm { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
/* Узлы на странице техники: «Сцепление · 4», «Тормоза · 1» */
.asm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.asm-chips-label { font-size: 13.5px; color: var(--ink-2); margin-right: 2px; }
@media (max-width: 900px) {
  .find { padding-top: 16px; }
  /* Фильтры свёрнуты в кнопку: строка «Фильтры · Только в наличии», результаты сразу под ней */
  .find-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 4px 12px; }
  .find-filters.is-open { padding-bottom: 12px; }
  .ff-toggle {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0 4px 0 0;
    border: 0; background: none; color: var(--ink); font: 600 15px/1 var(--f-body); cursor: pointer;
  }
  .ff-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .ff-toggle::after {
    content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
    transform: translateY(-2px) rotate(45deg); transition: transform .15s;
  }
  .find-filters.is-open .ff-toggle::after { transform: translateY(2px) rotate(-135deg); }
  .find-filters:not(.is-open) .ff { display: none; }
  .find-filters .ff-check { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; min-height: 44px; }
  .find-filters.has-asm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .find-filters:not(.has-asm) .ff-sort { grid-column: 1; }
  /* Узлы — одной строкой с прокруткой, чтобы результаты оставались на первом экране */
  .asm-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .asm-chips::-webkit-scrollbar { display: none; }
  .asm-chips > * { flex: none; }
}
@media (max-width: 420px) {
  .find-search input { height: 52px; font-size: 17px; }
  .ff .select { font-size: 14px; padding-left: 10px; }
}

/* ---------- вход: выбор способа, коды ---------- */
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.seg button {
  min-height: 38px; padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-2);
  font: 500 14px/1.2 var(--f-body); cursor: pointer;
}
.seg button:hover { color: var(--ink); background: var(--milk); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.auth-card > .field + .auth-form, .auth-card > .field + .field { margin-top: -4px; }
.code-sent { font-size: 14px; color: var(--ink-2); }
.code-input { font-size: 26px !important; letter-spacing: 0.35em; text-align: center; padding-left: 0.35em; }
.code-input::placeholder { color: var(--line-2); letter-spacing: 0.35em; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.link-btn { border: 0; background: none; padding: 4px 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.auth-note { font-size: 13.5px; }
.auth-note a { color: inherit; }

/* ---------- копирование почты и телефона по нажатию ---------- */
.copy-contact, .copy-inline {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 3px 9px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font: 500 13.5px/1.2 var(--f-body); cursor: copy; white-space: nowrap;
}
.copy-contact .num { font-size: 13.5px; }
.copy-contact svg, .copy-inline svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.copy-contact .cc-icon, .copy-inline .cc-icon { width: 14px; height: 14px; color: var(--ink-3); }
.copy-contact:hover, .copy-inline:hover { border-color: var(--line-2); background: var(--paper); }
.copy-contact:hover .cc-icon, .copy-inline:hover .cc-icon { color: var(--ink); }
.copy-contact.is-copied, .copy-inline.is-copied { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.copy-contact.is-copied .cc-icon, .copy-inline.is-copied .cc-icon { color: var(--ok); }
.copy-inline { margin-left: -9px; font-size: 14px; }
.foot .copy-inline { color: var(--ink); }

/* ---------- телефон и почта в шапке: одной строкой рядом с кнопкой профиля ---------- */
.head-contacts { display: flex; align-items: center; gap: 2px; flex: none; padding-left: 14px; border-left: 1px solid var(--line); }
.head-contacts .copy-contact { min-height: 36px; padding: 4px 10px; font-size: 14px; }
.head-contacts .copy-contact:first-child { margin-left: -10px; }
.head-contacts .num { font-family: var(--f-body); font-size: inherit; letter-spacing: 0; }
.head-contacts .cc-phone { font-weight: 600; }
.head-contacts .cc-email { color: var(--ink-2); }
/* значок «копировать» встаёт на место значка телефона/почты при наведении — строка не прыгает */
.head-contacts .cc-icon { display: none; width: 16px; height: 16px; order: -1; }
.head-contacts .copy-contact:is(:hover, :focus-visible, .is-copied) > svg:first-child { display: none; }
.head-contacts .copy-contact:is(:hover, :focus-visible, .is-copied) .cc-icon { display: block; }
/* адрес — ссылка на карту, не копирование: значок метки остаётся */
.head-contacts .cc-addr { color: var(--ink-2); text-decoration: none; cursor: pointer; }
.head-contacts .cc-addr:is(:hover, :focus-visible) > svg:first-child { display: block; }
.head-contacts .cc-addr span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.head-contacts .cc-addr[hidden] { display: none; }

@media (max-width: 1231px) {
  .top-nav [data-account-label] { display: none; } /* вход и кабинет — в кнопке меню рядом с логотипом */
}
@media (max-width: 1080px) {
  .top-row { gap: 18px; }
}
/* узкий ноутбук или планшет: рядом с поиском строка не помещается — телефон и почта друг под другом */
@media (min-width: 901px) and (max-width: 1140px) {
  .head-contacts { flex-direction: column; align-items: flex-start; gap: 1px; }
  /* три строки — телефон, почта, адрес без «Тула, ул.»: шапка той же высоты, строке поиска хватает места */
  .head-contacts .copy-contact, .head-contacts .copy-contact:first-child { min-height: 21px; padding: 1px 8px; margin-left: -8px; }
  .head-contacts .addr-city { display: none; }
}
/* компьютер: адрес второй строкой под телефоном и почтой — в одну строку они отняли бы всё место у поиска */
@media (min-width: 1141px) {
  .head-contacts { display: grid; grid-template-columns: auto auto; justify-content: start; }
  .head-contacts .copy-contact { min-height: 28px; padding-block: 2px; }
  .head-contacts .cc-addr { grid-column: 1 / -1; justify-self: start; margin-left: -10px; }
}
/* ---------- телефон и планшет: шапка в одну строку, звонок в одно касание ---------- */
/* Почта — внизу страницы и в «О компании»; телефон — кнопкой: на телефоне она сразу набирает номер */
.call-btn { display: none; }
@media (max-width: 900px) {
  .top-row { gap: 10px 12px; } /* правило для ширины 1080 выше по тексту не должно раздувать шапку телефона */
  .head-contacts { display: none; }
  .call-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
    text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  }
  .call-btn:active { background: var(--sand); }
  .call-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .call-word { display: none; }
  /* Прокрутка вниз — шапка уезжает, вверх — возвращается (класс ставит app.js) */
  .top { transition: transform .2s ease; }
  .head-hidden .top { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
  .head-hidden, .head-hidden .own-search { --head-h: 0px; }
}
/* Номер не помещается рядом с логотипом — на кнопке слово, номер — в подсказке для читалки экрана */
@media (max-width: 519px) {
  .call-num { display: none; }
  .call-word { display: inline; }
}
@media (max-width: 389px) {
  .call-btn { gap: 6px; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 349px) {
  .call-word { display: none; }
  .call-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }

/* ---------- подборка по запросу ---------- */
.reco { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.reco-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.reco-head h2 { font-size: 22px; }
.reco-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.reco-tier { display: grid; gap: 10px; }
.reco-th { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.reco-th b { font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.reco-th .muted { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reco-low .reco-th { border-bottom-color: var(--line-2); }
.reco-mid .reco-th { border-bottom-color: var(--ink-3); }
.mini { display: grid; gap: 10px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.mini-name { text-decoration: none; font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.mini-name:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.mini-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.mini-price { font-size: 16px; font-variant-numeric: tabular-nums; }
.mini .btn { justify-self: start; }
.mini .btn svg { width: 17px; height: 17px; }
.mini .prow-incart { margin: 0; }
.reco-more { font-size: 13px; }

/* Подборки к товару: «С этим товаром покупают», «Ещё в узле» */
.pp-more { margin-top: 36px; }
.pp-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.pp-more-head .list-h { margin: 0; }
.pp-more-link { font-size: 14px; color: var(--ink-2); }
.pp-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pp-strip .mini { align-content: space-between; }
/* Восемь карточек — ровно 4 + 4 на компьютере, по две на планшете, лентой на телефоне */
.hits-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hits-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Скидка на залежавшееся: старая цена зачёркнута, «−N%» красным */
/* фото с сайта поставщика — подпись под галереей */
.gal-credit { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.sale-tag { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sale-tag s { color: var(--ink-3); font-weight: 400; }
.sale-tag b, .sale-pct { color: var(--bad); font-weight: 700; }
.prow-price .sale-tag { display: flex; justify-content: flex-end; margin: 2px 0 0; }
.buybox-sale { display: grid; gap: 4px; margin: -4px 0 0; font-size: 14px; color: var(--ink-2); }
.buybox-sale .sale-tag { margin: 0; font-size: 16px; }
.buybar-info .sale-pct { font-family: var(--f-body); font-size: 14px; }
@media (max-width: 720px) {
  /* На телефоне — лента, которую листают пальцем */
  .pp-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 280px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 2px 16px 8px;
  }
  .pp-strip .mini { scroll-snap-align: start; }
}
.recent-q { margin: 14px 0 0; }

/* ---------- физлицо / юрлицо ---------- */
.seg-radio label { position: relative; display: grid; }
.seg-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-radio span { display: grid; place-items: center; min-height: 38px; padding: 6px 10px; border-radius: 5px; color: var(--ink-2); font: 500 14px/1.2 var(--f-body); text-align: center; }
.seg-radio label:hover input:not(:checked) + span { color: var(--ink); background: var(--milk); }
.seg-radio input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.kind-fields { display: grid; gap: 14px; }

/* ---------- коммерческие предложения ---------- */
.acc-main { display: grid; gap: 28px; align-content: start; min-width: 0; }
.kp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 10px; }
.kp-head .list-h { margin: 0; }
.kp-form { display: grid; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.kp-pick, .kp-actions label { justify-self: start; cursor: pointer; }
.kp-pick svg, .kp-actions svg { width: 18px; height: 18px; }
.kp-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.kp-chosen:empty { display: none; }
.ocard .kp-file, .kp-file { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; }
.kp-file a { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.kp-file .muted { font-size: 12.5px; }
.kp-file .icon-btn { width: 30px; height: 30px; margin-left: auto; }
.kp-card h2 { font-size: 17px; }
.kp-comment { padding: 10px 12px; background: var(--milk); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.kp-answer { display: grid; gap: 6px; padding: 12px 14px; background: var(--ok-bg); border-radius: var(--r-sm); }
.kp-answer .label { color: var(--ok); }
.kp-note { font-size: 14px; color: var(--ink-2); }
.kp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ostatus.kp-answered { background: var(--ok-bg); color: var(--ok); }
.ostatus.kp-new, .ostatus.kp-updated { background: var(--low-bg); color: var(--low); }

/* ---------- миниатюры: фото из 1С или значок раздела ---------- */
.thumb {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--milk); color: var(--ink-3);
  transition: border-color .15s;
}
.thumb.has-img { background: #fff; } /* фото деталей обычно на белом фоне */
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thumb-sm { width: 40px; height: 40px; }
.thumb-sm .cat-ico { width: 20px; height: 20px; }
.mini-head { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: inherit; }
.mini-head:hover .mini-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.mini-name .num { font-size: 13.5px; }

/* ---------- подсветка совпадения с запросом ---------- */
mark.hl { background: color-mix(in srgb, var(--ink) 12%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; margin: 0 -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- страница товара на телефоне: цена и «В корзину» внизу экрана ---------- */
.buybar { display: none; }
@media (max-width: 900px) {
  .pp-page { padding-bottom: 76px; }
  .buybar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; z-index: 29; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 18px rgb(0 0 0 / 0.06);
  }
  .buybar-info { display: grid; justify-items: start; gap: 4px; min-width: 0; }
  .buybar-info b { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .buybar .stock { font-size: 12px; }
  .buybar .btn { flex: none; height: 46px; padding: 0 18px; gap: 8px; }
  .buybar .btn svg { width: 19px; height: 19px; }
  .has-buybar .toast { bottom: calc(88px + var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .buybar:not([hidden]) { animation: buybar-in .18s ease-out; }
  @keyframes buybar-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- «Моя техника» ---------- */
.family li { display: flex; align-items: center; gap: 4px; }
.family li a { flex: 1; min-width: 0; }
.family li.is-mine a { color: var(--ink); font-weight: 600; }
/* «схема» рядом с моделью — к чертёжному листу этой техники */
.family li .fam-sch { flex: none; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.family li .fam-sch:hover, .family li .fam-sch:focus-visible { color: var(--ink); border-color: var(--ink-2); }
.family li.is-mine .fam-sch { font-weight: 600; }
@media (max-width: 720px) { .family li .fam-sch { padding: 0 4px; font-size: 11.5px; } }
.mt-toggle {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; margin-right: -6px; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--line-2); cursor: pointer; transition: color .15s, background-color .15s;
}
.mt-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.mt-toggle:hover { color: var(--ink-2); background: var(--sand); }
.mt-toggle[aria-pressed="true"] { color: var(--ink); }
.mt-toggle[aria-pressed="true"] svg { fill: currentColor; }
.mt-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.mt-hint { display: flex; align-items: center; gap: 8px; margin: -10px 0 20px; font-size: 14px; color: var(--ink-2); }
.mt-hint svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.mytech { padding-block: 32px 8px; }
.mt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.mt-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.mt-card:hover { border-color: var(--ink); }
.mt-card svg { grid-row: 1 / 3; width: 34px; height: 34px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mt-name { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.mt-cnt { font-size: 13.5px; color: var(--ink-3); }
.mt-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

.mt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.mt-chips-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-right: 2px; }
.mt-chips-label svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.prow-meta .is-mine { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--ink); }
.prow-meta .is-mine svg { width: 12px; height: 12px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.fits-mine { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); }
.fits-mine svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fits-mine b { font-weight: 600; }
.chip.is-mine { border-color: var(--ink); font-weight: 600; }
.chip.is-mine svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.mt-edit .chips { margin-bottom: 2px; }
.chip-rm { padding-right: 4px; gap: 2px; }
.chip-rm a { color: inherit; text-decoration: none; }
.chip-rm button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--ink-3); cursor: pointer; }
.chip-rm button:hover { background: var(--sand); color: var(--bad); }
.chip-rm button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 900px) {
  .mytech { padding-block: 24px 0; }
  .mt-hint { margin-top: -12px; font-size: 13.5px; }
}

/* Телефон, покупатель вошёл: рядом с логотипом значок с инициалами — экономим место, чтобы шапка осталась в одну строку */
@media (max-width: 420px) {
  .top-row:has(.logo-user:not([hidden])) .logo-caret { display: none; }
  .top-row:has(.logo-user:not([hidden])) .logo { gap: 8px; }
  .top-row:has(.logo-user:not([hidden])) .head-contacts .copy-contact > svg:first-child { display: none; }
}

/* ---------- «Перезвоните мне»: окно по центру, на телефоне — снизу экрана ---------- */
:root:has(dialog.sheet[open]) { overflow: hidden; }
.sheet {
  width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / 0.25); overflow: auto;
}
.sheet::backdrop { background: rgb(20 21 22 / 0.55); }
.sheet-body { position: relative; display: grid; gap: 14px; padding: 24px; }
/* Адрес — ссылка на карточку магазина в картах */
.addr-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.addr-link:hover { text-decoration-color: currentColor; }
.addr-link svg { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; color: var(--ink-3); }
.map-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.map-choice + .copy-inline { justify-self: start; }
.sheet-body h2 { font-size: 22px; padding-right: 44px; }
.sheet-body > .muted { margin: -4px 0 0; }
.sheet-x, .hose-rm {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
}
.sheet-x:hover, .hose-rm:hover { background: var(--sand); color: var(--ink); }
.sheet-x svg, .hose-rm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-about { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--milk); font-size: 14px; }
@media (max-width: 519px) {
  .sheet { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
  .sheet-body { padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
}
.pp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; }

/* ---------- «Как добраться» ---------- */
.route { display: grid; gap: 12px; justify-items: start; }
.route-addr { margin: 0; line-height: 1.55; }
.route-state { font-weight: 600; color: var(--low); }
.route-state.is-open { color: var(--ok); }
.route-how { margin: 0; color: var(--ink-2); font-size: 14px; }
.route-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.route .copy-inline { margin-left: -9px; color: var(--ink-2); }
.prose .route { margin-top: 10px; }
.done-route { width: 100%; display: grid; gap: 12px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.done-route h2 { font-size: 18px; }

/* ---------- РВД по размерам ---------- */
.rvd-page .checkout { position: static; }
.rvd-tip { display: grid; gap: 14px; max-width: 58ch; margin-top: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.rvd-tip > p { margin: 0; }
.rvd-cta { margin-bottom: 18px; }
.hoses { display: grid; gap: 12px; }
.hose { position: relative; min-width: 0; margin: 0; padding: 14px; display: grid; gap: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.hose legend { padding: 0 6px; margin-left: -6px; font-size: 14px; font-weight: 700; }
.hose-rm { top: 2px; right: 4px; width: 36px; height: 36px; }
.hose-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-form > [data-act="hose-add"] { justify-self: start; }
.rvd-jump { display: none; }
@media (max-width: 900px) { .rvd-jump { display: inline-flex; margin-top: 16px; } }
.rvd-page [data-form="rvd"] { scroll-margin-top: calc(var(--head-h) + 12px); }
.done b.num { white-space: nowrap; }

/* ---------- уведомления на телефон и страница «Приложение» (/app) ---------- */
.notify { display: grid; gap: 6px; justify-items: start; margin-top: 4px; }
.notify-btn { white-space: normal; text-align: left; height: auto; min-height: 44px; padding-block: 10px; }
.notify-note { font-size: 13px; }
.notify-text { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.notify-text svg, .app-ok svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notify-text.is-on, .app-ok { color: var(--ok); }
.notify-text.is-on a { color: var(--ink-2); }
.obell { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.obell[hidden] { display: none; }
.obell svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ocard-head .ostatus { margin-left: auto; }
.ocard-head .ostatus + .obell { margin-left: -8px; }

.app-page { max-width: 760px; }
.app-hero { display: flex; gap: 18px; align-items: center; }
.app-hero img { width: 64px; height: 64px; flex: none; border-radius: 15px; box-shadow: var(--shadow); }
.app-perks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.app-perks li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.45; }
.app-perks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 10px; height: 10px; border-radius: 2px 10px; background: #6fae4a; transform: rotate(-12deg); }
.app-perks b { color: var(--ink); font-weight: 600; }
.app-sec { margin-top: 18px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 12px; justify-items: start; }
.app-sec h2 { font-size: 18px; }
.app-sec p { line-height: 1.5; }
.app-sec .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 10px; text-align: left; }
.app-ok { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.app-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; color: var(--ink-2); }
.app-steps li::marker { color: var(--ink); font-weight: 700; }
.app-steps b { color: var(--ink); }
.share-ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: #2f7bf5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-consent { align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.app-consent input { margin-top: 2px; flex: none; }
.app-legal { margin-top: 22px; font-size: 13px; line-height: 1.5; }
@media (max-width: 519px) {
  .app-hero { align-items: flex-start; gap: 14px; }
  .app-hero img { width: 52px; height: 52px; border-radius: 12px; }
  .app-sec { padding: 16px; }
  .app-sec .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ---------- Карточка в подборках: номер — первой строкой и крупно, под ним короткое название (06.11.2026) ---------- */
.mini-text { display: grid; gap: 3px; min-width: 0; }
.mini-num { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.mini-text .mini-name { font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.mini .thumb-sm { width: 52px; height: 52px; }
.mini .thumb-sm .cat-ico { width: 24px; height: 24px; }

/* ---------- Пока витрина загружается: заготовка страницы вместо пустого экрана ----------
   Сервер вставил в страницу её текст — его и видно; не вставил (главная) — серые плашки на месте заголовка и строки поиска */
#main:empty { min-height: 70vh; }
#main:empty::before {
  content: ''; display: block; max-width: var(--wrap); height: 300px; margin: 32px auto 0;
  --sk: color-mix(in srgb, var(--line) 70%, transparent);
  background:
    linear-gradient(var(--sk) 0 0) 16px 0 / min(240px, 55%) 12px no-repeat,
    linear-gradient(var(--sk) 0 0) 16px 30px / min(460px, 78%) 40px no-repeat,
    linear-gradient(var(--sk) 0 0) 16px 82px / min(360px, 60%) 40px no-repeat,
    linear-gradient(var(--sk) 0 0) 16px 152px / min(620px, calc(100% - 32px)) 56px no-repeat,
    linear-gradient(var(--sk) 0 0) 16px 228px / min(540px, 82%) 12px no-repeat,
    linear-gradient(var(--sk) 0 0) 16px 256px / min(320px, 58%) 30px no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  #main:empty::before { animation: sk-pulse 1.4s ease-in-out infinite; }
}
@keyframes sk-pulse { 50% { opacity: .45; } }

/* ---------- Движение: только при обычных настройках телефона; «Уменьшить движение» — всё сразу и без анимации ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Новая страница проявляется (только прозрачность — без сдвига, чтобы не трогать закреплённые элементы) */
  #main.page-in { animation: page-in .2s ease-out; }
  /* Блоки ниже экрана поднимаются, когда до них докрутят (класс ставит app.js: revealBelow) */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
  /* Счётчик корзины подпрыгивает, когда добавили деталь */
  .badge.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
  /* Лист в логотипе покачивается при открытии сайта и при наведении */
  .logo-mark .leaf { transform-origin: 16px 22px; animation: leaf-sway 1.3s ease-in-out .25s 1 both; }
  .brand a:hover .logo-mark .leaf { animation: leaf-sway 1.1s ease-in-out; }
}
@keyframes page-in { from { opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes leaf-sway { 30% { transform: rotate(-7deg); } 62% { transform: rotate(4deg); } 85% { transform: rotate(-1.5deg); } }

/* ---------- Из списка в карточку детали: фото и номер «перетекают» (View Transitions, app.js: morphTo) ---------- */
.pp .gal-slide:first-child img, .pp .ph.is-empty .ph-plate { view-transition-name: pp-photo; }
.pp .pp-num > .num { view-transition-name: pp-num; }
::view-transition-group(pp-photo), ::view-transition-group(pp-num) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-old(pp-photo), ::view-transition-new(pp-photo) { height: 100%; object-fit: contain; }

/* ---------- Схема трактора — чертёжный лист (public/tractor.js, страница /scheme) ----------
   Светлая тема — синие линии на белом, как на чертеже; тёмная — «синька»: светлые линии на тёмно-синем */
.tr {
  --tr-paper: #fdfdfb; --tr-ink: #1f3fb4; --tr-thin: #6178c8; --tr-fill: #ffffff; --tr-hover: #e7edff;
  --tr-on-fill: #d8edc9; --tr-on-ink: #3f7d22; --tr-glass: #eef3ff;
  display: block; width: 100%; height: auto; overflow: visible; font-family: 'Golos Text', system-ui, sans-serif;
}
:root[data-theme="dark"] .tr { --tr-paper: #0e1a36; --tr-ink: #a9c4ff; --tr-thin: #6f8bd2; --tr-fill: #10204a; --tr-hover: #1b2f63; --tr-on-fill: #284a1f; --tr-on-ink: #a4dc7f; --tr-glass: #15285a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tr { --tr-paper: #0e1a36; --tr-ink: #a9c4ff; --tr-thin: #6f8bd2; --tr-fill: #10204a; --tr-hover: #1b2f63; --tr-on-fill: #284a1f; --tr-on-ink: #a4dc7f; --tr-glass: #15285a; }
}
.tr .tr-paper { fill: var(--tr-paper); }
.tr text { fill: var(--tr-ink); font-style: italic; }
.tr .tr-frame-box, .tr .tr-frame-thin, .tr .tr-cell { fill: none; stroke: var(--tr-ink); }
.tr .tr-frame-box { stroke-width: 1.6; }
.tr .tr-frame-main { stroke-width: 2.4; }
.tr .tr-frame-thin, .tr .tr-cell { stroke-width: .8; }
.tr .tr-head { fill: color-mix(in srgb, var(--tr-ink) 7%, transparent); }
.tr .tr-title { font-weight: 600; }
.tr .tr-note { fill: var(--tr-thin); }
/* Детали трактора: контур — основной линией, заливка — бумагой (перекрывает то, что сзади) */
.tr .tr-z path, .tr .tr-z rect, .tr .tr-z circle, .tr .tr-z ellipse {
  fill: var(--tr-fill); stroke: var(--tr-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  transition: fill .2s, stroke .2s;
}
.tr .tr-z { transition: opacity .25s; }
.tr .tr-thin, .tr .tr-z .tr-thin { fill: none; stroke: var(--tr-thin); stroke-width: .9; }
.tr .tr-z .tr-glass { fill: var(--tr-glass); fill-opacity: .6; stroke: var(--tr-thin); }
.tr .tr-z .tr-hole { fill: var(--tr-paper); }
/* Кабина изнутри — видна в окна и в открытую дверь; подножка — одними линиями */
.tr .tr-inside { fill: color-mix(in srgb, var(--tr-ink) 8%, var(--tr-fill)); stroke: none; }
.tr .tr-line { fill: none; stroke: var(--tr-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tr .tr-z .tr-rim { fill: var(--tr-fill); }
.tr .tr-hub { fill: var(--tr-fill); stroke: var(--tr-ink); stroke-width: 1.2; }
.tr .tr-axis { fill: none; stroke: var(--tr-thin); stroke-width: .8; stroke-dasharray: 18 4 3 4; }
.tr .tr-ground { stroke: var(--tr-ink); stroke-width: 1.6; }
.tr .tr-hatch { stroke: var(--tr-thin); stroke-width: 1; }
.tr .tr-dim { fill: none; stroke: var(--tr-thin); stroke-width: .8; }
.tr .tr-arrow { fill: var(--tr-thin); }
.tr .tr-dimtext { fill: var(--tr-ink); }
/* Номера позиций: выноска с точкой, номер над полкой */
.tr .tr-leader { fill: none; stroke: var(--tr-ink); stroke-width: .9; }
.tr .tr-dot { fill: var(--tr-ink); }
.tr .tr-hit { fill: transparent; }
.tr .tr-pos { font-weight: 500; }
/* Наведение и выбор: деталь, номер позиции, строка спецификации */
.tr:not(.tr-mini) [data-zone] { cursor: pointer; }
.tr:not(.tr-mini) .tr-z:hover path, .tr:not(.tr-mini) .tr-z:hover rect, .tr:not(.tr-mini) .tr-z:hover circle, .tr:not(.tr-mini) .tr-z:hover ellipse { fill: var(--tr-hover); }
.tr .tr-tag:hover .tr-pos, .tr .tr-row:hover text { font-weight: 700; }
.tr .tr-row:hover .tr-cell { fill: var(--tr-hover); }
.tr .tr-z.is-on path, .tr .tr-z.is-on rect, .tr .tr-z.is-on circle, .tr .tr-z.is-on ellipse { fill: var(--tr-on-fill); stroke: var(--tr-on-ink); stroke-width: 2.2; }
.tr .tr-z.is-on .tr-thin { fill: none; stroke: var(--tr-on-ink); }
.tr .tr-tag.is-on .tr-leader { stroke: var(--tr-on-ink); stroke-width: 1.8; }
.tr .tr-tag.is-on .tr-dot { fill: var(--tr-on-ink); }
.tr .tr-tag.is-on .tr-pos, .tr .tr-row.is-on text { fill: var(--tr-on-ink); font-weight: 700; }
.tr .tr-row.is-on .tr-cell { fill: var(--tr-on-fill); }
.tr.tr-has-on .tr-z:not(.is-on) { opacity: .5; }
.tr .tr-tag.is-empty, .tr .tr-row.is-empty { opacity: .45; cursor: default; }
.tr:not(.tr-mini) .tr-z.is-empty { cursor: default; }
.tr-mini { pointer-events: none; }
/* Что «открывается»: капот с облицовкой поднимается и становится прозрачным (под ним радиатор, бак, головка двигателя),
   дверь распахивается, колесо становится прозрачным, у вентилятора «бегут» лопасти (он виден с ребра) */
.tr .tr-hood { transform-box: fill-box; transform-origin: 100% 0; transition: transform .7s cubic-bezier(.3, .8, .2, 1), opacity .5s; }
.tr.tr-open-hood .tr-hood { transform: rotate(8deg); opacity: .25; }
.tr .tr-door { transform-box: fill-box; transform-origin: 0 50%; transition: transform .7s cubic-bezier(.3, .8, .2, 1); }
.tr.tr-open-door .tr-door { transform: skewY(-9deg) scaleX(.26); }
.tr .tr-wheel-rear, .tr .tr-wheel-front { transition: opacity .4s; }
.tr.tr-open-rear .tr-wheel-rear, .tr.tr-open-front .tr-wheel-front { opacity: .22; }
.tr .tr-z .tr-fan ellipse { stroke-dasharray: 7 5; }
@media (prefers-reduced-motion: no-preference) {
  .tr.tr-spin .tr-fan ellipse { animation: tr-fan .45s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .tr .tr-hood, .tr .tr-door, .tr .tr-wheel-rear, .tr .tr-wheel-front, .tr .tr-z, .tr .tr-z * { transition: none; }
}
@keyframes tr-fan { to { stroke-dashoffset: -12; } }

/* Страница схемы */
.scheme-page .page-sub { max-width: 760px; }
.sc-models { margin: 4px 0 14px; }
.sc-others { margin: -6px 0 14px; font-size: 14.5px; }
.chip.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sc-fig { margin: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.sc-2d .tr:focus { outline: none; }
.sc-2d .tr [tabindex]:focus-visible { outline: 2px solid #6fae4a; outline-offset: 2px; }
.sc-cap { margin-top: 6px; min-height: 1.5em; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.sc-cap b { color: var(--ink); }
.sc-cap a { margin-left: 6px; }
.sc-side-h { margin: 0 0 10px; font-size: 15px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sc-side { margin-top: 16px; }
.sc-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.sc-node > span { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; }
.sc-node .sc-pos { font-style: italic; font-weight: 600; color: var(--ink-3); }
/* На компьютере узлы — в спецификации на самом листе; список кнопками — для телефона */
@media (min-width: 721px) { .sc-side { display: none; } }
.sc-node {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px;
  text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.sc-node b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.sc-node:hover:not(:disabled) { border-color: var(--line-2); background: var(--sand); }
.sc-node[aria-pressed="true"] { border-color: #4e8a30; background: color-mix(in srgb, #6fae4a 22%, var(--paper)); }
.sc-node[aria-pressed="true"] b { color: var(--ink); }
.sc-node:disabled { opacity: .5; cursor: default; }
.sc-parts { margin-top: 22px; scroll-margin-top: calc(var(--head-h, 70px) + 12px); }
.sc-parts:empty { display: none; }
.sc-all { margin-top: 12px; }
@media (max-width: 720px) {
  .sc-nodes { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sc-fig { padding: 8px 4px 8px; }
  .sc-node { font-size: 13.5px; padding: 8px 10px; }
}

/* Где стоит на тракторе — на странице детали */
.pp-where-fig { display: block; max-width: 420px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.pp-where-fig:hover { border-color: var(--line-2); }
.pp-where p { margin: 8px 0 0; }

/* Вход в схему на главной */
.scheme-cta {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 16px; padding: 12px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; transition: border-color .15s;
}
.scheme-cta:hover { border-color: var(--line-2); }
.scheme-cta-text { display: grid; gap: 2px; }
.scheme-cta-text b { font-size: 17px; }
.scheme-cta-text span { color: var(--ink-2); font-size: 14.5px; }
.scheme-cta-go { font-size: 22px; color: var(--ink-3); }
@media (max-width: 560px) {
  .scheme-cta { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 12px; }
  .scheme-cta-go { display: none; }
}
.find-scheme { margin: 4px 0 0; font-size: 14.5px; }

/* ---------- Доработка вида по идеям motionsites.ai (08.11.2026): Cordex, Arceage Stats, Freight Services ----------
   Только CSS и пара строк в app.js — без видео, картинок и библиотек: мобильный интернет в поле слабый */
:root { --leaf: #6fae4a; } /* зелёный листа из логотипа; одинаков в светлой и тёмной теме */

/* Короткая зелёная черта перед мелкими подписями капсом — как метки характеристик у Cordex */
.eyebrow::before, .pp-sec h2::before, .foot-h::before, .stat-label::before {
  content: ""; display: inline-block; width: 3px; height: .95em; margin-right: 9px; border-radius: 2px;
  background: var(--leaf); vertical-align: -0.12em;
}

/* «Склад в цифрах» внизу главной — крупные цифры из выгрузки 1С (Arceage Stats); app.js набегает их от нуля (countUp) */
.stats {
  list-style: none; margin: 0 0 34px; padding: 0 0 30px; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 32px;
}
.stat-num { display: block; font: 800 clamp(34px, 4.4vw, 52px)/1 var(--f-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-label { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; }
@media (max-width: 519px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } }

/* Название магазина крупно и бледно внизу подвала (Freight Services, «гигантские буквы») */
.foot-mark { overflow: hidden; margin-top: 22px; }
.foot-mark span {
  display: block; font: 800 clamp(58px, 15.5vw, 168px)/.92 var(--f-display); letter-spacing: -0.05em; white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 7%, var(--paper)); user-select: none; -webkit-user-select: none;
}

.bigsearch-row { transition: box-shadow .2s, border-color .2s; }

@media (prefers-reduced-motion: no-preference) {
  /* Заголовок главной проявляется по словам — один раз, при первом открытии (app.js: words-in) */
  .words-in .w { display: inline-block; animation: word-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 80ms + 60ms); }
  /* Карточки в докрученном блоке поднимаются по очереди (app.js: revealBelow ставит --i) */
  .reveal.is-in :is(.pp-strip, .mt-cards, .families, .group-tiles, .services, .articles, .stats, .facts) > * {
    animation: card-in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms);
  }
  /* Нажатие видно сразу: кнопка и плитка чуть «проседают» под пальцем */
  .btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s; }
  .chip { transition: border-color .15s, transform .12s; }
  .btn:active:not([disabled]), .chip:active { transform: scale(.97); }
  .group-tile:active, .mt-card:active, .article-card:active, a.service:active { transform: scale(.985); }
}
/* Мышью: карточка приподнимается, значок раздела чуть поворачивается */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mini, .group-tile, .article-card, a.service, .mt-card { transition: border-color .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
  .mini:hover, .group-tile:hover, .article-card:hover, a.service:hover, .mt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .group-tile .cat-ico, .mt-card svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .group-tile:hover .cat-ico, .mt-card:hover svg { transform: rotate(-8deg) scale(1.08); }
}
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(6px); } }
@keyframes card-in { from { opacity: 0; translate: 0 16px; } }

/* На печати блоки, до которых не докрутили, всё равно видны */
@media print {
  .reveal, .reveal * { opacity: 1 !important; transform: none !important; translate: none !important; animation: none !important; }
}

/* ---------- Живой фон блока с поиском: поле под небом «как сейчас за окном» (08.11.2026, по образцу Seed Ark с motionsites.ai) ----------
   Рисует app.js (startHeroScene): небо, солнце, звёзды, горы и дальнее поле — .hs-sky, облака — .hs-clouds (холст вдвое шире,
   плывёт средствами CSS), колышущаяся трава — .hs-grass. По краям — лёгкое размытие (.hs-edge), под текстом слева — дымка (.hs-haze).
   Ни .hero, ни .hero-bg не создают общий слой для содержимого: подсказки поиска остаются поверх следующих блоков */
.hero { position: relative; padding-bottom: clamp(220px, 28vh, 290px); } /* внизу — поле с трактором и фермером */
.hero-grid { position: relative; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--milk); }
.hero-bg canvas, .hs-clouds, .hs-haze, .hs-fade, .hs-edge { position: absolute; display: block; }
.hs-sky { inset: 0; width: 100%; height: 100%; }
.hs-clouds { left: 0; top: 0; width: 200%; height: var(--hz, 60%); }
.hs-clouds canvas { inset: 0; width: 100%; height: 100%; }
.hs-grass { left: 0; top: var(--gt, 60%); width: 100%; height: calc(100% - var(--gt, 60%)); }
/* Дымка под текстом: на компьютере — слева, где текст; на телефоне — над всем небом */
.hs-haze { inset: 0; background: linear-gradient(90deg, var(--haze, transparent) 0%, var(--haze, transparent) 26%, transparent 62%); }
/* Плавный переход: поле внизу растворяется в белом фоне следующего блока, граница между ними не видна */
.hs-fade { left: 0; right: 0; bottom: 0; height: calc(clamp(80px, 12vh, 120px) * var(--fade-k, 1)); /* ночью короче (app.js) */
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--paper) 30%, transparent) 35%, color-mix(in srgb, var(--paper) 78%, transparent) 70%, var(--paper) 100%); }
.hero + .band-paper { border-top-color: transparent; }
/* Лёгкое размытие по краям, где фон касается экрана, шапки и следующего блока */
.hs-edge { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs-l, .hs-r { top: 0; bottom: 0; width: clamp(24px, 5vw, 90px); }
.hs-l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.hs-r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }
.hs-t, .hs-b { left: 0; right: 0; }
.hs-t { top: 0; height: 30px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.hs-b { bottom: 0; height: 44px; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
@media (max-width: 900px) {
  .hero { padding-bottom: 210px; }
  .hero .photo-cta-inline { margin-bottom: 64px; } /* под карточкой — окошко в поле: горизонт с хутором */
  .hs-haze { background: linear-gradient(180deg, var(--haze, transparent) 0, var(--haze, transparent) var(--hz, 60%), transparent calc(var(--hz, 60%) + 40px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .hs-clouds { animation: hs-drift 180s linear infinite; }
}
@keyframes hs-drift { to { transform: translateX(-50%); } }
/* Цвет текста на небе: днём и вечером тёмный, в сумерках и ночью светлый — в любой теме сайта */
@media screen {
  .hero[data-sky] .eyebrow, .hero[data-sky] .examples > span, .hero[data-sky] .sync { color: #3a3d40; }
  .hero[data-sky] h1 { color: #1d1f21; }
  .hero[data-sky] .hint { color: #2e3134; }
  .hero[data-sky="dark"] .eyebrow, .hero[data-sky="dark"] .examples > span, .hero[data-sky="dark"] .sync { color: #dcd9d2; }
  .hero[data-sky="dark"] h1 { color: #fbfaf7; }
  .hero[data-sky="dark"] .hint { color: #ebe8e1; }
  .hero[data-sky="dark"] :is(h1, .hint, .sync, .eyebrow, .examples > span) { text-shadow: 0 1px 3px rgb(0 0 0 / .35); }
  .hero[data-sky] .photo-cta { background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-style: solid; border-color: var(--line); }
}
@media print { .hero-bg { display: none; } .hero { padding-bottom: 24px; } }

/* ---------- Ещё идеи с motionsites.ai (08.11.2026, «Реализуй 1–7» владельца) ---------- */

/* 1. Заготовки, пока ждём ответ: серые строки на месте результатов поиска, проверки списка, цены в карточке детали */
.sk { display: block; border-radius: 6px; background: color-mix(in srgb, var(--line) 80%, transparent); }
.sk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 80px 200px; gap: 12px 16px; align-items: center; padding: 14px 18px; }
.sk-list { margin-top: 18px; }
.sk-row + .sk-row { border-top: 1px solid var(--line); }
.sk-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); }
.sk-text { display: grid; gap: 9px; }
.sk-l1 { height: 15px; width: 38%; }
.sk-l2 { height: 12px; width: 72%; }
.sk-stock { height: 24px; border-radius: 999px; }
.sk-price { height: 18px; }
.sk-btn { height: 42px; border-radius: var(--r-sm); }
.sk-buy { display: grid; gap: 14px; margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.sk-price-lg { height: 34px; width: 46%; }
@media (max-width: 720px) {
  .sk-row { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
  .sk-thumb { width: 48px; height: 48px; }
  .sk-stock, .sk-price { display: none; }
  .sk-btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .sk {
    background: linear-gradient(100deg, color-mix(in srgb, var(--line) 80%, transparent) 30%, color-mix(in srgb, var(--line) 35%, transparent) 50%, color-mix(in srgb, var(--line) 80%, transparent) 70%) 0 0 / 300% 100%;
    animation: sk-shine 1.4s linear infinite;
  }
}
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 2. «Полёт в корзину»: копия фото детали летит к значку корзины (app.js: flyToCart) */
.fly { position: fixed; z-index: 95; margin: 0; pointer-events: none; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--shadow); background: var(--paper); overflow: hidden; }

/* 3. Ход заказа шагами (app.js: orderSteps) */
.osteps { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.osteps::before, .osteps::after { content: ""; position: absolute; top: 6px; left: 12.5%; height: 2px; border-radius: 2px; }
.osteps::before { right: 12.5%; background: var(--line); }
.osteps::after { width: calc(75% * var(--at) / 3); background: var(--ok); transform-origin: left center; }
.osteps li { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; z-index: 1; }
.osteps i { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); box-sizing: border-box; }
.osteps .is-done i { background: var(--ok); border-color: var(--ok); }
.osteps .is-now i { border-color: var(--ok); background: var(--paper); box-shadow: 0 0 0 4px var(--ok-bg); }
.osteps .is-done span { color: var(--ink-2); }
.osteps .is-now span { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .osteps::after { animation: osteps-fill .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .osteps .is-now i { animation: osteps-pulse 2.2s ease-in-out 1s infinite; }
}
@keyframes osteps-fill { from { transform: scaleX(0); } }
@keyframes osteps-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok-bg) 30%, transparent); } }

/* 4. Вопросы и ответы: плавное раскрытие (где браузер умеет — Chrome; иначе просто открывается), плюс превращается в крестик */
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.band-paper .faq-item { background: var(--milk); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font: 700 16px/1.35 var(--f-display); color: var(--ink); border-radius: var(--r); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2);
  background: linear-gradient(currentColor 0 0) center / 11px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 11px no-repeat;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover::after { color: var(--ink); }
.faq-a { display: grid; gap: 10px; justify-items: start; padding: 0 20px 18px; color: var(--ink-2); max-width: 72ch; }
.faq-a a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.faq-a a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item[open] .faq-a { animation: faq-in .35s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .32s cubic-bezier(.2, .7, .2, 1), content-visibility .32s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* 7. Значки разделов и техники «рисуются» линией, когда до блока докрутили (app.js: revealBelow) */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-in .draw * { animation: draw-line 1.1s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 55ms + 220ms); }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@media print { .draw * { stroke-dashoffset: 0 !important; } }

.prow-buy .btn.is-added svg { display: none; } /* «Добавлено» не шире «В корзину» — не наезжает на цену */

/* ---------- окно о cookie (Яндекс Метрика, 10.11.2026) ----------
   Коротко и внизу экрана, не закрывает сайт: пока не ответили, пользоваться им можно. На телефоне — над нижним меню и над полосой «В корзину» */
.stat-ask {
  position: fixed; z-index: 55; left: 16px; bottom: calc(16px + var(--tab-h) + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4;
}
.stat-ask p { flex: 1 1 200px; margin: 0; color: var(--ink-2); }
.stat-ask p a { color: var(--ink-2); }
.stat-btns { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.stat-btns .link-btn { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) {
  .has-buybar .stat-ask { bottom: calc(88px + var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
}
@media print { .stat-ask { display: none; } }
