/* Витрина АвтоЛаб.Маркет — «Премиум светлый», как CRM, только для покупателя.
   Отдельный файл: витрине не нужны стили складских таблиц и форм CRM. */
:root {
  --bg: #f3f5fa; --card: #fff; --sunken: #f1f3f8; --line: #e8ecf3;
  --ink: #07122b; --ink-soft: #505a6e; --ink-faint: #687083;
  --accent: #005bff; --accent-hover: #004ee0; --accent-tint: #e8f0ff;
  --ok: #0d9a56; --ok-tint: #e5f6ec; --warn: #b86e00; --warn-tint: #fff2da; --danger: #e3383b;
  --wa: #1fae55; --tg: #229ed9;
  --shadow: 0 2px 6px rgba(7, 18, 43, .04), 0 10px 30px rgba(7, 18, 43, .05);
  --shadow-hover: 0 6px 14px rgba(7, 18, 43, .07), 0 18px 44px rgba(7, 18, 43, .1);
  --ease: cubic-bezier(.2, .7, .3, 1);
  /* Заголовки — пять ролей вместо отдельной формулы на каждой странице */
  --fs-hero: clamp(30px, 4.4vw, 52px);      /* главный заголовок страницы-витрины */
  --fs-banner: clamp(30px, 3.6vw, 52px);    /* заголовок на баннере: рядом картинка, поэтому растёт медленнее */
  --fs-page: clamp(28px, 3.4vw, 40px);      /* заголовок раздела: подбор, справочник кода */
  --fs-title: clamp(26px, 3vw, 34px);       /* заголовок рабочей страницы: товар, каталог, оформление */
  --fs-section: clamp(22px, 2.4vw, 28px);   /* заголовок блока внутри страницы */
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--accent-hover); } }
img { display: block; max-width: 100%; }
h1 { font-size: var(--fs-hero); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: var(--fs-section); text-wrap: balance; font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border: 0; border-radius: 14px; background: var(--accent); color: #fff !important; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 91, 255, .28); } }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.lg { height: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-faint), var(--shadow); } }
.btn.wa { background: var(--wa); }
@media (hover: hover) and (pointer: fine) { .btn.wa:hover { background: #179848; box-shadow: 0 8px 20px rgba(31, 174, 85, .3); } }
.btn.tg { background: var(--tg); }
@media (hover: hover) and (pointer: fine) { .btn.tg:hover { background: #1b8bc0; box-shadow: 0 8px 20px rgba(34, 158, 217, .3); } }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink) !important; }
.logo b { display: block; font-size: 17px; letter-spacing: -.02em; line-height: 1.1; }
.logo small { display: block; font-size: 12px; color: var(--ink-faint); }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0, 65, 217, .28); }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px;
  transition: background .16s var(--ease), color .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .top-nav a:hover { background: var(--sunken); color: var(--ink); } }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.phone { color: var(--ink) !important; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }

/* Первый экран */
.hero { padding: 56px 0 36px; background:
  radial-gradient(1100px 420px at 85% -10%, rgba(0, 91, 255, .10), transparent 60%),
  radial-gradient(700px 300px at 0% 0%, rgba(0, 163, 255, .08), transparent 60%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 40px; align-items: start; }
.hero-kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-tint);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero-text p { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 0 26px; }
.hero-search { display: flex; gap: 8px; background: var(--card); padding: 8px; border-radius: 18px; box-shadow: var(--shadow); max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 0 12px; background: transparent; color: var(--ink); }
.hero-facts { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.hero-facts b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-facts span { font-size: 13px; color: var(--ink-soft); }
.hero-card { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.hero-card-t { display: block; font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.hero-card > p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* Заявка */
.lead { display: grid; gap: 10px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { width: 100%; border: 1px solid transparent; background: var(--sunken); border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--ink); resize: vertical; transition: border-color .16s, background .16s, box-shadow .16s; }
.field:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 91, 255, .14); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.consent input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.lead-err { color: var(--danger); font-size: 14px; font-weight: 500; }
.lead-done { background: var(--ok-tint); border-radius: 14px; padding: 16px; }
.lead-done b { color: var(--ok); font-size: 17px; }
.lead-done p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Каталог */
.catalog { padding: 28px 0 12px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-head h2 { margin: 0; }
.cat-search input { width: min(320px, 70vw); height: 44px; border: 0; border-radius: 12px; padding: 0 16px; font: inherit; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.cat-search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(0, 91, 255, .12); }
.tabs { display: flex; gap: 8px; margin: 18px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--card);
  color: var(--ink) !important; font-weight: 500; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tab span { font-size: 13px; color: var(--ink-faint); }
@media (hover: hover) and (pointer: fine) { .tab:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink-faint), var(--shadow); } }
.tab.on { background: var(--accent); color: #fff !important; box-shadow: none; }
.tab.on span { color: rgba(255, 255, 255, .75); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.item { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink) !important;
  display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } }
.item-img { position: relative; aspect-ratio: 4 / 3; background: var(--sunken); overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s var(--ease); }
@media (hover: hover) and (pointer: fine) { .item:hover .item-img img { transform: scale(1.04); } }
.badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.badge.stock { color: var(--ok); }
.badge.order { color: var(--warn); }
.item-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.code { justify-self: start; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; padding: 2px 8px;
  border: 1.5px solid var(--ink); border-radius: 7px; letter-spacing: .02em; }
.code.lg { font-size: 16px; padding: 3px 10px; margin-bottom: 12px; display: inline-block; }
.item-t { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.item-m { font-size: 14px; color: var(--ink-soft); }
.item-cta { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.empty { background: var(--card); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.empty > b { font-size: 20px; }
.empty > p { color: var(--ink-soft); margin: 6px 0 18px; }
.empty-form { max-width: 520px; margin: 0 auto; text-align: left; }

/* Почему мы */
.why { padding: 36px 0 56px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-grid > div { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.why-grid b { display: block; font-size: 17px; letter-spacing: -.01em; margin-bottom: 6px; }
.why-grid p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Карточка товара */
.crumbs { padding: 22px 0 6px; font-size: 14px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; }
/* Слева фото, под ними описание; справа цена и характеристики на всю высоту. Вторая строка гибкая (1fr):
   правая колонка обычно выше галереи, и лишняя высота уходит под описание, а не между фото и описанием. */
.prod { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); grid-template-rows: auto 1fr; gap: 24px 32px; padding: 12px 0 24px; align-items: start; }
.prod > .gallery { grid-column: 1; grid-row: 1; }
.prod > .prod-info { grid-column: 2; grid-row: 1 / span 2; }
.prod > .prod-more { grid-column: 1; grid-row: 2; }
.gal-main { position: relative; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.gal-thumbs button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--sunken);
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .16s, transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gal-thumbs button:hover { transform: translateY(-2px); } }
.gal-thumbs button.on { outline-color: var(--accent); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prod-info h1 { font-size: var(--fs-title); }
.specs { display: grid; gap: 0; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 20px; margin-bottom: 16px; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs > div:first-child { border-top: 0; }
.specs span { color: var(--ink-soft); }
.specs b { font-weight: 600; text-align: right; }
.price-box { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; margin-bottom: 16px; }
.price-head b { display: block; font-size: 24px; letter-spacing: -.02em; }
.price-head span { font-size: 14px; color: var(--ink-soft); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick .btn { padding: 0 10px; font-size: 14px; }
.prod-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.desc { white-space: pre-line; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.fits { display: flex; flex-wrap: wrap; gap: 8px; }
.fits span { background: var(--sunken); border-radius: 10px; padding: 7px 11px; font-size: 14px; font-weight: 500; }
.fits i { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.note { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; }

.legal { max-width: 760px; padding: 40px 0 60px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p { color: var(--ink-soft); }

/* Подвал */
.foot { background: #07122b; color: #b9c0cf; padding: 44px 0 36px; margin-top: 20px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-name { color: #fff; font-size: 19px; }
.foot p { margin: 6px 0 14px; font-size: 15px; }
.foot a { color: #fff; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #9fc0ff; } }
.foot-k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #6f7a90; }
.foot-links { display: flex; gap: 16px; }
.foot-small { font-size: 13px !important; color: #7d8799; }
.mob-bar { display: none; }

@media (max-width: 980px) {
  .hero-in, .prod { grid-template-columns: minmax(0, 1fr); }
  .prod { grid-template-rows: none; }
  .prod > .gallery, .prod > .prod-info, .prod > .prod-more { grid-column: auto; grid-row: auto; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .top-in { height: 60px; gap: 12px; }
  .top-cta .phone, .top-cta .btn.wa { display: none; }
  .hero { padding: 30px 0 18px; }
  .hero-text p { font-size: 16px; }
  .hero-facts { gap: 18px; }
  .hero-facts b { font-size: 24px; }
  .lead-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item { border-radius: 16px; }
  .item-body { padding: 10px 12px 12px; }
  .item-t { font-size: 14px; }
  .item-m { font-size: 13px; }
  .item-cta { display: none; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .quick { grid-template-columns: 1fr 1fr 1fr; }
  .gal-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .gal-thumbs::-webkit-scrollbar { display: none; }
  .gal-thumbs button { flex: 0 0 64px; height: 64px; }
  .hero-card { display: none; }
  .lead-bottom { display: block !important; }
  .mob-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line); }
}

.lead-bottom { display: none; padding: 8px 0 8px; }
.lead-bottom .hero-card { display: block; }

/* ── Стекло поверх фото агрегатов ───────────────────────────────────── */
/* За страницей — наши же снимки двигателей и коробок, сильно размытые и
   высветленные. На них лежат стеклянные шапка и карточки: видно, что это
   магазин железа, а текст остаётся читаемым. */
:root { --glass: rgba(255, 255, 255, .62); --glass-strong: rgba(255, 255, 255, .78);
        --glass-blur: blur(24px) saturate(1.7);
        --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 1px rgba(7, 18, 43, .05); }
.bg-photos { position: fixed; inset: -60px; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr);
             grid-auto-rows: 1fr; pointer-events: none; filter: blur(46px) saturate(1.25); opacity: .5; transform: translateZ(0); }
.bg-photos img { width: 100%; height: 100%; object-fit: cover; }
.bg-photos::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(243, 245, 250, .35), rgba(243, 245, 250, .72) 55%, rgba(243, 245, 250, .9)); }
body:has(.bg-photos) { background: var(--bg); }
body:has(.bg-photos) .hero { background: none; }

.top { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
       box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .6), 0 1px 0 rgba(7, 18, 43, .05), 0 8px 30px rgba(7, 18, 43, .05); }
@media (hover: hover) and (pointer: fine) { .top-nav a:hover { background: rgba(255, 255, 255, .6); } }
.item, .hero-card, .hero-search, .empty, .card, .tab:not(.on), .mob-bar {
  background: var(--glass); box-shadow: var(--glass-edge), var(--shadow); }
@media (hover: hover) and (pointer: fine) { .item:hover { background: var(--glass-strong); box-shadow: var(--glass-edge), var(--shadow-hover); } }
.item-img { background: rgba(255, 255, 255, .4); }
.hero-card, .hero-search, .empty, .card, .mob-bar { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.hero-search:focus-within { background: var(--glass-strong); }
/* Размытие под каждой карточкой — только на компьютере: на телефоне сотня
   размытых карточек тормозит прокрутку, там хватает полупрозрачности. */
@media (hover: hover) and (min-width: 821px) {
  .item { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
@media (max-width: 820px) { .item { background: var(--glass-strong); } }
@media (prefers-reduced-transparency: reduce) {
  .bg-photos { display: none; }
  .top, .item, .hero-card, .hero-search, .empty, .card, .tab:not(.on), .mob-bar {
    background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Фирменный знак в подвале — тот же, что в шапке, CRM и на Авито */
.foot-name { display: flex; align-items: center; gap: 10px; }
.foot-name img { border-radius: 8px; }

/* ── Первый экран в фирменном стиле: та же синяя плашка, что на обложке Авито ── */
.hero { padding: 28px 0 8px; background: none !important; }
.hero-in { position: relative; overflow: hidden; border-radius: 32px; padding: 52px 52px 48px; color: #fff;
  background: radial-gradient(900px 500px at 12% 0%, rgba(255, 255, 255, .16), transparent 60%),
              linear-gradient(135deg, #2f7bff 0%, #0b4ff0 45%, #0036b8 100%);
  box-shadow: 0 24px 60px rgba(0, 54, 184, .28); }
/* Знак-колонки на фоне — подпись бренда, едва заметно */
.hero-in::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 420px; height: 420px; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='13' y='14' width='10' height='36' rx='4' fill='%23fff'/%3E%3Crect x='27' y='14' width='10' height='26' rx='4' fill='%23fff'/%3E%3Crect x='41' y='14' width='10' height='16' rx='4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-in > * { position: relative; }
.hero h1 { color: #fff; }
.hero-text p { color: rgba(255, 255, 255, .86); }
.hero-kicker { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.hero-search { background: #fff !important; box-shadow: 0 12px 30px rgba(0, 30, 110, .25) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-search input { color: var(--ink); }
.hero-facts b { color: #fff; }
.hero-facts span { color: rgba(255, 255, 255, .78); }
.hero .hero-card { background: #fff !important; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 30, 110, .3) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 820px) {
  .hero { padding: 14px 0 4px; }
  .hero-in { border-radius: 24px; padding: 28px 20px 22px; }
  .hero-in::before { width: 240px; height: 240px; right: -30px; bottom: auto; top: -30px; }
}
@media (prefers-reduced-transparency: reduce) { .hero .hero-card, .hero-search { background: #fff !important; } }
.hero .hero-facts { gap: 20px 36px; }
@media (max-width: 820px) { .hero-kicker { font-size: 12px; } }

/* ── Цены и покупка (03.10.2026) ──────────────────────────────────────── */
.btn.plain { background: var(--sunken); color: var(--ink) !important; }
@media (hover: hover) and (pointer: fine) { .btn.plain:hover { background: #e7ebf3; } }
.btn[disabled] { opacity: .5; pointer-events: none; }
.item-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.item-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.item-foot .item-cta { margin-top: 0; white-space: nowrap; }
/* Нет фото — фирменный рисунок агрегата на светло-синем */
.item-img.no-photo, .co-img.no-photo, .gal-empty { display: grid; place-items: center; align-content: center; gap: 6px;
  background: linear-gradient(160deg, #eef4ff, #dfe9ff); }
.item-img .ill, .co-img .ill { width: 62%; height: auto; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { .item:hover .item-img .ill { transform: scale(1.04); } }
.no-photo-t { font-size: 12px; color: #4f6fae; }
.gal-empty { aspect-ratio: 4 / 3; border-radius: 20px; color: #4f6fae; font-size: 14px; }
.gal-empty img { width: 56%; }

.price-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.price-k { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.price-v { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.badge-inline { font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.badge-inline.stock { background: var(--ok-tint); color: var(--ok); }
.badge-inline.order { background: var(--warn-tint); color: var(--warn); }
.perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.buy-btn { box-shadow: 0 10px 24px rgba(0, 91, 255, .28); }
.pay-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.pay-note .ic { stroke: var(--ink-faint); width: 15px; height: 15px; }
details.ask { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.ask > summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 14px; color: var(--accent); }
details.ask > summary::-webkit-details-marker { display: none; }
details.ask[open] > summary { margin-bottom: 12px; }

/* Оформление покупки */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; align-items: start; padding-bottom: 48px; }
.co-form h1 { font-size: var(--fs-title); margin-bottom: 6px; }
.co-form > .muted { color: var(--ink-soft); margin: 0 0 20px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.co-l { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.co-l i { color: var(--danger); font-style: normal; }
.co-form textarea { margin-bottom: 14px; }
.co-form .consent { margin-bottom: 8px; }
.co-form .btn.lg { margin-top: 10px; }
.co-alert { padding: 12px 14px; border-radius: 14px; background: var(--warn-tint); color: var(--warn); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.co-sum { position: sticky; top: 92px; display: grid; gap: 8px; }
.co-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 6px; }
.co-img img:not(.ill) { width: 100%; height: 100%; object-fit: cover; }
.co-t { font-size: 17px; line-height: 1.3; }
.co-m { font-size: 13px; color: var(--ink-faint); }
.co-lines { margin: 8px 0 0; display: grid; gap: 8px; }
.co-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.co-lines dt { color: var(--ink-soft); }
.co-lines dd { margin: 0; font-weight: 650; white-space: nowrap; }
.co-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.co-total dt { color: var(--ink); font-weight: 700; }
.co-total dd { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.co-foot { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* Результат оплаты */
.paid { padding: 40px 0 64px; display: grid; place-items: center; }
.paid-card { max-width: 560px; text-align: center; padding: 40px 32px; }
.paid-card h1 { font-size: var(--fs-title); margin: 14px 0 10px; }
.paid-card p { color: var(--ink-soft); margin: 0 auto 22px; max-width: 46ch; }
.paid-ico { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-tint); }
.paid-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.paid-ok .paid-ico { background: var(--ok-tint); } .paid-ok .paid-ico svg { stroke: var(--ok); }
.paid-canceled .paid-ico, .paid-error .paid-ico { background: var(--warn-tint); }
.paid-canceled .paid-ico svg, .paid-error .paid-ico svg { stroke: var(--warn); }
.paid-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legal h2 { font-size: 19px; margin: 22px 0 8px; }
@media (max-width: 820px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .co-sum { position: static; order: -1; }
  .co-grid { grid-template-columns: 1fr; }
  .price-v { font-size: 32px; }
  .item-price { font-size: 17px; }
}

/* ── Подбор по VIN (03.10.2026) ───────────────────────────────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.nav-vin { color: var(--accent) !important; font-weight: 700; }
.car-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 38px; padding: 0 14px 0 10px; border-radius: 99px;
  background: var(--accent-tint); color: var(--accent) !important; font-size: 14px; font-weight: 650; }
.car-chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.car-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-vin { display: inline-block; margin-top: 12px; color: rgba(255, 255, 255, .86) !important; font-size: 15px; }
.hero-vin b { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
@media (hover: hover) and (pointer: fine) { .hero-vin:hover { color: #fff !important; } }

.pb { display: grid; gap: 16px; padding: 8px 0 40px; }
.pb .card { border-radius: 24px; }
.pb-head h1 { font-size: var(--fs-page); margin-bottom: 8px; }
.pb-lead { margin: 0 0 18px; color: var(--ink-soft); max-width: 760px; }
.pb-vin { display: flex; gap: 8px; max-width: 720px; }
.pb-vin .field { font-size: 17px; letter-spacing: .04em; text-transform: uppercase; height: 52px; }
.pb-vin .field::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 15px; }
.pb-vin .btn { height: 52px; padding: 0 26px; }
.pb-where { margin: 10px 0 0; font-size: 13px; color: var(--ink-faint); max-width: 720px; }
.pb-pick { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pb-pick summary { cursor: pointer; font-weight: 650; color: var(--accent); list-style: none; }
.pb-pick summary::-webkit-details-marker { display: none; }
.pb-pick summary::after { content: " ↓"; }
.pb-pick[open] summary::after { content: " ↑"; }
.pb-pick-f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 12px; }
.pb-pick-f select { height: 46px; appearance: auto; }
.pb-alert b { display: block; font-size: 17px; margin-bottom: 4px; }
.pb-alert p { margin: 0; color: var(--ink-soft); }
.pb-alert[role=alert] { box-shadow: inset 0 0 0 1.5px rgba(227, 56, 59, .35), var(--shadow); }

.pb-car { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.pb-car-ic { width: 46px; height: 46px; flex: none; padding: 10px; border-radius: 14px; background: var(--accent-tint);
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.pb-car-main { flex: 1; min-width: 0; }
.pb-k { display: block; font-size: 13px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.pb-car-t { display: block; font-size: 21px; letter-spacing: -.02em; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pb-tags span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--sunken); color: var(--ink-soft); }
.pb-reset { font-size: 14px; font-weight: 600; white-space: nowrap; }

.pb-q { box-shadow: inset 0 0 0 2px rgba(0, 91, 255, .22), var(--shadow); }
.pb-q-t { display: block; font-size: 19px; letter-spacing: -.02em; }
.pb-q-sub { margin: 4px 0 16px; color: var(--ink-soft); }
.pb-q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.pb-q-item { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.pb-q-item select { height: 46px; appearance: auto; }
.pb-hint { font-size: 13px; color: var(--ink-faint); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--sunken);
  font-size: 15px; font-weight: 600; transition: background .15s var(--ease), box-shadow .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chip:hover span { box-shadow: inset 0 0 0 1px var(--ink-faint); } }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pb-learned { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: var(--ok-tint); font-size: 15px; }
.pb-learned .ic { stroke: var(--ok); }
.pb-kind { display: grid; gap: 12px; margin-top: 8px; }
.pb-kind-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-kind-h h2 { margin: 0; }
.pb-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; padding: 5px 12px; border-radius: 99px; }
.pb-state.ok { background: var(--ok-tint); color: var(--ok); }
.pb-state.ok .ic { stroke: var(--ok); width: 16px; height: 16px; margin: 0; }
.pb-state.check { background: var(--warn-tint); color: var(--warn); }
.pb-amb { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--warn-tint); color: #7a4a00; font-size: 15px; }
.pb-group { display: grid; gap: 10px; }
.pb-g-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-g-h .code { font-size: 14px; }
.pb-aka { font-size: 13px; color: var(--ink-faint); }
.pb-g-m { font-size: 14px; color: var(--ink-soft); }
.pb-none { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-soft); }
.pb-ex summary { cursor: pointer; font-weight: 650; }
.pb-ex ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pb-ex li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.pb-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pb-bottom.one { grid-template-columns: minmax(0, 640px); }
.lead-car { font-size: 13px; color: var(--ink-soft); background: var(--sunken); border-radius: 10px; padding: 8px 12px; }

/* Подходит ли товар на машину покупателя — в карточке товара */
.fit { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.fit > span { flex: 1; min-width: 180px; }
.fit .ic { margin-top: 2px; }
.fit.fits { background: var(--ok-tint); } .fit.fits .ic { stroke: var(--ok); } .fit.fits b { color: var(--ok); }
.fit.check, .fit.unknown { background: var(--warn-tint); } .fit.check .ic, .fit.unknown .ic { stroke: var(--warn); }
.fit.no { background: #fdeaea; } .fit.no .ic { stroke: var(--danger); } .fit.no b { color: var(--danger); }
.fit-x { font-size: 13px; color: var(--ink-faint) !important; white-space: nowrap; }
.fit-ask { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--accent-tint); }
.fit-ask label { font-size: 14px; font-weight: 650; }
.fit-ask > div { display: flex; gap: 8px; }
.fit-ask .field { background: #fff; text-transform: uppercase; }
.fit-ask .field::placeholder { text-transform: none; }
.co-note { padding: 12px 14px; border-radius: 14px; background: var(--warn-tint); color: #7a4a00; font-size: 14px; margin-bottom: 16px; }
.co-note.ok { background: var(--ok-tint); color: #0a6b3c; }

@media (max-width: 980px) {
  .pb-pick-f { grid-template-columns: 1fr 1fr; }
  .pb-pick-f .btn { grid-column: 1 / -1; }
  .car-chip { max-width: 180px; }
}
@media (max-width: 640px) {
  .pb-vin { flex-direction: column; }
  .pb-car { flex-wrap: wrap; padding: 16px; }
  .pb-car-ic { display: none; }
  .pb-bottom { grid-template-columns: minmax(0, 1fr); }
  .car-chip { max-width: 140px; height: 34px; font-size: 13px; }
  .hero-vin { font-size: 14px; }
}

/* ── Меню каталога, выезжающее меню, фильтры (03.10.2026) ─────────────── */
.nav-cat { position: relative; }
.nav-cat-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background .16s var(--ease); }
.nav-cat-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease); }
.nav-cat-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.nav-cat-btn[aria-expanded=true] { background: rgba(255, 255, 255, .7); }
@media (hover: hover) and (pointer: fine) { .nav-cat-btn:hover { background: rgba(255, 255, 255, .7); } }
.cat-panel { position: absolute; left: 0; top: calc(100% + 10px); z-index: 40; display: flex; gap: 8px; padding: 14px; min-width: 560px;
  border-radius: 20px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(7, 18, 43, .06), 0 24px 60px rgba(7, 18, 43, .16); animation: pop .16s var(--ease); }
.cat-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.cat-col { display: grid; align-content: start; gap: 2px; min-width: 170px; }
.cat-col a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px !important; border-radius: 10px; font-size: 15px !important;
  color: var(--ink-soft) !important; }
.cat-col a span { color: var(--ink-faint); font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .cat-col a:hover { background: var(--sunken) !important; color: var(--ink) !important; } }
.cat-col .cat-h { font-weight: 700 !important; color: var(--ink) !important; }
.cat-vin { margin-left: auto; padding: 12px 14px; border-radius: 14px; background: var(--accent-tint); max-width: 220px; gap: 6px; }
.cat-vin b { font-size: 15px; }
.cat-vin p { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.cat-vin .btn { justify-content: center !important; color: #fff !important; background: var(--accent) !important; }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .7); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); }
.burger svg, .drawer-x svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
html.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-back { position: absolute; inset: 0; background: rgba(7, 18, 43, .35); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  box-shadow: -20px 0 60px rgba(7, 18, 43, .2); animation: slide .24s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 6px; }
.drawer-top b { font-size: 20px; letter-spacing: -.02em; }
.drawer-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--card); cursor: pointer; display: grid; place-items: center; }
.drawer-vin { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--accent-tint); }
.drawer-vin label { font-weight: 700; font-size: 15px; }
.drawer-vin > div { display: flex; gap: 8px; }
.drawer-vin .field { background: #fff; text-transform: uppercase; min-width: 0; }
.drawer-vin .field::placeholder { text-transform: none; }
.drawer-car { font-size: 14px; font-weight: 600; }
.drawer-acc { background: var(--card); border-radius: 16px; }
.drawer-acc summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.drawer-acc summary::-webkit-details-marker { display: none; }
.drawer-acc summary span { margin-left: auto; font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.drawer-acc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); margin: -4px 2px 0 4px; transition: transform .2s var(--ease); }
.drawer-acc[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.drawer-acc a { display: flex; justify-content: space-between; min-height: 44px; align-items: center; padding: 0 16px 0 28px; color: var(--ink-soft) !important;
  border-top: 1px solid var(--line); font-size: 15px; }
.drawer-acc a span, .drawer-link span { color: var(--ink-faint); font-size: 13px; }
.drawer-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px;
  background: var(--card); color: var(--ink) !important; font-weight: 600; }
.drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }

.cat-h1 { font-size: var(--fs-title); margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.seg span i { font-style: normal; font-size: 12px; color: var(--ink-faint); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(7, 18, 43, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.flt select { height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; appearance: auto; width: auto; }
.flt-reset { font-size: 14px; font-weight: 600; }
.flt-n { margin-left: auto; font-size: 14px; color: var(--ink-faint); }

@media (max-width: 980px) {
  .burger { display: grid; place-items: center; }
  .top-cta { gap: 8px; }
}
@media (max-width: 640px) {
  .filters { gap: 8px; }
  .seg { width: 100%; }
  .seg label { flex: 1; }
  .seg span { justify-content: center; width: 100%; padding: 0 6px; }
  .flt { flex: 1 1 calc(50% - 8px); }
  .flt select { width: 100%; }
  .flt-n { width: 100%; margin: 0; }
}

/* Доверие: проверка агрегата и рейтинг на Авито */
.trust { margin-top: 16px; padding: 20px 22px; display: grid; gap: 12px; }
.trust-h { font-size: 17px; letter-spacing: -.01em; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.trust li.ok .ic { stroke: var(--ok); }
.trust li.ask .ic { stroke: var(--ink-faint); }
.trust .btn { justify-self: start; }
.avito-rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--ink-soft) !important; }
.avito-rate .stars { color: #ffb400; font-size: 17px; line-height: 1; }
.avito-rate b { color: var(--ink); }
.hero .avito-rate { margin-top: 18px; color: rgba(255, 255, 255, .85) !important; }
.hero .avito-rate b { color: #fff; }

/* Страница кода агрегата */
.code-link { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .code-link:hover { background: var(--accent); color: #fff !important; } }
.kod { display: grid; gap: 18px; padding: 8px 0 40px; }
.kod-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.kod-head h1 { font-size: var(--fs-page); margin-bottom: 8px; }
.kod-aka { margin: 0 0 10px; color: var(--ink-soft); }
.kod-cta { display: grid; gap: 4px; justify-items: end; text-align: right; }
.kod-n { font-size: 14px; color: var(--ink-faint); margin-bottom: 8px; }
.kod-more { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.stack-col { display: grid; gap: 18px; }
.kod-fits { width: 100%; border-collapse: collapse; font-size: 15px; }
.kod-fits th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600; padding: 0 8px 8px 0; }
.kod-fits td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .kod-more { grid-template-columns: minmax(0, 1fr); }
  .kod-cta { justify-items: start; text-align: left; }
}

/* ── Свои выпадающие списки (static/select.js — тот же, что в CRM) ────────
   Настоящий <select> остаётся под кнопкой: форма, «обязательно» и change
   работают как обычно. На телефоне список выезжает снизу шторкой. */
:root { --ring: 0 0 0 4px rgba(0, 91, 255, .14); --raised: #fff; }
.csel { position: relative; display: inline-flex; min-width: 0; vertical-align: middle; }
.csel:has(> .csel-btn.csel-styled) { display: flex; width: 100%; }
.csel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0;
               pointer-events: none; margin: 0; padding: 0; border: 0; }
.csel-btn { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; text-align: left;
            font: inherit; color: var(--ink); }
.csel-btn.csel-styled { width: 100%; padding-right: 10px; }
.csel-btn:disabled { cursor: default; opacity: .55; }
.csel-btn:focus-visible { outline: none; }
.csel-btn.csel-styled:focus-visible, .csel-btn.csel-styled.is-open { background: var(--card); border-color: var(--accent); box-shadow: var(--ring); }
.csel-btn.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent); }
.csel-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-btn.is-empty .csel-text { color: var(--ink-faint); }
.csel-chev { width: 16px; height: 16px; flex: none; color: var(--ink-faint); transition: transform .2s var(--ease), color .2s var(--ease); }
.csel-btn.is-open .csel-chev { transform: rotate(180deg); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .csel-btn:hover .csel-chev { color: var(--ink-soft); } }
.csel-bare { height: 100%; width: 100%; padding: 0; border: 0; background: transparent; border-radius: 8px; }
.csel-bare:focus-visible { box-shadow: var(--ring); }

.csel-pop { position: absolute; z-index: 1000; display: flex; flex-direction: column; overflow: hidden;
            padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .94);
            -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
            box-shadow: var(--glass-edge), 0 18px 50px rgba(7, 18, 43, .18), 0 4px 12px rgba(7, 18, 43, .06);
            opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left;
            transition: opacity .14s var(--ease), transform .18s cubic-bezier(.3, 1.2, .5, 1); }
.csel-pop.up { transform-origin: bottom left; transform: translateY(4px) scale(.98); }
.csel-pop.on { opacity: 1; transform: none; }
.csel-list { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 1px; align-content: start; }
.csel-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 10px;
            font-size: 14px; color: var(--ink); cursor: pointer; user-select: none; }
.csel-opt > span { flex: 1; min-width: 0; }
.csel-opt.is-empty { color: var(--ink-soft); }
.csel-opt.is-active { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.csel-opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.csel-opt[aria-disabled="true"] { opacity: .4; cursor: default; }
.csel-tick { width: 16px; height: 16px; flex: none; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.csel-opt[aria-selected="true"] .csel-tick { opacity: 1; transform: none; }
.csel-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.csel-none { padding: 14px 12px; font-size: 14px; color: var(--ink-faint); text-align: center; }
.csel-search { padding: 2px 2px 6px; }
.csel-search input { width: 100%; height: 38px; border: 0; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px;
                     color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); outline: none; }
.csel-search input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Телефон: шторка снизу, крупные пункты под палец */
.csel-scrim { position: fixed; inset: 0; z-index: 999; background: rgba(7, 18, 43, .3); opacity: 0; transition: opacity .18s var(--ease); }
.csel-scrim.on { opacity: 1; }
.csel-pop.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 72dvh; border-radius: 24px 24px 0 0;
                  padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); transform: translateY(100%); opacity: 1;
                  transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.csel-pop.sheet.on { transform: none; }
.csel-grab { width: 38px; height: 5px; border-radius: 3px; margin: 2px auto 8px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.csel-title { padding: 0 12px 8px; font-weight: 700; font-size: 16px; }
.csel-pop.sheet .csel-opt { padding: 13px 14px; font-size: 16px; }
.csel-pop.sheet .csel-search input { height: 44px; font-size: 16px; }

@media (prefers-reduced-transparency: reduce) {
  .csel-pop { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .csel-pop, .csel-pop.sheet, .csel-chev { transition: none; }
}
/* Поле-кнопка на витрине выглядит как остальные поля */
.csel-btn.field { height: 46px; padding: 0 12px 0 14px; border: 1px solid transparent; background: var(--sunken); border-radius: 12px;
  font-size: 15px; font-weight: 500; transition: background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .csel-btn.field:hover:not(:disabled) { background: #e9edf5; } }
.flt .csel-btn.field { height: 42px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .flt .csel-btn.field:hover { background: #fff; } }
.flt .csel { width: auto; min-width: 150px; }
.pb-pick-f .csel-btn.field, .pb-q-item .csel-btn.field { height: 46px; }
.csel-opt { min-height: 40px; }
@media (pointer: coarse) { .csel-btn.field, .csel-opt { min-height: 44px; } }
@media (max-width: 640px) { .flt .csel { width: 100%; min-width: 0; } }

/* ── Главная, галерея, вопросы, подсказки (03.10.2026, по скиллам) ─────── */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: #fff !important; font-weight: 600; transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero :focus-visible { outline-color: #fff; }
.hero .hero-card :focus-visible { outline-color: var(--accent); }

/* Первый экран: доверие строкой, а не тремя большими цифрами */
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero-trust .ic { stroke: #fff; opacity: .9; margin: 0; }
.hero-text h1 { max-width: 15ch; }

/* Подбор под машину — главный элемент первого экрана */
.garage { display: grid; gap: 12px; align-content: start; }
.garage .hero-card-t { margin: 0; font-size: 21px; }
.g-sub { margin: -4px 0 2px; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.g-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: var(--sunken); }
.g-tabs button { height: 38px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 650;
  color: var(--ink-soft); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.g-tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(7, 18, 43, .12); }
.g-pane { display: grid; gap: 10px; }
.g-pane[hidden] { display: none; }
.g-vin { height: 52px; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.g-vin::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 15px; }
.g-hint { font-size: 13px; color: var(--ink-faint); line-height: 1.4; margin-top: -2px; }
.g-car { grid-template-columns: 1fr 1fr; }
.g-car .btn { grid-column: 1 / -1; }
.g-mine { display: grid; gap: 8px; }
.g-mine b { font-size: 22px; letter-spacing: -.02em; }
.g-k { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.g-other { font-size: 14px; font-weight: 600; justify-self: center; }

/* Разделы каталога плитками */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 22px 0 4px; }
.tile { position: relative; display: grid; align-content: start; gap: 4px; min-height: 168px; padding: 20px 22px; border-radius: 24px;
  background: var(--glass); box-shadow: var(--glass-edge), var(--shadow); color: var(--ink) !important; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-2px); box-shadow: var(--glass-edge), var(--shadow-hover); } }
.tile img { position: absolute; right: 14px; bottom: 12px; width: 96px; height: auto; opacity: .95; }
.tile-t { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tile-n { font-size: 14px; color: var(--accent); font-weight: 650; }
.tile-subs { font-size: 13px; color: var(--ink-soft); max-width: 70%; line-height: 1.4; margin-top: 6px; }
.tile-vin { background: var(--accent-tint); box-shadow: inset 0 0 0 1px rgba(0, 91, 255, .12); }
.tile-vin .tile-subs { max-width: none; }
.tile-go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent); }

/* Как купить — настоящая последовательность, поэтому с номерами */
.how { padding: 28px 0 56px; }
.how-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.how-list li { counter-increment: step; position: relative; padding: 22px 22px 22px 70px; border-radius: 22px; background: var(--glass);
  box-shadow: var(--glass-edge), var(--shadow); }
.how-list li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.how-list b { display: block; font-size: 17px; margin-bottom: 4px; }
.how-list p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.how-note { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); }
.lead-bottom { display: block !important; }
.lead-bottom .hero-card { max-width: 720px; }

/* Подсказки в поиске */
.sg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(7, 18, 43, .06), 0 18px 44px rgba(7, 18, 43, .16); display: grid; gap: 1px; text-align: left; }
.sg[hidden] { display: none; }
.sg-it { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--ink) !important; }
.sg-it b { font-weight: 700; white-space: nowrap; }
.sg-it.sg-code b { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.sg-it span { min-width: 0; font-size: 14px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-it b { flex-shrink: 0; }
.sg { min-width: min(340px, calc(100vw - 40px)); }
.sg-it.sg-vin { background: var(--accent-tint); }
.sg-it.on { background: var(--sunken); }
@media (hover: hover) and (pointer: fine) { .sg-it:hover { background: var(--sunken); } }
.cat-search { position: relative; }

/* Галерея: лента с прокруткой пальцем, стрелки, счётчик, весь экран */
.gal-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.gal-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .88); box-shadow: 0 4px 14px rgba(7, 18, 43, .18);
  opacity: 0; transition: opacity .18s var(--ease); }
.gal-nav svg, .lightbox button svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(7, 18, 43, .55);
  color: #fff; font-size: 13px; font-weight: 600; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 12, 24, .94); }
.lightbox::backdrop { background: rgba(7, 12, 24, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer;
  display: grid; place-items: center; }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; margin-top: -24px; } .lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; }

/* Частые вопросы */
.faq { padding: 8px 0 28px; max-width: 860px; }
.faq details { background: var(--glass); box-shadow: var(--glass-edge), var(--shadow); border-radius: 18px; margin-bottom: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); margin-top: -4px; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); line-height: 1.6; }

/* Телефон: цена и «Купить» всегда под пальцем */
.buy-bar { display: none; }

/* Кнопка после отправки — «крутится», второй раз не нажать */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.plain.is-busy::after, .btn.ghost.is-busy::after { border-color: var(--accent); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled:not(.is-busy) { opacity: .5; cursor: not-allowed; }

@media (pointer: coarse) {
  a, button, summary, label, select, input { touch-action: manipulation; }
  .btn, .tab, .chip span, .seg span, .g-tabs button { min-height: 44px; }
  .gal-nav { display: none; }
}
@media (max-width: 980px) {
  .how-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero .hero-card.garage { display: grid !important; margin-top: 6px; }
  .hero-trust { gap: 8px 16px; }
  .hero-trust li { font-size: 14px; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .tile { min-height: 132px; padding: 16px; border-radius: 18px; }
  .tile img { width: 64px; right: 10px; bottom: 10px; }
  .tile-t { font-size: 17px; }
  .tile-subs { display: none; }
  .tile-vin { grid-column: 1 / -1; min-height: 0; }
  .tile-vin .tile-subs { display: block; }
  .gal-main { border-radius: 18px; }
  body:has(.buy-bar) .mob-bar { display: none; }
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(7, 18, 43, .06); }
  .buy-bar b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
  .buy-bar span { font-size: 13px; color: var(--ink-faint); }
  .buy-bar .btn { flex: 0 0 auto; min-width: 140px; }
  .faq summary { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .hero-text > p { display: none; }           /* гарантия уже в строке доверия — подбор поднимается выше */
  .hero-text h1 { font-size: 30px; margin-bottom: 18px; }
  .tile img { position: static; width: 56px; height: auto; margin-bottom: 8px; order: -1; }
  .tile { min-height: 0; }
  .tile-n { font-size: 13px; }
}
@media (max-width: 640px) { .hero-in { gap: 18px; } }
.flt .csel-btn.is-empty .csel-text { color: var(--ink); }   /* «Все марки», «Сначала новые» — это выбор, а не пустое поле */

/* ── Карусель 3D-баннеров на главной (04.10.2026) ─────────────────────── */
.promo { position: relative; padding-top: 22px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px;
  overscroll-behavior-x: contain; box-shadow: 0 24px 60px rgba(0, 54, 184, .22); }
.promo-track::-webkit-scrollbar { display: none; }
.promo-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.promo-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1920 / 760; overflow: hidden; background: #0b4ff0; }
.promo-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 12px; height: 100%; max-width: 52%; padding: 40px 56px; color: #fff; }
.promo-kicker { font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.promo-title { margin: 0; color: #fff; font-size: var(--fs-banner); line-height: 1.04; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 30, 110, .25); }
.promo-text p { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.promo-cta { margin-top: 8px; background: #fff !important; color: var(--accent) !important; height: 50px; padding: 0 24px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 30, 110, .25); }
@media (hover: hover) and (pointer: fine) { .promo-cta:hover { background: #fff !important; box-shadow: 0 14px 30px rgba(0, 30, 110, .32); } }
.promo-nav { position: absolute; top: calc(50% + 11px); width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(0, 30, 110, .25);
  opacity: 0; transition: opacity .2s var(--ease); z-index: 2; }
.promo-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.promo-nav.prev { left: 6px; } .promo-nav.next { right: 6px; }
.promo-nav { width: 40px; height: 40px; margin-top: -20px; }   /* не наезжать на заголовок (аудит 20.10.2026) */
.promo:hover .promo-nav, .promo-nav:focus-visible { opacity: 1; }
.promo-dots { position: absolute; left: 56px; bottom: 22px; display: flex; gap: 8px; z-index: 2; }
.promo-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease); }
.promo-dots button[aria-selected=true] { width: 28px; background: #fff; }
.promo.single .promo-nav, .promo.single .promo-dots { display: none; }
/* Под каруселью первый экран уже не нужен «вторым синим блоком» — делаем его светлым */
.promo + .hero { padding-top: 18px; }
@media (max-width: 980px) {
  .promo-text { max-width: 60%; padding: 28px 32px; }
  .promo-text p { font-size: 15px; }
  .promo-dots { left: 32px; }
}
@media (max-width: 640px) {
  .promo { padding-top: 12px; }
  .promo-track { border-radius: 22px; }
  .promo-slide { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #1d63f5, #0a3fcf); }
  .promo-slide picture { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
  .promo-slide img { object-position: 82% center; }
  .promo-text { max-width: none; height: auto; padding: 4px 20px 46px; gap: 8px; }
  .promo-title { font-size: 26px; }
  .promo-text p { font-size: 15px; }
  .promo-cta { width: 100%; justify-content: center; }
  .promo-dots { left: 50%; transform: translateX(-50%); bottom: 18px; }
  .promo-nav { display: none; }
}
@media (pointer: coarse) { .promo-nav { display: none; } .promo-dots button { min-height: 10px; } }
/* Первый экран под каруселью — светлый: синий уже задаёт баннер */
.promo + .hero .hero-in { background: var(--glass-strong); color: var(--ink); box-shadow: var(--glass-edge), var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); padding: 36px 40px; }
.promo + .hero .hero-in::before { opacity: .05; filter: invert(28%) sepia(98%) saturate(3000%) hue-rotate(215deg); }
.promo + .hero h1 { color: var(--ink); font-size: var(--fs-page); }
.promo + .hero .hero-text p { color: var(--ink-soft); }
.promo + .hero .hero-search { box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 24px rgba(7, 18, 43, .06) !important; }
.promo + .hero .hero-trust li { color: var(--ink-soft); }
.promo + .hero .hero-trust .ic { stroke: var(--accent); }
.promo + .hero .avito-rate { color: var(--ink-soft) !important; }
.promo + .hero .avito-rate b { color: var(--ink); }
.promo + .hero .hero-card { box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(7, 18, 43, .08) !important; }
.promo + .hero :focus-visible { outline-color: var(--accent); }
@media (max-width: 820px) { .promo + .hero .hero-in { padding: 22px 18px; } }
.promo + .hero .hero-in::before { display: none; }
@media (max-width: 640px) {
  .promo-slide picture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background: linear-gradient(180deg, rgba(29, 99, 245, 0), #1d63f5); }
}

/* ── 3D-иллюстрации по всему сайту (04.10.2026, Higgsfield) ───────────── */
.item-img .ill, .co-img .ill { width: 58%; max-width: 220px; filter: drop-shadow(0 12px 18px rgba(0, 54, 184, .16)); transition: transform .3s var(--ease); }
.gal-empty img { width: 46%; max-width: 280px; filter: drop-shadow(0 16px 24px rgba(0, 54, 184, .18)); }
.tile img { width: 120px; right: 10px; bottom: 6px; filter: drop-shadow(0 10px 16px rgba(0, 54, 184, .18)); transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: translateY(-3px) rotate(-2deg); } }
.empty-ill { display: block; width: 150px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 12px 20px rgba(0, 54, 184, .16)); }
/* «Как купить»: иллюстрация шага, номер — маленьким бейджем на ней */
.how-list li { padding: 18px 22px 22px; display: grid; align-content: start; }
.how-list li img { width: 104px; height: 104px; margin: -6px 0 6px -6px; filter: drop-shadow(0 10px 16px rgba(0, 54, 184, .16)); }
.how-list li::before { left: auto; right: 18px; top: 18px; width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
/* Гарантия — одна широкая плашка вместо мелкой строки */
.guarantee { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding: 18px 26px 18px 14px; border-radius: 24px;
  background: linear-gradient(120deg, #eaf2ff, #f6f9ff); box-shadow: inset 0 0 0 1px rgba(0, 91, 255, .1); }
.guarantee > img { flex: none; width: 132px; height: auto; filter: drop-shadow(0 12px 20px rgba(0, 54, 184, .2)); }
.guarantee b { display: block; font-size: 19px; letter-spacing: -.01em; }
.guarantee p { margin: 4px 0 6px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 640px; }
.guarantee a { font-weight: 650; font-size: 15px; }
.guarantee .guarantee-docs { width: 104px; margin-left: auto; opacity: .95; }
/* Подбор: иллюстрация в шапке */
.pb-head { position: relative; overflow: hidden; }
.pb-ill { position: absolute; right: 18px; top: 50%; width: 200px; height: auto; transform: translateY(-58%); pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 54, 184, .18)); }
.pb-head > :not(.pb-ill) { position: relative; }
.pb-head .pb-lead, .pb-head .pb-vin, .pb-head .pb-where { max-width: calc(100% - 240px); }
.pb-head .pb-pick { max-width: none; }
.trust-h { display: flex; align-items: center; gap: 10px; }
.trust-h img { width: 40px; height: 40px; margin: -6px 0; }
/* Меню: значки разделов */
.cat-col .cat-h { align-items: center; justify-content: flex-start !important; gap: 8px; }
.cat-col .cat-h span { margin-left: auto; }
.cat-col .cat-h img { width: 36px; height: 36px; margin: -6px 0 -6px -4px; }
.cat-vin { position: relative; }
.cat-vin-ill { position: absolute; right: -6px; top: -14px; width: 76px; height: auto; pointer-events: none; }
.cat-vin b, .cat-vin p { padding-right: 46px; }
.drawer-acc summary img { width: 34px; height: 34px; margin: -4px 0 -4px -6px; }
@media (max-width: 820px) {
  /* Картинка в потоке справа — текст обтекает её, а не уходит под неё */
  .pb-ill { position: static; float: right; width: 96px; margin: -4px -4px 6px 10px; transform: none; opacity: .95; }
  .pb-head h1 { padding-right: 0; }
  .pb-head .pb-lead, .pb-head .pb-vin, .pb-head .pb-where { max-width: none; }
  .pb-head .pb-vin { clear: both; }
  .guarantee { flex-wrap: wrap; padding: 18px; }
  .guarantee > img { width: 96px; }
  .guarantee .guarantee-docs { display: none; }
}
@media (max-width: 640px) {
  .tile img { position: static; width: 72px; margin-bottom: 4px; }
  .how-list li img { width: 84px; height: 84px; }
}
/* Одно поле «Код или VIN»: туда пишут и коды, и машины — без капса и разрядки */
.g-vin { text-transform: none; letter-spacing: 0; font-size: 16px; }
.hero-text { align-self: center; }
.hero-text .hero-trust { margin-top: 26px; }
.sg-wrap { position: relative; flex: 1; min-width: 0; }
.sg-wrap > input { width: 100%; }
.sg-wrap .sg { top: calc(100% + 6px); }
.cat-search .sg { left: auto; right: 0; width: min(380px, 92vw); }

/* Видеобаннеры: видео ложится поверх картинки и проявляется, когда пошло */
.promo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.promo-video.on { opacity: 1; }
@media (max-width: 640px) {
  .promo-video { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 10; object-position: 82% center; }
}
@media (prefers-reduced-motion: reduce) { .promo-video { display: none; } }

/* Главная: разделы каталога плитками, товары — только в /catalog */
.sections { padding: 30px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-all { font-weight: 700; color: var(--accent); text-decoration: none; }
.sections .tiles { padding-top: 16px; }
.catalog .crumbs { padding: 0 0 10px; }
.sections .tile-vin .tile-subs { max-width: 66%; }

/* Мессенджеры — иконками. Главный в шапке — Telegram */
.mi { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn.ic-btn { width: 46px; padding: 0; }
.btn.sm.ic-btn { width: 38px; }
.btn.ic-btn .mi { width: 22px; height: 22px; }
.btn.wa-soft { background: var(--card); color: var(--wa) !important; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .btn.wa-soft:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--wa), 0 8px 20px rgba(31, 174, 85, .18); } }
.foot-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff !important;
  transition: transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .foot-ic:hover { transform: translateY(-2px); } }
.foot-ic.tg { background: var(--tg); }
.foot-ic.wa { background: var(--wa); }
.foot-links { gap: 10px; }
.quick { display: flex; gap: 8px; }
.quick .btn.ghost { flex: 1; }
.drawer-cta { grid-template-columns: 1fr auto auto; }
@media (max-width: 640px) {
  .top-cta .btn.wa-soft { display: none; }
  .mob-bar { grid-template-columns: 1fr auto auto; }
}

/* Заявка на главной: на всю ширину, слева текст, справа форма */
.lead-band { padding: 26px 0 6px; }
.lead-band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center;
  padding: 30px 34px; border-radius: 28px; background: var(--card); box-shadow: var(--glass-edge, 0 0 0 1px var(--line)), var(--shadow); }
.lead-band-text h2 { margin: 0 0 10px; }
.lead-band-text p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.lead-band-text img { display: block; width: 132px; height: auto; margin-top: 6px; }
.lead-band-alt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-faint); }
.lead-band .lead-row { gap: 12px; }
@media (max-width: 860px) {
  .lead-band-in { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; border-radius: 22px; }
  .lead-band-text img { display: none; }
}

/* Поля заявки различимы: тонкая рамка, а не только серый фон */
.field { border-color: rgba(7, 18, 43, .11); }

/* Магазин внутри Telegram: шапка и навигация — от Telegram, своё лишнее прячем */
.tg-phone { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 14px; border: 0; border-radius: 12px;
  background: rgba(34, 158, 217, .12); color: #1b8bc0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tg-phone[hidden] { display: none; }
.co-form .tg-phone { margin-top: 8px; }
/* Внутри Telegram вместо WhatsApp — чат с менеджером в Telegram (рабочий номер) */
html.in-tg .btn.wa, html.in-tg .btn.wa-soft, html.in-tg .foot-ic.wa { display: none !important; }
html.in-tg .mob-bar { grid-template-columns: 1fr 1fr; }
html.in-tg .mob-bar .btn.tg { width: auto; padding: 0 16px; }
html.in-tg .mob-bar .btn.tg::after { content: "Менеджеру"; }
html.in-tg .top-cta .btn.tg { display: inline-flex; }
html.in-tg .bg-photos { display: none; }

/* Каталог запчастей Genesis */
.gn-hero { position: relative; margin-top: 22px; border-radius: 28px; overflow: hidden; background: #0b4ff0; min-height: 360px; }
.gn-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.gn-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  max-width: 560px; padding: 34px 56px 44px; color: #fff; }
.gn-hero-text h1 { margin: 0; color: #fff; font-size: var(--fs-banner); }
.gn-hero-text p { margin: 0; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.gn-crumbs, .gn-crumbs a, .gn-crumbs span { color: rgba(255, 255, 255, .8) !important; padding: 0; }
.gn-models { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0 6px; }
.gn-models .chip { padding: 9px 16px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.gn-models .chip.on { background: var(--accent); color: #fff; box-shadow: none; }
.gn-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0; }
.gn-facts div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.gn-facts span { font-size: 14px; color: var(--ink-soft); }
.gn-group { margin-top: 14px; padding: 18px 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.gn-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.gn-group-head img { width: 72px; height: 72px; }
.gn-group-head h2 { margin: 0; }
.gn-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.gn-list { display: grid; }
.gn-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.gn-item-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.gn-item-main b { font-size: 16px; }
.gn-item-models { font-size: 13px; color: var(--accent); font-weight: 700; }
.gn-item-oem { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gn-item-oem code { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: var(--sunken); color: var(--ink-soft); }
.gn-item-oem small { font-size: 12px; color: var(--ink-faint); }
.gn-item-buy { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gn-price { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .gn-hero { min-height: 0; }
  .gn-hero picture { position: relative; display: block; aspect-ratio: 16 / 10; }
  .gn-hero-text { padding: 6px 20px 28px; max-width: none; }
  .gn-facts { grid-template-columns: 1fr; }
  .gn-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .gn-item-buy { justify-content: space-between; }
}

/* Фон витрины: бледные контурные запчасти. Слегка смещаются при прокрутке (параллакс),
   при «уменьшить движение» стоят на месте. Рисунок — static/brand/bg-parts.svg */
.bg-parts { position: fixed; left: 0; right: 0; top: 0; height: calc(100vh + 520px); z-index: -1; pointer-events: none;
  background: url(/static/brand/bg-parts.svg) repeat; background-size: 520px 520px; opacity: .075;
  will-change: transform; transform: translate3d(0, 0, 0); }
@media (max-width: 640px) { .bg-parts { background-size: 380px 380px; opacity: .06; } }
@media (prefers-reduced-transparency: reduce) { .bg-parts { opacity: .05; } }

/* Город покупателя и срок доставки */
.geo-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-tint, #eaf1ff); font-size: 14px; color: var(--ink-soft); }
.geo-line svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; flex-shrink: 0; }
.geo-line b { color: var(--ink); }
.geo-line span { flex: 1; min-width: 200px; }
.geo-change { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.gn-hero + .wrap .geo-line { margin-top: 16px; }
.gn-price { display: grid; text-align: right; gap: 2px; }
.gn-eta { font-size: 12px; color: var(--ink-faint); }
.gn-eta .ok { color: var(--ok, #12823d); font-weight: 700; }
.city-dlg { border: 0; border-radius: 22px; padding: 0; width: min(420px, 100% - 32px); box-shadow: 0 30px 80px rgba(7, 18, 43, .25); }
.city-dlg::backdrop { background: rgba(7, 18, 43, .35); }
.city-form { display: grid; gap: 10px; padding: 22px; }
.city-form b { font-size: 20px; }
.city-form p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.city-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.city-opt { text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--sunken, #f1f3f8); font: inherit; cursor: pointer; }
.city-opt b { display: block; font-weight: 600; }
.city-opt small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-faint, #6b7385); }
@media (hover: hover) and (pointer: fine) { .city-opt:hover { background: var(--accent-tint, #eaf1ff); } }
.city-none { font-size: 13px; color: var(--ink-faint); padding: 4px 2px; }
@media (max-width: 760px) { .gn-price { text-align: left; } }

.gn-item { flex-wrap: wrap; }
.gn-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.gn-pick[hidden] { display: none; }
.gn-pick-m { display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: var(--card); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .16s var(--ease), transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gn-pick-m:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); } }
.gn-pick-m b { color: var(--ink); font-size: 14px; }
.gn-pick-m span { color: var(--accent); font-size: 13px; font-weight: 700; }
.gn-item:target { scroll-margin-top: 90px; background: var(--accent-tint, #eaf1ff); border-radius: 14px; padding-left: 10px; padding-right: 10px; }

/* Покупка в одно окно (каталог Genesis) */
.buy-dlg { border: 0; padding: 0; border-radius: 24px; width: min(460px, 100% - 24px); box-shadow: 0 30px 80px rgba(7, 18, 43, .28); }
.buy-dlg::backdrop { background: rgba(7, 18, 43, .4); }
.buy-form { position: relative; display: grid; gap: 12px; padding: 24px 22px 20px; }
.buy-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--sunken, #f1f3f8);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.buy-title { font-size: 20px; padding-right: 40px; }
.buy-models { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-models[hidden] { display: none; }
.buy-models button { display: grid; gap: 1px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--card, #fff); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font: inherit; text-align: left; }
.buy-models button b { font-size: 14px; color: var(--ink); }
.buy-models button span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.buy-models button[aria-checked=true] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-tint, #eaf1ff); }
.buy-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.buy-meta { font-size: 13px; color: var(--ink-soft); }
.buy-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.buy-vin summary { cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 600; list-style: none; }
.buy-vin summary::-webkit-details-marker { display: none; }
.buy-vin[open] summary { margin-bottom: 8px; }
.buy-form .pay-note { font-size: 13px; color: var(--ink-faint); text-align: center; }
@media (max-width: 560px) {
  .buy-dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .buy-row { grid-template-columns: 1fr; }
}
.buy-form .pay-note { display: block; line-height: 1.45; margin: 0; }
.buy-form .pay-note a { display: inline; }

/* Постраничный вывод каталога */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.pg { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .16s var(--ease), color .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { a.pg:hover { color: var(--accent); } }
.pg.on { background: var(--accent); color: #fff; box-shadow: none; }
.pg.gap { background: none; box-shadow: none; min-width: 20px; padding: 0; color: var(--ink-faint); }

/* Разделы на главной: текст слева, картинка в своей колонке справа — не перекрывают друг друга */
.sections .tiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sections .tile { min-height: 132px; padding: 20px 128px 20px 22px; align-content: center; gap: 6px; }
.sections .tile img { right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); width: 104px; height: 104px; object-fit: contain; }
.sections .tile-t { font-size: 19px; line-height: 1.2; }
.sections .tile-n { font-size: 14px; }
.sections .tile-go { padding-top: 4px; }
/* Телефон: разделы — короткими строками, картинка справа. Высокие квадраты 2×N были наполовину пустыми */
@media (max-width: 640px) {
  .sections .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sections .tile { min-height: 76px; padding: 12px 88px 12px 16px; align-content: center; gap: 2px; }
  .sections .tile img { position: absolute; top: 50%; bottom: auto; right: 10px; transform: translateY(-50%); width: 64px; height: 64px; margin: 0; order: 0; }
  .sections .tile-t { font-size: 16px; }
  .sections .tile-go { display: none; }
  .sections .tile-vin .tile-subs { max-width: none; }
}

/* Тип коробки — кнопками над фильтрами */
.box-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.box-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.box-chips a span { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.box-chips a.on { background: var(--accent); color: #fff; box-shadow: none; }
.box-chips a.on span { color: rgba(255, 255, 255, .8); }

/* ── Телефон: витрина как приложение, а не сайт в браузере (11.10.2026) ──────
   Эффекты наведения выше обёрнуты в @media (hover: hover) and (pointer: fine): на сенсорном
   экране карточка после нажатия оставалась приподнятой. Взамен — отклик на само нажатие. */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iPhone увеличивает страницу, когда шрифт в поле меньше 16px, и обратно не возвращает */
@media (pointer: coarse) { .field, input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }
button, .btn, .tab, .chip, .seg, summary { -webkit-user-select: none; user-select: none; }
.btn, .tile, .tab { -webkit-touch-callout: none; }
.tile:active, .item:active, .tab:active, .foot-ic:active, .gal-thumbs button:active, .chip:active span { transform: scale(.98); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.field, input, textarea { caret-color: var(--accent); }

/* ── Шрифт (11.10.2026) ──
   Цифры — обычные, не «одной ширины»: у Manrope в моноширинном наборе единица отбивается сильнее
   пробела, и «110 000 ₽» читается как «1 10 000 ₽». Замер: «1» — 44, «0» — 66, пробел — 20. */
/* Абзацы без одинокого слова в последней строке; заголовки плиток и баннеров — ровными строками */
p, .desc, .promo-text p { text-wrap: pretty; }
.promo-title, .tile b, .gn-hero-text h1 { text-wrap: balance; }

/* ── Кабинет покупателя: вход по коду из Telegram и «мои заказы» (11.10.2026) ── */
.lk-link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 650;
  color: var(--ink) !important; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.lk-link .mi { width: 18px; height: 18px; fill: var(--ink-soft); }
.lk-link.in { background: var(--accent-tint); box-shadow: inset 0 0 0 1px rgba(0, 91, 255, .16); color: var(--accent) !important; }
.lk-link.in .mi { fill: var(--accent); }
@media (hover: hover) and (pointer: fine) { .lk-link:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); } }
.lk-link:active { transform: scale(.97); }
@media (max-width: 1100px) { .top-cta .lk-link span { display: none; } .top-cta .lk-link { width: 44px; height: 44px; padding: 0; justify-content: center; } }

.lk-login { display: grid; justify-items: center; padding: 36px 0 60px; }
.lk-card { width: min(100%, 560px); background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.lk-card h1 { font-size: var(--fs-title); margin-bottom: 10px; }
.lk-lead { color: var(--ink-soft); margin: 0 0 22px; }
.lk-steps { list-style: none; counter-reset: lk; margin: 0; padding: 0; display: grid; gap: 22px; }
.lk-steps li { counter-increment: lk; position: relative; padding-left: 44px; display: grid; gap: 6px; justify-items: start; }
.lk-steps li::before { content: counter(lk); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); font-weight: 800; font-size: 15px; }
.lk-steps li > b { font-size: 17px; }
.lk-steps li > span { color: var(--ink-soft); font-size: 14px; }
.lk-steps li > span.ok { color: var(--ok); font-weight: 600; }
.lk-steps .btn { margin-top: 6px; gap: 8px; }
.lk-steps .btn .mi { width: 20px; height: 20px; fill: currentColor; }
.lk-code { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; width: 100%; }
.lk-code .field { flex: 1 1 180px; height: 52px; }
#lk-code { font-size: 22px; letter-spacing: .32em; font-weight: 600; text-align: center; max-width: 220px; }
#lk-code::placeholder { color: var(--line-strong, #c8cedb); }
.lk-again { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.lk-again summary { cursor: pointer; font-weight: 650; color: var(--accent); list-style: none; }
.lk-again summary::-webkit-details-marker { display: none; }
.lk-again[open] summary { margin-bottom: 10px; }
.lk-sent { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

.lk { padding: 30px 0 60px; }
.lk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.lk-head h1 { font-size: var(--fs-title); margin: 0 0 4px; }
.lk-who { margin: 0; color: var(--ink-soft); }
.lk-ok { display: inline-block; margin-bottom: 16px; padding: 8px 14px; border-radius: 12px; background: var(--ok-tint, #e6f6ee); color: var(--ok); font-weight: 650; font-size: 14px; }
.lk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lk-main, .lk-box { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 22px 24px; }
.lk-main h2, .lk-box h2 { font-size: 19px; margin: 0 0 14px; }
.lk-side { display: grid; gap: 16px; }
.lk-orders { list-style: none; margin: 0; padding: 0; }
.lk-order { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.lk-order:first-child { border-top: 0; padding-top: 4px; }
.lk-order-img { width: 84px; height: 84px; border-radius: 16px; background: var(--sunken); display: grid; place-items: center; overflow: hidden; }
.lk-order-img img { max-width: 100%; max-height: 100%; object-fit: cover; }
.lk-order-main { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.lk-order-main b { font-size: 16px; }
.lk-order-meta { font-size: 13px; color: var(--ink-faint); }
.lk-state { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; background: var(--sunken); color: var(--ink-soft); }
.lk-state.ok { background: var(--ok-tint, #e6f6ee); color: var(--ok); }
.lk-state.go { background: var(--accent-tint); color: var(--accent); }
.lk-state.wait { background: var(--warn-tint); color: var(--warn); }
.lk-track { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.lk-track code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; color: var(--ink); user-select: all; }
.lk-order-side { display: grid; gap: 4px; justify-items: end; text-align: right; }
.lk-order-side b { font-size: 17px; white-space: nowrap; }
.lk-order-side span { font-size: 13px; color: var(--ink-faint); max-width: 180px; }
.lk-empty { padding: 8px 0 4px; }
.lk-empty b { font-size: 17px; }
.lk-empty p { color: var(--ink-soft); margin: 6px 0 16px; max-width: 52ch; }
.lk-empty-go { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-box p { margin: 0 0 10px; }
.lk-dim { color: var(--ink-soft); font-size: 14px; }
.lk-name { display: flex; gap: 8px; margin-bottom: 12px; }
.lk-name .field { flex: 1; min-width: 0; height: 40px; padding: 0 12px; }
.lk-del { padding: 4px 8px; }
.lk-del summary { cursor: pointer; font-size: 14px; color: var(--ink-faint); }
.lk-del p { margin: 10px 0; }
@media (max-width: 900px) { .lk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .lk-order { grid-template-columns: 64px minmax(0, 1fr); }
  .lk-order-img { width: 64px; height: 64px; }
  .lk-order-side { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; }
  .lk-main, .lk-box { padding: 18px 16px; border-radius: 20px; }
}

/* ── Шапка на телефоне (12.10.2026) ──
   С кнопкой кабинета шапка перестала помещаться: кнопки-иконки сжимались, а с сохранённой машиной
   строка была шире экрана, и телефон уменьшал всю страницу. Теперь: иконки не сжимаются и всегда
   квадратные; Telegram из шапки на телефоне убран — он есть в нижней панели; машина — значком. */
body { overflow-x: clip; }                                   /* лишняя ширина обрезается, а не ужимает страницу */
.top-cta > *, .car-chip, .logo-mark { flex: none; }
.logo { min-width: 0; }
.logo span { min-width: 0; }
.logo b, .logo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (pointer: coarse) { .btn.sm.ic-btn { width: 44px; } }   /* на сенсорном экране кнопка 44 в высоту — пусть и в ширину */
@media (max-width: 640px) {
  .top-cta .btn.tg, html.in-tg .top-cta .btn.tg { display: none; }
  .car-chip { width: 44px; height: 44px; max-width: none; padding: 0; justify-content: center; }
  .car-chip span { display: none; }
}
@media (max-width: 400px) { .car-chip { display: none; } }   /* машина остаётся в меню: «Подбор для …» */
@media (max-width: 340px) { .logo b { font-size: 16px; } }

/* 15.10.2026: первый экран — карусель (картинка целиком, без обрезки), под ней поиск во всю ширину
   с «Часто ищут» и три плитки доверия. Прошлый вариант — белый блок с пустым полем слева — Артёму «некрасиво». */
/* Баннер обычной высоты, но картинка целиком (Артём: «картинки обрезанные», потом «слишком широко»):
   картинка вписана по высоте и прижата вправо, левый край плавно растворяется в размытой копии той же картинки. */
@media (min-width: 641px) {
  .promo-slide { aspect-ratio: 1920 / 720; isolation: isolate; }
  .promo-slide::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--bg) left center / cover;
    filter: blur(28px) saturate(1.1); }
  /* Картинка своей ширины, прижата вправо; растворяется её собственный левый край — без шва */
  .promo-slide img, .promo-slide .promo-video { left: auto; right: 0; width: auto; height: 100%; aspect-ratio: 1920 / 1072; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
}
@media (max-width: 640px) { .promo-slide picture { aspect-ratio: 1080 / 603; } }
/* Строка поиска под баннером: одна, неброская — матовое стекло с голубым отливом, заходит на нижний край баннера
   (Артём 15.10: «много лишнего», «задизайнить как-то неброско, а не просто белым»). */
.find { position: relative; z-index: 2; padding: 0 48px; margin-top: -34px; }
.find-main { display: grid; gap: 12px; padding: 14px 16px 14px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(236, 243, 255, .86));
  box-shadow: inset 0 0 0 1px rgba(0, 91, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px rgba(0, 40, 140, .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.find-bar { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(7, 18, 43, .07); transition: box-shadow .2s var(--ease); }
.find-bar:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 22px rgba(0, 91, 255, .12); }
.find-ic { flex: none; width: 22px; height: 22px; margin-left: 10px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; opacity: .8; }
.find-bar .sg-wrap, .find-bar > input { flex: 1; min-width: 0; }
.find-bar input { width: 100%; height: 48px; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 0 6px; }
.find-bar input::placeholder { color: var(--ink-faint); }
.find-bar .btn { height: 48px; padding: 0 30px; border-radius: 12px; font-size: 16px; }
.find-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 6px; }
.find-pop span { font-size: 14px; color: var(--ink-soft); margin-right: 2px; }
.find-pop a { font-size: 14px; font-weight: 650; color: var(--accent); padding: 4px 11px; border-radius: 99px; background: rgba(0, 91, 255, .07);
  font-variant-numeric: tabular-nums; transition: background .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .find-pop a:hover { background: var(--accent); color: #fff; } }
.find-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; color: var(--ink-soft); padding: 2px 6px; }
.find-mine b { color: var(--ink); }
.find-link { font-size: 15px; font-weight: 650; }
.promo:has(+ .find) .promo-dots { bottom: 52px; }          /* точки карусели не прячутся под строкой поиска */
@media (max-width: 820px) { .find { padding: 0 20px; } }
@media (max-width: 640px) {
  .find { padding: 0; margin-top: 12px; }
  .promo:has(+ .find) .promo-dots { bottom: 18px; }
  .find-main { padding: 10px; border-radius: 20px; gap: 10px; }
  .find-ic { display: none; }
  .find-bar input { font-size: 16px; height: 46px; }
  .find-bar .btn { padding: 0 18px; height: 46px; }
  .find-pop { padding: 0 4px; }
}
/* 15.10.2026: фон — светлый с голубыми переливами под баннеры вместо серой подложки из размытых фото товаров
   (Артём: «серый не очень красиво смотрится»). Подвал всегда внизу экрана, даже на короткой странице. */
:root { --bg: #f4f7ff; }
.bg-photos { display: none !important; }
body { background:
  radial-gradient(1100px 700px at 100% -10%, rgba(0, 91, 255, .13), transparent 60%),
  radial-gradient(900px 700px at -10% 35%, rgba(47, 123, 255, .09), transparent 62%),
  radial-gradient(900px 600px at 70% 110%, rgba(159, 208, 255, .22), transparent 60%),
  linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%) fixed;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Подбор без VIN: где найти VIN и марки */
.pb-more { padding-top: 8px; }
.pb-more h2, .pb-more-h { font-size: var(--fs-section); margin: 28px 0 14px; }
.pb-where-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pb-where-list li { padding: 18px 22px 20px; border-radius: 24px; background: var(--glass-strong); box-shadow: var(--glass-edge), var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.pb-where-list img { width: 88px; height: 88px; object-fit: contain; margin: -4px 0 6px -6px; filter: drop-shadow(0 10px 16px rgba(0, 54, 184, .16)); }
.pb-where-list b { display: block; font-size: 17px; }
.pb-where-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.pb-makes { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-makes a { padding: 10px 16px; border-radius: 14px; background: var(--glass-strong); box-shadow: var(--glass-edge), var(--shadow);
  font-weight: 650; color: var(--ink); transition: background .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pb-makes a:hover { background: var(--accent); color: #fff; } }
@media (max-width: 820px) { .pb-where-list { grid-template-columns: minmax(0, 1fr); } .pb-where-list li { display: grid; grid-template-columns: 72px 1fr; gap: 0 14px; align-items: start; }
  .pb-where-list img { width: 72px; height: 72px; grid-row: span 2; margin: 0; } .pb-makes a { padding: 9px 13px; } }

/* Пять разделов — в один ряд на широком экране (15.10: плитку «Подбор по VIN» убрали, Genesis висел один во втором ряду) */
@media (min-width: 1100px) { .sections .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Страница под машину (/na/…): коды — ссылками на страницы кодов, заголовки разделов с числом */
.pb-tags a.model-code { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 650;
  font-family: var(--mono, ui-monospace, monospace); color: var(--accent); background: var(--accent-tint); }
@media (hover: hover) and (pointer: fine) { .pb-tags a.model-code:hover { background: var(--accent); color: #fff; } }
.model-h { font-size: var(--fs-section); margin: 26px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.model-h span { font-size: 15px; font-weight: 600; color: var(--ink-faint); }

/* ── Шрифт витрины — Inter, как в CRM (16.10.2026, Артём: «переделывай, посмотрим») ──
   Manrope остаётся только в названии рядом со знаком (шапка, подвал): это часть логотипа, тем же шрифтом
   название нарисовано на обложках Авито и в превью ссылок. Цифры в ценах — одной ширины. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
body { font-family: Inter, "Inter Fallback", system-ui, -apple-system, sans-serif; font-optical-sizing: auto;
  font-feature-settings: "cv11", "calt"; letter-spacing: -.006em; }
h1, .promo-title { font-weight: 750; letter-spacing: -.03em; }
h2, h3 { font-weight: 700; letter-spacing: -.02em; }
.logo b, .foot-name { font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.price-v, .item-price, .money, .num, .kod-n, .tile-n { font-variant-numeric: tabular-nums; }
.btn { font-weight: 650; letter-spacing: -.005em; }
/* Шесть разделов — два ровных ряда по три (16.10: добавилась плитка «Запчасти», Genesis снова висел один) */
@media (min-width: 1100px) { .sections .tiles:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Страница 404: поиск прямо на ней */
.gone-search { display: flex; gap: 8px; width: min(460px, 100%); margin: 6px auto 4px; }
.gone-search .sg-wrap, .gone-search input { flex: 1; min-width: 0; }

/* Подвал: часы и карта самовывоза */
.foot-hours { color: #fff; font-weight: 600; }
.foot-map { margin-top: 18px; }
.foot-map iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: 18px; background: #0d1a38; }
.foot-route { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 640px) { .foot-map iframe { height: 220px; } }

/* Уведомление о cookie (Метрика) — маленькое, над нижней панелью на телефоне */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px;
  background: #07122b; color: #dbe4f5; font-size: 14px; box-shadow: 0 12px 30px rgba(7,18,43,.35); }
.cookie-note a { color: #9fc0ff; }
.cookie-note .btn { margin-left: auto; height: 36px; padding: 0 14px; }
.cookie-note[hidden] { display: none; }
@media (max-width: 760px) { .cookie-note { bottom: 84px; } }
