/* ==========================================================================
   EISENFELD — фирменный стиль «промышленный чертёж»
   0. Токены и сброс      4. Каталог, фильтры, карточки
   1. Примитивы (кнопки)  5. Лизинг, о компании, контакты, подвал
   2. Шапка и меню        6. Оверлеи: модалка, шторки, тосты
   3. Герой, категории,   7. Мобильная версия
      EF-MATCH            8. Печать и доступность
   ========================================================================== */

/* ============================ 0. ТОКЕНЫ ================================== */
:root {
  --bg:      #0A0C0E;
  --bg2:     #0E1114;
  --panel:   #14181C;
  --panel2:  #191E23;
  --line:    #232931;
  --line2:   #2F3742;
  --txt:     #E9EDF0;
  --txt2:    #C2CAD2;
  --mut:     #8B949E;
  --acc:     #F5B301;
  --acc2:    #FFCB3D;
  --acc-ink: #0A0C0E;
  --ok:      #40C07F;
  --info:    #4E9BFF;
  --danger:  #FF6B4A;
  --grid:    rgba(255, 255, 255, .045);
  --shadow:  0 18px 44px rgba(0, 0, 0, .45);
  --shadow-s:0 6px 18px rgba(0, 0, 0, .3);
  --glass:   rgba(12, 15, 18, .78);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --wrap: 1300px;
  --hdr-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* нативные чекбоксы, выпадающие списки и полосы прокрутки — в тон теме */
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:      #EFF2F5;
  --bg2:     #F6F8FA;
  --panel:   #FFFFFF;
  --panel2:  #F4F7F9;
  --line:    #DCE2E8;
  --line2:   #C4CDD6;
  --txt:     #0E1317;
  --txt2:    #2C353D;
  --mut:     #616C77;
  --acc:     #E19600;
  --acc2:    #C98400;
  --acc-ink: #FFFFFF;
  --grid:    rgba(14, 19, 23, .05);
  --shadow:  0 18px 44px rgba(24, 34, 44, .16);
  --shadow-s:0 6px 18px rgba(24, 34, 44, .1);
  --glass:   rgba(255, 255, 255, .82);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* Классы вроде .modal{display:grid} перебивают атрибут hidden — тогда скрытый
   слой продолжает перехватывать клики. Возвращаем hidden приоритет. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: 19px; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--acc); color: var(--acc-ink); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 500;
  padding: 10px 16px; background: var(--acc); color: var(--acc-ink);
  border-radius: var(--r-s); font-weight: 600; transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============================ 1. ПРИМИТИВЫ =============================== */
.btn {
  --btn-bg: transparent; --btn-fg: var(--txt); --btn-bd: var(--line2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--btn-bd); border-radius: var(--r-s);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .16s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn--primary { --btn-bg: var(--acc); --btn-fg: var(--acc-ink); --btn-bd: var(--acc); }
.btn--primary:hover { --btn-bg: var(--acc2); --btn-bd: var(--acc2); box-shadow: 0 6px 20px rgba(245, 179, 1, .26); }

.btn--outline { --btn-bd: var(--line2); }
.btn--outline:hover { --btn-bd: var(--acc); color: var(--acc); }

.btn--ghost { --btn-bd: transparent; --btn-bg: var(--panel2); color: var(--txt2); }
.btn--ghost:hover { color: var(--txt); --btn-bg: var(--line); }

.btn--sm  { padding: 8px 14px; font-size: 13px; }
.btn--lg  { padding: 15px 28px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid transparent; border-radius: var(--r-s);
  background: transparent; color: var(--txt2); cursor: pointer; position: relative;
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: var(--panel2); color: var(--txt); }

.count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acc); color: var(--acc-ink);
  border-radius: 9px; font: 700 11px/1 var(--mono);
}
.hdr__cart .count { position: static; margin-left: 2px; background: var(--acc-ink); color: var(--acc); }
.count--inline { position: static; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mut); margin-bottom: 16px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, .16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 179, 1, .16); }
  50%      { box-shadow: 0 0 0 7px rgba(245, 179, 1, .04); }
}
.tm { color: var(--acc); font-size: .62em; vertical-align: super; letter-spacing: 0; }

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 40px 0 0; }

