/* «Узел» — строгая техническая типографика: модульная сетка 12 колонок, номера моноширинным, один акцент — латунь
   оцинкованной скобы суппорта из кадра разлёта (#A47A2A). Фон — серый поля фотосессии, чтобы детали «стояли» на странице.
   ПК: 1rem = 16px × z (js/rezhim.js), вся вёрстка — в rem и долях ширины. Телефон: обычная прокрутка, 16px. */
:root {
  --fon: #E4E3E0; --fon2: #ECEBE8; --bel: #F5F4F1; --chern: #17181A; --tekst: #2A2B2D; --ser: #6B6A66; --ser2: #9A9893;
  --lin: rgba(23, 24, 26, .13); --lin2: rgba(23, 24, 26, .3); --lin3: rgba(23, 24, 26, .055);
  --akc: #A47A2A; --akc-t: #7C5B1C; --akc-fon: rgba(164, 122, 42, .13); --ok: #3F6B3A;
  --sans: 'Golos Text', 'Segoe UI', Arial, sans-serif; --mono: 'Martian Mono', ui-monospace, Consolas, monospace;
  --shapka: 4.5rem; --pole: 3rem; --zazor: 1.5rem; --niz: 3rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--fon); }
body { margin: 0; background: var(--fon); color: var(--tekst); font: 400 1rem/1.45 var(--sans); font-feature-settings: 'tnum' 1, 'lnum' 1; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--akc); outline-offset: 2px; }
.skryto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.metka { margin: 0 0 1rem; font: 500 .72rem/1.3 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ser); display: flex; align-items: center; gap: .55rem; }
.metka-tochka { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 .22rem rgba(63, 107, 58, .16); }
.metka-tochka.zakryto { background: var(--ser2); box-shadow: none; }
.zag1 { margin: 0; font: 700 4.7rem/.94 var(--sans); letter-spacing: -.045em; color: var(--chern); }
.zag1-b { display: block; color: var(--ser); font-weight: 600; }
.zag1-b b { color: var(--chern); font-weight: 700; }
.zag2 { margin: 0; font: 700 2.6rem/1 var(--sans); letter-spacing: -.035em; color: var(--chern); }
.zag3 { margin: 0; font: 700 1.35rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--chern); }
.lid { margin: .9rem 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--tekst); max-width: 38rem; }
.melko { margin: .6rem 0 0; font-size: .78rem; color: var(--ser); }
.ssylka { background: none; border: 0; padding: 0; color: var(--akc-t); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; cursor: pointer; font-size: inherit; }
.ssylka:hover { color: var(--chern); }

/* кнопки */
.kn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1.4rem; border: 1px solid var(--chern);
  background: var(--chern); color: var(--bel); font: 600 .92rem/1 var(--sans); letter-spacing: .005em; border-radius: .15rem; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s; }
.kn:hover { background: var(--akc); border-color: var(--akc); color: #fff; }
.kn:disabled { opacity: .35; cursor: default; background: var(--chern); border-color: var(--chern); }
.kn-l { background: transparent; color: var(--chern); }
.kn-l:hover { background: var(--chern); color: var(--bel); border-color: var(--chern); }
.kn-shir { width: 100%; }
.kn-mal { height: 2.1rem; padding: 0 .8rem; font-size: .8rem; }
.kn-plus { width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
.kn-plus.v-korzine { background: var(--akc); border-color: var(--akc); }

/* ---------- шапка ---------- */
.shapka { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--shapka); display: flex; align-items: center; gap: 1.6rem;
  padding: 0 var(--pole); background: rgba(228, 227, 224, .97); border-bottom: 1px solid var(--lin); }   /* без backdrop-filter: размытие под шапкой пересчитывалось каждый кадр */
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--chern); }
.logo-znak { width: 2.1rem; height: 2.1rem; }
.logo-tochka { fill: var(--akc); }
.logo-imya { font: 800 1.55rem/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; }
.logo-pod { font: 500 .62rem/1.15 var(--mono); text-transform: uppercase; color: var(--ser); letter-spacing: .03em; padding-left: .55rem; border-left: 1px solid var(--lin2); }
.menyu { display: flex; gap: 1.4rem; margin-left: 1.2rem; flex: none; }
.garazh { min-width: 0; flex: 0 1 auto; }
.korz-kn { flex: none; white-space: nowrap; }
.menyu a { white-space: nowrap; text-decoration: none; font-size: .88rem; color: var(--tekst); padding: .3rem 0; border-bottom: 1px solid transparent; }
.menyu a:hover, .menyu a[aria-current] { color: var(--chern); border-bottom-color: var(--chern); }
.garazh { display: flex; align-items: center; gap: .6rem; height: 2.6rem; padding: 0 1rem; border: 1px dashed var(--lin2); background: transparent;
  border-radius: .15rem; font: 500 .78rem/1 var(--mono); color: var(--ser); max-width: 26rem; }
.garazh:hover { border-color: var(--chern); color: var(--chern); }
.garazh-tochka { width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid var(--ser2); flex: none; }
.garazh.est { border-style: solid; border-color: var(--chern); color: var(--chern); background: var(--bel); }
.garazh.est .garazh-tochka { background: var(--akc); border-color: var(--akc); }
.garazh-tekst { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garazh-tekst small { color: var(--ser); font-size: inherit; margin-left: .35rem; }
.garazh { position: relative; }
.garazh::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--akc); border-radius: .2rem; opacity: 0; pointer-events: none; }
.garazh.vspyshka::after { animation: vspyshka .9s ease-out; }
@keyframes vspyshka { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.4); } }   /* кольцо — transform/opacity, без box-shadow */
.rezhim { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; height: 2.6rem; padding: .2rem; border: 1px solid var(--lin2); border-radius: 2rem; background: transparent; font: 500 .74rem/1 var(--sans); }
.rezhim[hidden] { display: none; }
.rezhim span:not(.rezhim-polz) { position: relative; z-index: 1; padding: 0 .9rem; display: flex; align-items: center; justify-content: center; transition: color .25s; }
.rezhim-a { color: var(--bel); }
.rezhim-polz { position: absolute; top: .2rem; bottom: .2rem; left: .2rem; width: calc(50% - .2rem); background: var(--chern); border-radius: 2rem; transition: transform .3s cubic-bezier(.6, 0, .2, 1); }
.rezhim.na-prokrutke .rezhim-polz { transform: translateX(100%); }
.rezhim.na-prokrutke .rezhim-a { color: var(--tekst); }
.rezhim.na-prokrutke .rezhim-b { color: var(--bel); }
.korz-kn { display: flex; align-items: center; gap: .55rem; height: 2.6rem; padding: 0 .5rem 0 1rem; border: 1px solid var(--chern); border-radius: .15rem; background: transparent; font: 600 .85rem/1 var(--sans); }
.korz-schet { min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; display: inline-flex; align-items: center; justify-content: center; background: var(--chern); color: var(--bel); font: 600 .72rem/1 var(--mono); border-radius: .1rem; }
.korz-summa { font: 500 .72rem/1 var(--mono); color: var(--ser); }
.korz-summa:empty { display: none; }
.korz-kn.tolchok .korz-schet { animation: tolchok .5s; }
@keyframes tolchok { 30% { transform: scale(1.35); background: var(--akc); } }

/* ---------- сцены ---------- */
.scena { position: relative; overflow: hidden; background: var(--fon); }
html.pk .scena { min-height: 100vh; padding: calc(var(--shapka) + 2.2rem) var(--pole) var(--niz); }
html.sceny { --niz: 4.4rem; }   /* снизу место под штамп листа */
html.sceny main { position: fixed; inset: 0; overflow: hidden; }
html.sceny .scena { position: absolute; inset: 0; min-height: 0; visibility: hidden; }
html.sceny .scena.aktiv, html.sceny .scena.uhodit, html.sceny .scena.vhodit { visibility: visible; }
html.sceny .scena.vhodit { z-index: 3; }
html.sceny .scena.uhodit { z-index: 2; }
html.sceny body { overflow: hidden; }
.setka-fon { position: absolute; inset: 0 var(--pole); pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, var(--lin3) 1px, transparent 1px); background-size: calc((100% + var(--zazor)) / 12) 100%; border-right: 1px solid var(--lin3); }
.scena > *:not(.setka-fon) { position: relative; z-index: 1; }

