/* Вид сайта: вариант 1 макета. Чёрная лента поиска на каждой странице; номер детали на жёлтой бирке вместо
   фото; скосы и косые полосы взяты из знака и надписи логотипа. Шрифты свои: адрес посетителя никуда не уходит. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/onest-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/onest-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #0d0e0f;
  --black: #000;
  --paper: #fff;
  --ground: #e9ebec;
  --line: #d0d3d5;
  --muted: #565c62;
  --on-black: #b9bdc1;
  --red: #E3000F;
  --red-d: #b6000c;
  --yellow: #F9DF43;
  --yellow-soft: #fdf5bd;
  --b-svet: var(--yellow);
  --focus: #1f3fbf;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }   /* фокус и переход по якорю не прячутся под чёрной лентой */
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--text); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.012em; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.band :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.band .sug :focus-visible { outline-color: var(--focus); outline-offset: -3px; background: var(--yellow-soft); }
.band .sug a.s-all:focus-visible { background: var(--red); outline-color: #fff; }
input:placeholder-shown { text-overflow: ellipsis; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Пометка только для местного запуска: на сервере её нет */
.stub { display: inline-block; padding: 0 6px; font: 600 11px/18px var(--text); color: var(--paper); background: var(--focus); white-space: nowrap; }

/* Шапка */
.top { background: var(--paper); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-block: 10px; }
.logo { display: block; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; }
.citybtn { padding: 4px 0; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.citybtn:hover { color: var(--red); }
.brk { display: none; flex-basis: 100%; height: 0; }
.spacer { margin-left: auto; }
.phone { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 17px; white-space: nowrap; text-decoration: none; }
.phone:hover { color: var(--red); }
.toplink { font-size: 15px; text-decoration: none; }
.toplink:hover { text-decoration: underline; }
.basket { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; padding: 8px 14px; font-weight: 600; font-size: 15px; }
.basket:hover { background: var(--red); }
.basket i { font: 700 13px/20px var(--mono); min-width: 20px; text-align: center; background: var(--yellow); color: #000; padding: 0 4px; }

/* Лента поиска */
.band { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--black); }
.sform { display: flex; padding-block: 10px; }
.sbox { position: relative; flex: 1; min-width: 0; }
.sbox input { width: 100%; height: 52px; border: 0; background: #fff; color: var(--ink); padding: 0 14px; font-size: 18px; font-weight: 500; border-radius: 0; }
.sbox input::placeholder { color: #71767c; font-weight: 400; }
.sform > button { flex: none; height: 52px; border: 0; background: var(--yellow); color: #000; padding: 0 26px; font-weight: 800; font-size: 17px; }
.sform > button:hover { background: #fff; }
.cb-btn { flex: none; display: flex; align-items: center; height: 52px; margin-left: 12px; background: var(--red); color: #fff; padding: 0 20px; font-weight: 800; font-size: 16px; white-space: nowrap; text-decoration: none; }
.cb-btn:hover { background: var(--red-d); color: #fff; }
.band-prostaya { display: flex; justify-content: flex-end; padding-block: 10px; }
.sug { position: absolute; top: 100%; left: 0; right: -1px; z-index: 50; background: #fff; color: var(--ink); max-height: min(70vh, 560px); overflow: auto; box-shadow: 0 16px 36px rgba(0, 0, 0, .4); }
.sug a { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 9px 14px; text-decoration: none; border-top: 1px solid #eceeef; }
.sug a:hover, .sug a.cur { background: var(--yellow-soft); }
.sug .s-n { font: 700 14px/1.35 var(--mono); overflow-wrap: anywhere; }
.sug .s-t { font-size: 15px; line-height: 1.3; min-width: 0; }
.sug .s-b { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sug .s-razd { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 10px 14px; background: #f4f5f6; }
.sug .s-razd a { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 3px 9px; font-size: 14px; }
/* Строка всех результатов видна всегда: иначе на телефоне её не найти под прокруткой панели. */
.sug a.s-all { display: block; position: sticky; bottom: 0; font-weight: 700; background: var(--ink); color: #fff; overflow-wrap: anywhere; }
.sug a.s-all:hover, .sug a.s-all.cur { background: var(--red); }
mark { background: var(--yellow); color: inherit; padding: 0 1px; }

/* Тонкая полоса: сайт временно упрощён */
.polosa { background: var(--yellow-soft); font-size: 14px; line-height: 1.35; }
.polosa .wrap { padding-block: 6px; }

/* Первый экран */
.hform { background: var(--paper); color: var(--ink); padding: 20px 22px 16px; min-width: 0; }
.shortform { display: grid; gap: 12px; }
.shortform h2 { font-size: 22px; font-weight: 800; line-height: 1.15; }
.hv1 { background: var(--black); color: #fff; margin-top: -1px; }
.hv1 :focus-visible { outline-color: var(--yellow); }
.hv1 .hform :focus-visible { outline-color: var(--focus); }
.hv1-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding-block: 32px 0; }
.hv1 h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; font-weight: 800; max-width: 19ch; }
.hv1-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 22px 34px; }
.hv1-cats a { background: none; border: 2px solid #fff; color: #fff; padding: 8px 15px; font-weight: 700; font-size: 16px; text-decoration: none; }
.hv1-cats a:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.hv1 .mark { position: absolute; right: 438px; bottom: 14px; height: 168px; width: auto; }
@media (max-width: 1180px) { .hv1 .mark { display: none; } }
.hv1 .hform { position: relative; z-index: 2; margin-bottom: -64px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.kat { scroll-margin-top: 84px; }

/* Секции */
main { display: block; }
.sec { padding-block: 40px; }
.sec + .sec { padding-top: 0; }
.sec > .wrap { display: grid; gap: 18px; }
.sec h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; }
.lede { max-width: 62ch; color: var(--muted); }

.goroda { background: var(--paper); padding: 18px 20px; }
.goroda-spisok { columns: 4 170px; column-gap: 20px; }
.goroda a { display: block; padding: 3px 0; text-decoration: none; break-inside: avoid; }
.goroda a:hover { color: var(--red); text-decoration: underline; }
.goroda-drugie { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.goroda-drugie summary { cursor: pointer; font-weight: 700; padding: 3px 0; }
.goroda-drugie summary:hover { color: var(--red); }
.goroda-drugie.bez-cherty { margin-top: 0; padding-top: 0; border-top: 0; }
.goroda-pusto { padding: 3px 0; color: var(--muted); }
.goroda-drugie .goroda-spisok { margin-top: 8px; }
.podzag-goroda { font-size: 24px; font-weight: 800; scroll-margin-top: 90px; }

.plate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); }
.plate > div { padding: 18px 20px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.plate > div + div { border-left: 1px solid var(--line); }
.plate .lab { font-size: 13px; color: var(--muted); }
.plate .big { font: 700 22px/1.25 var(--mono); text-decoration: none; }
.plate a.big:hover { color: var(--red); }
.plate .mid { font-weight: 600; font-size: 17px; line-height: 1.3; }
.plate .menedzher { font-size: 16px; line-height: 1.35; }
.plate .menedzher a { font-family: var(--mono); font-weight: 700; white-space: nowrap; text-decoration: none; }
.plate .menedzher a:hover, .plate .navigator:hover { color: var(--red); }
.plate .navigator { justify-self: start; margin-top: 4px; font-weight: 700; font-size: 15px; }

.marki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kat { background: var(--paper); padding: 18px 20px 8px; }
.kat h3 { font-size: 22px; font-weight: 800; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.mrow { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid #e6e8e9; }
.mrow:last-child { border-bottom: 0; }
.mname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-decoration: none; }
.mname b { font-weight: 800; font-size: 18px; }
.mname:hover b { color: var(--red); }
.mmods { display: flex; flex-wrap: wrap; gap: 1px 12px; font-size: 14px; }
.mmods a { color: var(--muted); text-decoration: none; }
.mmods a:hover { color: var(--red); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 11px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.sp { background: var(--yellow); color: #000; }
.sp-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding-block: 34px; }
.sp h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.12; }
.sp p { margin-top: 10px; max-width: 42ch; }
.sp :focus-visible { outline-color: #000; }
.sp textarea { display: block; width: 100%; min-height: 130px; border: 2px solid #000; background: #fff; padding: 10px 12px; font: 500 16px/1.5 var(--mono); resize: vertical; }
.sp-res { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.sp-res b { font-size: 16px; }
.sp-res b:empty { display: none; }
.sp-res button { order: -1; }   /* счётчик номеров появляется справа и не двигает кнопку */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 11px 18px; font-weight: 700; text-decoration: none; background: var(--ink); color: #fff; font-size: 16px; }
.btn:hover { background: var(--red); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-d); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.full { width: 100%; }
.btn.bolshaya { min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Карточка */
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; color: var(--muted); padding-block: 16px 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs span { min-width: 0; overflow-wrap: anywhere; }   /* длинный неразрывный номер в названии не должен расширять страницу */
.crumbs span::before { content: '/'; margin-right: 8px; opacity: .5; }
.cg { display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-rows: auto 1fr; gap: 22px 26px; align-items: start; padding-bottom: 48px; }
.cg-main { grid-column: 1; display: grid; gap: 22px; min-width: 0; }
.cg > .ask { grid-column: 2; grid-row: 1 / span 2; }
.cg.bez-puti { padding-top: 24px; }
.tag { --cut: 26px; background: var(--yellow); color: #000; padding: 20px 28px 26px; position: relative;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.tag-top { display: flex; align-items: center; gap: 12px; }
.tag-lab { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tag-sl { flex: 0 1 70px; height: 20px; margin-left: 2px; background: repeating-linear-gradient(120deg, #000 0 5px, transparent 5px 12px); }
.copy { margin-left: auto; margin-right: 18px; background: none; border: 2px solid #000; padding: 4px 11px; font-weight: 600; font-size: 14px; }
.copy:hover { background: #000; color: var(--yellow); }
.tag .num { font: 700 clamp(32px, 5.6vw, 66px)/1.06 var(--mono); letter-spacing: -.03em; overflow-wrap: anywhere; margin-top: 10px; user-select: all; }
.tag .num.m { font-size: clamp(26px, 3.8vw, 44px); }
.tag .num.s { font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -.01em; }
.tag h1 { font-size: clamp(21px, 2.4vw, 29px); font-weight: 700; line-height: 1.2; margin-top: 12px; max-width: 34ch; overflow-wrap: anywhere; }
.tag h1.ttl { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.1; max-width: 24ch; }
.tag h1.mal { font-size: 19px; font-weight: 600; }
.tag .tb { margin-top: 8px; font-size: 16px; }
.tag :focus-visible { outline-color: #000; }
.facts { background: var(--paper); padding: 4px 22px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #e6e8e9; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.facts dd a:hover { color: var(--red); }
.cnote { background: var(--paper); padding: 18px 22px; max-width: none; }
.cacts { display: flex; flex-wrap: wrap; gap: 10px; }
.cacts .add { padding: 10px 18px; font-size: 16px; font-weight: 700; }
.block-h { font-size: 20px; font-weight: 800; }
.blok { display: grid; gap: 10px; }
.ask { background: var(--paper); padding: 20px 22px; display: grid; gap: 14px; scroll-margin-top: 90px; }
@media (min-height: 800px) and (min-width: 1001px) { .ask { position: sticky; top: 84px; } }
.ask h2 { font-size: 23px; font-weight: 800; line-height: 1.15; }
.ask .sub { font-size: 15px; color: var(--muted); }
.field { display: grid; gap: 4px; }
.field label, .flab { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid #a9adb1; background: #fff; padding: 10px 12px; font-size: 16px; border-radius: 0; }
.field input { height: 46px; }
.field textarea { min-height: 72px; resize: vertical; }
.field.bad input { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.err { font-size: 14px; color: var(--red-d); font-weight: 500; }
.lineup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.chk { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.35; align-items: start; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.chk.small { font-size: 13px; color: var(--muted); }
.chk.bad { color: var(--red-d); }
.ne-oferta { font-size: 13px; line-height: 1.35; color: var(--muted); }
.orcall { font-size: 15px; text-align: center; display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; align-items: center; }
.orcall b, .orcall a { font-family: var(--mono); font-weight: 700; text-decoration: none; }
.orcall a:hover { color: var(--red); }
.sent { display: grid; gap: 12px; background: var(--paper); padding: 22px 24px; max-width: 760px; }
.sent h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; }
.prosba { background: var(--yellow-soft); padding: 12px 14px; font-weight: 500; }
.ostatok { display: grid; gap: 10px; }
.ostatok textarea { width: 100%; min-height: 110px; border: 1px solid #a9adb1; padding: 8px 10px; font: 500 16px/1.5 var(--mono); }
.ostatok .btn { justify-self: start; }
/* Ловушка от спама: поле за краем экрана, текста в нём нет */
.lovushka { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Списки */
.lhead { display: grid; gap: 10px; padding-block: 2px 0; }
.lhead h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.08; overflow-wrap: anywhere; }
.lhead .cnt { color: var(--muted); }
.rows { background: var(--paper); }
.row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 110px auto; gap: 4px 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #e6e8e9; }
.row:hover { background: #fbf8d9; }
.r-num { font: 700 15px/1.3 var(--mono); text-decoration: none; overflow-wrap: anywhere; }
.r-name { text-decoration: none; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.r-num:hover, .r-name:hover { color: var(--red); }
.r-brand { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.b-svet { background: var(--b-svet); color: #000; font-weight: 600; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tag .b-svet { background: var(--black); color: var(--b-svet); }   /* плашка карточки сама жёлтая: на ней метка наоборот, чёрная с жёлтыми буквами */
.add { background: none; border: 2px solid var(--ink); padding: 4px 10px; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; }
.add:hover { background: var(--ink); color: #fff; }
.add.on { background: var(--ink); color: var(--yellow); }
/* Подпись на кнопке меняется, а ширина нет: иначе колонка бренда в строках идёт неровно */
.row .add { min-width: 104px; text-align: center; }
.more { padding: 14px 16px; }
.rows-h { padding: 22px 16px 10px; background: var(--ground); }
.empty { background: var(--paper); padding: 24px 22px; display: grid; gap: 8px; }

/* Заявка на несколько номеров */
.zblok { display: grid; }
.zrow { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #e6e8e9; }
.zrow .nf { color: var(--muted); font-size: 14px; }
.zrow .qty { font: 700 15px var(--mono); white-space: nowrap; }
.zdel { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; text-decoration: underline; white-space: nowrap; cursor: pointer; }
.zdel:hover { color: var(--red); }
.zniz { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; padding: 10px 16px; background: var(--paper); font-size: 14px; }
.zniz .zdel { font-weight: 600; color: var(--ink); }
.zniz .zdel:hover { color: var(--red); }
.zpaste { background: var(--yellow); padding: 16px 18px; display: grid; gap: 10px; }
.zpaste textarea { width: 100%; min-height: 96px; border: 2px solid #000; background: #fff; padding: 8px 10px; font: 500 16px/1.5 var(--mono); }
.zpaste :focus-visible { outline-color: #000; }

/* Текстовые страницы и контакты */
.page { padding-block: 8px 48px; display: grid; gap: 20px; }
.page h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.08; }
.prose { background: var(--paper); padding: 22px 24px; max-width: 760px; display: grid; gap: 12px; }
.prose h2 { font-size: 19px; font-weight: 700; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.rekv { margin: 0; display: grid; }
.rekv div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #e6e8e9; }
.rekv dt { color: var(--muted); }
.rekv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.nf404 { font: 700 clamp(84px, 18vw, 190px)/.9 var(--mono); letter-spacing: -.05em; color: var(--ink); }

/* Подвал */
.foot { background: var(--black); color: var(--on-black); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 30px; }
.foot img { height: 26px; width: auto; display: block; margin-bottom: 12px; }
.foot a { text-decoration: none; display: block; padding: 2px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot b { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }

/* Нижняя кнопка на телефоне */
.mbar { display: none; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #000; padding: 8px var(--gut-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gut-l); gap: 8px; }
.mbar a { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; background: var(--red); color: #fff; text-decoration: none; }

/* Окно «Заказать звонок»: открывается переходом по #zvonok и без скриптов */
.okno { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); overflow: auto; padding: 16px; }
.okno:target { display: flex; }
.okno-in { width: min(420px, 100%); margin: auto; background: var(--paper); color: var(--ink); }
.dlg-h { display: flex; gap: 10px; align-items: center; padding: 14px 18px; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.dlg-h b { font-size: 19px; }
.dlg-h input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #a9adb1; }
.dlg-h button, .dlg-h a { background: none; border: 0; font-size: 22px; line-height: 1; padding: 6px; margin-left: auto; text-decoration: none; }
.cb-body { padding: 16px 18px 18px; display: grid; gap: 12px; }

/* Окно выбора города: только со скриптом, без него кнопка ведёт на «Контакты» */
dialog { border: 0; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: 82vh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }

/* Согласие на Метрику */
.metrika-okno { position: fixed; z-index: 70; right: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px)); background: var(--paper); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.metrika-okno div { display: flex; gap: 6px; }
.metrika-okno .btn { padding: 6px 10px; font-size: 13px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; font-size: 15px; width: max-content; max-width: calc(100vw - 32px); overflow-wrap: anywhere; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

/* Формы нет: правая колонка пуста, отдаём место содержимому */
.bez-formy .cg { grid-template-columns: minmax(0, 1fr); }
.bez-formy .hv1-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 28px; }
.bez-formy .hv1 .mark { right: 0; }

/* Рядом со строками стоит форма заявки, на название оставалось меньше 100 пикселей: два яруса, как на телефоне */
@media (min-width: 1001px) and (max-width: 1180px) {
  body:not(.bez-formy) .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num add" "name name" "brand brand"; }
  body:not(.bez-formy) .row .r-num { grid-area: num; }
  body:not(.bez-formy) .row .r-name { grid-area: name; }
  body:not(.bez-formy) .row .add { grid-area: add; }
  body:not(.bez-formy) .row .r-brand { grid-area: brand; }
  body:not(.bez-formy) .row .r-brand:empty { display: none; }
}
@media (max-width: 1000px) {
  .cg { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cg-main { grid-column: auto; }
  .cg > .ask { grid-column: auto; grid-row: auto; }
  .marki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hv1-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hv1 .mark { display: none; }
  .hv1 .hform { margin-bottom: 18px; }
  .hv1-cats { padding-block: 16px 0; }
  /* Бренд отдельной строкой под названием: на него завязан выбор позиции, а название без бренда у 21 882 строк каталога из 26 782. */
  .row { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; grid-template-areas: "num name add" "num brand add"; }
  .r-num { grid-area: num; }
  .r-name { grid-area: name; }
  .r-brand { grid-area: brand; }
  .r-brand:empty, .sug .s-b:empty { display: none; }
  .add { grid-area: add; }
}
/* Шапка в одну строку и при длинном городе: иначе кнопка заявки уезжает на вторую строку к левому краю */
@media (min-width: 721px) and (max-width: 860px) {
  .top-in { flex-wrap: nowrap; gap: 6px 12px; }
  .logo img { height: 26px; }
  .citybtn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
  .phone { font-size: 15px; }
  .basket { flex: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mbar { display: flex; }
  .brk { display: block; }
  .logo img { height: 24px; }
  .logo { order: 1; }
  .basket { order: 2; margin-left: auto; padding: 6px 10px; font-size: 14px; }
  .brk { order: 3; }
  .citybtn, .toplink { order: 4; font-size: 14px; }
  .toplink { margin-left: auto; }
  .topdesk { display: none; }
  .sform { padding-block: 8px; }
  .cb-btn { display: none; }
  .sbox input { height: 46px; font-size: 16px; padding: 0 10px; }
  .sform > button { height: 46px; padding: 0 14px; font-size: 15px; }
  .sug a { grid-template-columns: minmax(0, 1fr); }
  .hv1-in { padding-block: 20px 0; }
  .hv1 h1 { font-size: 27px; }
  .hv1-cats { display: none; }
  .hform { padding: 16px 16px 14px; }
  .sec { padding-block: 28px; }
  .goroda { padding: 14px 16px; }
  .goroda-spisok { columns: 2; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: calc(-1 * var(--gut-r)); padding-right: var(--gut-r); }
  .chip { flex: none; }
  .plate { grid-template-columns: minmax(0, 1fr); }
  .plate > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .marki { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tag { padding: 16px 18px 22px; --cut: 18px; }
  .copy { margin-right: 10px; }
  .facts > div { grid-template-columns: 96px minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num add" "name name" "brand brand"; padding: 10px 14px; }
  .r-num { grid-area: num; }
  .r-name { grid-area: name; font-size: 15px; }
  .add { grid-area: add; }
  .zrow { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "num qty del" "name name name"; padding: 10px 14px; }
  .zrow .zdel { grid-area: del; padding-block: 8px; }
  .zniz .zdel { padding-block: 8px; }
  .zrow .r-num { grid-area: num; }
  .zrow .r-name, .zrow .nf { grid-area: name; }
  .zrow .qty { grid-area: qty; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .rekv div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .metrika-okno { right: 16px; bottom: 72px; }
  /* Цели для пальца: ссылки моделей, «Контакты», кнопки согласия, крестик в окнах */
  .mmods { gap: 0 14px; }
  .mmods a { display: inline-block; padding: 6px 0; min-width: 24px; }
  .toplink { padding-block: 6px; }
  .metrika-okno .btn { min-height: 40px; min-width: 44px; }
  .dlg-h button, .dlg-h a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
  .row, .mrow, .btn, .chip, .basket { transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
}