.shead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 34px;
}
.shead__sub { color: var(--mut); max-width: 62ch; margin-top: 14px; font-size: 15px; }
.shead__tools { display: flex; align-items: center; gap: 10px; }

.select { position: relative; display: inline-flex; }
.select::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--mut); border-bottom: 1.6px solid var(--mut);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 36px 9px 14px; border: 1px solid var(--line2); border-radius: var(--r-s);
  background: var(--panel); color: var(--txt); font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%;
}
.select--full { width: 100%; }

/* поля формы */
.field { display: block; margin-bottom: 16px; }
.field__lab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--mut); margin-bottom: 9px;
}
.field__lab b { color: var(--acc); font-size: 14px; letter-spacing: 0; text-transform: none; }
.field input[type="text"], .field input[type="search"], .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line2);
  border-radius: var(--r-s); background: var(--bg2); color: var(--txt);
  font-size: 15px; transition: border-color .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: var(--acc); outline: none; background: var(--panel); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--danger); }
.field__err { display: none; color: var(--danger); font-size: 12.5px; font-style: normal; margin-top: 6px; }
.field.is-bad .field__err { display: block; }

/* ползунки */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px;
  background: transparent; cursor: pointer; display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc) var(--fill, 50%), var(--line) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acc); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px;
  border-radius: 50%; background: var(--acc); border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .15s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--acc);
  border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; cursor: pointer; font-size: 13.5px; color: var(--mut); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); flex: 0 0 auto; cursor: pointer; }
.check i { font-style: normal; opacity: .7; }

/* ============================ 2. ШАПКА =================================== */
.hdr {
  position: sticky; top: 0; z-index: 70;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s;
}
.hdr.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.hdr__inner { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo__hex { fill: var(--acc); }
.logo__glyph { fill: var(--acc-ink); }
:root[data-theme="light"] .logo__glyph { fill: #fff; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font: 800 17px/1 var(--sans); letter-spacing: .14em; }
.logo__txt i {
  font: 500 9.5px/1 var(--mono); letter-spacing: .2em; font-style: normal;
  color: var(--mut); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-s); font-size: 14px; font-weight: 500;
  color: var(--txt2); position: relative; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--txt); background: var(--panel2); }
.nav a.is-active { color: var(--acc); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--acc); border-radius: 2px;
}

.hdr__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav + .hdr__actions { margin-left: 0; }

.hdr__search { border-top: 1px solid var(--line); background: var(--panel); }
.hdr__search-in { display: flex; align-items: center; gap: 12px; padding-block: 12px; color: var(--mut); }
.hdr__search-in input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-size: 16px; color: var(--txt); padding: 6px 0;
}
.hdr__search-in input::placeholder { color: var(--mut); }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span {
  display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .24s var(--ease), opacity .18s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobmenu {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 95;
  background: var(--bg); padding: 24px; display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; transition: opacity .22s, transform .22s var(--ease);
  overflow-y: auto;
}
.mobmenu.is-open { transform: none; opacity: 1; }
.mobmenu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobmenu__nav a {
  padding: 17px 4px; font-size: 21px; font-weight: 600; letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
}
.mobmenu__nav a:active { color: var(--acc); }
.mobmenu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ============================ 3. ГЕРОЙ =================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg2); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 25%, transparent 78%);
}
.hero__glow {
  position: absolute; top: -30%; right: -10%; width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(245, 179, 1, .13), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding: 76px 24px 60px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--txt2); font-size: 17px; max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 42px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hero__stats > div { border-left: 2px solid var(--acc); padding-left: 14px; }
.hero__stats dt { font: 700 26px/1 var(--sans); letter-spacing: -.02em; }
.hero__stats dd { color: var(--mut); font-size: 12.5px; margin-top: 6px; line-height: 1.35; }