/* ---------- 1. Ваш автомобиль ---------- */
.avto-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--zazor); height: 100%; align-items: center; }
html.pk .avto-in { min-height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.avto-tekst { grid-column: 1 / span 6; align-self: center; }
.zag1 { margin-bottom: 1.8rem; }
.garazh-panel { border: 1px solid var(--lin2); background: var(--bel); max-width: 47rem; }
.vkladki { display: flex; border-bottom: 1px solid var(--lin); }
.vkladki button { flex: none; height: 2.9rem; padding: 0 1.3rem; border: 0; border-right: 1px solid var(--lin); background: transparent; font: 600 .86rem/1 var(--sans); color: var(--ser); position: relative; }
.vkladki button[aria-selected="true"] { color: var(--chern); background: var(--bel); }
.vkladki button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--akc); }
.pan { padding: 1.3rem 1.3rem 1.1rem; }
.vin-ryad, .vybor-ryad, .bystryj-ryad, .poisk-ryad { display: flex; gap: .7rem; align-items: stretch; }
.vin-yachejki { position: relative; flex: 1; min-width: 0; }
/* 17 ячеек — фон поля; шаг ячейки = ширина знака моноширинного шрифта + разрядка */
.vin-pole { width: 100%; height: 3rem; padding: 0 0 0 .6rem; border: 1px solid var(--lin2); border-radius: .15rem; outline: none;
  font: 500 1.2rem/1 var(--mono); letter-spacing: .5ch; text-transform: uppercase; color: var(--chern); background-color: #fff;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(1.5ch - 1px), var(--lin) calc(1.5ch - 1px), var(--lin) 1.5ch);
  background-size: 25.5ch 100%; background-repeat: no-repeat; background-position: .38rem 0; }
