/* =========================================================
   KABANASIA — стили сайта (mobile-first)
   ========================================================= */
:root {
  --red: #d91522;
  --red-d: #b30f1a;
  --red-soft: #fdecee;
  --ink: #0f1115;
  --ink-2: #1a1d23;
  --text: #16181d;
  --muted: #5d6470;
  --line: #e5e7eb;
  --bg: #ffffff;
  --tint: #f4f5f7;
  --wa: #1fae5b;
  --r: 14px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(16, 18, 24, .05), 0 6px 20px rgba(16, 18, 24, .06);
  --sh-lg: 0 10px 40px rgba(16, 18, 24, .16);
  --hdr: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: 72px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2e36; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: #c9cdd4; }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.2); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #179a4f; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo__mark { width: 38px; height: 38px; border-radius: 9px; background: #000; color: var(--red); display: grid; place-items: center; font: 800 24px/1 var(--font); flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo__txt b { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.logo__txt small { font-size: 11.5px; color: var(--muted); }
.logo--light .logo__txt small { color: #9aa1ac; }
.hdr__nav { display: none; gap: 4px; margin-left: 12px; }
.hdr__nav > a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: #3a3f47; }
.hdr__nav > a:hover, .hdr__nav > a.is-on { background: var(--tint); color: var(--text); }
.hdr__act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 8px; border-radius: 8px; }
.hdr__phone span { display: none; }
.hdr__wa, .hdr__cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.burger .ic { width: 22px; height: 22px; }

/* ---------- Мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(10,12,16,.5); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__label { padding: 16px 16px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-weight: 500; }
.drawer__cats a:active { background: var(--tint); }
.drawer__cats em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.drawer__ic { width: 36px; height: 36px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.drawer__links a { display: block; padding: 10px 16px; font-weight: 500; }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.lock { overflow: hidden; }

/* ---------- Нижняя панель (мобильный) ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar__btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 4px 6px; font-size: 11px; font-weight: 500; color: #3a3f47; }
.mbar__btn .ic { width: 22px; height: 22px; }
.mbar__btn--wa { color: var(--wa); }
.mbar__main { flex: 1; min-height: 46px; border: 0; border-radius: 11px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; }

/* ---------- Общие секции ---------- */
.sec { padding: 48px 0; }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--ink); color: #fff; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec__title { font-size: 28px; font-weight: 800; }
.sec__title--sm { font-size: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 8px; }
.eyebrow--light { color: #ff6b74; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--red); white-space: nowrap; }
.link-more .ic { width: 18px; height: 18px; transition: transform .15s; }
.link-more:hover .ic { transform: translateX(3px); }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--red); width: 20px; height: 20px; margin-top: 2px; }
.checks--light .ic { color: #ff6b74; }

/* ---------- Баннер ---------- */
.hero { position: relative; color: #fff; background: #0b0c0f; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: #0b0c0f url(/img/hero-poster.jpg) center/cover no-repeat; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.75) 50%, rgba(8,9,12,.45) 100%), linear-gradient(0deg, rgba(8,9,12,.8), transparent 40%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__in { position: relative; padding-top: 56px; padding-bottom: 40px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #d7dae0; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.06); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(217,21,34,.25); }
.hero__title { font-size: clamp(32px, 8.5vw, 64px); font-weight: 800; margin: 18px 0 14px; max-width: 14ch; letter-spacing: -.03em; }
.hero__lead { font-size: 17px; color: #cfd3da; max-width: 560px; margin-bottom: 26px; }
.hero__btns { display: grid; gap: 10px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__facts b { display: block; font-size: 26px; font-weight: 800; }
.hero__facts span { font-size: 12.5px; color: #aab0ba; line-height: 1.3; display: block; }

/* ---------- Разделы (плитки) ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 150px; }
.cat:hover { border-color: #d5d8de; box-shadow: var(--sh); transform: translateY(-2px); }
.cat__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.cat__ic .ic { width: 26px; height: 26px; }
.cat__name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.cat__desc { display: none; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.cat__cnt { margin-top: auto; font-size: 13px; color: var(--muted); }
.cat__go { display: none; }
.cat--big { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; background: var(--ink); border-color: var(--ink); color: #fff; padding: 18px 16px; }
.cat--big .cat__ic { background: rgba(217,21,34,.18); color: #ff5560; flex: none; }
.cat--big .cat__body { flex: 1; min-width: 0; }
.cat--big .cat__name { font-size: 17px; }
.cat--big .cat__desc { display: block; color: #a4abb6; font-size: 13px; }
.cat--big .cat__cnt { display: none; }
.cat--big .cat__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); flex: none; }
.cat--big:hover { border-color: var(--ink); }

/* ---------- Сетка карточек ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid--rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
.grid--rail::-webkit-scrollbar { display: none; }
.grid--rail > * { scroll-snap-align: start; }

.mc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s; }
.mc:hover { box-shadow: var(--sh); border-color: #d5d8de; transform: translateY(-2px); }
.mc__link { position: absolute; inset: 0; z-index: 1; }
.mc__img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 10px; border-bottom: 1px solid #f0f1f3; }
.mc__img img { width: 100%; height: 100%; object-fit: contain; }
.mc__noimg { color: #c3c7ce; }
.mc__noimg .ic { width: 40px; height: 40px; }
.mc__code { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.mc__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.mc__type { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mc__title { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc__specs { display: none; list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.mc__specs li { position: relative; padding-left: 12px; line-height: 1.4; margin-top: 2px; }
.mc__specs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.mc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.mc__more { display: none; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--red); }
.mc__more .ic { width: 16px; height: 16px; }
.mc__price { position: relative; z-index: 2; flex: 1; min-height: 36px; border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 9px; font-weight: 600; font-size: 14px; }
.mc__price:hover { background: var(--red); color: #fff; }

/* ---------- Преимущества ---------- */
.feats { display: grid; gap: 12px; }
.feat { padding: 20px; border-radius: var(--r); background: var(--tint); }
.feat__ic { width: 44px; height: 44px; border-radius: 11px; background: #fff; color: var(--red); display: grid; place-items: center; margin-bottom: 12px; box-shadow: var(--sh); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Цифры ---------- */
.stats { background: var(--red); color: #fff; }
.stats__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 36px; padding-bottom: 36px; }
.stats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- Шаги ---------- */
.steps { list-style: none; counter-reset: s; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-weight: 800; font-size: 18px; color: var(--red); }
.steps b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.steps span { font-size: 14.5px; color: var(--muted); }

.cta-band { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; border-radius: 18px; background: var(--ink); color: #fff; margin: 8px 0 0; }
.cta-band h3 { font-size: 21px; margin-bottom: 6px; }
.cta-band p { color: #b4bac4; margin: 0; }
.cta-band--soft { background: var(--tint); color: var(--text); margin-top: 32px; }
.cta-band--soft p { color: var(--muted); }

.split { display: grid; gap: 28px; align-items: center; }
.split__img img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Форма заявки ---------- */
.lead-sec { display: grid; gap: 28px; }
.lead-sec__txt p { color: #b4bac4; font-size: 17px; }
.lead-sec__form { background: #fff; color: var(--text); border-radius: 18px; padding: 22px 18px; }
.lead { position: relative; }
.lead__head { margin-bottom: 16px; }
.lead__eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 6px; }
.lead__title { font-size: 22px; font-weight: 800; }
.lead__sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.lead__grid { display: grid; gap: 12px; margin-bottom: 14px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 13.5px; font-weight: 600; color: #3a3f47; }
.fld i { color: var(--red); font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d6d9df; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,21,34,.12); }
.fld.is-bad input { border-color: var(--red); background: #fff7f7; }
.lead__note { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.lead__err { margin-bottom: 12px; padding: 10px 12px; border-radius: 9px; background: #fdecee; color: #a10d17; font-size: 14px; }
.lead.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.lead__ok { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 6px; }
.lead__ok h3 { font-size: 22px; }
.lead__ok p { color: var(--muted); max-width: 340px; }
.lead__ok-ic { width: 64px; height: 64px; border-radius: 50%; background: #e9f8ef; color: var(--wa); display: grid; place-items: center; margin-bottom: 8px; }
.lead__ok-ic .ic { width: 32px; height: 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(10,12,16,.55); opacity: 0; transition: opacity .2s; }
.modal__box { position: relative; width: 100%; max-height: 94vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__bg { opacity: 1; }
.modal.is-open .modal__box { transform: none; }
.modal__x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: var(--tint); border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.modal .lead__title { padding-right: 40px; }

/* ---------- SEO ---------- */
.seo { color: var(--muted); font-size: 15px; }
.seo h2 { font-size: 20px; color: var(--text); margin-bottom: 12px; }
.seo .wrap { max-width: 900px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: #c5cad3; padding: 44px 0 0; font-size: 15px; }
.ftr__grid { display: grid; gap: 28px; }
.ftr__brand p { margin-top: 14px; color: #9aa1ac; }
.ftr__brand .logo__txt b { color: #fff; }
.ftr__regions { font-size: 13px; }
.ftr__h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__list a:hover { color: #fff; }
.ftr__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.ftr__contacts .ic { width: 18px; height: 18px; color: #ff5560; }
.ftr__social { display: flex; gap: 8px; margin-top: 16px; }
.ftr__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.ftr__social a:hover { background: var(--red); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #868d98; }
.ftr__bottom a:hover { color: #fff; }

/* =========================================================
   КАТАЛОГ
   ========================================================= */
.cat-top { background: #fff; padding-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--red); }
.crumbs .ic { width: 14px; height: 14px; color: #b3b8c0; }
.crumbs span { color: var(--text); }
.cat-top__row { display: grid; gap: 12px; margin-bottom: 14px; }
.cat-top__h1 { font-size: 26px; font-weight: 800; }
.cat-top__h1 sup { font-size: 14px; color: var(--muted); font-weight: 600; vertical-align: super; margin-left: 2px; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid #d6d9df; border-radius: 12px; font: inherit; font-size: 16px; background: var(--tint); }
.search input:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(217,21,34,.12); }

.tabs-wrap { border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 12px 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab .ic { width: 18px; height: 18px; }
.tab.is-on { color: var(--text); border-bottom-color: var(--red); }
.tab.is-on .ic { color: var(--red); }

.chips-wrap { position: sticky; top: var(--hdr); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500; white-space: nowrap; background: #fff; }
.chip .ic { width: 17px; height: 17px; color: var(--muted); }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--tint); padding: 1px 7px; border-radius: 99px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on .ic { color: #ff5560; }
.chip.is-on em { background: rgba(255,255,255,.15); color: #fff; }
.cat-list { padding-top: 16px; padding-bottom: 40px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty > .ic { width: 44px; height: 44px; color: #c3c7ce; margin: 0 auto 12px; }
.empty h1, .empty h2 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.empty .btn-row { justify-content: center; margin-top: 16px; }
.empty--page { padding: 80px 16px; }

/* =========================================================
   СТРАНИЦА СТАНКА
   ========================================================= */
.pm { padding-top: 14px; padding-bottom: 40px; }
.pm__top { display: grid; gap: 20px; }
.gal { position: relative; margin: 0 -16px; }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 4/3; display: grid; place-items: center; padding: 12px; cursor: zoom-in; }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; }
.gal__slide--empty { background: var(--tint); color: #c3c7ce; cursor: default; }
.gal__slide--empty .ic { width: 56px; height: 56px; }
.gal__count { position: absolute; right: 26px; top: 12px; background: rgba(15,17,21,.75); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.gal__nav { display: none; position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); place-items: center; box-shadow: var(--sh); }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumb { flex: 0 0 64px; height: 52px; padding: 3px; border: 2px solid var(--line); border-radius: 9px; background: #fff; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb.is-on { border-color: var(--red); }

.pm__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 99px; background: var(--tint); font-size: 12.5px; font-weight: 600; color: #3a3f47; }
.tag--red { background: var(--red-soft); color: var(--red); }
.pm__code { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.pm__title { font-size: 25px; font-weight: 800; margin: 4px 0 10px; }
.pm__short { color: var(--muted); font-size: 16px; }
.pm__specs { list-style: none; padding: 14px; margin: 14px 0; display: grid; gap: 8px; background: var(--tint); border-radius: var(--r); font-size: 14.5px; }
.pm__specs li { display: flex; gap: 8px; align-items: flex-start; }
.pm__specs .ic { width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.pm__buy { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.pm__price span { display: block; font-size: 13px; color: var(--muted); }
.pm__price b { font-size: 22px; font-weight: 800; }
.pm__price small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.pm__buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm__trust { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: #3a3f47; }
.pm__trust li { display: flex; align-items: center; gap: 10px; }
.pm__trust .ic { width: 18px; height: 18px; color: var(--red); }

.pm__body { display: grid; gap: 8px; margin-top: 28px; }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.block p { color: #3a3f47; }
.block--muted p { color: var(--muted); font-size: 14.5px; }
.block--wide { border-top: 0; }
.checks--2 li { font-size: 15px; }
.videos { display: grid; gap: 12px; }
.yt { position: relative; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt__play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt__play svg { width: 64px; height: 46px; transition: transform .15s; }
.yt:hover .yt__play svg { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }
.side-card { padding: 20px; border-radius: 16px; background: var(--ink); color: #fff; margin-bottom: 12px; }
.side-card h3 { font-size: 18px; margin-bottom: 8px; }
.side-card p { color: #b4bac4; font-size: 14.5px; }
.side-card--soft { background: var(--tint); color: var(--text); }
.side-card--soft p { color: var(--muted); }

/* ---------- Просмотр фото ---------- */
.viewer { position: fixed; inset: 0; z-index: 110; background: rgba(8,9,12,.96); display: none; align-items: center; justify-content: center; }
.viewer.is-open { display: flex; }
.viewer img { max-width: 94vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 8px; }
.viewer__x, .viewer__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.viewer__x { top: 14px; right: 14px; }
.viewer__nav--prev { left: 10px; }
.viewer__nav--next { right: 10px; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (min-width: 560px) {
  .hero__btns { display: flex; flex-wrap: wrap; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat__desc { display: block; }
  .mc__specs { display: block; }
  .mc__title { font-size: 15px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .lead__grid { grid-template-columns: 1fr 1fr; }
  .fld--wide { grid-column: span 2; }
  .grid--rail { grid-auto-columns: 42%; }
  .videos { grid-template-columns: 1fr 1fr; }
  .modal { align-items: center; padding: 20px; }
  .modal__box { max-width: 560px; border-radius: 20px; padding: 28px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
  .modal.is-open .modal__box { transform: none; opacity: 1; }
}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mc__more { display: inline-flex; }
  .mc__price { flex: none; padding: 0 16px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat--big { grid-column: span 3; }
  .stats__in { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
  .split { grid-template-columns: 1fr 1fr; }
  .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cat-top__row { grid-template-columns: 1fr 380px; align-items: center; }
  .gal { margin: 0; }
  .gal__track { border: 1px solid var(--line); border-radius: 16px; }
  .gal__nav { display: grid; }
  .gal__thumbs { padding: 10px 0 0; }
  .gal__count { right: 12px; }
}

@media (min-width: 1024px) {
  :root { --hdr: 72px; }
  body { padding-bottom: 0; }
  .mbar { display: none; }
  .hdr__nav { display: flex; }
  .hdr__phone span { display: inline; }
  .hdr__wa { display: inline-flex; }
  .hdr__cta { display: inline-flex; }
  .burger { display: none; }
  .sec { padding: 80px 0; }
  .sec__title { font-size: 38px; }
  .sec__head { margin-bottom: 36px; }
  .hero__in { padding-top: 110px; padding-bottom: 72px; }
  .hero__lead { font-size: 19px; }
  .hero__facts { max-width: 640px; margin-top: 56px; }
  .hero__facts b { font-size: 34px; }
  .hero__facts span { font-size: 14px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat { padding: 22px 20px; min-height: 190px; }
  .cat--big { grid-column: span 2; flex-direction: column; align-items: flex-start; min-height: 190px; padding: 24px; }
  .cat--big .cat__go { position: absolute; right: 22px; bottom: 22px; }
  .cat--big .cat__name { font-size: 22px; }
  .cat--big .cat__desc { font-size: 15px; max-width: 34ch; }
  .cat--big .cat__body { margin-top: auto; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .grid--rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .feat { padding: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .lead-sec { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .lead-sec__form { padding: 32px; }
  .stats__in { padding-top: 48px; padding-bottom: 48px; }
  .stats b { font-size: 44px; }
  .cat-top__h1 { font-size: 34px; }
  .pm__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .pm__title { font-size: 32px; }
  .pm__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .pm__side { position: sticky; top: calc(var(--hdr) + 20px); padding-top: 22px; }
  .checks--2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .chips { padding-top: 12px; padding-bottom: 12px; }
}

@media (min-width: 1280px) {
  .grid--rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* --- правки после проверки --- */
.hide-sm { display: none; }
.cats > .cat:not(.cat--big):last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 560px) { .hide-sm { display: inline; } }
@media (min-width: 768px) { .cats > .cat:not(.cat--big):last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1024px) {
  .hero__title { max-width: 17ch; }
  .cats > .cat:not(.cat--big):last-child:nth-child(odd) { grid-column: span 2; }
}
.pm__top > *, .pm__body > *, .pm__main, .lead-sec > *, .split > * { min-width: 0; }
.gal__slide { aspect-ratio: 16 / 11; }
.gal__track { align-items: flex-start; }
.gal__slide { position: relative; height: auto; overflow: hidden; }
.gal__slide img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
@media (min-width: 1024px) { .gal__slide { aspect-ratio: 4 / 3; } }

/* =========================================================
   СРАВНЕНИЕ
   ========================================================= */
.mc__cmp { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--muted); display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s; }
.mc__cmp .ic { width: 18px; height: 18px; }
.mc__cmp:hover { color: var(--text); border-color: #c9cdd4; }
.mc__cmp.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pm__cmp.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; color: var(--red); font-weight: 600; font-size: 14.5px; }
.link-btn .ic { width: 18px; height: 18px; }
.link-btn.is-on { color: var(--text); }

.params { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 8px; }
.params th, .params td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.params th { width: 46%; font-weight: 500; color: var(--muted); }
.params td { font-weight: 600; }
.params tr:nth-child(odd) { background: #fafafb; }

/* Плашка «Сравнить (N)» */
.cbar { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); }
.cbar__items { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cbar__items::-webkit-scrollbar { display: none; }
.cbar__item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 8px; background: var(--tint); font-size: 12.5px; white-space: nowrap; }
.cbar__item img { width: 30px; height: 24px; object-fit: contain; background: #fff; border-radius: 5px; }
.cbar__go { min-height: 40px; padding: 8px 14px; }
.cbar__go em { font-style: normal; background: var(--red); border-radius: 99px; padding: 0 7px; font-size: 12px; }
.cbar__x { width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.toast { position: fixed; left: 50%; top: calc(var(--hdr) + 12px); z-index: 120; transform: translate(-50%, -12px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Страница сравнения */
.cmp-page { padding-top: 14px; padding-bottom: 40px; }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cmp-diff { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cmp-diff input { width: 18px; height: 18px; accent-color: var(--red); }
.cmp-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: calc(120px + var(--cols) * 170px); width: 100%; font-size: 14px; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: #fff; }
.cmp td { width: calc((100% - 120px) / var(--cols)); min-width: 170px; }
.cmp__label { position: sticky; left: 0; z-index: 2; width: 120px; min-width: 120px; font-weight: 500; color: var(--muted); font-size: 13px; box-shadow: 1px 0 0 var(--line); }
thead .cmp__label { vertical-align: bottom; }
.cmp__item { position: relative; vertical-align: top; }
.cmp__x { position: absolute; right: 6px; top: 6px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); }
.cmp__x .ic { width: 15px; height: 15px; }
.cmp__img { display: grid; place-items: center; aspect-ratio: 4/3; margin-bottom: 8px; color: #c3c7ce; }
.cmp__img img { width: 100%; height: 100%; object-fit: contain; }
.cmp__code { display: block; font-weight: 800; color: var(--red); font-size: 15px; }
.cmp__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 13.5px; line-height: 1.3; margin: 2px 0 10px; color: var(--text); min-height: 3.9em; }
.cmp tbody tr.is-diff td { background: #fffdf5; }
.cmp tbody tr.is-diff .cmp__label { color: var(--text); font-weight: 600; }
.cmp.only-diff tbody tr.is-same { display: none; }
.cmp__none { color: #c3c7ce; }
.cmp__list { margin: 0; padding-left: 16px; font-size: 13px; color: #3a3f47; }
.cmp__list li { margin-bottom: 4px; }
.cmp td a { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cmp-add { display: grid; gap: 4px; margin-bottom: 8px; color: var(--text); font-size: 12.5px; font-weight: 600; }
.cmp-add span { display: inline-flex; align-items: center; gap: 4px; }
.cmp-add .ic { width: 15px; height: 15px; }
.cmp-add select { width: 100%; font: inherit; font-size: 13px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.cmp-note { font-size: 13.5px; margin: 14px 0 24px; }
.cmp-page .empty .ic { width: 44px; height: 44px; }

@media (min-width: 768px) {
  .cmp__label { width: 200px; min-width: 200px; font-size: 14px; }
  .cmp { min-width: calc(200px + var(--cols) * 200px); }
  .cbar { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); }
}
@media (min-width: 1024px) {
  .cbar { bottom: 20px; }
  .cmp-scroll { margin: 0; padding: 0 0 8px; }
}
@media (max-width: 767px) {
  .cmp { min-width: calc(96px + var(--cols) * 142px); font-size: 13px; }
  .cmp th, .cmp td { padding: 8px 8px; }
  .cmp td { min-width: 142px; }
  .cmp__label { width: 96px; min-width: 96px; font-size: 12px; }
  .cmp__title { font-size: 12.5px; }
  .cmp__item .btn { font-size: 12.5px; padding: 4px 6px; }
}
.cmp__more summary { cursor: pointer; color: var(--red); font-weight: 600; font-size: 13px; margin-top: 4px; }
@media (max-width: 767px) {
  .cmp { width: auto; min-width: 0; table-layout: fixed; }
  .cmp td, .cmp .cmp__item { width: 142px; min-width: 142px; max-width: 142px; }
}

/* =========================================================
   МЕНЮ-ДЕРЕВО КАТАЛОГА
   ========================================================= */
.tree { font-size: 14.5px; }
.tree__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tree__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tree__collapse { border: 0; background: none; padding: 2px 0; font-size: 12.5px; color: var(--muted); }
.tree__collapse:hover { color: var(--red); }
.tree__find { position: relative; display: block; margin-bottom: 10px; }
.tree__find .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.tree__find input { width: 100%; height: 38px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; background: var(--tint); }
.tree__find input:focus { outline: 0; border-color: var(--red); background: #fff; }
.tree__list { list-style: none; margin: 0; padding: 0; }
.tree__list ul { list-style: none; margin: 0; padding: 0; }
.tree__row { display: flex; align-items: stretch; border-radius: 10px; }
.tree__all, .tree__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-weight: 500; line-height: 1.25; }
.tree__all { margin-bottom: 4px; }
.tree__all:hover, .tree__row:hover { background: var(--tint); }
.tree__ic { width: 32px; height: 32px; border-radius: 8px; background: var(--tint); color: var(--muted); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.tree__ic .ic { width: 18px; height: 18px; }
.tree__name { flex: 1; min-width: 0; }
.tree em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--tint); border-radius: 99px; padding: 1px 7px; flex: none; }
.tree__row:hover em { background: #fff; }
.tree__tog { width: 34px; flex: none; border: 0; background: none; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.tree__tog:hover { color: var(--text); background: #e6e8ec; }
.tree__tog .ic { width: 18px; height: 18px; transition: transform .2s; }
.tree__node.is-open > .tree__row .tree__tog .ic { transform: rotate(180deg); }
.tree__node.is-cur > .tree__row .tree__ic, .tree__all.is-on .tree__ic { background: var(--red-soft); color: var(--red); }
.tree__link.is-on, .tree__all.is-on { font-weight: 700; }
.tree__link.is-on em, .tree__all.is-on em { background: var(--red); color: #fff; }
.tree__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.tree__sub > ul { overflow: hidden; min-height: 0; margin-left: 24px; padding-left: 12px; border-left: 1px solid var(--line); }
.tree__node.is-open > .tree__sub { grid-template-rows: 1fr; }
.tree__node.is-open > .tree__sub > ul { padding-top: 2px; padding-bottom: 6px; }
.tree__sublink { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: #3a3f47; font-size: 14px; line-height: 1.3; position: relative; }
.tree__sublink span { flex: 1; min-width: 0; }
.tree__sublink:hover { background: var(--tint); color: var(--text); }
.tree__sublink.is-on { color: var(--red); font-weight: 600; background: var(--red-soft); }
.tree__sublink.is-on::before { content: ""; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; background: var(--red); border-radius: 2px; }
.tree__sublink.is-on em { background: #fff; color: var(--red); }
.tree__empty { color: var(--muted); font-size: 14px; padding: 8px; }
.tree .is-hidden { display: none; }
/* в мобильной панели — крупнее под палец */
.tree--drawer { padding: 0 8px 8px; }
.tree--drawer .tree__all, .tree--drawer .tree__link { padding: 10px 8px; font-size: 15px; }
.tree--drawer .tree__ic { width: 36px; height: 36px; background: var(--red-soft); color: var(--red); }
.tree--drawer .tree__tog { width: 46px; }
.tree--drawer .tree__sublink { padding: 10px 8px; font-size: 15px; }

/* Раскладка каталога */
.cat-layout { display: block; }
.cat-side { display: none; }
.chip--menu { font-weight: 600; border-color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; }
.chip--menu .ic { color: var(--text); }

/* Мега-меню (компьютер) */
.hdr__in { position: relative; }
.hdr__nav { align-items: center; }
.mega__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #fff !important; background: var(--ink) !important; }
.mega__btn .ic { width: 18px; height: 18px; }
.mega__btn .mega__chev { width: 16px; height: 16px; transition: transform .2s; }
.hdr__nav .mega.is-open .mega__btn { background: var(--red) !important; }
.mega.is-open .mega__chev { transform: rotate(180deg); }
.mega__panel { position: absolute; left: 16px; right: 16px; top: calc(100% + 1px); z-index: 60; display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: 0 24px 60px rgba(16, 18, 24, .18); max-height: calc(100vh - var(--hdr) - 24px); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.mega__cats { list-style: none; margin: 0; padding: 12px; background: var(--tint); overflow-y: auto; }
.mega__cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.mega__cat em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.mega__ic { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--muted); display: grid; place-items: center; flex: none; }
.mega__ic .ic { width: 19px; height: 19px; }
.mega__name { flex: 1; min-width: 0; }
.mega__arr { width: 16px; height: 16px; color: #b3b8c0; }
.mega__cat.is-on { background: #fff; box-shadow: var(--sh); }
.mega__cat.is-on .mega__ic { background: var(--red-soft); color: var(--red); }
.mega__cat.is-on .mega__arr { color: var(--red); }
.mega__panes { position: relative; padding: 22px 26px; overflow-y: auto; display: flex; flex-direction: column; }
.mega__pane { display: none; }
.mega__pane.is-on { display: block; animation: megaIn .18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.mega__pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.mega__pane-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.mega__pane-title:hover { color: var(--red); }
.mega__pane-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.mega__types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.mega__types a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 500; }
.mega__types a:hover, .mega__types a.is-on { background: var(--tint); color: var(--red); }
.mega__types span:nth-child(2) { flex: 1; min-width: 0; }
.mega__types em { font-style: normal; font-size: 12px; color: var(--muted); }
.mega__tic { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); color: var(--red); display: grid; place-items: center; flex: none; }
.mega__tic .ic { width: 18px; height: 18px; }
.mega__single a { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.mega__single .ic { width: 16px; height: 16px; }
.mega__foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); }
.mega__pane.is-on ~ .mega__foot { margin-top: 22px; }
.mega__foot a, .mega__foot button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: #3a3f47; cursor: pointer; }
.mega__foot a:hover, .mega__foot button:hover { color: var(--red); }
.mega__foot .ic { width: 17px; height: 17px; }

@media (min-width: 1024px) {
  .cat-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
  .cat-side { display: block; position: sticky; top: calc(var(--hdr) + 16px); max-height: calc(100vh - var(--hdr) - 32px); overflow-y: auto; padding: 18px 8px 18px 0; scrollbar-width: thin; }
  .cat-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-catalog .tabs-wrap, .p-catalog .chips-wrap { display: none; }
  .p-catalog .cat-top { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .p-catalog .cat-list { padding-top: 18px; }
}
@media (min-width: 1280px) {
  .cat-layout .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Шапка на узких ноутбуках */
.hdr__nav > a, .hdr__phone, .logo__txt small { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hdr__phone span { display: none; }
  .hdr__nav > a { padding: 8px 9px; font-size: 14.5px; }
  .hdr__in { gap: 10px; }
}

/* =========================================================
   ЗАПЧАСТИ
   ========================================================= */
.parts-hero { background: var(--ink); color: #fff; padding: 16px 0 28px; }
.crumbs--light, .crumbs--light span { color: #9aa1ac; }
.crumbs--light a:hover { color: #fff; }
.parts-hero h1 { font-size: 28px; font-weight: 800; margin: 6px 0 10px; }
.parts-hero p { color: #b8bec8; max-width: 640px; }
.parts-hero__grid { display: grid; gap: 18px; }
.parts-search { display: grid; gap: 8px; margin-top: 16px; }
.parts-search__q { position: relative; display: block; }
.parts-search__q .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.parts-search input, .parts-search select { width: 100%; height: 52px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; padding: 0 14px; background: #fff; color: var(--text); }
.parts-search input { padding-left: 44px; }
.parts-photo { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #2a0b0e, #1a1d23); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.parts-photo__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red); display: grid; place-items: center; margin-bottom: 6px; }
.parts-photo b { font-size: 18px; }
.parts-photo span { color: #c3c8d0; font-size: 14.5px; }
.parts-photo__go { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 700; margin-top: 8px; }
.parts-photo__go .ic { width: 18px; height: 18px; }
.how { list-style: none; counter-reset: h; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.how li { counter-increment: h; position: relative; padding: 10px 10px 10px 40px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13.5px; color: #b8bec8; line-height: 1.35; }
.how li::before { content: counter(h); position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.how b { color: #fff; display: block; }
.parts-body { padding-top: 18px; padding-bottom: 40px; }
.chips--wrap { flex-wrap: wrap; padding: 0 0 14px; overflow: visible; }
.parts-count { font-size: 14px; margin-bottom: 10px; }
.plist { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.prow__img { width: 64px; height: 64px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; color: #b3b8c0; overflow: hidden; }
.prow__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.prow__sku { font: 600 12.5px/1.3 ui-monospace, Consolas, monospace; color: var(--muted); }
.prow__name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; margin: 2px 0 4px; }
.prow__name:hover { color: var(--red); }
.prow__mach { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.prow__mach .ic { width: 14px; height: 14px; }
.prow__side { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); }
.prow__price { font-weight: 800; font-size: 17px; margin-right: auto; }
.prow__price a { font-size: 14px; color: var(--red); font-weight: 600; }
.prow__add { border-color: var(--red); color: var(--red); }
.prow__add.is-on, .btn.is-on[data-cart-add] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--green { color: #16a34a; } .stock--amber { color: #d97706; } .stock--gray { color: #8b929d; }
.pager-site { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager-site a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.pager-site a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.part-card { display: grid; gap: 20px; margin: 10px 0 40px; }
.part-card__img { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; color: #c3c7ce; background: #fff; }
.part-card__img .ic { width: 64px; height: 64px; }
.part-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.part-sku { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.part-sku b { font-family: ui-monospace, Consolas, monospace; color: var(--text); font-size: 16px; }
.copy-btn { border: 0; background: var(--tint); border-radius: 7px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.copy-btn .ic { width: 16px; height: 16px; }
.part-card__title { font-size: 26px; font-weight: 800; margin: 6px 0 10px; }
.part-buy { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 12px; }
.part-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.part-buy__price b { font-size: 26px; font-weight: 800; }
.part-buy__price small { color: var(--muted); }
.part-buy__price .stock { margin-left: auto; }
.part-buy__row { display: flex; gap: 10px; }
.part-buy__row .btn { flex: 1; }
.part-buy__note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.part-buy__note .ic { width: 18px; height: 18px; color: var(--red); flex: none; }
.part-compat { margin-top: 20px; }
.part-compat h2 { font-size: 16px; margin-bottom: 8px; }
.part-compat__list { display: flex; flex-wrap: wrap; gap: 6px; }
.part-desc { margin-top: 18px; color: #3a3f47; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d6d9df; border-radius: 11px; overflow: hidden; height: 52px; }
.qty button { width: 40px; height: 100%; border: 0; background: var(--tint); font-size: 20px; }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; border-radius: 9px; }
.qty--sm button { width: 30px; font-size: 16px; }
.qty--sm input { width: 40px; font-size: 14px; }

/* Плашка «Заявка на запчасти» */
.cart { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 42; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); }
.cart__ic { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-weight: 800; }
.cart__txt { flex: 1; min-width: 0; line-height: 1.2; }
.cart__txt b { display: block; font-size: 14px; }
.cart__txt small { color: #b8bec8; font-size: 12.5px; }
.cart__go { min-height: 40px; }
body.has-cart.has-cbar .cbar { bottom: calc(140px + env(safe-area-inset-bottom)); }

/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ
   ========================================================= */
.acc { padding: 16px 0 40px; background: var(--tint); min-height: 60vh; }
.acc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.acc-hello { font-size: 13px; color: var(--muted); font-weight: 600; }
.acc-title { font-size: 24px; font-weight: 800; }
.acc-logout { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.acc-logout .ic { width: 18px; height: 18px; }
.acc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; }
.acc-tabs a .ic { width: 18px; height: 18px; color: var(--muted); }
.acc-tabs a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-tabs a.is-on .ic { color: #ff5560; }
.acc-tabs__new { border-color: var(--red) !important; color: var(--red); }
.acc-tabs__new .ic { color: var(--red) !important; }
.acc-tabs__new.is-on { background: var(--red) !important; color: #fff; }
.acc-tabs__new.is-on .ic { color: #fff !important; }
.acc-tabs em { font-style: normal; background: var(--red); color: #fff; border-radius: 99px; font-size: 11.5px; padding: 0 7px; }
.acc-flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14.5px; background: #e8f7ee; color: #14532d; border: 1px solid #bbf7d0; }
.acc-flash--err { background: #fdecee; color: #8f0c15; border-color: #fecaca; }
.acc-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde68a; color: #7c4a03; margin-bottom: 14px; font-size: 14.5px; }
.acc-alert a { font-weight: 700; color: var(--red); margin-right: 6px; }
.acc .empty { background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.auth-wrap { display: grid; gap: 16px; max-width: 980px; margin: 10px auto 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; display: grid; gap: 12px; align-content: start; }
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-card > p { margin: 0; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.auth-links a { color: var(--red); }
.auth-why { padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.auth-why h2 { font-size: 18px; margin-bottom: 12px; }
.auth-why .checks li { color: #c3c8d0; font-size: 14.5px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3a3f47; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-16 { margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.back-link .ic { width: 16px; height: 16px; }
.icon-link { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; }
.icon-link .ic { width: 18px; height: 18px; }
.icon-link:hover { color: var(--red); }

/* Список заказов */
.olist { display: grid; gap: 10px; }
.oitem { display: block; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.oitem:hover { border-color: #c9cdd4; box-shadow: var(--sh); }
.oitem.is-action { border-color: #fbbf24; box-shadow: 0 0 0 3px #fff7e6; }
.oitem__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oitem__num { font-size: 16px; }
.oitem__kind { font-size: 13px; color: var(--muted); margin-right: auto; }
.oitem__mach { font-size: 14px; color: #3a3f47; margin: 6px 0 8px; }
.oitem__foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #3a3f47; margin-top: 8px; }
.dot-new { color: var(--red); font-weight: 700; }
.dot-new::before { content: "● "; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mini-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mini-steps i { height: 4px; border-radius: 4px; background: #e5e7eb; }
.mini-steps i.is-done { background: var(--red); }

/* Форма заявки */
.oform { display: grid; gap: 12px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.oform .ocard { margin-bottom: 0; }
.ocard h3 { font-size: 17px; margin-bottom: 12px; }
.ocard__h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.ocard__h span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; }
.ocard__hint { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.seg-radio { display: grid; gap: 8px; }
.seg-radio__item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio__item span { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; height: 100%; }
.seg-radio__item .ic { grid-row: span 2; color: var(--muted); }
.seg-radio__item b { font-size: 15px; }
.seg-radio__item small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.seg-radio__item input:checked + span { border-color: var(--red); background: #fff8f8; box-shadow: 0 0 0 3px rgba(217,21,34,.08); }
.seg-radio__item input:checked + span .ic { color: var(--red); }
.seg-radio__item input:focus-visible + span { outline: 2px solid var(--red); }
.mymach { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mymach__item input { position: absolute; opacity: 0; }
.mymach__item span { display: grid; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.mymach__item small { color: var(--muted); font-size: 12.5px; }
.mymach__item input:checked + span { border-color: var(--red); background: #fff8f8; }
.ocart__empty { padding: 12px; border-radius: 12px; background: var(--tint); font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ocart__empty a { color: var(--red); font-weight: 600; }
.ocart__table, .otable { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.ocart__table th, .otable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ocart__table td, .otable td { padding: 8px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.ocart__table tfoot td, .otable tfoot td { font-weight: 700; border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.osku { display: inline-block; font: 600 12px ui-monospace, Consolas, monospace; background: var(--tint); border-radius: 6px; padding: 1px 6px; margin-right: 6px; color: #3a3f47; }
.manual { display: grid; gap: 8px; }
.manual__row { display: grid; grid-template-columns: 1fr 70px; gap: 6px; }
.manual__row input { height: 44px; border: 1px solid #d6d9df; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; min-width: 0; }
.manual__row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.manual__row input:nth-child(3) { grid-column: 2; grid-row: 1; }
.tips { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f0f7ff; color: #1e3a8a; font-size: 13.5px; margin-top: 12px; }
.tips .ic { color: var(--blue, #2563eb); flex: none; width: 18px; height: 18px; margin-top: 1px; }
.upl { border: 1.5px dashed #c9cdd4; border-radius: 14px; padding: 6px; transition: border-color .15s, background .15s; }
.upl.is-over { border-color: var(--red); background: #fff8f8; }
.upl__drop { display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer; color: var(--muted); }
.upl__drop .ic { width: 28px; height: 28px; color: var(--red); flex: none; }
.upl__drop b { display: block; color: var(--text); font-size: 15px; }
.upl__drop small { font-size: 12.5px; }
.upl__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upl__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.upl__list:empty { display: none; }
.upl__item { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 11px; }
.upl__item img, .upl__ph { width: 100%; height: 70px; object-fit: cover; display: grid; place-items: center; background: var(--tint); font-size: 22px; }
.upl__name { display: block; padding: 3px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upl__item small { display: block; padding: 0 6px 4px; color: var(--muted); }
.upl__item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,17,21,.75); color: #fff; font-size: 16px; line-height: 1; }
.osubmit { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); }
.osubmit__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #3a3f47; }
.osubmit__who .ic { width: 16px; height: 16px; color: var(--muted); }
.osubmit__who a { color: var(--red); }
.osubmit__err { padding: 10px 12px; border-radius: 10px; background: #fdecee; color: #8f0c15; font-size: 14px; white-space: pre-line; }
.osubmit__progress { position: relative; height: 26px; border-radius: 8px; background: var(--tint); overflow: hidden; }
.osubmit__progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(217,21,34,.18); transition: width .2s; }
.osubmit__progress span { position: relative; display: block; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }

/* Страница заказа */
.ohead { margin-bottom: 12px; }
.ohead__meta { font-size: 13px; color: var(--muted); }
.ohead__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.urgent { color: var(--red); }
.steps-bar { list-style: none; margin: 0 0 14px; padding: 12px; display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.steps-bar li { position: relative; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-align: center; }
.steps-bar li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: #e5e7eb; z-index: 0; }
.steps-bar li:first-child::before { display: none; }
.steps-bar li.is-done::before, .steps-bar li.is-cur::before { background: var(--red); }
.steps-bar i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: #e5e7eb; color: #6b7280; }
.steps-bar i .ic { width: 14px; height: 14px; }
.steps-bar .is-done i { background: var(--red); color: #fff; }
.steps-bar .is-cur i { background: #fff; color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.steps-bar .is-cur span { color: var(--text); font-weight: 700; }
.now { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.now--action { border-color: #fbbf24; background: #fffbeb; }
.now--off { opacity: .7; }
.now__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.now--action .now__ic { background: #fde68a; color: #92400e; }
.now__body { min-width: 0; flex: 1; }
.now__body b { font-size: 16.5px; }
.now__body p { color: #3a3f47; margin: 4px 0 10px; }
.now__q { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #f59e0b; background: #fff; border-radius: 0 10px 10px 0; font-size: 14.5px; }
.now__quote { display: grid; gap: 10px; }
.now__quote > span { font-size: 15px; }
.now__quote b { font-size: 20px; }
.now__quote form { margin: 0; }
.now__eta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-top: 8px; }
.now__eta span { display: inline-flex; align-items: center; gap: 6px; }
.now__eta .ic { width: 17px; height: 17px; color: var(--muted); }
.ogrid { display: grid; gap: 12px; }
.ogrid__main, .ogrid__side { min-width: 0; }
.odl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; margin: 0 0 10px; font-size: 14px; }
.odl dt { color: var(--muted); }
.odl dd { margin: 0; font-weight: 500; }
.ohist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ohist li { display: flex; align-items: center; gap: 8px; }
.ohist small { margin-left: auto; color: var(--muted); font-size: 12px; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.ocancel { margin: 0 0 12px; font-size: 14px; }
.ocancel summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.ocancel form { display: flex; gap: 8px; margin-top: 6px; }
.ocancel input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.chat { display: grid; gap: 10px; margin-bottom: 14px; max-height: 70vh; overflow-y: auto; padding: 4px; }
.chat__sys { justify-self: center; font-size: 12px; color: var(--muted); background: var(--tint); border-radius: 99px; padding: 3px 12px; text-align: center; }
.msg { max-width: 88%; justify-self: start; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--tint); }
.msg--me { justify-self: end; background: #fdecee; border-radius: 14px 14px 4px 14px; }
.msg__who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.msg__body { font-size: 14.5px; white-space: normal; word-wrap: break-word; }
.reply { display: grid; gap: 8px; }
.reply textarea { width: 100%; border: 1px solid #d6d9df; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; }
.reply textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,21,34,.12); }
.reply .btn { justify-self: end; }
.ofiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 6px; }
.ofile { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ofile--img img { width: 100%; height: 90px; object-fit: cover; }
.ofile--video { grid-column: span 2; }
.ofile--video video { width: 100%; max-height: 220px; background: #000; display: block; }
.ofile--video a { display: block; padding: 4px 8px; font-size: 12px; color: var(--muted); }
.ofile--doc { display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 12.5px; grid-column: span 2; }
.ofile--doc .ic { color: var(--red); flex: none; }
.ofile--doc small { display: block; color: var(--muted); }
.mgrid { display: grid; gap: 10px; margin: 12px 0; }
.mcard { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.mcard__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.mcard__body { display: grid; gap: 2px; font-size: 14px; }
.mcard__body b { font-size: 16px; }
.mcard__act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mcard__act form { margin-left: auto; }
.form-narrow { max-width: 760px; }
.table-wrap { overflow-x: auto; }

@media (min-width: 640px) {
  .parts-search { grid-template-columns: 1fr 200px auto; }
  .how { grid-template-columns: repeat(4, 1fr); }
  .prow { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
  .prow__img { width: 72px; height: 72px; }
  .prow__side { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; gap: 6px; }
  .prow__price { margin-right: 0; }
  .seg-radio { grid-template-columns: repeat(3, 1fr); }
  .seg-radio--2 { grid-template-columns: repeat(2, 1fr); }
  .manual__row { grid-template-columns: 180px 1fr 80px; }
  .manual__row input:nth-child(2), .manual__row input:nth-child(3) { grid-column: auto; grid-row: auto; }
  .auth-card { padding: 28px; }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .acc-tabs { margin: 0 0 18px; padding: 0; }
  .steps-bar li { font-size: 12.5px; }
}
@media (min-width: 1024px) {
  .parts-hero { padding: 20px 0 40px; }
  .parts-hero h1 { font-size: 40px; }
  .parts-hero__grid { grid-template-columns: 1fr 340px; gap: 30px; align-items: end; }
  .part-card { grid-template-columns: 1fr 1fr; gap: 40px; }
  .part-card__title { font-size: 32px; }
  .cart { left: auto; right: 24px; bottom: 24px; width: 380px; }
  body.has-cart.has-cbar .cbar { bottom: 20px; left: 24px; transform: none; width: min(620px, calc(100vw - 460px)); }
  .auth-wrap { grid-template-columns: 1fr 360px; align-items: start; }
  .auth-wrap:has(.auth-card--wide) { grid-template-columns: 1fr; max-width: 760px; }
  .ogrid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 16px; }
  .ogrid__side { position: sticky; top: calc(var(--hdr) + 16px); }
  .osubmit { bottom: 16px; grid-template-columns: 1fr auto; align-items: center; }
  .osubmit .muted { grid-column: 1 / -1; margin: 0; }
  .osubmit__err, .osubmit__progress { grid-column: 1 / -1; }
  .acc-title { font-size: 30px; }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
}

/* Шапка: кабинет */
.hdr__acc { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text); }
.hdr__acc .ic { width: 20px; height: 20px; }
.hdr__acc span { display: none; }
.hdr__acc.is-on, .hdr__acc:hover { background: var(--tint); }
@media (min-width: 1280px) { .hdr__acc span { display: inline; } }
.drawer__links b { font-weight: 700; color: var(--red); }
.p-account .cbar { display: none !important; }
a.mbar__main { display: grid; place-items: center; text-align: center; }
.part-orig { font-size: 13px; color: var(--muted); margin: -4px 0 10px; font-style: italic; }

/* Запчасти: компактный режим при поиске, категории одной строкой на телефоне */
.parts-hero--compact { padding-bottom: 16px; }
.parts-hero--compact .parts-hero__grid > div > p,
.parts-hero--compact .parts-photo,
.parts-hero--compact .how { display: none; }
.parts-hero--compact h1 { font-size: 22px; margin-bottom: 0; }
@media (max-width: 767px) {
  .chips--wrap { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; }
  .chips--wrap::-webkit-scrollbar { display: none; }
  .parts-search { grid-template-columns: 1fr auto; }
  .parts-search select { grid-column: 1 / -1; grid-row: 2; }
  .parts-search .btn { grid-row: 1; grid-column: 2; padding: 0 16px; }
}
@media (min-width: 1024px) {
  .parts-hero--compact h1 { font-size: 28px; }
  .parts-hero--compact .parts-hero__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Схемы узлов, документы станка, подбор по фото
   ========================================================= */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.small { font-size: 13px; }
@media (max-width: 559px) { .hide-m { display: none; } }

/* Просмотр схемы */
.scheme__stage { position: relative; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 75vh; -webkit-overflow-scrolling: touch; }
.scheme__canvas { position: relative; margin: 0 auto; }
.scheme__canvas img, .scheme__canvas canvas { display: block; width: 100%; height: auto; max-width: none; }
.scheme__pins { position: absolute; inset: 0; }
.scheme__pin { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; border: 2px solid #fff; background: rgba(217, 21, 34, .88); color: #fff; font: 700 12px/22px var(--font); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.scheme__pin.is-hl { background: #f59e0b; transform: translate(-50%, -50%) scale(1.35); z-index: 2; animation: pinpulse 1s ease 2; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 9px rgba(245, 158, 11, .35); } }
.scheme__loading { padding: 70px 20px; text-align: center; color: var(--muted); }
.scheme__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.scheme.is-zoom .scheme__stage { max-height: 88vh; }

.scheme-page { padding-bottom: 40px; }
.scheme-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 12px; }
.scheme-head h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; }
.scheme-head p { margin: 0; font-size: 14px; }
.chips--scroll { margin: 0 0 14px; padding-top: 0; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.scheme-grid { display: grid; gap: 16px; }
.scheme-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .scheme-head h1 { font-size: 30px; }
  .scheme-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); align-items: start; }
  .scheme-grid__view { position: sticky; top: calc(var(--hdr) + 12px); }
  .scheme-grid__list { max-height: calc(100vh - var(--hdr) - 40px); overflow: auto; }
}
.slist { display: grid; gap: 6px; }
.sitem { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; scroll-margin-top: calc(var(--hdr) + 20px); transition: background .2s; }
.sitem.is-hl { background: #fff7d6; border-color: #f59e0b; }
.sitem__pos { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--red-soft); color: var(--red); font: 700 13px var(--font); cursor: pointer; }
.sitem__name { display: block; font-weight: 600; color: var(--text); font-size: 15px; line-height: 1.3; }
.sitem__meta { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.sitem__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sitem__buy b { font-size: 14px; white-space: nowrap; }

/* Страница станка: запчасти и документы */
.mparts { display: grid; gap: 10px; }
@media (min-width: 560px) { .mparts { grid-template-columns: 1fr 1fr; } }
.mparts__act, .asm-card, .doc-list li > a:first-child, .part-schemes a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mparts__act:hover, .asm-card:hover, .doc-list li > a:first-child:hover, .part-schemes a:hover { border-color: #cfd3da; box-shadow: var(--sh); }
.mparts__act > .ic, .asm-card > .ic, .doc-list .ic, .part-schemes .ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--red); }
.mparts__act span, .asm-card span, .doc-list span, .part-schemes span { min-width: 0; }
.mparts__act b, .asm-card b, .doc-list b, .part-schemes b { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.mparts__act small, .asm-card small, .doc-list small, .part-schemes small { display: block; color: var(--muted); font-size: 13px; }
.mparts__h { font-size: 17px; margin: 22px 0 10px; }
.mparts__h small { color: var(--muted); font-weight: 500; }
.asm-grid { display: grid; gap: 8px; }
@media (min-width: 560px) { .asm-grid { grid-template-columns: 1fr 1fr; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list li { display: flex; gap: 8px; align-items: stretch; }
.doc-list li > a:first-child { flex: 1; min-width: 0; }
.doc-list .icon-link { display: grid; place-items: center; width: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.part-schemes { display: grid; gap: 8px; }

/* Подбор по фото */
.podbor { padding-bottom: 40px; }
.podbor__head h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 6px; }
.podbor__head p { color: var(--muted); margin: 0 0 16px; max-width: 760px; }
.podbor__grid { display: grid; gap: 16px; }
.podbor__grid > * { min-width: 0; }
@media (min-width: 1024px) { .podbor__head h1 { font-size: 34px; } .podbor__grid { grid-template-columns: 400px minmax(0, 1fr); align-items: start; } .podbor__form { position: sticky; top: calc(var(--hdr) + 12px); } }
.podbor__form { display: grid; gap: 12px; }
.pdrop { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 18px 14px; border: 2px dashed #d5d9e0; border-radius: var(--r); background: var(--tint); cursor: pointer; transition: border-color .15s, background .15s; }
.pdrop:hover, .pdrop.has-files { border-color: var(--red); background: #fff; }
.pdrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pdrop__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 4px; }
.pdrop small { color: var(--muted); font-size: 13px; }
.pdrop--sm { padding: 12px; }
.pdrop--sm .pdrop__ic { width: 34px; height: 34px; }
.pdrop__thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.pdrop__thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.podbor__hint { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); }
.podbor__hint h2 { font-size: 18px; margin: 0 0 10px; }
.pprog { padding: 40px 20px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); }
.pprog__bar { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; margin: 0 auto 16px; max-width: 360px; }
.pprog__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.pprog b { display: block; font-size: 17px; }
.pprog small { color: var(--muted); }
.pdet { padding: 10px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: 14px; margin-bottom: 14px; overflow-wrap: anywhere; }
.pout__h { font-size: 22px; margin: 4px 0 12px; }
.pout__h--ok { color: #15803d; }
.pout__sub { font-size: 16px; margin: 18px 0 10px; color: var(--muted); }
.pq { padding: 12px 14px; border-radius: var(--r-sm); background: #fff7e6; border: 1px solid #fde3b0; margin-bottom: 12px; }
.pq small { display: block; color: var(--muted); margin-top: 4px; }
.pq--err { background: var(--red-soft); border-color: #f8c9cd; }
.pcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.pcard--best { border: 2px solid #22c55e; box-shadow: var(--sh); }
.pcard__img { width: 72px; height: 72px; border-radius: var(--r-sm); background: var(--tint); display: grid; place-items: center; overflow: hidden; font-size: 11px; color: var(--muted); text-align: center; text-decoration: none; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__sku { font: 600 13px ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.pcard__name { display: block; font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.3; }
.pcard__orig { font-size: 12px; color: var(--muted); }
.pcard__conf { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.conf { width: 90px; height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.conf span { display: block; height: 100%; background: #22c55e; }
.pcard__why { font-size: 14px; margin: 6px 0 0; }
.pcard__sch { font-size: 13px; margin-top: 6px; }
.pcard__buy { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard__buy b { font-size: 18px; }
.pcard__buy small { color: var(--muted); flex: 1; }
@media (min-width: 640px) { .pcard { grid-template-columns: 90px minmax(0, 1fr) 190px; } .pcard__img { width: 90px; height: 90px; } .pcard__buy { grid-column: auto; flex-direction: column; align-items: stretch; text-align: right; border-top: 0; padding-top: 0; } .pcard__buy small { flex: 0; } }
.pfoot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pfb { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 8px; }
.pfb--done { background: var(--tint); }

/* Заявка: прикреплён подбор по фото */
.ai-attached { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: #ecfdf3; border: 1px solid #b7ebcb; margin-bottom: 14px; }
.ai-attached > .ic { width: 24px; height: 24px; color: #15803d; flex: 0 0 auto; }
.ai-attached b { display: block; }
.ai-attached span { font-size: 14px; color: #3a3f47; }

/* ---------- Снятые с производства ---------- */
.disc-note { display: grid; gap: 2px; margin: 10px 0 14px; padding: 12px 14px; border-radius: var(--r-sm); background: #fffbeb; border: 1px solid #f2d27a; font-size: 14px; }
.disc-note b { color: #8a6116; }
.disc-note a { color: var(--red); font-weight: 600; }
.pm__buy--disc .pm__price b { color: #8a6116; }
.disc-repl { position: relative; display: grid; gap: 1px; margin-top: 12px; padding: 12px 40px 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); text-decoration: none; background: #fff; }
.disc-repl:hover { border-color: var(--red); }
.disc-repl span { font-size: 12px; color: var(--muted); }
.disc-repl small { font-size: 13px; color: var(--muted); }
.disc-repl .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--red); }
.p-machine .gal { position: relative; }
.mach-ctx { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm); background: #ecfdf3; border: 1px solid #b7ebcb; font-size: 14px; }
.mach-ctx .ic { width: 18px; height: 18px; color: #15803d; flex: 0 0 auto; margin-top: 2px; }
.mach-ctx[hidden] { display: none; }

/* =========================================================
   Страница станка по QR — сервисная книжка
   ========================================================= */
.unit { padding-top: 14px; padding-bottom: 40px; }
.unit-sent { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: #ecfdf3; border: 1px solid #b7ebcb; margin-bottom: 14px; }
.unit-sent > .ic { width: 26px; height: 26px; color: #15803d; flex: 0 0 auto; }
.unit-sent b { display: block; font-size: 16px; }
.unit-sent span { font-size: 14px; }
.unit-err { padding: 12px 14px; border-radius: var(--r-sm); background: var(--red-soft); color: var(--red-d); margin-bottom: 12px; }
.unit-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.unit-head__img { width: 84px; height: 84px; border-radius: var(--r-sm); background: var(--tint); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.unit-head__img img { width: 100%; height: 100%; object-fit: contain; }
.unit-head__img .ic { width: 40px; height: 40px; }
.unit-head__code { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.unit-head h1 { font-size: 19px; line-height: 1.25; margin: 2px 0 6px; }
.unit-head__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ustat { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #e8f7ee; color: #15803d; }
.ustat--repair { background: var(--red-soft); color: var(--red); }
.ustat--idle, .ustat--off { background: #eceef1; color: #4b5260; }
.unit-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.unit-facts div { min-width: 0; }
.unit-facts dt { font-size: 12px; color: var(--muted); }
.unit-facts dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.unit-facts .w-ok { color: #15803d; }
.unit-facts .w-off { color: var(--muted); }
@media (min-width: 768px) { .unit-head { grid-template-columns: 110px minmax(0, 1fr); } .unit-head__img { width: 110px; height: 110px; } .unit-head h1 { font-size: 24px; } .unit-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.unit-acts { display: grid; gap: 8px; margin: 12px 0; }
@media (min-width: 640px) { .unit-acts { grid-template-columns: 1.3fr 1fr 1fr; } }
.unit-staff { padding: 10px 14px; border-radius: var(--r-sm); background: #eef4ff; border: 1px solid #c7d7fe; font-size: 14px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.unit-staff .ic { width: 18px; height: 18px; color: #2563eb; }
.unit-grid { display: grid; gap: 14px; }
.unit-grid > * { min-width: 0; display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .unit-grid { grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); align-items: start; } .ublock--req { position: sticky; top: calc(var(--hdr) + 12px); } }
.ublock { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; scroll-margin-top: calc(var(--hdr) + 12px); }
.ublock h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 12px; }
.ublock h2 .ic { width: 20px; height: 20px; color: var(--red); }
.ublock h2 small { color: var(--muted); font-weight: 500; }
.ublock--req { border-color: #f3c3c7; box-shadow: var(--sh); }
.ublock--staff { border-color: #c7d7fe; background: #fbfcff; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--tint); }
.plan__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #22c55e; }
.plan--soon .plan__dot { background: #f59e0b; }
.plan--overdue { background: #fff1f2; }
.plan--overdue .plan__dot { background: var(--red); }
.plan b { display: block; font-size: 15px; }
.plan small { display: block; font-size: 12.5px; color: var(--muted); }
.plan__due { text-align: right; font-weight: 700; white-space: nowrap; }
.plan__due small { font-weight: 500; }
.plan--overdue .plan__due small { color: var(--red); font-weight: 700; }
.book { list-style: none; margin: 0; padding: 0; position: relative; }
.book::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.rec { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.rec__ic { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.rec__ic .ic { width: 17px; height: 17px; }
.rec--to .rec__ic, .rec--inspection .rec__ic { border-color: #86efac; color: #15803d; }
.rec--repair .rec__ic { border-color: #fca5a5; color: var(--red); }
.rec--parts .rec__ic { border-color: #93c5fd; color: #2563eb; }
.rec--launch .rec__ic { border-color: #fcd34d; color: #b45309; }
.rec__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rec__head b { font-size: 15px; }
.rec__head time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rec__meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rec p { margin: 6px 0 0; font-size: 14px; }
.rec__parts { margin-top: 6px; font-size: 13px; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--tint); }
.rec__int { margin-top: 6px; font-size: 13px; color: #8a6116; }
.rec__int .ic { width: 14px; height: 14px; }
.rec__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rec__files a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text); text-decoration: none; }
.rec__files .ic { width: 15px; height: 15px; color: var(--red); }
.uform { display: grid; gap: 10px; }
.uform__row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.uform__plans { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; display: grid; gap: 4px; margin: 0; }
.uform__plans legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-d); }
.asm-grid--one { grid-template-columns: 1fr !important; }
/* Кабинет: ближайшее ТО */
.mto { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: #e8f7ee; color: #15803d; }
.mto .ic { width: 14px; height: 14px; }
.mto--soon { background: #fff7e6; color: #b45309; }
.mto--overdue { background: var(--red-soft); color: var(--red); }

/* ---------- Кабинет: мой станок ---------- */
.crumbs--acc { margin: 0 0 12px; }
.unit-acc { display: grid; gap: 14px; }
.unit-acc > * { min-width: 0; display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .unit-acc { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.tpl-offer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-sm); background: #eef4ff; border: 1px solid #c7d7fe; font-size: 14px; }
.plan__acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.inline-f { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-f input[type=date] { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.plan__edit > summary { list-style: none; }
.plan__edit > summary::-webkit-details-marker { display: none; }
.plan__edit[open] { flex-basis: 100%; }
.plan__edit .uform { margin-top: 10px; padding: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.add-box { margin: 12px 0; }
.add-box > summary { list-style: none; display: inline-flex; }
.add-box > summary::-webkit-details-marker { display: none; }
.add-box[open] > summary { margin-bottom: 10px; }
.add-box .uform { padding: 14px; border-radius: var(--r-sm); background: var(--tint); }
.rec__src { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; margin-right: 4px; vertical-align: 1px; }
.rec__src--kaban { background: var(--red-soft); color: var(--red); }
.rec__src--cust { background: #eef4ff; color: #2563eb; }
.rec__del { margin-top: 6px; }
.rec__del .link-btn { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.rec__del .ic { width: 13px; height: 13px; }
.qr-acc { display: grid; gap: 10px; justify-items: center; text-align: center; }
.qr-acc h2 { justify-self: start; }
.qr-acc__box { padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.qr-acc__box img, .qr-acc__box canvas { display: block; }

/* =========================================================
   Трейд-ин
   ========================================================= */
.ti-hero { background: linear-gradient(135deg, #0f1115, #262a33); color: #fff; padding: 18px 0 26px; }
.ti-hero h1 { font-size: 28px; line-height: 1.15; margin: 8px 0 10px; }
.ti-hero p { color: #c5cad3; margin: 0; max-width: 620px; }
.ti-hero__grid { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .ti-hero__grid { grid-template-columns: 1fr 360px; } .ti-hero h1 { font-size: 38px; } }
.ti-sell { display: grid; gap: 4px; padding: 18px; border-radius: var(--r); background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--sh-lg); }
.ti-sell__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 4px; }
.ti-sell b { font-size: 18px; }
.ti-sell > span:not(.ti-sell__ic):not(.ti-sell__go) { font-size: 14px; color: var(--muted); }
.ti-sell__go { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; margin-top: 6px; }
.ti-filter { display: grid; gap: 8px; margin-bottom: 14px; }
.ti-filter select { height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; font: inherit; background: #fff; }
.ti-filter .search-in input { height: 46px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px 0 38px; font: inherit; }
.ti-filter .search-in { position: relative; display: block; }
.ti-filter .search-in .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
@media (min-width: 768px) { .ti-filter { grid-template-columns: minmax(0, 1fr) 200px 200px auto; } }
.ti-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 559px) { .ti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.ti-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.ti-card:hover { border-color: #cfd3da; box-shadow: var(--sh); }
.ti-card__img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); display: grid; place-items: center; color: var(--muted); }
.ti-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ti-card__img em { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 12px; }
.ti-card__img em .ic { width: 13px; height: 13px; }
.ti-card__body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.ti-card__city { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ti-card__city .ic { width: 14px; height: 14px; color: var(--red); }
.ti-card b { font-size: 15px; line-height: 1.3; }
.ti-card__meta { font-size: 13px; color: var(--muted); }
.ti-card__price { font-weight: 800; font-size: 17px; margin-top: 2px; }
.ti-cond { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #e8f7ee; color: #15803d; }
.ti-cond--good { background: #eef4ff; color: #2563eb; }
.ti-cond--repair { background: #fff7e6; color: #b45309; }
.ti-cond--parts { background: #eceef1; color: #4b5260; }
/* Карточка объявления */
.ti-page { padding-bottom: 40px; }
.ti-top { display: grid; gap: 16px; }
.ti-top > * { min-width: 0; }
@media (min-width: 1024px) { .ti-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.ti-gal { position: relative; }
.ti-info h1 { font-size: 24px; line-height: 1.2; margin: 8px 0; }
.ti-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ti-city { display: flex; align-items: center; gap: 6px; font-size: 16px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--tint); }
.ti-city .ic { color: var(--red); }
.ti-city small { color: var(--muted); }
.ti-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 14px 0; }
.ti-specs dt { font-size: 12px; color: var(--muted); }
.ti-specs dd { margin: 0; font-weight: 600; }
.ti-specs dd small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.ti-buy { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; }
.ti-price { font-size: 26px; font-weight: 800; }
.ti-safe { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.ti-safe .ic { width: 18px; height: 18px; color: #15803d; flex: 0 0 auto; }
.ti-body { display: grid; gap: 16px; margin-top: 8px; }
.ti-body > * { min-width: 0; }
@media (min-width: 1024px) { .ti-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.ti-desc { white-space: normal; }
.ti-form { padding: 16px; border: 1px solid #f3c3c7; border-radius: var(--r); box-shadow: var(--sh); scroll-margin-top: calc(var(--hdr) + 12px); }
.ti-sent { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: #ecfdf3; }
.ti-sent > .ic { width: 26px; height: 26px; color: #15803d; flex: 0 0 auto; }
.ti-sent b { display: block; font-size: 16px; }
.ti-note { padding: 10px 14px; border-radius: var(--r-sm); margin: 0 0 12px; font-size: 14px; }
.ti-note--warn { background: #fff7e6; border: 1px solid #fde3b0; }
.ti-note--err { background: var(--red-soft); border: 1px solid #f8c9cd; color: var(--red-d); }
/* Кабинет */
.ti-acc-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ti-acc-head p { flex: 1 1 400px; margin: 0; }
.ti-mylist { display: grid; gap: 10px; }
.ti-my { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ti-my__img { width: 88px; height: 70px; border-radius: var(--r-sm); background: var(--tint); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.ti-my__img img { width: 100%; height: 100%; object-fit: cover; }
.ti-my__main { display: grid; gap: 3px; min-width: 0; }
.ti-my__title { font-weight: 700; color: var(--text); text-decoration: none; }
.ti-my__act { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ti-my__act form { margin: 0; }
@media (min-width: 768px) { .ti-my { grid-template-columns: 110px minmax(0, 1fr) auto; } .ti-my__img { width: 110px; height: 84px; } .ti-my__act { grid-column: auto; justify-content: flex-end; } }
.ti-st { justify-self: start; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef4ff; color: #2563eb; }
.ti-st--approved { background: #e8f7ee; color: #15803d; }
.ti-st--rejected { background: var(--red-soft); color: var(--red); }
.ti-st--sold, .ti-st--withdrawn { background: #eceef1; color: #4b5260; }
.seg-radio--4 { margin-bottom: 12px; }
@media (min-width: 768px) { .seg-radio--4 { grid-template-columns: repeat(4, 1fr) !important; } }
.ti-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ti-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.ti-photo img { width: 100%; height: 100%; object-fit: cover; }
.ti-photo em { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.ti-photo__del { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ti-photo__del .ic { width: 15px; height: 15px; }

/* ---------- Справка ---------- */
.hdr__help, .top__help { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: 800 16px/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.hdr__help:hover, .top__help:hover { border-color: var(--red); color: var(--red); }
.top__help { margin-left: 8px; }
.help-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.help-drawer { position: fixed; inset: 0; z-index: 300; }
.help-drawer[hidden] { display: none; }
.help-drawer__bg { position: absolute; inset: 0; background: rgba(15,17,21,.45); }
.help-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: helpIn .2s ease; }
@keyframes helpIn { from { transform: translateX(30px); opacity: 0; } }
.help-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.help-drawer__head b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.help-drawer__head .ic { width: 20px; height: 20px; color: var(--red); }
.help-drawer__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f2f4; font-size: 24px; line-height: 1; cursor: pointer; }
.help-drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; overscroll-behavior: contain; }
.help-drawer__foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
html.help-open { overflow: hidden; }
.help-topic { scroll-margin-top: 90px; }
.help-topic__t { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.help-topic__t .ic { width: 22px; height: 22px; color: var(--red); flex: 0 0 auto; }
.help-topic__intro { color: #3a3f47; margin: 0 0 12px; }
.help-topic h3 { font-size: 15px; margin: 16px 0 6px; }
.help-can { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.help-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 6px; }
.help-steps li { counter-increment: st; position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.45; }
.help-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.help-tips { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 14px; }
.help-tips ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.help-topic code { background: #f1f2f4; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.help-page { padding-bottom: 40px; }
.help-page h1 { margin: 8px 0 6px; }
.help-lead { max-width: 820px; }
.help-layout { display: grid; gap: 18px; margin-top: 14px; }
.help-layout > * { min-width: 0; }
@media (min-width: 1024px) { .help-layout { grid-template-columns: 290px minmax(0, 1fr); align-items: start; } .help-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.help-toc { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; align-content: start; }
.help-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 8px 4px; }
.help-toc b:first-child { margin-top: 2px; }
.help-toc a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.help-toc a:hover { background: #f4f5f7; }
.help-toc a .ic { width: 16px; height: 16px; color: var(--red); flex: 0 0 auto; }
.help-toc__call { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 12px !important; color: var(--muted) !important; }
.help-content { display: grid; gap: 14px; }
.help-content > .help-topic { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.help-group { font-size: 22px; margin: 10px 0 0; }
.help-group:first-child { margin-top: 0; }
@media (max-width: 639px) { .help-toc { max-height: 260px; overflow-y: auto; } }
@media (min-width: 1024px) and (max-width: 1439px) { .hdr__phone span { display: none; } }
@media (max-width: 400px) { .hdr__help { width: 32px; height: 32px; font-size: 15px; } }

/* ---------- Telegram в кабинете ---------- */
.btn--tg { background: #229ed9; color: #fff; border-color: #229ed9; }
.btn--tg:hover { background: #1b8cc2; }
.tg-acc h3 { display: flex; align-items: center; gap: 8px; }
.tg-acc h3 .ic { color: #229ed9; }
.tg-promo { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r-sm); background: #e7f3fd; border: 1px solid #bfe0f7; color: var(--text); text-decoration: none; }
.tg-promo > .ic { width: 26px; height: 26px; color: #229ed9; flex: 0 0 auto; }
.tg-promo b { display: block; }
.tg-promo small { color: #3a3f47; }

/* ---------- Каталог: снятые с производства в поиске ---------- */
.tree__head--drawer { padding: 0 4px; }
.disc-sec { margin-top: 22px; padding: 18px; border: 1px dashed #d5d9e0; border-radius: var(--r); background: #fafbfc; }
.disc-sec[hidden] { display: none; }
.disc-sec__head h2 { font-size: 20px; margin: 0 0 4px; }
.disc-sec__head h2 sup { font-size: 13px; color: var(--muted); font-weight: 600; }
.disc-sec__head p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.disc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.disc-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.disc-card[hidden] { display: none; }
.disc-card:hover { border-color: #cfd3da; box-shadow: var(--sh); }
.disc-card__img { width: 76px; height: 58px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; overflow: hidden; color: var(--muted); filter: grayscale(.7); }
.disc-card__img img { width: 100%; height: 100%; object-fit: contain; }
.disc-card__body { display: grid; gap: 1px; min-width: 0; }
.disc-card__body b { font-size: 15px; }
.disc-card__body span { font-size: 13px; color: #3a3f47; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-card__body small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--red); font-weight: 600; }
.disc-card__body small .ic { width: 13px; height: 13px; }

/* ---------- Слайдер баннеров на главной ---------- */
.bslider-wrap { padding-top: 20px; }
.bslider { position: relative; }
.bslider__frame { position: relative; overflow: hidden; border-radius: var(--r); background: #0b0c0f; touch-action: pan-y; }
.bslider--full .bslider__frame { border-radius: 0; }
.bslider__track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); will-change: transform; }
.bslider.is-drag .bslider__track { transition: none; }
.bslide { position: relative; flex: 0 0 100%; aspect-ratio: 4/3; overflow: hidden; user-select: none; }
.bslide picture, .bslide img { display: block; width: 100%; height: 100%; }
.bslide img { object-fit: cover; }
.bslide__link { position: absolute; inset: 0; z-index: 1; }
.bslide--txt.bslide--dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,12,.78), rgba(8,9,12,.15) 70%); pointer-events: none; }
.bslide--txt.bslide--light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255,255,255,.85), rgba(255,255,255,.1) 70%); pointer-events: none; }
.bslide__in { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 20px 18px 44px; pointer-events: none; }
.bslide__txt { max-width: 620px; pointer-events: auto; }
.bslide--dark .bslide__txt { color: #fff; }
.bslide--light .bslide__txt { color: var(--ink); }
.bslide__title { font-size: clamp(22px, 5.6vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 8px; }
.bslide__sub { font-size: 15px; margin: 0 0 14px; opacity: .88; }
.bslider__arr { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--sh); transition: background .15s, opacity .15s; }
.bslider__arr:hover { background: #fff; }
.bslider__arr--prev { left: 14px; }
.bslider__arr--next { right: 14px; }
.bslider__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.bslider__dots button { width: 28px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.bslider__dots i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.bslider__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bslider__dots .is-on i::after { animation: bsProg var(--bs-int, 6s) linear forwards; }
.bslider.is-paused .bslider__dots .is-on i::after { animation-play-state: paused; }
.bslider__dots .is-done i::after { transform: scaleX(1); }
@keyframes bsProg { to { transform: scaleX(1); } }
@media (min-width: 768px) {
  .bslide { aspect-ratio: 16/5; }
  .bslider--full .bslide { aspect-ratio: auto; height: clamp(420px, 42vw, 640px); }
  .bslide__in { align-items: center; padding: 32px 72px; }
  .bslider--full .bslide__in { padding-left: 16px; padding-right: 16px; }
  .bslide--txt.bslide--dark::after { background: linear-gradient(90deg, rgba(8,9,12,.8), rgba(8,9,12,.1) 65%); }
  .bslide--txt.bslide--light::after { background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,0) 65%); }
  .bslide__sub { font-size: 17px; }
  .bslider__arr { display: grid; opacity: 0; }
  .bslider:hover .bslider__arr, .bslider__arr:focus-visible { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bslider__track { transition: none; } }

/* Шапка: логотип не сжимается и не уходит под кнопку «Каталог» (ПК) */
@media (min-width: 1024px) { .hdr .logo { flex: none; } }
@media (max-width: 400px) { .hdr .logo__txt small { display: none; } .hdr__in { gap: 8px; } .hdr__act { gap: 4px; } }
.hdr .logo__txt { overflow: visible; }
@media (min-width: 1024px) and (max-width: 1365px) {
  .hdr .logo__txt small { display: none; }
  .hdr__nav { margin-left: 4px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hdr__cta { display: none; }
}

/* ---------- Главный экран: статичная картинка ---------- */
.hero__pic, .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__pic img { object-fit: cover; }

/* ---------- Нижняя панель на телефоне/планшете: «Получить КП» по ширине надписи, в правом углу ---------- */
.mbar__main { flex: 0 0 auto; margin-left: auto; padding: 0 22px; white-space: nowrap; }
@media (min-width: 600px) {
  .mbar { padding-left: 16px; padding-right: 16px; }
  .mbar__btn { min-width: 72px; }
}

/* Слайдер вместо главного экрана: баннер с нарисованным текстом не обрезается по краям */
@media (min-width: 768px) {
  .bslider--full .bslide { height: auto; aspect-ratio: 16 / 5; }
  .bslider--full .bslide--txt { min-height: 420px; }
}

/* Telegram рядом с WhatsApp */
.mbar__btn--tg { color: #229ed9; }
.hdr__wa.btn--tg { margin-left: -2px; }
/* Нижняя панель: 4 кнопки + «Получить КП» помещаются и на узком телефоне */
@media (max-width: 420px) {
  .mbar { gap: 0; padding-left: 6px; padding-right: 6px; }
  .mbar__btn { min-width: 0; flex: 1 1 0; padding: 4px 2px; }
  .mbar .mbar__btn span { font-size: 11.5px; letter-spacing: -.01em; /* no-bump */ }
  .mbar .mbar__btn .ic { width: 21px; height: 21px; }
}
@media (max-width: 380px) {
  .mbar .mbar__btn span { font-size: 10.5px; letter-spacing: -.02em; /* no-bump */ }
  .mbar .mbar__main { padding: 0 12px; font-size: 14.5px; /* no-bump */ }
  .mbar .mbar__main { padding: 0 14px; font-size: 15px; margin-left: 4px; /* no-bump */ }
}

/* Карточки каталога: картинка всегда вписана в рамку 4:3 с сохранением пропорций */
.mc__img { overflow: hidden; }
.mc__img img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
/* Шапка: с кнопкой Telegram номер телефона текстом — только на очень широких экранах */
@media (min-width: 1024px) and (max-width: 1679px) { .hdr__phone span { display: none; } }

/* ---------- Раздел «Автоматизация производства» ---------- */
.auto-hero { position: relative; background: radial-gradient(900px 500px at 85% 30%, #2a1013 0%, #0b0c0f 60%); color: #fff; overflow: hidden; }
.auto-hero__in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.auto-hero h1 { font-size: clamp(30px, 7.5vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 16px 0 14px; }
.auto-hero h1 em { font-style: normal; color: var(--red); display: block; }
.auto-hero__lead { color: #cfd3da; font-size: 17px; max-width: 600px; margin-bottom: 24px; }
.auto-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.auto-hero__facts { list-style: none; padding: 22px 0 0; margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.auto-hero__facts b { display: block; font-size: 22px; font-weight: 800; }
.auto-hero__facts span { font-size: 13px; color: #aab0ba; }
.auto-hero__pic { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auto-hero__pic img { display: block; width: 100%; height: auto; }
.auto-lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: -14px 0 26px; }

.auto-flow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: f; }
.auto-flow__step { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.auto-flow__ic { position: relative; width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 12px; }
.auto-flow__ic .ic { width: 26px; height: 26px; }
.auto-flow__ic i { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/22px var(--font); text-align: center; font-style: normal; }
.auto-flow__step b { display: block; font-size: 17px; margin-bottom: 4px; }
.auto-flow__step p { margin: 0; font-size: 14.5px; color: var(--muted); }

.auto-cycle__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auto-cycle__item { position: relative; display: grid; grid-template-columns: 36px 110px 1fr; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.auto-cycle__num { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.auto-cycle__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: #fff; overflow: hidden; position: relative; }
.auto-cycle__img img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.auto-cycle__body h3 { font-size: 17px; margin-bottom: 4px; }
.auto-cycle__body p { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); }
.auto-cycle__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 600; }
.auto-cycle__links a:first-child { color: var(--red); }
.auto-cycle__links .ic { width: 14px; height: 14px; vertical-align: -2px; }
.auto-alu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px dashed #d4d7dd; }
.auto-alu > b { margin-right: 6px; }
.auto-alu__item { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--tint); font-weight: 600; font-size: 14.5px; }
.auto-alu__item img { width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.auto-alu__item small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

.auto-comp__in { display: grid; gap: 28px; align-items: center; }
.auto-comp__txt > p { font-size: 17px; color: var(--muted); margin: 14px 0 18px; }
.auto-comp__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auto-comp__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.auto-comp__list .ic { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.auto-comp__pic { position: relative; border-radius: 18px; overflow: hidden; }
.auto-comp__pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.2); }
.auto-comp__badge { position: absolute; left: 16px; bottom: 16px; padding: 14px 18px; border-radius: 14px; background: var(--red); color: #fff; box-shadow: var(--sh-lg); }
.auto-comp__badge b { display: block; font-size: 18px; }
.auto-comp__badge span { font-size: 14px; opacity: .9; }

.auto-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auto-steps__list li { position: relative; padding: 18px 18px 18px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.auto-steps__list li span { position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.auto-steps__list li:last-child span { background: var(--red); }
.auto-steps__list b { display: block; font-size: 17px; margin-bottom: 4px; }
.auto-steps__list p { margin: 0; color: var(--muted); font-size: 14.5px; }

.auto-out__grid { display: grid; gap: 12px; }
.auto-out__item { padding: 20px; border-radius: var(--r); background: var(--ink); color: #fff; }
.auto-out__item span { width: 46px; height: 46px; border-radius: 12px; background: rgba(217,21,34,.18); color: #ff4b57; display: grid; place-items: center; margin-bottom: 12px; }
.auto-out__item span .ic { width: 24px; height: 24px; }
.auto-out__item b { display: block; font-size: 17px; margin-bottom: 6px; }
.auto-out__item p { margin: 0; font-size: 14.5px; color: #b4bac4; }
.auto-grid { max-width: 1000px; }
.auto-cta .btn-row { flex-wrap: wrap; }

@media (min-width: 640px) {
  .auto-flow__list { grid-template-columns: repeat(2, 1fr); }
  .auto-out__grid { grid-template-columns: repeat(2, 1fr); }
  .auto-steps__list { grid-template-columns: repeat(2, 1fr); }
  .auto-hero__facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .auto-hero__in { grid-template-columns: 1.05fr 1fr; padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .auto-hero__lead { font-size: 19px; }
  .auto-flow__list { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .auto-flow__step { padding: 16px 14px; }
  .auto-flow__step:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -9px; width: 8px; height: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); z-index: 2; }
  .auto-cycle__list { grid-template-columns: repeat(2, 1fr); }
  .auto-cycle__item { grid-template-columns: 36px 140px 1fr; }
  .auto-comp__in { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .auto-steps__list { grid-template-columns: repeat(4, 1fr); }
  .auto-steps__list li { padding: 70px 18px 18px; }
  .auto-out__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  .auto-cycle__item { grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 12px; }
  .auto-cycle__num { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; font-size: 13px; z-index: 2; }
  .auto-cycle__img { margin-top: 4px; }
  .auto-flow__step { display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; padding: 14px; }
  .auto-flow__ic { grid-row: 1 / span 2; margin: 0; }
  .auto-flow__step b { align-self: end; }
}

/* Шапка с пунктом «Автоматизация»: телефон значком, на средних экранах компактнее */
.hdr .hdr__phone span { display: none; }
@media (min-width: 1024px) and (max-width: 1559px) {
  .hdr__acc span { display: none !important; }
  .hdr__nav { gap: 0; }
  .hdr__nav > a { padding: 8px 9px; }
}
@media (min-width: 1024px) and (max-width: 1359px) { .hdr__nav .hdr__opt { display: none; } }

/* Этапы заказа = статусы из админки (их больше шести) */
.steps-bar { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
.mini-steps { grid-template-columns: repeat(var(--n, 6), 1fr); }
.steps-bar .is-warn i { color: #d97706; box-shadow: 0 0 0 2px #f59e0b; }
.steps-bar .is-warn span { color: #b45309; }
@media (max-width: 767px) {
  .steps-bar { grid-template-columns: 1fr; gap: 0; padding: 10px 14px; }
  .steps-bar li { grid-template-columns: 28px 1fr; justify-items: start; align-items: center; gap: 12px; text-align: left; min-height: 36px; }
  .steps-bar li::before { top: -50%; bottom: 50%; left: 13px; right: auto; width: 2px; height: auto; }
  .steps-bar li:not(.is-done):not(.is-cur) { opacity: .75; }
}

/* Шапка всегда в ширину контента (1280): «Кабинет» значком, плотнее пункты */
@media (min-width: 1024px) {
  .hdr__acc span { display: none !important; }
  .hdr__in { gap: 12px; }
  .hdr__act { gap: 6px; }
  .hdr__nav { gap: 0; margin-left: 6px; }
  .hdr__nav > a { padding: 8px 10px; }
}

/* Проблемы и идеи (кабинет) */
.ideas-intro { display: grid; gap: 14px; align-items: center; padding: 16px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ideas-intro p { margin: 0; color: var(--muted); }
.ideas-intro__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .ideas-intro { grid-template-columns: 1fr auto; } }
.kind-pick { display: grid; gap: 10px; }
@media (min-width: 640px) { .kind-pick { grid-template-columns: 1fr 1fr; } }
.kind-pick__item { cursor: pointer; }
.kind-pick__item input { position: absolute; opacity: 0; }
.kind-pick__item span { display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; height: 100%; }
.kind-pick__item span .ic { width: 26px; height: 26px; color: var(--red); }
.kind-pick__item small { color: var(--muted); }
.kind-pick__item input:checked + span { border-color: var(--red); background: var(--red-soft); }
.kind-pick__item input:focus-visible + span { outline: 2px solid var(--red); }
.idea-sol { border-color: #f9a8d4; }
.idea-sol h3 { display: flex; align-items: center; gap: 8px; }
.idea-sol h3 .ic { color: #db2777; }
.idea-sol__text { white-space: normal; margin-bottom: 12px; }
.idea-sol__answer textarea { width: 100%; margin-bottom: 8px; }
.idea-body { margin-bottom: 10px; }
.pm__idea { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; color: var(--muted); margin: 6px 0 2px; text-decoration: underline; text-underline-offset: 3px; }
.pm__idea .ic { width: 16px; height: 16px; color: var(--red); }
.unit-idea { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }

/* ---------- Запчасти: переключатель вида «Список / Значки» ---------- */
.parts-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.parts-bar .parts-count { margin: 0; }
.pview { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--tint); flex: none; }
.pview button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; }
.pview button .ic { width: 18px; height: 18px; }
.pview button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
@media (max-width: 479px) { .pview button span { display: none; } .pview button { padding: 8px 10px; } }

.plist--grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plist--grid .prow { grid-template-columns: 1fr; gap: 8px; align-content: start; }
.plist--grid .prow__img { width: 100%; height: auto; aspect-ratio: 4 / 3; position: relative; }
.plist--grid .prow__img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.plist--grid .prow__img > .ic { width: 40px; height: 40px; }
.plist--grid .prow__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plist--grid .prow__mach { display: none; }
.plist--grid .prow__side { grid-column: auto; flex-direction: column; align-items: stretch; gap: 6px; margin-top: auto; }
.plist--grid .prow__add { justify-content: center; }
@media (max-width: 479px) { .plist--grid { grid-template-columns: 1fr 1fr; gap: 8px; } .plist--grid .prow { padding: 8px; } }

/* ---------- Вызов мастера ---------- */
.svc-call-banner { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.svc-call-banner:hover { border-color: var(--red); }
.svc-call-banner__ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.svc-call-banner__ic .ic { width: 24px; height: 24px; }
.svc-call-banner > span:nth-child(2) { flex: 1; }
.svc-call-banner b { display: block; }
.svc-call-banner small { color: var(--muted); }
@media (max-width: 639px) { .svc-call-banner { flex-wrap: wrap; } .svc-call-banner .btn { width: 100%; } }
.servis-hero { background: var(--ink); color: #fff; padding: 22px 0 28px; }
.servis-hero .crumbs a, .servis-hero .crumbs span { color: #aab0ba; }
.servis-hero h1 { font-size: clamp(26px, 6vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 10px; }
.servis-hero__lead { color: #cfd3da; max-width: 720px; margin: 0 0 18px; }
.servis-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.servis-steps li { display: flex; align-items: center; gap: 8px; color: #e6e8ec; font-weight: 600; font-size: 14px; }
.servis-steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 13px; }
.servis-body { padding-top: 18px; padding-bottom: 40px; max-width: 900px; }
.svc-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.svc-kind { cursor: pointer; }
.svc-kind input { position: absolute; opacity: 0; }
.svc-kind span { display: block; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; }
.svc-kind input:checked + span { border-color: var(--red); background: var(--red-soft); }
.svc-kind input:focus-visible + span { outline: 2px solid var(--red); }
.svc-urgent { margin-top: 12px; color: var(--red); }
.servis-ok { text-align: center; padding: 30px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.servis-ok .btn-row { justify-content: center; }

.fld__hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); /* no-bump */ }

/* Видеоинструкции */
.vids__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vid { display: grid; gap: 6px; }
.vid b { font-size: 15px; }
.vid--link { padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.kb-docs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.kb-docs a { display: inline-flex; align-items: center; gap: 6px; }
.kb-docs .ic { width: 18px; height: 18px; color: var(--red); }

/* Калькулятор окупаемости */
.calc-body { display: grid; gap: 16px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .calc-body { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .calc-res { position: sticky; top: calc(var(--hdr) + 12px); } }
.calc-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.calc-form input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.calc-res__box { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 12px; }
.calc-res__box .muted { color: #9aa1ab !important; }
.calc-big span { display: block; color: #aab0ba; font-size: 14px; }
.calc-big b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.calc-res dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-res dt { color: #cfd3da; }
.calc-res dd { margin: 0; font-weight: 700; text-align: right; }
.calc-tier { background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; margin: 0; }
.calc-res .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* Переключатель языков */
.langs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(0,0,0,.05); }
.langs a { padding: 4px 7px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #6b7280; text-decoration: none; line-height: 1.2; }
.langs a:hover { color: var(--text, #111); }
.langs a.is-on { background: #fff; color: var(--text, #111); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.drawer__langs { margin: 4px 0 10px; }
.drawer__langs a { padding: 7px 12px; font-size: 13px; }
@media (max-width: 1023px) { .hdr__langs { display: none; } }

/* Выпадающий переключатель языков в шапке */
.langs-dd { position: relative; }
.langs-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border-radius: 10px; cursor: pointer; font-size: 12.5px; color: #4b5563; }
.langs-dd summary::-webkit-details-marker { display: none; }
.langs-dd summary:hover, .langs-dd[open] summary { background: rgba(0,0,0,.05); color: var(--text, #111); }
.langs-dd summary .ic { width: 17px; height: 17px; }
.langs-dd__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; display: grid; }
.langs-dd__list a { padding: 8px 10px; border-radius: 8px; color: var(--text, #111); text-decoration: none; font-size: 14px; }
.langs-dd__list a b { display: inline-block; width: 28px; color: #6b7280; font-size: 12px; }
.langs-dd__list a:hover { background: #f3f4f6; }
.langs-dd__list a.is-on { background: #fef2f2; }

@media (min-width: 1024px) and (max-width: 1599px) { html:not([lang="ru"]) .hdr__nav .hdr__opt { display: none; } }
/* MOBILE-TYPE:START — сгенерировано app/cli/mobile_type.php, не править вручную */
@media (max-width: 767px) {
  body { font-size: 17px; }
  body { font-size: 17.5px; }
  .btn { font-size: 16.5px; }
  .btn--lg { font-size: 17.5px; }
  .btn--sm { font-size: 16px; }
  .logo__txt b { font-size: 17.5px; }
  .logo__txt small { font-size: 12.5px; }
  .hdr__nav > a { font-size: 16.5px; }
  .hdr__phone { font-size: 16.5px; }
  .drawer__label { font-size: 14px; }
  .drawer__cats em { font-size: 15px; }
  .mbar__btn { font-size: 13px; }
  .mbar__main { font-size: 16.5px; }
  .eyebrow { font-size: 15px; }
  .link-more { font-size: 16.5px; }
  .hero__eyebrow { font-size: 15px; }
  .hero__facts span { font-size: 14px; }
  .cat__name { font-size: 17px; }
  .cat__desc { font-size: 16px; }
  .cat__cnt { font-size: 15px; }
  .cat--big .cat__desc { font-size: 15px; }
  .mc__code { font-size: 14px; }
  .mc__type { font-size: 12.5px; }
  .mc__title { font-size: 16px; }
  .mc__specs { font-size: 15px; }
  .mc__more { font-size: 16px; }
  .mc__price { font-size: 16px; }
  .feat p { font-size: 16.5px; }
  .stats span { font-size: 16px; }
  .steps b { font-size: 18px; }
  .steps span { font-size: 16px; }
  .lead__eyebrow { font-size: 14px; }
  .lead__sub { font-size: 16px; }
  .fld span { font-size: 15px; }
  .fld input, .fld select, .fld textarea { font-size: 17.5px; }
  .lead__note { font-size: 14px; }
  .lead__err { font-size: 16px; }
  .seo { font-size: 16.5px; }
  .ftr { font-size: 16.5px; }
  .ftr__regions { font-size: 15px; }
  .ftr__social a { font-size: 14px; }
  .ftr__bottom { font-size: 15px; }
  .crumbs { font-size: 15px; }
  .cat-top__h1 sup { font-size: 16px; }
  .search input { font-size: 17.5px; }
  .tab { font-size: 16px; }
  .chip { font-size: 16px; }
  .chip em { font-size: 14px; }
  .gal__count { font-size: 14px; }
  .tag { font-size: 14px; }
  .pm__code { font-size: 16px; }
  .pm__short { font-size: 17.5px; }
  .pm__specs { font-size: 16px; }
  .pm__price span { font-size: 15px; }
  .pm__price small { font-size: 15px; }
  .pm__trust { font-size: 16px; }
  .block--muted p { font-size: 16px; }
  .checks--2 li { font-size: 16.5px; }
  .side-card p { font-size: 16px; }
  .link-btn { font-size: 16px; }
  .params { font-size: 16.5px; }
  .cbar__item { font-size: 14px; }
  .cbar__go em { font-size: 14px; }
  .toast { font-size: 16px; }
  .cmp-diff { font-size: 16.5px; }
  .cmp { font-size: 16px; }
  .cmp__label { font-size: 15px; }
  .cmp__code { font-size: 16.5px; }
  .cmp__title { font-size: 15px; }
  .cmp__list { font-size: 15px; }
  .cmp-add { font-size: 14px; }
  .cmp-add select { font-size: 15px; }
  .cmp-note { font-size: 15px; }
  .cmp__more summary { font-size: 15px; }
  .tree { font-size: 16px; }
  .tree__title { font-size: 14px; }
  .tree__collapse { font-size: 14px; }
  .tree__find input { font-size: 16px; }
  .tree em { font-size: 14px; }
  .tree__sublink { font-size: 16px; }
  .tree__empty { font-size: 16px; }
  .tree--drawer .tree__all, .tree--drawer .tree__link { font-size: 16.5px; }
  .tree--drawer .tree__sublink { font-size: 16.5px; }
  .chip--menu { font-size: 16px; }
  .mega__btn { font-size: 16.5px; }
  .mega__cat { font-size: 16px; }
  .mega__cat em { font-size: 14px; }
  .mega__pane-head p { font-size: 16px; }
  .mega__types a { font-size: 16px; }
  .mega__types em { font-size: 14px; }
  .mega__foot a, .mega__foot button { font-size: 16px; }
  .parts-search input, .parts-search select { font-size: 17.5px; }
  .parts-photo span { font-size: 16px; }
  .how li { font-size: 15px; }
  .how li::before { font-size: 14px; }
  .parts-count { font-size: 16px; }
  .prow__sku { font-size: 14px; }
  .prow__name { font-size: 16.5px; }
  .prow__mach { font-size: 14px; }
  .prow__price a { font-size: 16px; }
  .stock { font-size: 14px; }
  .part-sku { font-size: 16px; }
  .part-sku b { font-size: 17.5px; }
  .part-buy__note { font-size: 15px; }
  .part-compat h2 { font-size: 17.5px; }
  .qty input { font-size: 17.5px; }
  .qty--sm button { font-size: 17.5px; }
  .qty--sm input { font-size: 16px; }
  .cart__txt b { font-size: 16px; }
  .cart__txt small { font-size: 14px; }
  .acc-hello { font-size: 15px; }
  .acc-logout { font-size: 16px; }
  .acc-tabs a { font-size: 16px; }
  .acc-tabs em { font-size: 12.5px; }
  .acc-flash { font-size: 16px; }
  .acc-alert { font-size: 16px; }
  .auth-links { font-size: 16px; }
  .auth-why .checks li { font-size: 16px; }
  .check-line { font-size: 16px; }
  .small { font-size: 15px; }
  .back-link { font-size: 16px; }
  .oitem__num { font-size: 17.5px; }
  .oitem__kind { font-size: 15px; }
  .oitem__mach { font-size: 16px; }
  .oitem__foot { font-size: 15px; }
  .st { font-size: 14px; }
  .ocard__h span { font-size: 16px; }
  .ocard__hint { font-size: 16px; }
  .seg-radio__item b { font-size: 16.5px; }
  .seg-radio__item small { font-size: 15px; }
  .mymach__item small { font-size: 14px; }
  .ocart__empty { font-size: 16px; }
  .ocart__table, .otable { font-size: 16px; }
  .ocart__table th, .otable th { font-size: 14px; }
  .osku { font-size: 14px; }
  .manual__row input { font-size: 16.5px; }
  .tips { font-size: 15px; }
  .upl__drop b { font-size: 16.5px; }
  .upl__drop small { font-size: 14px; }
  .upl__item { font-size: 13px; }
  .upl__item button { font-size: 17.5px; }
  .osubmit__who { font-size: 15px; }
  .osubmit__err { font-size: 16px; }
  .osubmit__progress span { font-size: 14px; }
  .ohead__meta { font-size: 15px; }
  .steps-bar li { font-size: 13px; }
  .steps-bar i { font-size: 14px; }
  .now__body b { font-size: 18px; }
  .now__q { font-size: 16px; }
  .now__quote > span { font-size: 16.5px; }
  .now__eta { font-size: 16px; }
  .odl { font-size: 16px; }
  .ohist { font-size: 16px; }
  .ohist small { font-size: 14px; }
  .ocancel { font-size: 16px; }
  .chat__sys { font-size: 14px; }
  .msg__who { font-size: 14px; }
  .msg__body { font-size: 16px; }
  .reply textarea { font-size: 16.5px; }
  .ofile--video a { font-size: 14px; }
  .ofile--doc { font-size: 14px; }
  .mcard__body { font-size: 16px; }
  .mcard__body b { font-size: 17.5px; }
  .hdr__acc { font-size: 16px; }
  .part-orig { font-size: 15px; }
  .small { font-size: 15px; }
  .scheme__pin { font-size: 14px; }
  .scheme-head p { font-size: 16px; }
  .sitem__pos { font-size: 15px; }
  .sitem__name { font-size: 16.5px; }
  .sitem__meta { font-size: 14px; }
  .sitem__buy b { font-size: 16px; }
  .mparts__act b, .asm-card b, .doc-list b, .part-schemes b { font-size: 16.5px; }
  .mparts__act small, .asm-card small, .doc-list small, .part-schemes small { font-size: 15px; }
  .pdrop small { font-size: 15px; }
  .pdet { font-size: 16px; }
  .pout__sub { font-size: 17.5px; }
  .pcard__img { font-size: 13px; }
  .pcard__sku { font-size: 15px; }
  .pcard__name { font-size: 17.5px; }
  .pcard__orig { font-size: 14px; }
  .pcard__conf { font-size: 15px; }
  .pcard__why { font-size: 16px; }
  .pcard__sch { font-size: 15px; }
  .ai-attached span { font-size: 16px; }
  .disc-note { font-size: 16px; }
  .disc-repl span { font-size: 14px; }
  .disc-repl small { font-size: 15px; }
  .mach-ctx { font-size: 16px; }
  .unit-sent b { font-size: 17.5px; }
  .unit-sent span { font-size: 16px; }
  .unit-head__code { font-size: 15px; }
  .ustat { font-size: 14px; }
  .unit-facts dt { font-size: 14px; }
  .unit-facts dd { font-size: 16px; }
  .unit-staff { font-size: 16px; }
  .plan b { font-size: 16.5px; }
  .plan small { font-size: 14px; }
  .rec__head b { font-size: 16.5px; }
  .rec__head time { font-size: 15px; }
  .rec__meta { font-size: 14px; }
  .rec p { font-size: 16px; }
  .rec__parts { font-size: 15px; }
  .rec__int { font-size: 15px; }
  .rec__files a { font-size: 15px; }
  .uform__plans legend { font-size: 15px; }
  .seg span { font-size: 15px; }
  .mto { font-size: 14px; }
  .tpl-offer { font-size: 16px; }
  .inline-f input[type=date] { font-size: 15px; }
  .rec__src { font-size: 13px; }
  .rec__del .link-btn { font-size: 14px; }
  .ti-sell > span:not(.ti-sell__ic):not(.ti-sell__go) { font-size: 16px; }
  .ti-card__img em { font-size: 14px; }
  .ti-card__city { font-size: 15px; }
  .ti-card b { font-size: 16.5px; }
  .ti-card__meta { font-size: 15px; }
  .ti-cond { font-size: 14px; }
  .ti-city { font-size: 17.5px; }
  .ti-specs dt { font-size: 14px; }
  .ti-specs dd small { font-size: 14px; }
  .ti-safe { font-size: 15px; }
  .ti-sent b { font-size: 17.5px; }
  .ti-note { font-size: 16px; }
  .ti-st { font-size: 14px; }
  .ti-photo em { font-size: 13px; }
  .hdr__help, .top__help { font-size: 17.5px; }
  .help-q { font-size: 14px; }
  .help-drawer__head b { font-size: 17.5px; }
  .help-topic h3 { font-size: 16.5px; }
  .help-can { font-size: 16px; }
  .help-steps li { font-size: 16px; }
  .help-steps li::before { font-size: 14px; }
  .help-tips { font-size: 16px; }
  .help-topic code { font-size: 15px; }
  .help-toc b { font-size: 14px; }
  .help-toc a { font-size: 16px; }
  .disc-sec__head h2 sup { font-size: 15px; }
  .disc-sec__head p { font-size: 16px; }
  .disc-card__body b { font-size: 16.5px; }
  .disc-card__body span { font-size: 15px; }
  .disc-card__body small { font-size: 14px; }
  .bslide__sub { font-size: 16.5px; }
  .auto-hero__facts span { font-size: 15px; }
  .auto-flow__ic i { font-size: 14px; }
  .auto-flow__step p { font-size: 16px; }
  .auto-cycle__body p { font-size: 16px; }
  .auto-cycle__links { font-size: 16px; }
  .auto-alu__item { font-size: 16px; }
  .auto-alu__item small { font-size: 14px; }
  .auto-comp__list li { font-size: 17.5px; }
  .auto-comp__badge span { font-size: 16px; }
  .auto-steps__list p { font-size: 16px; }
  .auto-out__item p { font-size: 16px; }
  .pm__idea { font-size: 16px; }
  .pview button { font-size: 16px; }
  .servis-steps li { font-size: 16px; }
  .servis-steps b { font-size: 15px; }
  .vid b { font-size: 16.5px; }
  .calc-big span { font-size: 16px; }
  .langs a { font-size: 14px; }
  .drawer__langs a { font-size: 15px; }
  .langs-dd summary { font-size: 14px; }
  .langs-dd__list a { font-size: 16px; }
  .langs-dd__list a b { font-size: 14px; }
}
@media (max-width: 767px) and (min-width: 560px) {
  .mc__title { font-size: 16.5px; }
}
@media (max-width: 767px) and (max-width: 767px) {
  .cmp { font-size: 15px; }
  .cmp__label { font-size: 14px; }
  .cmp__title { font-size: 14px; }
  .cmp__item .btn { font-size: 14px; }
}
@media (max-width: 767px) and (min-width: 640px) {
  .steps-bar li { font-size: 14px; }
}
@media (max-width: 767px) and (max-width: 400px) {
  .hdr__help { font-size: 16.5px; }
}
@media (max-width: 767px) and (max-width: 639px) {
  .auto-cycle__num { font-size: 15px; }
}
/* MOBILE-TYPE:END */