.hero__art { position: relative; }
.hero__art .ef-svg { width: 100%; height: auto; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero__art.is-fading .ef-svg { opacity: 0; transform: translateX(-14px); }
.hero__cap {
  position: absolute; left: 0; bottom: 6px;
  font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--mut);
  background: var(--panel); border: 1px solid var(--line); padding: 7px 11px; border-radius: 6px;
}

.ticker {
  position: relative; border-top: 1px solid var(--line);
  background: var(--panel); overflow: hidden; padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__row { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.ticker span {
  font: 600 12px/1 var(--mono); letter-spacing: .2em; color: var(--mut);
  display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; white-space: nowrap;
}
.ticker span::after { content: ""; width: 5px; height: 5px; background: var(--acc); border-radius: 50%; opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* категории */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel);
  cursor: pointer; text-align: left; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.cat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--acc); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.cat:hover { transform: translateY(-3px); border-color: var(--line2); }
.cat:hover::after, .cat.is-active::after { transform: none; }
.cat.is-active { border-color: var(--acc); }
.cat .ef-icon { color: var(--acc); }
.cat b { font-size: 14.5px; font-weight: 650; }
.cat i { font-style: normal; font-size: 12px; color: var(--mut); line-height: 1.4; }
.cat u { text-decoration: none; font: 600 11px/1 var(--mono); color: var(--mut); margin-top: auto; }

/* ============================ EF-MATCH =================================== */
.match { background: var(--bg2); border-block: 1px solid var(--line); }
.match__box {
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel);
  overflow: hidden; box-shadow: var(--shadow-s);
}
.match__progress { height: 3px; background: var(--line); }
.match__progress span {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width .4s var(--ease);
}
.match__steps { padding: 34px; }
.mstep { display: none; }
.mstep.is-on { display: block; animation: fadeUp .34s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mstep__n { font: 600 12px/1 var(--mono); letter-spacing: .16em; color: var(--acc); margin-bottom: 12px; }
.mstep h3 { font-size: 24px; margin-bottom: 6px; }
.mstep p.mstep__hint { color: var(--mut); font-size: 14px; margin-bottom: 22px; }
.mopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mopt {
  display: flex; flex-direction: column; gap: 7px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg2);
  cursor: pointer; text-align: left; transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.mopt:hover { border-color: var(--line2); transform: translateY(-2px); }
.mopt.is-sel { border-color: var(--acc); background: rgba(245, 179, 1, .07); }
.mopt b { font-size: 15px; }
.mopt span { font-size: 12.5px; color: var(--mut); line-height: 1.45; }
.match__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

.match__result { padding: 0 34px 34px; }
.mres__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mres__head h3 { font-size: 21px; }
.mres__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mres {
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg2);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  cursor: pointer; transition: border-color .18s, transform .18s var(--ease);
}
.mres:hover { border-color: var(--acc); transform: translateY(-2px); }
.mres__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mres__pct { font: 700 22px/1 var(--sans); color: var(--acc); }
.mres__brand { font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--mut); }
.mres b { font-size: 15.5px; line-height: 1.25; }
.mres__meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mres__meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 3px; }
.mres__price { font: 700 15px/1 var(--mono); }
.mres__why { font-size: 12.5px; color: var(--mut); line-height: 1.45; }

/* ============================ 4. КАТАЛОГ ================================= */
.catalog { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }

.filters {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel);
  max-height: calc(100vh - var(--hdr-h) - 44px); display: flex; flex-direction: column;
}
.filters__head { display: none; }
.filters__body { padding: 6px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__t {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0; background: none; border: 0; cursor: pointer;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut);
}
.fgroup__t:hover { color: var(--txt); }
.fgroup__t svg { transition: transform .22s var(--ease); }
.fgroup.is-closed .fgroup__t svg { transform: rotate(-90deg); }
.fgroup__c { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.fgroup.is-closed .fgroup__c { display: none; }

.fopt { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--txt2); }
.fopt input { width: 17px; height: 17px; margin: 0; accent-color: var(--acc); cursor: pointer; flex: 0 0 auto; }
.fopt:hover { color: var(--txt); }
.fopt em { margin-left: auto; font-style: normal; font: 500 11.5px/1 var(--mono); color: var(--mut); }