.vin-metka { display: flex; justify-content: space-between; margin-bottom: .45rem; font: 500 .62rem/1 var(--mono); text-transform: uppercase; color: var(--ser); letter-spacing: .03em; }
.vin-pole::placeholder { letter-spacing: 0; text-transform: none; font-family: var(--sans); font-size: .95rem; color: var(--ser2); }
.vin-pole:focus { border-color: var(--chern); }
.vin-pole.oshibka { border-color: #A3362B; }
.vin-schet { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font: 500 .68rem/1 var(--mono); color: var(--ser2); pointer-events: none; }
.vin-schet.polno { color: var(--ok); }
.vin-podskazka { margin: .75rem 0 0; font-size: .8rem; color: var(--ser); min-height: 1.2em; }
.vin-podskazka.oshibka { color: #A3362B; }
.vin-podskazka .ispr { font-family: var(--mono); color: var(--chern); }
.vybor { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.vybor-shir { flex: 1.6; }
.vybor > span { font: 500 .62rem/1 var(--mono); text-transform: uppercase; color: var(--ser); letter-spacing: .03em; }
.vybor select { width: 100%; height: 3rem; padding: 0 2rem 0 .7rem; border: 1px solid var(--lin2); border-radius: .15rem; background: #fff; font-size: .85rem;
  -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chern) 50%), linear-gradient(135deg, var(--chern) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 1.35rem, calc(100% - .7rem) 1.35rem; background-size: .3rem .3rem; background-repeat: no-repeat; text-overflow: ellipsis; }
.vybor select:disabled { opacity: .45; }
.vybor-ryad .kn { align-self: flex-end; }
.chip { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 .6rem; margin: 0 .3rem .3rem 0; border: 1px solid var(--lin2); border-radius: 2rem; background: transparent; font-size: .78rem; color: var(--tekst); }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--chern); background: var(--chern); color: var(--bel); }
.chip-mono { font: 500 .7rem/1 var(--mono); }
.bystryj { margin-top: 1.5rem; max-width: 47rem; padding-top: 1.1rem; border-top: 1px solid var(--lin2); }
.bystryj-metka { display: block; font: 500 .82rem/1.2 var(--sans); color: var(--ser); margin-bottom: .5rem; }
.bystryj-pole, .poisk-pole { flex: 1; min-width: 0; height: 3rem; padding: 0 .9rem; border: 1px solid var(--lin2); border-radius: .15rem; background: var(--bel); outline: none; font: 500 .95rem/1 var(--sans); color: var(--chern); }
.bystryj-pole:focus, .poisk-pole:focus { border-color: var(--chern); background: #fff; }
.bystryj-pod { margin: .6rem 0 0; font-size: .8rem; color: var(--ser); }
/* шаги главного пути */
.shag { max-width: 47rem; }
.shag + .shag { margin-top: 1.3rem; }
.shag-zag { display: flex; align-items: center; gap: .7rem; margin: 0 0 .7rem; font: 700 1.25rem/1.2 var(--sans); color: var(--chern); letter-spacing: -.015em; }
.shag-nom { width: 1.9rem; height: 1.9rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--chern); color: var(--bel); font: 600 .8rem/1 var(--mono); }
.shag-2 .shag-zag { color: var(--ser); }
.shag-2 .shag-nom { background: transparent; color: var(--ser); border: 1px solid var(--ser2); }
.shag-2.aktiven .shag-zag { color: var(--chern); }
.shag-2.aktiven .shag-nom { background: var(--chern); color: var(--bel); border-color: var(--chern); }
.shag-pod { margin: 0 0 0 2.6rem; font-size: .85rem; color: var(--ser); }
.shag2-posle { margin-left: 2.6rem; }
.shag-kn { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.shag-kn .chip { height: 2.3rem; padding: 0 1rem; margin: 0; font-size: .85rem; border-color: var(--chern); }
.garazh-gotovo { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--chern); background: var(--bel); }
.garazh-gotovo[hidden] { display: none; }
.gg-galka { width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--ok); position: relative; }
.gg-galka::after { content: ''; position: absolute; left: .6rem; top: .5rem; width: .75rem; height: .42rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.gg-tekst { flex: 1; min-width: 0; }
.gg-tekst b { display: block; font: 700 1rem/1.25 var(--sans); color: var(--chern); }
.gg-tekst span { display: block; font-size: .8rem; color: var(--ser); margin-top: .15rem; }
.bystryj[hidden], .shag2-posle[hidden], .shag-pod[hidden], .garazh-panel[hidden] { display: none; }
/* выбор машины: крошки, быстрый поиск, сетка крупных кнопок */
.pa-otkryt, .pa-shapka-tel { display: none; }
.pa-marka { padding-top: 1rem; }
.pa-kroshki { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; margin-bottom: .7rem; font-size: .84rem; }
.pa-kr { font: 500 .84rem/1.2 var(--sans); }
button.pa-kr { background: none; border: 0; padding: .2rem .45rem; margin: 0 -.15rem; border-radius: .15rem; color: var(--chern); text-decoration: underline; text-decoration-color: var(--lin2); text-underline-offset: .2em; }
button.pa-kr:hover { background: var(--akc-fon); }
.pa-kr-tek { font-weight: 700; color: var(--chern); }
.pa-kr-dal { color: var(--ser2); }
.pa-kr-str { color: var(--ser2); }
.pa-poisk-ryad { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.pa-poisk { flex: 1; min-width: 0; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--lin2); border-radius: .15rem; background: #fff; outline: none; font-size: .9rem; }
.pa-poisk:focus { border-color: var(--chern); }
.pa-vse { flex: none; font-size: .82rem; }
.pa-vse[hidden] { display: none; }
.pa-setka { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; max-height: 11.6rem; overflow: auto; padding: 1px; }
.pa-setka.pa-model { grid-template-columns: repeat(4, 1fr); }
.pa-setka.pa-god { grid-template-columns: repeat(7, 1fr); }
.pa-setka.pa-mod { grid-template-columns: repeat(2, 1fr); }
.pa-setka.pa-vse-spisok { grid-template-columns: repeat(5, 1fr); }
.pa-kn { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 3.1rem; padding: .45rem .65rem; border: 1px solid var(--lin2); border-radius: .15rem; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.pa-kn:hover, .pa-kn:focus-visible { border-color: var(--chern); background: var(--bel); outline: none; box-shadow: 0 0 0 1px var(--chern); }
.pa-kn b { font: 600 .9rem/1.15 var(--sans); color: var(--chern); }
.pa-kn span { font: 500 .62rem/1.25 var(--mono); color: var(--ser); }
.pa-kn i { font-style: normal; font: 500 .6rem/1.2 var(--mono); color: var(--akc-t); }
.pa-god .pa-kn { min-height: 2.6rem; align-items: center; }
.pa-god .pa-kn b { font-family: var(--mono); font-weight: 500; }
.pa-net { background: transparent; }
.pa-pusto { grid-column: 1 / -1; margin: .4rem 0; font-size: .85rem; color: var(--ser); }
.gn-plastina { position: relative; flex: 1; min-width: 0; display: flex; align-items: stretch; border: 2px solid var(--chern); border-radius: .3rem; background: #fff; }
.gn-pole { flex: 1; min-width: 0; height: 2.8rem; padding: 0 .8rem; border: 0; outline: none; background: transparent; font: 600 1.3rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chern); }
.gn-pole::placeholder { color: var(--ser2); font-weight: 400; }
.gn-pole.oshibka { color: #A3362B; }
.gn-rus { display: flex; align-items: center; padding: 0 .55rem; border-left: 2px solid var(--chern); font: 600 .62rem/1 var(--mono); color: var(--chern); }
.gn-pom { font-size: .74rem; color: var(--ser); margin-left: .2rem; }
#gnPrimery .chip { margin-bottom: .25rem; }
/* меню гаража в шапке */
.garazh-obl { position: relative; margin-left: auto; min-width: 0; flex: 0 1 auto; display: flex; justify-content: flex-end; }
.garazh-obl .garazh { margin-left: 0; max-width: 24rem; min-width: 0; }
.rezhim { flex: none; }
.garazh-ikonka { width: 1.25rem; height: 1.25rem; flex: none; }
.garazh-strelka { width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-.15rem); margin-left: .2rem; flex: none; }
.garazh[aria-expanded="true"] .garazh-strelka { transform: rotate(-135deg) translateY(-.1rem); }
.garazh-menyu { position: absolute; z-index: 45; top: calc(100% + .5rem); right: 0; width: 22rem; max-width: calc(100vw - 2rem); background: var(--bel); border: 1px solid var(--chern); box-shadow: 0 1rem 2rem rgba(20, 20, 22, .16); padding: .7rem; }
.garazh-menyu[hidden] { display: none; }
.gm-zag { margin: 0 0 .4rem .3rem; font: 500 .6rem/1 var(--mono); text-transform: uppercase; color: var(--ser); letter-spacing: .04em; }
.gm-pusto { margin: .2rem .3rem .7rem; font-size: .84rem; color: var(--tekst); }
.gm-ryad { display: flex; align-items: center; gap: .3rem; border-bottom: 1px solid var(--lin); }
.gm-vybor { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .6rem .3rem; border: 0; background: transparent; text-align: left; border-radius: .1rem; }
.gm-vybor:hover, .gm-vybor:focus-visible { background: var(--akc-fon); outline: none; }
.gm-tochka { width: .8rem; height: .8rem; border-radius: 50%; border: 1.5px solid var(--ser2); flex: none; }
.gm-ryad.tek .gm-tochka { border-color: var(--akc); background: radial-gradient(circle, var(--akc) 45%, transparent 50%); }
.gm-imya b { display: block; font: 600 .9rem/1.2 var(--sans); color: var(--chern); }
.gm-imya span { display: block; font: 500 .64rem/1.3 var(--mono); color: var(--ser); }
.gm-udal { flex: none; border: 0; background: transparent; font-size: .74rem; color: var(--ser); padding: .4rem .5rem; border-radius: .1rem; }
.gm-udal:hover, .gm-udal:focus-visible { color: #A3362B; background: rgba(163, 54, 43, .08); outline: none; }
.gm-dob { width: 100%; display: flex; align-items: center; gap: .6rem; margin-top: .5rem; padding: .7rem .3rem; border: 0; background: transparent; font: 600 .9rem/1 var(--sans); color: var(--chern); text-align: left; border-radius: .1rem; }
.gm-dob span { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--chern); color: var(--bel); display: inline-flex; align-items: center; justify-content: center; font-weight: 400; }
.gm-dob:hover, .gm-dob:focus-visible { background: var(--akc-fon); outline: none; }
/* шторка выбора на телефоне */
.pa-shtorka { position: fixed; z-index: 70; inset: 0; background: var(--fon); overflow: auto; -webkit-overflow-scrolling: touch; }
.pa-shtorka[hidden] { display: none; }
.pa-shtorka .garazh-panel { border: 0; background: var(--fon); max-width: none; min-height: 100%; }
.pa-shtorka .pa-shapka-tel { display: flex; justify-content: space-between; align-items: center; padding: 1rem 16px; border-bottom: 1px solid var(--lin2); position: sticky; top: 0; background: var(--fon); z-index: 1; }
.pa-shtorka .pa-setka { max-height: none; overflow: visible; }
html.pa-otkryto body { overflow: hidden; }

/* лист каталога: позиции по сетке с номерами, как индексная страница каталога */
.list-kat { grid-column: 8 / span 5; align-self: center; border-top: 2px solid var(--chern); }
.lk-shapka { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0 .8rem; border-bottom: 1px solid var(--lin2); }
.lk-zag { margin: 0; font: 700 1.05rem/1.2 var(--sans); color: var(--chern); letter-spacing: -.01em; }
.lk-zag small { font: 500 .7rem var(--mono); color: var(--ser); margin-left: .35rem; letter-spacing: 0; }
.lk-pod { margin: 0; font: 500 .64rem/1.3 var(--mono); color: var(--ser); text-align: right; }
.list-kat.est .lk-pod { color: var(--ok); }
.lk-setka { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.lk-setka li { border-right: 1px solid var(--lin); border-bottom: 1px solid var(--lin); }
.lk-setka li:nth-child(4n) { border-right: 0; }
.lk-kl { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: .55rem .6rem .65rem; border: 0; background: transparent; text-align: left; transition: background .25s; }
.lk-kl:hover { background: var(--bel); }
.lk-nom { font: 600 .6rem/1 var(--mono); color: var(--ser); }
.lk-foto { display: flex; align-items: center; justify-content: center; height: max(4rem, min(7.2rem, calc((100vh - var(--shapka) - 16rem) / 3 - 3rem))); margin: .2rem 0 .45rem; }
.lk-foto { position: relative; }
.lk-foto::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -.15rem; height: .7rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 20, 22, .2), rgba(20, 20, 22, 0)); pointer-events: none; }
.lk-foto img { position: relative; z-index: 1; max-width: 92%; max-height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }   /* тень — неподвижный овал под деталью вместо filter: drop-shadow */
.lk-cena-in { will-change: transform; }
.lk-kl:hover .lk-foto img { transform: translateY(-.25rem); }
.lk-imya { font: 600 .78rem/1.2 var(--sans); color: var(--chern); }
.lk-cena { display: block; overflow: hidden; margin-top: .25rem; min-height: 1.15rem; }
.lk-cena-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.lk-cena em, .lk-nal { white-space: nowrap; }
.lk-cena em { font-style: normal; font: 600 .82rem/1.15rem var(--sans); color: var(--chern); }
.lk-net { font-style: normal; font: 500 .58rem/1.3 var(--mono); color: var(--ser2); }
.lk-nal { font-style: normal; font: 500 .58rem/1 var(--mono); color: var(--ser); }
.lk-nal.lk-s { color: var(--ok); }
.lk-nal.lk-s::before { content: ''; display: inline-block; width: .38rem; height: .38rem; border-radius: 50%; background: var(--ok); margin-right: .25rem; vertical-align: .05em; }

/* ---------- 2. Поиск ---------- */
.poisk-in { display: flex; flex-direction: column; height: 100%; }
html.pk .poisk-in { height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.poisk-verh { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--zazor); align-items: end; }
.poisk-verh .zag2 { grid-column: 1 / span 4; padding-bottom: .5rem; font-size: 2.3rem; }
.poisk-forma { grid-column: 5 / span 8; position: relative; }
.poisk-ryad { position: relative; }
.poisk-ikonka { position: absolute; left: 1rem; top: 50%; width: 1.4rem; height: 1.4rem; transform: translateY(-50%); color: var(--ser); pointer-events: none; }
.poisk-pole { height: 4rem; padding-left: 3.1rem; font-size: 1.25rem; background: #fff; }
.poisk-ryad .kn { height: 4rem; padding: 0 2rem; }
.primery { grid-column: 5 / span 8; margin: .7rem 0 0; font-size: .78rem; color: var(--ser); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .1rem; }
.primery .chip { margin: 0 .25rem 0 0; }
.podskazki { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--chern); box-shadow: 0 1.2rem 2.4rem rgba(20, 20, 22, .14);
  display: grid; grid-template-columns: 1fr 1fr; max-height: 60vh; overflow: auto; }
.podskazki[hidden] { display: none; }
.pg { padding: .8rem 1rem 1rem; border-right: 1px solid var(--lin); border-bottom: 1px solid var(--lin); min-width: 0; }
.pg:nth-child(2n) { border-right: 0; }
.pg-zag { margin: 0 0 .5rem; font: 500 .62rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ser); }
.pg-pusto { font-size: .78rem; color: var(--ser2); margin: 0; }
.pp { display: flex; width: 100%; align-items: baseline; gap: .6rem; padding: .45rem .5rem; margin: 0 -.5rem; border: 0; background: transparent; text-align: left; border-radius: .1rem; font-size: .85rem; color: var(--tekst); width: calc(100% + 1rem); }
.pp:hover, .pp.aktiv { background: var(--akc-fon); }
.pp b { font: 600 .78rem/1.2 var(--mono); color: var(--chern); white-space: nowrap; }
.pp span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp i { font-style: normal; font: 500 .72rem/1 var(--mono); color: var(--ser); white-space: nowrap; }
.rez { flex: 1; min-height: 0; margin-top: 1.6rem; position: relative; display: flex; flex-direction: column; }
.rez-shapka { display: flex; align-items: flex-end; gap: 1.5rem; padding-bottom: .9rem; border-bottom: 2px solid var(--chern); flex-wrap: wrap; }
.rez-zag { flex: 1; min-width: 18rem; }
.rez-zag h3 { margin: 0; font: 700 1.5rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--chern); }
.rez-zag p { margin: .35rem 0 0; font-size: .82rem; color: var(--ser); }
.rez-zag .nomer { font: 600 1.05em var(--mono); color: var(--chern); }
.podhodit { display: inline-flex; align-items: center; gap: .4rem; font: 600 .75rem/1 var(--sans); color: var(--ok); }
.podhodit::before { content: ''; width: .75rem; height: .42rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.ne-podhodit { color: #A3362B; font: 600 .75rem/1.3 var(--sans); }
.filtry { display: flex; align-items: center; gap: .9rem; font-size: .8rem; color: var(--ser); }
.segm { display: inline-flex; border: 1px solid var(--lin2); border-radius: .15rem; }
.segm button { height: 2.1rem; padding: 0 .85rem; border: 0; background: transparent; font: 500 .78rem/1 var(--sans); color: var(--ser); }
.segm button + button { border-left: 1px solid var(--lin2); }
.segm button[aria-pressed="true"] { background: var(--chern); color: var(--bel); }
.flazhok { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; user-select: none; color: var(--tekst); }
.flazhok input { width: 1rem; height: 1rem; accent-color: var(--chern); margin: 0; }
/* таблица кроссов: высота строки — от высоты экрана, страница не растёт */
.tabl-obl { flex: 1; min-height: 0; position: relative; }
.tabl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tabl thead th { font: 500 .6rem/1 var(--mono) !important; color: var(--ser) !important; text-align: left; }
.tabl thead th.c-cena { text-align: right; }
.tabl th { height: 2rem; text-align: left; font: 500 .6rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ser); border-bottom: 1px solid var(--lin2); padding: 0 .6rem; white-space: nowrap; }
.tabl td { height: var(--rh, 3.2rem); padding: 0 .6rem; border-bottom: 1px solid var(--lin); font-size: .84rem; vertical-align: middle; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabl tr.gruppa td { height: var(--gh, 1.9rem); background: transparent; font: 600 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--chern); border-bottom: 1px solid var(--lin2); padding-top: .4rem; }
.tabl tr.gruppa td small { font: 400 .66rem var(--sans); text-transform: none; color: var(--ser); letter-spacing: 0; margin-left: .5rem; }
.tabl tr.iskomoe td { background: var(--akc-fon); }
.tabl tr:not(.gruppa):hover td { background: rgba(255, 255, 255, .55); }
.tabl .c-foto { width: 3.6rem; padding-right: 0; }
.tabl .c-foto img { width: 2.8rem; height: calc(var(--rh, 3.2rem) - .5rem); max-height: 2.8rem; object-fit: contain; }
.tabl .c-brend { width: 11%; font-weight: 600; color: var(--chern); }
.tabl .c-nomer { width: 17%; font: 500 .78rem var(--mono); color: var(--chern); }
.tabl .c-opis { width: auto; color: var(--ser); }
.tabl .c-nal { width: 27%; white-space: normal; line-height: 1.25; font-size: .78rem; }
.tabl .c-srok { width: 7.5%; font: 500 .74rem var(--mono); }
.tabl .c-cena { width: 9%; text-align: right; font: 600 .95rem var(--sans); color: var(--chern); }
.tabl .c-kn { width: 3.4rem; text-align: right; padding-right: 0; }
.tabl th.c-cena { text-align: right; }
.nal-s { color: var(--ok); font-weight: 600; }
.nal-k { color: var(--chern); }
.nal-m, .nal-z { color: var(--ser); }
.srok-s { color: var(--ok); }
.metka-isk { display: inline-block; margin-left: .4rem; padding: .15rem .35rem; background: var(--akc); color: #fff; font: 600 .55rem/1 var(--mono); text-transform: uppercase; vertical-align: .1em; border-radius: .1rem; }
.stranicy { display: flex; justify-content: space-between; align-items: center; padding-top: .7rem; font: 500 .72rem/1 var(--mono); color: var(--ser); }
.stranicy .segm button { height: 1.9rem; }
/* результат «словами» и подсказки до поиска */
.kartochki { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lin2); border-left: 1px solid var(--lin2); margin-top: 1rem; }
.kartochka { display: grid; grid-template-columns: 5.2rem 1fr; gap: .2rem 1rem; align-items: center; padding: .9rem 1rem; background: var(--fon); border: 0; border-right: 1px solid var(--lin2); border-bottom: 1px solid var(--lin2); text-align: left; min-height: 0; }
.kartochka:hover { background: var(--bel); }
.kartochka img { grid-row: span 3; width: 5.2rem; height: 4.6rem; object-fit: contain; }
.kartochka b { font: 600 .9rem/1.2 var(--sans); color: var(--chern); }
.kartochka span { font-size: .74rem; color: var(--ser); }
.kartochka i { font-style: normal; font: 600 .9rem var(--sans); color: var(--chern); }
.ponyal { margin: 1rem 0 0; font-size: .85rem; color: var(--ser); }
.ponyal b { color: var(--chern); }
.simptom { margin: 1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--akc); background: var(--bel); font-size: .9rem; color: var(--chern); }
.kak-iskat { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--zazor); padding-top: 1.4rem; border-top: 2px solid var(--chern); }
.kak-iskat h4 { margin: 0 0 .5rem; font: 700 1.05rem/1.2 var(--sans); color: var(--chern); }
.kak-iskat p { margin: 0 0 .7rem; font-size: .84rem; color: var(--tekst); }
.kak-nom { font: 500 .62rem/1 var(--mono); color: var(--akc-t); display: block; margin-bottom: .8rem; }
.vin-kartochka { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 0 2.4rem; align-items: end; padding: 1.4rem 1.5rem; background: var(--bel); border: 1px solid var(--lin2); }
.vin-kartochka dt { font: 500 .6rem/1 var(--mono); text-transform: uppercase; color: var(--ser); margin-bottom: .45rem; }
.vin-kartochka dd { margin: 0; font: 600 1.05rem/1.2 var(--sans); color: var(--chern); }
.vin-kartochka .kn { justify-self: end; }