.frange { padding-top: 4px; }
.frange__out { display: flex; justify-content: space-between; font: 600 12.5px/1 var(--mono); color: var(--txt2); margin-bottom: 10px; }

.filters__foot { display: none; }

.catalog__meta { font: 500 12.5px/1 var(--mono); color: var(--mut); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 12px;
  border: 1px solid var(--line2); border-radius: 20px; background: var(--panel);
  font-size: 12.5px; cursor: pointer; color: var(--txt2); transition: border-color .18s, color .18s;
}
.chip:hover { border-color: var(--danger); color: var(--danger); }
.chip svg { width: 13px; height: 13px; }
.chip--clear { border-style: dashed; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel);
  overflow: hidden; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
  animation: cardIn .34s var(--ease) backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-5px); border-color: var(--line2); box-shadow: var(--shadow); }

.card__media {
  position: relative; background: var(--bg2); border-bottom: 1px solid var(--line);
  cursor: pointer; overflow: hidden;
  /* место под иллюстрацию резервируем заранее — иначе при ленивой вставке
     SVG сетка дёргается и происходит скачок вёрстки */
  aspect-ratio: 400 / 260;
}
.card__media .ef-svg { width: 100%; height: auto; transition: transform .4s var(--ease); }
.card:hover .card__media .ef-svg { transform: scale(1.045); }
.card__media::before, .card__media::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1.5px solid var(--line2); opacity: .8;
}
.card__media::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card__media::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.badges { position: absolute; top: 12px; left: 30px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 60px); }
.badge {
  font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px; background: var(--panel2); color: var(--txt2);
  border: 1px solid var(--line2);
}
.badge--new  { background: var(--ok); color: #06210F; border-color: transparent; }
.badge--hit  { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.badge--used { background: transparent; }

.card__cmp {
  position: absolute; top: 10px; right: 30px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: var(--r-s);
  background: var(--glass); backdrop-filter: blur(6px); color: var(--txt2);
  cursor: pointer; transition: color .18s, border-color .18s, background .18s;
}
.card__cmp:hover { color: var(--acc); border-color: var(--acc); }
.card__cmp.is-on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

.card__body { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__brand {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 600 11px/1 var(--mono); letter-spacing: .13em; color: var(--mut); text-transform: uppercase;
}
.card__brand em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.card__brand em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.card__brand em.is-order::before { background: var(--info); }
.card__title { font-size: 17px; line-height: 1.25; }
.card__title a:hover { color: var(--acc); }
.card__short { font-size: 13px; color: var(--mut); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 4px; }
.card__specs div { border-top: 1px solid var(--line); padding-top: 9px; }
.card__specs dt { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--mut); text-transform: uppercase; }
.card__specs dd { font: 650 14px/1.2 var(--sans); margin-top: 5px; }

.card__foot { padding: 14px 16px 16px; display: flex; align-items: center; gap: 10px; }
.card__price { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.card__price b { font: 700 20px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.card__price span { font: 500 11px/1 var(--mono); color: var(--mut); margin-top: 5px; }
.card__add { flex: 0 0 auto; }
.card__add.is-in { --btn-bg: var(--ok); --btn-bd: var(--ok); --btn-fg: #06210F; }

.empty {
  text-align: center; padding: 70px 20px; color: var(--mut);
  border: 1px dashed var(--line2); border-radius: var(--r-m);
}
.empty svg { margin: 0 auto 16px; color: var(--line2); }
.empty h3 { color: var(--txt); margin-bottom: 8px; }
.empty p { margin-bottom: 20px; }

/* ============================ 5. ЛИЗИНГ ================================== */
.lease { background: var(--bg2); border-block: 1px solid var(--line); }
.lease__box {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel);
  overflow: hidden; box-shadow: var(--shadow-s);
}
.lease__controls { padding: 30px; }
.lease__out {
  padding: 30px; background: var(--bg2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.lease__cap { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.lease__big {
  font: 800 clamp(34px, 4.4vw, 52px)/1 var(--sans); letter-spacing: -.03em;
  margin: 12px 0 22px; color: var(--acc);
}
.lease__rows li {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mut);
}
.lease__rows b { color: var(--txt); font: 650 14.5px/1 var(--mono); white-space: nowrap; }
.lease__rows .is-total { border-bottom: 0; padding-top: 14px; }
.lease__rows .is-total span { color: var(--txt2); font-weight: 600; }
.lease__rows .is-total b { font-size: 17px; }
.lease__bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--line); margin: 16px 0 14px; }
.lease__bar span { background: var(--acc); }
.lease__bar i { background: var(--info); opacity: .7; }
.lease__note { font-size: 12px; color: var(--mut); line-height: 1.5; margin-bottom: 18px; }
.lease__out .btn { margin-top: auto; }

/* ============================ О КОМПАНИИ ================================= */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--panel); position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.feat:hover { border-color: var(--line2); transform: translateY(-3px); }
.feat__n {
  font: 700 12px/1 var(--mono); color: var(--acc); letter-spacing: .1em;
  display: block; margin-bottom: 16px;
}
.feat h3 { margin-bottom: 10px; font-size: 17.5px; }
.feat p { color: var(--mut); font-size: 14px; line-height: 1.6; }

/* ============================ КОНТАКТЫ =================================== */
.contacts__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 18px; align-items: start; }
.locs { display: grid; gap: 12px; }
.loc {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel);
}
.loc__pin {
  width: 44px; height: 44px; border-radius: var(--r-s); display: grid; place-items: center;
  background: var(--panel2); color: var(--acc); border: 1px solid var(--line);
}
.loc__kind { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.loc h3 { font-size: 18px; margin: 8px 0 6px; }
.loc p { font-size: 13.5px; color: var(--mut); line-height: 1.6; }
.loc__links { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.loc__links a { font-size: 13.5px; font-weight: 600; color: var(--acc); }
.loc__links a:hover { text-decoration: underline; }

.cform { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); }
.cform h3 { font-size: 20px; }
.cform__sub { color: var(--mut); font-size: 13.5px; margin: 8px 0 22px; line-height: 1.5; }

/* ============================ ПОДВАЛ ===================================== */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding-top: 56px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; }
.foot__brand p { color: var(--mut); font-size: 13.5px; line-height: 1.65; margin-top: 18px; max-width: 42ch; }
.foot__col { display: flex; flex-direction: column; gap: 11px; }
.foot__col b { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--txt); margin-bottom: 4px; }
.foot__col a, .foot__col span { font-size: 14px; color: var(--mut); transition: color .18s; }
.foot__col a:hover { color: var(--acc); }
.foot__bot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-top: 1px solid var(--line);
  font: 500 12px/1.5 var(--mono); color: var(--mut);
}

/* ============================ 6. ОВЕРЛЕИ ================================= */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 8, .68);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .26s var(--ease);
}
.scrim.is-on { opacity: 1; }

/* модальное окно карточки */
.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  padding: 24px; overflow-y: auto; overscroll-behavior: contain;
}
.modal__panel {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 48px);
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-l);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(18px) scale(.985); opacity: 0;
  transition: transform .28s var(--ease), opacity .24s;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__x { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--glass); }
.modal__body { overflow-y: auto; overscroll-behavior: contain; }

.mdl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.mdl__media { background: var(--bg2); border-right: 1px solid var(--line); padding: 22px; position: relative; }
.mdl__media .ef-svg { width: 100%; height: auto; }
.mdl__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mdl__tag {
  font: 600 11px/1 var(--mono); letter-spacing: .06em; padding: 7px 10px;
  border: 1px solid var(--line2); border-radius: 20px; color: var(--txt2);
}
.mdl__meta { margin-top: 20px; border-top: 1px solid var(--line); }
.mdl__meta > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mdl__meta dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.mdl__meta dd { font-size: 13.5px; font-weight: 600; text-align: right; }
.stars { font-style: normal; color: var(--acc); letter-spacing: .06em; }

.mdl__info { padding: 30px; display: flex; flex-direction: column; }
.mdl__brand { font: 600 11.5px/1 var(--mono); letter-spacing: .16em; color: var(--acc); text-transform: uppercase; }
.mdl__info h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 12px 0 14px; }
.mdl__short { color: var(--mut); font-size: 14.5px; line-height: 1.65; margin-bottom: 22px; }