/* ---------- 3. Схема узла ---------- */
.uzel-in { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: var(--zazor); height: 100%; }
html.pk .uzel-in { height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.uzel-shapka { grid-column: 1 / span 8; display: flex; align-items: baseline; gap: .4rem 1.5rem; flex-wrap: wrap; }
.uzel-shapka .zag2 { flex: 1 0 100%; font-size: 2.25rem; }
.uzel-pod { margin: .5rem 0 0; font-size: .72rem; color: var(--ser); }
.legenda { display: flex; gap: 1rem; font: 500 .66rem/1 var(--mono); color: var(--ser); margin: .5rem 0 0; }
.legenda i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.05em; }
.legenda .l-v i { background: var(--akc); }
.legenda .l-n i { border: 1px solid var(--ser2); }
.uzel-foto { grid-column: 1 / span 8; grid-row: 2; position: relative; align-self: center; width: 100%; }
.uzel-sloi { position: relative; width: 100%; }
.uzel-sloi .sloj, .uzel-sloi .ten { position: absolute; display: block; pointer-events: none; transition: filter .35s, opacity .35s; }
.uzel-sloi .sloj { will-change: transform; }
.uzel-sloi .sloj.tusk { opacity: .32; filter: grayscale(1); }
html.lite .uzel-sloi .sloj.tusk { filter: none; }
.uzel-sloi .sloj.ne-v { opacity: .5; }
.uzel-vynoski { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.uzel-vynoski path { fill: none; stroke: var(--chern); stroke-width: 1; transition: stroke .25s; }
.uzel-vynoski circle { fill: var(--fon); stroke: var(--chern); stroke-width: 1; transition: fill .25s, stroke .25s; }
.uzel-vynoski circle.t { fill: var(--chern); stroke: none; }
.uzel-vynoski text { font: 600 12px var(--mono); fill: var(--chern); text-anchor: middle; dominant-baseline: central; transition: fill .25s; }
.uzel-vynoski g.vkl circle.k { fill: var(--chern); }
.uzel-vynoski g.vkl text { fill: var(--bel); }
.uzel-vynoski g.svet path { stroke: var(--akc); stroke-width: 2; }
.uzel-vynoski g.svet circle.k { fill: var(--akc); stroke: var(--akc); }
.uzel-vynoski g.svet text { fill: #fff; }
.uzel-vynoski g.svet circle.t { fill: var(--akc); }
.uzel-spisok { grid-column: 9 / span 4; grid-row: 1 / span 2; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--lin2); padding-left: var(--zazor); }
.us-avto { padding-bottom: .8rem; border-bottom: 1px solid var(--lin2); font-size: .8rem; color: var(--ser); }
.us-avto b { display: block; color: var(--chern); font: 600 .95rem/1.25 var(--sans); }
.us-avto .chip { margin-top: .45rem; }
.us-ryady { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.us-ryad { flex: 1 1 0; max-height: 4.4rem; min-height: 0; display: grid; grid-template-columns: 1.7rem 1fr auto 1.2rem; gap: 0 .7rem; align-items: center; border-bottom: 1px solid var(--lin); cursor: pointer; padding: 0 .2rem; transition: background .2s; }
.us-ryad:hover, .us-ryad.svet { background: var(--akc-fon); }
.us-nom { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--chern); display: flex; align-items: center; justify-content: center; font: 600 .66rem/1 var(--mono); color: var(--chern); }
.us-ryad.vkl .us-nom { background: var(--chern); color: var(--bel); }
.us-ryad.svet .us-nom { background: var(--akc); border-color: var(--akc); color: #fff; }
.us-imya { min-width: 0; }
.us-imya b { display: block; font: 600 .84rem/1.2 var(--sans); color: var(--chern); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-imya span { display: block; font: 500 .64rem/1.35 var(--mono); color: var(--ser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-cena { text-align: right; font: 600 .86rem/1.2 var(--sans); color: var(--chern); white-space: nowrap; }
.us-cena small { display: block; font: 500 .62rem/1.2 var(--mono); color: var(--ser); }
.us-ryad input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--chern); cursor: pointer; }
.us-niz { padding-top: .9rem; border-top: 2px solid var(--chern); }
.us-sum { display: flex; justify-content: space-between; align-items: baseline; margin: .7rem 0; }
.us-sum b { font: 700 1.6rem/1 var(--sans); letter-spacing: -.02em; color: var(--chern); }
.us-sum span { font-size: .78rem; color: var(--ser); }
.us-kartochka { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.us-kartochka[hidden] { display: none; }
.usk-nazad { align-self: flex-start; margin: .7rem 0 .4rem; }
.usk-verh { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: center; padding: .4rem 0 .8rem; border-bottom: 1px solid var(--lin2); }
.usk-verh img { width: 7rem; height: 6rem; object-fit: contain; }
.usk-verh b { font: 700 1.05rem/1.2 var(--sans); color: var(--chern); display: block; }
.usk-verh p { margin: .35rem 0 0; font-size: .78rem; color: var(--tekst); line-height: 1.4; }
.usk-predl { flex: 1; min-height: 0; overflow: hidden; }
.usk-p { display: grid; grid-template-columns: 1fr auto 2.3rem; gap: 0 .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--lin); }
.usk-p b { font: 600 .8rem/1.2 var(--sans); color: var(--chern); }
.usk-p span { display: block; font: 500 .64rem/1.3 var(--mono); color: var(--ser); }
.usk-p em { font-style: normal; display: block; font-size: .7rem; line-height: 1.3; }
.usk-p .us-cena { font-size: .9rem; }

/* ---------- 4. ТО ---------- */
.to-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--zazor); height: 100%; }
html.pk .to-in { height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.to-levo { grid-column: 1 / span 5; display: flex; flex-direction: column; justify-content: center; }
.odometr { display: flex; align-items: flex-end; gap: .25rem; margin: 2rem 0 1.4rem; }
.od-baraban { position: relative; width: 4.3rem; height: 6.2rem; overflow: hidden; background: linear-gradient(#0E0F10, #232527 18%, #2B2D30 50%, #232527 82%, #0E0F10); border-radius: .2rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.od-baraban::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent 28%, transparent 72%, rgba(0, 0, 0, .55)); pointer-events: none; }
.od-lenta { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.od-lenta span { display: block; height: 6.2rem; text-align: center; font: 400 3.9rem/6.2rem var(--mono); color: #EDEBE6; }
.od-baraban.akc { background: linear-gradient(#5E4512, #8A6620 18%, #A47A2A 50%, #8A6620 82%, #5E4512); }
.od-baraban.akc span { color: #fff; }
.od-km { margin-left: .6rem; font: 500 1.3rem/1 var(--mono); color: var(--ser); padding-bottom: .35rem; }
.od-razr { width: .5rem; }
.to-otmetki { display: flex; border: 1px solid var(--chern); border-radius: .15rem; width: max-content; max-width: 100%; }
.to-otmetki button { height: 3rem; min-width: 4.6rem; padding: 0 .9rem; border: 0; background: transparent; font: 600 .95rem/1 var(--mono); color: var(--chern); }
.to-otmetki button + button { border-left: 1px solid var(--chern); }
.to-otmetki button small { font: 400 .62rem var(--mono); color: inherit; opacity: .7; margin-left: .15rem; }
.to-otmetki button[aria-checked="true"] { background: var(--chern); color: var(--bel); }
.to-raboty { margin: 1.4rem 0 0; font: 600 1.15rem/1.35 var(--sans); color: var(--chern); max-width: 28rem; }
.to-maslo { margin: .6rem 0 0; font-size: .72rem; color: var(--ser); line-height: 1.6; }
.to-pravo { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.to-avto { display: flex; align-items: baseline; gap: .3rem .8rem; flex-wrap: wrap; padding-bottom: .9rem; border-bottom: 2px solid var(--chern); }
.to-avto .chipy { flex: 1 0 100%; margin-top: .4rem; }
.to-avto b { font: 700 1.2rem/1.2 var(--sans); color: var(--chern); }
.to-avto span { font: 500 .7rem var(--mono); color: var(--ser); }
.to-spisok { min-height: 0; }
.to-ryad { display: grid; grid-template-columns: 4rem 1fr 3rem 6.5rem 6.5rem; gap: 0 1rem; align-items: center; height: var(--trh, 4.4rem); border-bottom: 1px solid var(--lin); }
.to-ryad img { width: 3.6rem; height: calc(var(--trh, 4.4rem) - .6rem); max-height: 3.6rem; object-fit: contain; }
.to-ryad b { display: block; font: 600 .9rem/1.2 var(--sans); color: var(--chern); }
.to-ryad span { display: block; font: 500 .64rem/1.35 var(--mono); color: var(--ser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-ryad .kol { font: 500 .78rem var(--mono); color: var(--ser); text-align: center; }
.to-ryad .c { text-align: right; font: 600 .9rem/1.2 var(--sans); color: var(--chern); }
.to-ryad .c small { display: block; font: 500 .6rem/1.3 var(--mono); color: var(--ser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-ryad .c.vybr { color: var(--akc-t); }
.to-zag { height: 2rem; border-bottom: 1px solid var(--lin2); font: 500 .6rem/2rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ser); }
.to-zag .c { font: inherit; color: inherit; }
.to-itog { display: grid; grid-template-columns: 1fr 6.5rem 6.5rem; gap: 0 1rem; align-items: center; padding: 1rem 0 0; }
.to-itog .c { text-align: right; }
.to-itog .c b { display: block; font: 700 1.35rem/1 var(--sans); letter-spacing: -.02em; color: var(--chern); }
.to-itog .c button { margin-top: .6rem; }
.to-itog .c.vybr b { color: var(--akc-t); }
.to-ekonom { font-size: .8rem; color: var(--ser); }
.to-ekonom b { color: var(--chern); }

/* ---------- 5. Цены ---------- */
.ceny-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--zazor); height: 100%; align-content: center; }
html.pk .ceny-in { min-height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.ceny-levo { grid-column: 1 / span 6; }
.ceny-pravo { grid-column: 8 / span 5; align-self: center; }
.formula { margin-top: 1.3rem; }
.f-polosa { display: flex; height: 1.1rem; margin-bottom: .6rem; }
.f-polosa i { display: block; height: 100%; }
.f-polosa .f-z { background: var(--chern); }
.f-polosa .f-n { background: var(--akc); margin-left: 2px; }
.f-stroka { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; font-size: .95rem; color: var(--tekst); }
.f-stroka > span { display: inline-flex; align-items: baseline; gap: .4rem; }
.f-stroka i { display: inline-block; width: .75rem; height: .75rem; align-self: center; }
.f-stroka i.f-z { background: var(--chern); }
.f-stroka i.f-n { background: var(--akc); }
.f-stroka i.f-0 { border: 1px dashed var(--ser2); }
.f-stroka b { font: 600 1rem var(--sans); color: var(--chern); }
.f-zn { color: var(--ser); font-weight: 600; }
.f-itog b { font: 700 1.35rem var(--sans); letter-spacing: -.01em; }
.f-chto { margin: .35rem 0 0; font-size: .8rem; color: var(--ser); }
.klassy-zag { margin: 1.5rem 0 .6rem; font-size: .92rem; color: var(--tekst); }
.klassy-zag b { color: var(--chern); }
.klassy-zag span { color: var(--ser); }
.klassy { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--chern); }
.kls { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .9rem 1rem; background: transparent; border: 0; border-right: 1px solid var(--lin2); border-bottom: 1px solid var(--lin2); text-align: left; transition: background .2s; }
.kls:last-child { border-right: 0; }
.kls:hover { background: var(--bel); }
.kls[aria-pressed="true"] { background: var(--bel); box-shadow: inset 0 3px 0 var(--akc); }
.kls-nazv { font: 700 1.15rem/1.15 var(--sans); color: var(--chern); letter-spacing: -.01em; }
.kls-komu { font: 500 .9rem/1.3 var(--sans); color: var(--tekst); min-height: 2.4em; }
.kls-cena { font: 700 1.6rem/1.1 var(--sans); color: var(--chern); letter-spacing: -.02em; margin: .2rem 0 .3rem; }
.kls-ryad { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .84rem; color: var(--tekst); }
.kls-ryad b { font-weight: 600; color: var(--chern); }
.kls-shkala { position: relative; display: block; flex: 0 0 48%; height: .45rem; background: var(--lin); }
.kls-shkala i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chern); }
.kls-brendy { margin-top: .35rem; font-size: .8rem; line-height: 1.35; color: var(--tekst); }
.vkladki-mal { border-bottom: 2px solid var(--chern); }
.vkladki-mal button { height: 2.6rem; padding: 0 1rem; font-size: .8rem; border-right: 0; }
.ceny-pravo .pan { padding: 0; }
.sroki { list-style: none; margin: 0; padding: 0; }
.sroki li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .2rem 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--lin); }
.sroki b { font: 700 1.2rem/1.1 var(--sans); color: var(--chern); grid-row: span 2; letter-spacing: -.01em; }
.sroki li:first-child b { color: var(--ok); }
.sroki span { font: 600 .9rem/1.3 var(--sans); color: var(--chern); }
.sroki em { font-style: normal; font-size: .78rem; color: var(--ser); }
.dost { list-style: none; margin: 0; padding: 0; }
.dost li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--lin); }
.dost span { font: 600 .92rem/1.3 var(--sans); color: var(--chern); }
.dost b { font: 600 .9rem var(--mono); color: var(--chern); text-align: right; }
.dost em { font-style: normal; font-size: .78rem; color: var(--ser); grid-column: 1 / -1; }
.usloviya { margin: 0; }
.usloviya div { padding: .85rem 0; border-bottom: 1px solid var(--lin); }
.usloviya dt { font: 600 .92rem/1.3 var(--sans); color: var(--chern); }
.usloviya dd { margin: .25rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--tekst); }

/* ---------- 6. Подбор ---------- */
.podbor-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--zazor); height: 100%; align-content: center; }
html.pk .podbor-in { min-height: calc(100vh - var(--shapka) - 2.2rem - var(--niz)); }
.podbor-levo { grid-column: 1 / span 6; }
.podbor-levo .zag2 { font-size: 3.3rem; max-width: 40rem; }
.podbor-forma { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 42rem; }
.pole-f { display: flex; flex-direction: column; gap: .35rem; }
.pole-f > span { font: 500 .62rem/1 var(--mono); text-transform: uppercase; color: var(--ser); letter-spacing: .03em; }
.pole-f input, .pole-f textarea { width: 100%; height: 3rem; padding: 0 .8rem; border: 1px solid var(--lin2); border-radius: .15rem; background: var(--bel); outline: none; font-size: .92rem; color: var(--chern); }
.pole-f textarea { height: auto; padding: .7rem .8rem; resize: none; line-height: 1.4; }
.pole-f input:focus, .pole-f textarea:focus { border-color: var(--chern); background: #fff; }
.pole-f input.oshibka { border-color: #A3362B; }
#pVin { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pole-shir { grid-column: 1 / -1; }
.podbor-niz { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.podbor-niz .melko { margin: 0; }
.melko.ok { color: var(--ok); }
.melko.oshibka { color: #A3362B; }
.podbor-pravo { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 1.6rem; align-self: center; }
.kontakt { padding-top: 1rem; border-top: 2px solid var(--chern); }
.kontakt p { margin: .25rem 0 0; font-size: .88rem; }
.kontakt-adr { font: 700 1.6rem/1.15 var(--sans) !important; letter-spacing: -.02em; color: var(--chern); margin: 0 !important; }
.kontakt-tel { font-size: .95rem !important; color: var(--chern); margin-top: .5rem !important; }
.podval { margin: .6rem 0 0; font-size: .72rem; color: var(--ser); line-height: 1.5; padding-top: 1rem; border-top: 1px solid var(--lin2); }

/* ---------- штамп листа ---------- */
.shtamp { position: fixed; z-index: 30; right: var(--pole); bottom: 1.1rem; display: grid; grid-template-columns: auto auto auto auto; border: 1px solid var(--chern);
  background: var(--fon); font: 500 .62rem/1 var(--mono); color: var(--chern); text-transform: uppercase; letter-spacing: .03em; }
.shtamp > span { padding: .45rem .7rem; border-left: 1px solid var(--chern); display: flex; align-items: center; gap: .45rem; }
.shtamp > span:first-child { border-left: 0; font: 800 .78rem/1 var(--sans); letter-spacing: .02em; }
.shtamp small { font-size: .52rem; color: var(--ser); }
.shtamp b { font-weight: 600; font-size: .8rem; }
.shtamp-nazv { min-width: 10.5rem; text-transform: none !important; font-family: var(--sans); font-size: .74rem; letter-spacing: 0 !important; }
html:not(.sceny) .shtamp { display: none; }

/* ---------- корзина ---------- */
.korz-ten { position: fixed; inset: 0; z-index: 60; background: rgba(23, 24, 26, .35); }
.korz-ten[hidden] { display: none; }
.korzina { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: 30rem; max-width: 100%; display: flex; flex-direction: column; background: var(--bel); border-left: 1px solid var(--chern);
  transform: translateX(102%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); visibility: hidden; }
.korzina.otkryta { transform: none; visibility: visible; }
.korz-verh { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--lin2); }
.korz-zakr { width: 2.4rem; height: 2.4rem; border: 1px solid var(--lin2); background: transparent; font-size: 1.4rem; line-height: 1; border-radius: .15rem; }
.korz-spisok { flex: 1; min-height: 0; overflow: auto; padding: 0 1.5rem; }
.korz-pusto { padding: 2rem 0; color: var(--ser); font-size: .9rem; }
.kp { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .2rem .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--lin); }
.kp img { width: 3.4rem; height: 3rem; object-fit: contain; grid-row: span 2; }
.kp b { font: 600 .84rem/1.25 var(--sans); color: var(--chern); }
.kp span { font: 500 .64rem/1.3 var(--mono); color: var(--ser); display: block; }
.kp-cena { text-align: right; font: 600 .9rem var(--sans); color: var(--chern); white-space: nowrap; }
.kp-kol { display: flex; align-items: center; gap: .3rem; justify-content: flex-end; }
.kp-kol button { width: 1.7rem; height: 1.7rem; border: 1px solid var(--lin2); background: transparent; border-radius: .1rem; line-height: 1; padding: 0; }
.kp-kol output { min-width: 1.6rem; text-align: center; font: 500 .76rem var(--mono); }
.korz-forma { padding: 1rem 1.5rem 1.4rem; border-top: 1px solid var(--chern); display: flex; flex-direction: column; gap: .7rem; }
.korz-dost { border: 0; margin: 0; padding: 0; }
.korz-dost legend { font: 500 .62rem/1 var(--mono); text-transform: uppercase; color: var(--ser); margin-bottom: .5rem; padding: 0; }
.kd { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .82rem; cursor: pointer; }
.kd input { margin: 0; accent-color: var(--chern); }
.kd span { flex: 1; }
.kd b { font: 500 .74rem var(--mono); color: var(--chern); }
.korz-itog p { display: flex; justify-content: space-between; margin: .2rem 0; font-size: .84rem; color: var(--ser); }
.korz-itog b { font: 600 .9rem var(--mono); color: var(--chern); }
.korz-itog-vsego { padding-top: .4rem; border-top: 1px solid var(--lin2); }
.korz-itog-vsego span { color: var(--chern); font-weight: 600; }
.korz-itog-vsego b { font: 700 1.25rem var(--sans) !important; }
.korz-forma .melko { margin: 0; }
.korz-forma .pole-f input { height: 2.6rem; }

/* ---------- переходы между сценами ---------- */
.perehod-sloj { position: fixed; z-index: 35; inset: var(--shapka) 0 0; pointer-events: none; visibility: hidden; }
.shtrih-polosa { position: fixed; z-index: 36; top: var(--shapka); bottom: 0; width: 14vw; pointer-events: none; visibility: hidden;
  background: repeating-linear-gradient(-45deg, var(--chern) 0 1px, transparent 1px 9px), var(--fon); border-left: 1px solid var(--chern); border-right: 1px solid var(--chern); }
.setka-kletki { position: fixed; z-index: 36; inset: var(--shapka) 0 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr); pointer-events: none; visibility: hidden; }
.setka-kletki i { display: block; background: var(--bel); box-shadow: inset -1px -1px 0 var(--lin2); transform: scaleY(0); }
.setka-kletki i:nth-child(12n+7) { background: var(--chern); }   /* одна тёмная колонка — как маркер прохода */
.oborot-strelka { position: fixed; z-index: 36; height: 1px; background: var(--chern); transform-origin: 0 50%; pointer-events: none; visibility: hidden; }
.oborot-strelka::before { content: ''; position: absolute; left: -.35rem; top: -.35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--akc); }
.vynoska-kolco { position: fixed; z-index: 36; border: 1px solid var(--chern); border-radius: 50%; pointer-events: none; visibility: hidden; }

/* ---------- обычная прокрутка на ПК: сцены друг за другом ---------- */
html.prokrutka .scena { border-top: 1px solid var(--lin); }
html.prokrutka .scena:first-child { border-top: 0; }
.poyav { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.poyav.vidno { opacity: 1; transform: none; }

/* ---------- телефон ---------- */
html.tel { --shapka: 3.6rem; --pole: 16px; --zazor: 12px; }
html.tel .shapka { gap: .6rem; padding: 0 16px; }
html.tel .menyu, html.tel .rezhim, html.tel .logo-pod, html.tel .korz-kn-imya, html.tel .korz-summa { display: none; }
html.tel .logo-imya { font-size: 1.3rem; }
html.tel .logo-znak { width: 1.8rem; height: 1.8rem; }
html.tel .garazh { height: 2.4rem; padding: 0 .6rem; max-width: 52vw; font-size: .68rem; }
html.tel .korz-kn { height: 2.4rem; padding: 0 .35rem; border-color: var(--lin2); }
html.tel .scena { padding: calc(var(--shapka) + 1.6rem) 16px 2.6rem; border-top: 1px solid var(--lin); }
html.tel .setka-fon { display: none; }
html.tel .zag1 { font-size: 2.65rem; margin-bottom: 1.4rem; }
html.tel .zag2 { font-size: 1.9rem; }
html.tel .avto-in, html.tel .poisk-verh, html.tel .uzel-in, html.tel .to-in, html.tel .ceny-in, html.tel .podbor-in { display: block; height: auto; }
html.tel .avto-in > * + *, html.tel .uzel-in > * + *, html.tel .to-in > * + *, html.tel .ceny-in > * + *, html.tel .podbor-in > * + * { margin-top: 1.6rem; }
html.tel .list-kat { margin-top: 2rem; }
html.tel .lk-setka { grid-template-columns: repeat(3, 1fr); }
html.tel .lk-setka li:nth-child(4n) { border-right: 1px solid var(--lin); }
html.tel .lk-setka li:nth-child(3n) { border-right: 0; }
html.tel .lk-foto { height: 4.4rem; }
html.tel .lk-shapka { flex-direction: column; gap: .2rem; }
html.tel .lk-pod { text-align: left; }
html.tel .shag-pod, html.tel .shag2-posle { margin-left: 0; }
html.tel .pa-otkryt { display: flex; height: 3.4rem; font-size: 1rem; }
html.tel .pa-otkryt[hidden] { display: none; }
html.tel #shag1 .garazh-panel { display: none; }
html.tel .pa-shtorka .vkladki { overflow-x: auto; }
html.tel .pa-setka { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
html.tel .pa-setka.pa-model, html.tel .pa-setka.pa-mod { grid-template-columns: 1fr; }
html.tel .pa-setka.pa-god { grid-template-columns: repeat(3, 1fr); }
html.tel .pa-setka.pa-vse-spisok { grid-template-columns: repeat(2, 1fr); }
html.tel .pa-kn { min-height: 3.6rem; }
html.tel .pa-kn b { font-size: 1rem; }
html.tel .pa-poisk { height: 3rem; font-size: 1rem; }
html.tel .pa-poisk-ryad { flex-wrap: wrap; gap: .5rem; }
html.tel .garazh-obl .garazh { max-width: 52vw; }
html.tel .garazh-ikonka { display: none; }
html.tel .gn-pole { font-size: 1.05rem; }
html.tel .garazh-menyu { position: fixed; left: 16px; right: 16px; top: calc(var(--shapka) + .3rem); width: auto; max-width: none; }
html.tel .bystryj-ryad { flex-direction: column; }
html.tel .bystryj-ryad .kn { width: 100%; }
html.tel .bystryj-ryad .bystryj-pole { flex: none; height: 3rem; }
html.tel .lk-net { display: none; }   /* на телефоне про цены говорит шапка листа */
html.tel .to-ryad > *, html.tel .to-itog > * { min-width: 0; }
html.tel .to-ryad .c, html.tel .to-itog .c b { font-size: .82rem; }

html.tel .vin-ryad, html.tel .vybor-ryad { flex-wrap: wrap; }
html.tel .vin-ryad .kn, html.tel .vybor-ryad .kn { width: 100%; }
html.tel .vybor { flex: 1 1 calc(50% - .4rem); }
html.tel .vybor-shir { flex-basis: 100%; }
html.tel .vin-pole { font-size: .95rem; letter-spacing: .3ch; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(1.3ch - 1px), var(--lin) calc(1.3ch - 1px), var(--lin) 1.3ch); background-size: 22.1ch 100%; }
html.tel .vkladki button { padding: 0 .8rem; font-size: .8rem; }
html.tel .pan { padding: 1rem; }
html.tel .poisk-verh .zag2 { padding-bottom: 1rem; }
html.tel .poisk-pole { height: 3.2rem; font-size: 1rem; padding-left: 2.7rem; }
html.tel .poisk-ryad .kn { height: 3.2rem; padding: 0 1rem; }
html.tel .podskazki { grid-template-columns: 1fr; }
html.tel .pg { border-right: 0; }
html.tel .rez { margin-top: 1.2rem; }
html.tel .tabl, html.tel .tabl tbody, html.tel .tabl tr, html.tel .tabl td { display: block; width: auto; }
html.tel .tabl thead { display: none; }
html.tel .tabl tr:not(.gruppa) { display: grid; grid-template-columns: 3rem 1fr auto auto; gap: .1rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--lin); align-items: center; }
html.tel .tabl td { height: auto; padding: 0; border: 0; white-space: normal; }
html.tel .tabl .c-foto { grid-row: span 3; }
html.tel .tabl .c-foto img { height: 2.6rem; }
html.tel .tabl .c-brend { grid-column: 2; }
html.tel .tabl .c-nomer { grid-column: 2; }
html.tel .tabl .c-opis { display: none; }
html.tel .tabl .c-nal { grid-column: 2 / span 3; font-size: .74rem; }
html.tel .tabl .c-srok { display: none; }
html.tel .tabl .c-cena { grid-column: 3; grid-row: 1 / span 2; }
html.tel .tabl .c-kn { grid-column: 4; grid-row: 1 / span 2; }
html.tel .tabl tr.gruppa td { padding: 1rem 0 .4rem; }
html.tel .kartochki { grid-template-columns: 1fr 1fr; }
html.tel .kartochka { grid-template-columns: 1fr; padding: .7rem; }
html.tel .kartochka img { grid-row: auto; width: 100%; height: 4.4rem; }
html.tel .kak-iskat { grid-template-columns: 1fr 1fr; }
html.tel .vin-kartochka { grid-template-columns: 1fr 1fr; gap: 1rem; }
html.tel .vin-kartochka .kn { grid-column: 1 / -1; justify-self: stretch; }
html.tel .rez-shapka { gap: .8rem; }
html.tel .filtry { flex-wrap: wrap; }
html.tel .uzel-foto { margin-top: 1rem; }
html.tel .uzel-spisok { border-left: 0; padding-left: 0; }
html.tel .us-ryad { flex: none; height: 3.6rem; }
html.tel .uzel-vynoski text { font-size: 9px; }
html.tel .odometr { margin: 1.2rem 0 1rem; }
html.tel .od-baraban { width: 2.55rem; height: 3.8rem; }
html.tel .od-lenta span { height: 3.8rem; font-size: 2.3rem; line-height: 3.8rem; }
html.tel .od-km { font-size: .9rem; }
html.tel .to-otmetki { width: 100%; }
html.tel .to-otmetki button { flex: 1; min-width: 0; padding: 0; font-size: .82rem; }
html.tel .to-otmetki button small { display: none; }
html.tel .to-ryad { grid-template-columns: 2.6rem minmax(0, 1fr) 4.4rem 4.4rem; height: auto; padding: .6rem 0; gap: 0 .5rem; }
html.tel .to-ryad .kol { display: none; }
html.tel .to-ryad img { width: 2.6rem; height: 2.6rem; }
html.tel .to-zag .kol { display: none; }
html.tel .to-itog { grid-template-columns: minmax(0, 1fr) 4.4rem 4.4rem; gap: 0 .5rem; }
html.tel .to-itog .c b { font-size: 1rem; }
html.tel .to-itog .c button { padding: 0 .5rem; font-size: .7rem; }
html.tel .klassy { grid-template-columns: 1fr 1fr; }
html.tel .kls:nth-child(2n) { border-right: 0; }
html.tel .f-stroka { font-size: .85rem; }
html.tel .vkladki-mal { overflow-x: auto; }
html.tel .vkladki-mal button { padding: 0 .7rem; font-size: .74rem; white-space: nowrap; }
html.tel .podbor-levo .zag2 { font-size: 2rem; }
html.tel .podbor-forma { grid-template-columns: 1fr; }
html.tel .shtamp { display: none; }
html.tel .korzina { width: 100%; }
@media (max-width: 380px) {
  html.tel .garazh { max-width: 44vw; }
  html.tel .zag1 { font-size: 2.3rem; }
  html.tel .kak-iskat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .poyav { transition: none; } }
html.tel .to-zag .c { font-size: .55rem; }