.mdl__key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.mdl__key div { padding: 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg2); }
.mdl__key dt { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.mdl__key dd { font: 700 17px/1 var(--sans); margin-top: 7px; }

.mdl__price { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.mdl__price b { font: 800 34px/1 var(--sans); letter-spacing: -.03em; }
.mdl__price span { font: 500 12px/1 var(--mono); color: var(--mut); padding-bottom: 4px; }
.mdl__lease {
  font-size: 13.5px; color: var(--mut); margin-bottom: 20px;
  padding: 12px 14px; border: 1px dashed var(--line2); border-radius: var(--r-s);
}
.mdl__lease b { color: var(--acc); font-family: var(--mono); font-size: 15px; }
.mdl__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mdl__cta .btn { flex: 1 1 160px; }

.spec-t { width: 100%; border-collapse: collapse; }
.spec-t caption {
  text-align: left; font: 600 11.5px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--mut); padding-bottom: 12px;
}
.spec-t tr { border-bottom: 1px solid var(--line); }
.spec-t tr:last-child { border-bottom: 0; }
.spec-t th, .spec-t td { text-align: left; padding: 10px 0; font-size: 13.8px; vertical-align: top; }
.spec-t th { font-weight: 500; color: var(--mut); width: 48%; padding-right: 14px; }
.spec-t td { font-weight: 600; }

/* боковые шторки */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%); background: var(--panel); border-left: 1px solid var(--line2);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: translateX(102%); transition: transform .32s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer--wide { width: min(1000px, 100%); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.drawer__head h2 { font-size: 19px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.drawer__foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 18px 20px; background: var(--bg2); }

.citem { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem:last-of-type { border-bottom: 0; }
.citem__pic { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--bg2); aspect-ratio: 400 / 260; }
.citem__brand { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--mut); text-transform: uppercase; }
.citem h4 { font-size: 15px; margin: 7px 0 8px; font-weight: 650; line-height: 1.3; }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.citem__price { font: 700 16px/1 var(--sans); }
.citem__del {
  background: none; border: 0; color: var(--mut); font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 0;
}
.citem__del:hover { color: var(--danger); }

.csum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.csum span { color: var(--mut); font-size: 14px; }
.csum b { font: 800 26px/1 var(--sans); letter-spacing: -.02em; }
.cnote { font-size: 12px; color: var(--mut); margin-bottom: 14px; line-height: 1.5; }

.dempty { text-align: center; padding: 60px 16px; color: var(--mut); }
.dempty svg { margin: 0 auto 14px; color: var(--line2); }
.dempty b { display: block; color: var(--txt); font-size: 16px; margin-bottom: 8px; }
.dempty p { font-size: 13.5px; line-height: 1.55; }

/* таблица сравнения */
.cmp-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.cmp { border-collapse: collapse; width: 100%; min-width: 520px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13.5px; }
.cmp thead th { vertical-align: bottom; border-bottom: 1px solid var(--line2); }
.cmp tbody th { color: var(--mut); font-weight: 500; width: 168px; position: sticky; left: 0; background: var(--panel); }
.cmp td.is-best { color: var(--acc); font-weight: 700; }
.cmp td.is-best::after { content: " ★"; font-size: 11px; }
.cmp__pic { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--bg2); margin-bottom: 10px; aspect-ratio: 400 / 260; }
.cmp__name { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.cmp__brand { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--mut); margin-bottom: 6px; }
.cmp__x { margin-top: 8px; background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 12.5px; padding: 0; }
.cmp__x:hover { color: var(--danger); }

/* тосты */
.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  background: var(--panel); border: 1px solid var(--line2); border-left: 3px solid var(--acc);
  border-radius: var(--r-s); box-shadow: var(--shadow); font-size: 13.5px;
  transform: translateX(120%); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
  pointer-events: auto;
}
.toast.is-on { transform: none; opacity: 1; }
.toast.is-ok { border-left-color: var(--ok); }
.toast.is-warn { border-left-color: var(--danger); }
.toast svg { flex: 0 0 auto; margin-top: 1px; color: var(--acc); }
.toast.is-ok svg { color: var(--ok); }
.toast.is-warn svg { color: var(--danger); }
.toast b { display: block; margin-bottom: 2px; }
.toast span { color: var(--mut); line-height: 1.45; }

/* ============================ 7. SVG-ТЕХНИКА ============================= */
.ef-svg { width: 100%; height: auto; }
.ef-grid { stroke: var(--grid); stroke-width: 1; }
.ef-ground { stroke: var(--line2); stroke-width: 1.4; stroke-dasharray: 7 6; }
.ef-ticks line { stroke: var(--line2); stroke-width: 1.2; }
.ef-tag { fill: var(--mut); font: 600 11px var(--mono); letter-spacing: .16em; }
.ef-tag-r { text-anchor: end; }
.ef-shadow ellipse { fill: rgba(0, 0, 0, .32); }
:root[data-theme="light"] .ef-shadow ellipse { fill: rgba(20, 30, 40, .13); }

.ef-machine { --ink: rgba(0, 0, 0, .34); }
.ef-tire  { fill: #191E24; stroke: #0C0F12; stroke-width: 1; }
.ef-tread { stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.ef-rim   { stroke: rgba(0, 0, 0, .3); stroke-width: 1.5; }
.ef-hub   { fill: #0D1114; }
.ef-bolt  { fill: rgba(0, 0, 0, .4); }
.ef-body  { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.ef-body-dark { fill: #2A323B; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.ef-glass { fill: rgba(126, 196, 255, .26); stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.ef-line  { stroke: rgba(0, 0, 0, .26); stroke-width: 1.4; fill: none; }
.ef-lamp  { fill: #FFE7A3; stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.ef-frame { fill: none; stroke: #3C4551; stroke-width: 5; stroke-linecap: round; }
.ef-frame-solid { fill: #333C46; stroke: var(--ink); stroke-width: 1.2; }
.ef-cyl   { stroke: #9CA7B3; stroke-width: 5; stroke-linecap: round; fill: none; }
.ef-tooth { stroke: #8E98A3; stroke-width: 3; stroke-linecap: round; }
.ef-tooth-bar { fill: #8E98A3; }
.ef-reel  { fill: none; stroke: #3C4551; stroke-width: 3; }
.ef-reel-arm { stroke: #4C5762; stroke-width: 2.2; fill: none; }
.ef-fork  { fill: #8E98A3; stroke: var(--ink); stroke-width: 1; }
.ef-tine  { fill: none; stroke: #3C4551; stroke-width: 4; stroke-linecap: round; }
:root[data-theme="light"] .ef-tire { fill: #2B333C; stroke: #1A2027; }
:root[data-theme="light"] .ef-body-dark { fill: #3A434E; }
:root[data-theme="light"] .ef-glass { fill: rgba(90, 165, 235, .3); }

/* ============================ 8. МОБИЛЬНАЯ ВЕРСИЯ ======================== */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 60px; }
  .hero__art { max-width: 620px; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .lease__box { grid-template-columns: minmax(0, 1fr); }
  .lease__out { border-left: 0; border-top: 1px solid var(--line); }
  .contacts__box { grid-template-columns: minmax(0, 1fr); }
  .mdl { grid-template-columns: minmax(0, 1fr); }
  .mdl__media { border-right: 0; border-bottom: 1px solid var(--line); }

  /* фильтры превращаются в нижнюю шторку */
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100;
    max-height: 86vh; border: 0; border-top: 1px solid var(--line2);
    border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow);
    transform: translateY(101%); transition: transform .32s var(--ease), visibility 0s .32s;
    padding-bottom: env(safe-area-inset-bottom);
    /* закрытая шторка сдвинута ровно на свою высоту, а её нижний край выше
       таб-бара — без visibility/pointer-events она перехватывала бы тапы по нему */
    visibility: hidden; pointer-events: none;
  }
  .filters.is-open {
    transform: none; visibility: visible; pointer-events: auto;
    transition: transform .32s var(--ease);
  }
  .filters__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px; border-bottom: 1px solid var(--line); position: relative;
  }
  .filters__head::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px; background: var(--line2);
  }
  .filters__head b { font-size: 17px; }
  .filters__body { flex: 1; -webkit-overflow-scrolling: touch; }
  .filters__foot {
    display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line);
    background: var(--bg2);
  }
  .filters__foot .btn { flex: 1; }
  .filters__apply { flex: 1.4 !important; }
}

@media (max-width: 860px) {
  :root { --hdr-h: 60px; }
  .section { padding: 62px 0; }
  .wrap { padding: 0 16px; }
  .hero__inner { padding: 44px 16px 44px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero__cta { margin: 26px 0 34px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .match__steps, .match__result { padding: 22px 18px; }
  .match__result { padding-top: 0; }
  .lease__controls, .lease__out { padding: 22px 18px; }
  .mdl__info { padding: 22px 18px 26px; }
  .mdl__media { padding: 16px 16px 18px; }
  .foot__bot { padding-inline: 16px; }
  .drawer__body, .drawer__head, .drawer__foot { padding-inline: 16px; }
  .toasts { right: 12px; left: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); max-width: none; }
  .toast { transform: translateY(140%); }
  .toast.is-on { transform: none; }

  /* нижняя панель навигации */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar__i {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 2px 8px; background: none; border: 0; cursor: pointer; position: relative;
    color: var(--mut); font: 500 10.5px/1 var(--sans); transition: color .18s;
  }
  .tabbar__i span { letter-spacing: .01em; }
  .tabbar__i.is-active { color: var(--acc); }
  .tabbar__i:active { color: var(--acc); }
  .tabbar__dot {
    position: absolute; top: 7px; left: 50%; margin-left: 7px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
    border: 2px solid var(--bg);
  }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .filters { bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 76vh; }
  .drawer { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* на мобильном карточка компактнее: спеки в две колонки, цена над кнопкой */
  .card__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__short { display: none; }
  /* На телефоне карточка открывается как нижний лист: его можно смахнуть вниз */
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel {
    max-height: 94vh; width: 100%; border-radius: var(--r-l) var(--r-l) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    transform: translateY(100%); opacity: 1; padding-top: 10px;
  }
  .modal.is-open .modal__panel { transform: none; }
  .modal__panel::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px; border-radius: 2px; background: var(--line2); z-index: 4;
  }
  .modal__panel.is-dragging { transition: none; }
  .modal__x { top: 14px; right: 10px; }
  /* год в правом верхнем углу иллюстрации попадал под крестик закрытия */
  .mdl__media .ef-tag-r { display: none; }
  .drawer { width: 100%; border-left: 0; }
  .drawer--wide { width: 100%; }
  .cmp tbody th { width: 130px; }
  /* В шапке остаётся только логотип, поиск и бургер: заявка, сравнение и тема
     переехали в нижнюю панель и в меню, иначе на 360–390 px строка не влезает
     и кнопки уходят за край экрана. */
  .hdr__cart, #compareBtn, #themeToggle { display: none; }
  .hdr__inner { gap: 8px; }
  .logo__txt b { font-size: 15px; letter-spacing: .1em; }
  .logo__txt i { font-size: 8.5px; }
  .shead__tools { width: 100%; }
  .shead__tools .select { flex: 1; }
  .shead__tools .select select { width: 100%; }
  .filters-open { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 34px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .mdl__key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mopts { grid-template-columns: minmax(0, 1fr); }
  .mres__list { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card__foot { flex-wrap: wrap; }
  .card__price { width: 100%; margin-bottom: 10px; }
  .card__add { width: 100%; }
  .badges { left: 12px; }
  .card__cmp { right: 12px; }
  .lease__big { font-size: 38px; }
}

/* ============================ 9. ДОСТУПНОСТЬ ============================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker__row { animation: none; }
}

@media print {
  .hdr, .tabbar, .filters, .drawer, .modal, .scrim, .toasts, .hero__art, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
