:root {
  --brand: #1473c4;
  --brand-dark: #0c4f8c;
  --brand-deep: #083662;
  --brand-soft: #e8f3fc;
  --brand-glow: #2aa0e8;
  --ink: #12161c;
  --muted: #667085;
  --line: #d9e2ec;
  --bg: #eef3f8;
  --surface: #ffffff;
  --hl: #ffe566;
  --ok: #1f7a4c;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 40, 72, .08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Sora", "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(42, 160, 232, .18), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(20, 115, 196, .12), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 40%, #e9eef5 100%);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 18px;
  overflow-x: clip;
  max-width: 100%;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.hdr-top {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(217, 226, 236, .9);
}
.hdr-top__inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.logo__img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}
.hdr-nav {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.hdr-nav__item {
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit !important;
  text-decoration: none !important;
  max-width: 220px;
  transition: background .15s ease;
}
.hdr-nav__item:hover { background: var(--brand-soft); }
.hdr-nav__item strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.hdr-nav__item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.25;
  margin-top: 2px;
}
.hdr-utils {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hdr-utils__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hdr-utils__link:hover { background: var(--brand-deep); }
.hdr-utils__link--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.hdr-utils__link--ghost:hover {
  background: rgba(20, 115, 196, .08);
  color: var(--brand-deep) !important;
  border-color: rgba(20, 115, 196, .35);
}
.phone {
  text-align: right;
  color: var(--ink) !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.phone strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}
.phone span { font-size: 12px; color: var(--muted); }

.hdr-search {
  padding: 12px 0 14px;
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--line);
}
.hdr-search__inner { display: flex; align-items: center; gap: 12px; }
.catalogs-wrap { position: relative; }
.btn-catalogs {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 115, 196, .28);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .18s ease;
}
.btn-catalogs:hover {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(20, 115, 196, .35);
  box-shadow: 0 8px 18px rgba(12, 40, 72, .08);
}
.catalogs-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 280px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px 0;
}
.catalogs-dropdown a {
  display: block; padding: 9px 14px; color: var(--ink); text-decoration: none;
  font-size: 14px;
}
.catalogs-dropdown a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.catalogs-dropdown__sep { height: 1px; background: var(--line); margin: 6px 0; }
.btn-catalogs__short { display: none; }
.hdr-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hdr-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
}
.mobile-menu,
.mnav { display: none; }
.search-form {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.search-form:focus-within {
  border-color: #9ec8eb;
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .12);
}
.search-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 14px 10px 14px 16px; font-size: 18px;
  min-width: 0;
}
.search-form .vin-input-wrap {
  flex: 1;
  min-width: 0;
  gap: 0;
}
.search-form .vin-input-wrap input {
  padding-right: 4px;
}
.search-form .btn-vin-scan {
  margin-right: 2px;
  align-self: center;
}
.btn-search {
  width: 52px; border: 0;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  color: #fff; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-search:hover {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(20, 115, 196, .35);
}
.hdr-search__links { display: flex; gap: 14px; white-space: nowrap; }
.hdr-search__links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

/* Layout */
.main { padding: 22px 0 48px; min-height: 52vh; }
.page-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.search-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
}
.search-layout:has(#sidebar[hidden]) { grid-template-columns: 1fr; }

.aside-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, #fff 40%),
    var(--surface);
  border: 1px solid rgba(185, 205, 224, .72);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 10px 28px rgba(12, 40, 72, .06);
}
.aside-card__title {
  padding: 13px 16px 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  border-bottom: 1px solid rgba(217, 226, 236, .85);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}
.delivery-select { padding: 12px 14px; }
.delivery-select select, .delivery-inline select, .order-form select,
.order-form input, .order-form textarea,
.vin-form input, .vin-form textarea, .brands-toolbar input,
.account-form input, .account-form select, .account-form textarea {
  width: 100%;
  border: 1px solid rgba(185, 205, 224, .9);
  border-radius: 11px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.delivery-select select:hover, .delivery-inline select:hover,
.order-form input:hover, .order-form textarea:hover, .order-form select:hover,
.vin-form input:hover, .vin-form textarea:hover, .brands-toolbar input:hover,
.account-form input:hover, .account-form select:hover, .account-form textarea:hover {
  border-color: #9ec8eb;
}
.delivery-select select:focus, .delivery-inline select:focus,
.order-form input:focus, .order-form textarea:focus, .order-form select:focus,
.vin-form input:focus, .vin-form textarea:focus, .brands-toolbar input:focus,
.account-form input:focus, .account-form select:focus, .account-form textarea:focus {
  outline: none;
  border-color: #7eb6e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .14);
}
.brand-list {
  padding: 8px 10px 12px;
  display: grid;
  gap: 2px;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c5d5e6 transparent;
}
.brand-list::-webkit-scrollbar { width: 6px; }
.brand-list::-webkit-scrollbar-thumb {
  background: #c5d5e6;
  border-radius: 99px;
}
.brand-list label,
.filter-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  cursor: pointer;
  margin: 0;
  padding: 8px 8px;
  border-radius: 9px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.filter-check:hover { background: rgba(20, 115, 196, .06); }
.filter-check.is-on {
  background: rgba(20, 115, 196, .09);
  color: var(--brand-deep);
}
.filter-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.filter-check__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #b7c9db;
  background: linear-gradient(180deg, #fff 0%, #f3f7fb 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.filter-check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.filter-check.is-on .filter-check__box,
.filter-check input:checked + .filter-check__box {
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand-glow));
  box-shadow: 0 4px 10px rgba(20, 115, 196, .28);
}
.filter-check.is-on .filter-check__box::after,
.filter-check input:checked + .filter-check__box::after {
  transform: rotate(45deg) scale(1);
}
.filter-check__text {
  min-width: 0;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
}
.filter-search {
  display: block;
  position: relative;
  padding: 10px 12px 6px;
}
.filter-search__icon {
  position: absolute;
  left: 24px;
  top: 21px;
  color: #8aa0b5;
  display: inline-flex;
  pointer-events: none;
  z-index: 1;
}
.filter-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(185, 205, 224, .95);
  border-radius: 11px;
  padding: 10px 12px 10px 36px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  background: linear-gradient(180deg, #fff 0%, #f5f9fc 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.filter-search input::placeholder {
  color: #8aa0b5;
  font-weight: 500;
}
.filter-search input:hover { border-color: #9ec8eb; }
.filter-search input:focus {
  outline: none;
  border-color: #7eb6e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .14);
}
.filter-empty {
  margin: 6px 4px 2px;
  font-size: 12.5px;
  color: #6b7785;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  padding: 4px 16px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
}
.link-btn:hover { color: var(--brand); }
.city-picker {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  margin-right: 4px;
}
.city-picker__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.city-picker select {
  appearance: none;
  border: 1px solid rgba(185, 205, 224, .9);
  background:
    linear-gradient(180deg, #fff 0%, #f5f9fc 100%)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23083662' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border-radius: 11px;
  padding: 8px 28px 8px 12px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  cursor: pointer;
  min-height: 38px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.city-picker select:hover { border-color: #9ec8eb; }
.city-picker select:focus {
  outline: none;
  border-color: #7eb6e6;
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .14);
}
.filter-card .filter-list { max-height: 240px; }
.filter-more {
  display: block;
  width: 100%;
  text-align: left;
  padding-top: 2px;
}
.partner-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.partner-zone__list {
  margin: 0;
  padding: 12px 18px 16px 32px;
  color: var(--ink);
  line-height: 1.45;
}
.partner-zone__text {
  margin: 0;
  padding: 12px 14px 16px;
  color: #3d4f63;
  line-height: 1.5;
}
.partner-zone--open {
  border-color: rgba(31, 122, 76, .28);
  box-shadow: 0 10px 28px rgba(31, 122, 76, .06);
}
.partner-zone--open .aside-card__title {
  background: #f3faf6;
  color: var(--ok);
}
.partner-zone--closed .aside-card__title {
  background: #faf6f5;
  color: #8a4b45;
}
.partner-city-hint {
  margin: -6px 0 10px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .partner-zones { grid-template-columns: 1fr; }
}

/* Results */
.group {
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.group__title {
  background: linear-gradient(90deg, #edf4fb, #f8fbfe);
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.group__head {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 8px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.result-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  color: inherit;
  text-decoration: none !important;
}
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: #f7fbff; }
.result-row__brand {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #b7c2cf;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.result-row__art { font-weight: 700; margin: 0 0 4px; }
.result-row__art mark,
.vin-offer__pn mark,
.parts-table .num-cell mark {
  background: var(--hl);
  padding: 0 3px;
  border-radius: 3px;
}
.result-row__name { margin: 0; color: var(--ink); font-size: 14px; }
.result-row__more {
  margin: 6px 0 0;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}
.result-row__price {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.result-row__date {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.result-row__date.is-approx,
.stock-line__when.is-approx,
td.is-approx,
.ai-offer small.is-approx {
  color: #c48a00;
  font-weight: 700;
}
.result-row__analogs {
  text-align: right;
  color: var(--brand);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 700;
}
.result-row__empty {
  text-align: right;
  color: #bbb;
  font-size: 20px;
}

.status {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.78);
}
.status.is-error { border-color: #f3c2bf; background: #fff5f5; color: var(--danger); }
.status.is-ok { border-color: #b7e1c4; background: #f3fbf6; color: var(--ok); }
.status.is-loading { display: flex; gap: 10px; align-items: center; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #d5e4f2; border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.home-hint {
  color: var(--muted);
  max-width: 680px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.home-hint code {
  background: #eef3f8; padding: 1px 6px; border-radius: 4px; font-size: .95em;
}

/* VIN catalog */
.vin-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 20px;
  max-width: none;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.vin-panel h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.02em;
}
.vin-panel__lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.vin-panel__head { display: grid; gap: 12px; margin-bottom: 14px; }
.vin-form { display: grid; gap: 10px; margin-top: 0; }
.vin-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.vin-input-wrap input {
  flex: 1;
  min-width: 0;
}
.btn-vin-scan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0 10px;
  height: 36px;
  max-width: 120px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  opacity: .78;
  transition: opacity .18s ease, color .18s ease, background .18s ease, max-width .22s ease, padding .22s ease, margin .22s ease;
}
.btn-vin-scan:hover {
  opacity: 1;
  color: var(--brand-dark);
  background: rgba(20, 115, 196, .06);
}
.btn-vin-scan.is-hidden {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
}
.btn-vin-scan svg { flex: 0 0 auto; }
.vin-form--inline {
  grid-template-columns: minmax(160px, 220px) minmax(180px, 1fr) auto;
  align-items: end;
}
.vin-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vin-catalog {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 520px;
}
.vin-tree {
  border: 1px solid var(--line);
  background: #f7fafc;
  max-height: 74vh;
  overflow: auto;
  padding: 8px 0;
  border-radius: 14px;
}
.vin-tree details { padding-left: 6px; }
.vin-tree summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 650;
  border-radius: 8px;
  margin: 0 6px;
}
.vin-tree summary:hover { background: #eaf3fb; }
.vin-tree summary::-webkit-details-marker { display: none; }
.vin-tree summary::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  color: var(--brand);
  margin-right: 4px;
}
.vin-tree details[open] > summary::before { content: "▾"; }
.vin-tree__item {
  display: block;
  width: calc(100% - 12px);
  margin: 1px 6px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px 8px 22px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
}
.vin-tree__item:hover { background: #eaf3fb; }
.vin-tree__item.is-active {
  background: linear-gradient(90deg, rgba(20,115,196,.16), rgba(42,160,232,.08));
  color: var(--brand-deep);
  font-weight: 700;
}
.vin-stage { min-width: 0; display: grid; gap: 16px; align-content: start; }
.vin-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.vin-breadcrumb strong { color: var(--ink); font-family: var(--display); }
.vin-children {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.vin-child {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  border-radius: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.vin-child:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
.vin-schemes { display: grid; gap: 18px; }
.vin-scheme {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.vin-scheme > div:first-child {
  padding: 14px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  border-right: 1px solid var(--line);
}
.vin-scheme > div:last-child {
  padding: 14px;
  background: #fff;
}
.vin-scheme__img-wrap {
  background:
    linear-gradient(45deg, #eef2f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-color: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 12px;
  min-height: 360px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 10px;
}
.vin-scheme__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
}
.vin-scheme__img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 66vh;
  display: block;
  image-rendering: auto;
  mix-blend-mode: multiply;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.vin-scheme__zoom:hover .vin-scheme__img { transform: scale(1.015); }
.vin-scheme__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -.01em;
}
.vin-scheme__meta { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.vin-markers {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 2px;
}
.vin-marker {
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.vin-marker:hover {
  border-color: #9ec8eb;
  background: #f7fbff;
  transform: translateY(-1px);
}
.vin-marker.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .12);
}
.vin-marker__code {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4fa;
  color: var(--brand-deep);
  font-size: 12px;
}
.vin-parts { display: grid; gap: .55rem; }
.vin-part {
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  background: #fff;
  text-align: left;
  font: inherit;
  border-radius: 12px;
}
.vin-part:hover, .vin-part.is-active {
  border-color: var(--brand);
  background: #f7fbff;
}
.vin-part__code {
  font-family: var(--display);
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 8px;
  text-align: center;
  padding: 6px 4px;
  font-size: 12px;
}
.vin-part__pn { font-weight: 700; font-family: var(--display); }
.vin-offers { margin-top: 4px; display: grid; gap: .8rem; }
.vin-offers h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -.01em;
}
.vin-offer {
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.vin-offer:hover {
  border-color: #9ec8eb;
  transform: translateY(-1px);
}
.vin-offer__brand {
  color: #9aa8b8;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.vin-offer__price {
  text-align: right;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}
.vin-offer__stocks {
  margin-top: 8px;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}
.vin-manual { margin-top: 16px; color: var(--muted); }
.vin-manual summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--display);
}
.vin-manual .vin-form { margin-top: 10px; }

.home-hero { padding: .6rem 0 1rem; }
.home-hero__brand {
  display: block;
  height: 64px;
  width: auto;
  margin: 0 0 14px;
}
.home-hero__sub { color: var(--muted); margin: 0 0 1rem; max-width: 640px; font-size: 17px; }

/* —— Landing / title page —— */
.page-home .main { padding: 0; }
.page-home .hdr {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}
.page-home .hdr-top {
  background: linear-gradient(180deg, rgba(244, 248, 252, .88), rgba(244, 248, 252, .4) 72%, transparent);
  backdrop-filter: blur(10px);
}
.page-home .hdr-search { display: none; }

.landing {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 70% at 82% 42%, rgba(42, 160, 232, .26), transparent 62%),
    radial-gradient(ellipse 45% 50% at 8% 88%, rgba(8, 54, 98, .1), transparent 58%),
    linear-gradient(160deg, #f7fbfe 0%, #ebf3fa 38%, #dceaf6 72%, #d2e4f3 100%);
}
.landing__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 254, .92) 0%, rgba(247, 251, 254, .55) 38%, transparent 62%),
    linear-gradient(180deg, transparent 62%, rgba(210, 228, 243, .55) 100%);
}
.landing__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  will-change: transform;
  animation: landing-float 16s ease-in-out infinite;
}
.landing__glow--a {
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  right: -6%;
  top: 4%;
  opacity: .5;
  background: radial-gradient(circle, rgba(42, 160, 232, .5), transparent 68%);
}
.landing__glow--b {
  width: min(40vw, 460px);
  height: min(40vw, 460px);
  left: -10%;
  bottom: -4%;
  opacity: .4;
  background: radial-gradient(circle, rgba(12, 79, 140, .32), transparent 70%);
  animation-delay: -6s;
}
.landing__glow--c {
  width: min(28vw, 320px);
  height: min(28vw, 320px);
  right: 28%;
  bottom: 18%;
  opacity: .28;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 70%);
  animation-delay: -10s;
  filter: blur(40px);
}
.landing__grid {
  position: absolute;
  inset: -15%;
  background-image:
    linear-gradient(rgba(8, 54, 98, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 54, 98, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 62% 58% at 72% 44%, #000 12%, transparent 72%);
  animation: landing-drift 40s linear infinite;
}
.landing__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 79, 140, .14) 28%, rgba(42, 160, 232, .22) 58%, transparent 88%);
  opacity: .7;
}
.landing__orbit {
  position: absolute;
  right: max(-2%, calc(50% - 620px));
  top: 50%;
  width: min(58vw, 580px);
  height: min(58vw, 580px);
  transform: translateY(-46%);
}
.landing__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(20, 115, 196, .16);
}
.landing__ring--outer {
  inset: 0;
  border-top-color: rgba(42, 160, 232, .48);
  border-right-color: rgba(12, 79, 140, .12);
  animation: landing-spin 56s linear infinite;
}
.landing__ring--mid {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(20, 115, 196, .18);
  border-bottom-color: rgba(42, 160, 232, .4);
  animation: landing-spin-rev 38s linear infinite;
}
.landing__ring--inner {
  inset: 30%;
  border-width: 1.5px;
  border-color: rgba(12, 79, 140, .12);
  border-left-color: rgba(42, 160, 232, .45);
  animation: landing-spin 28s linear infinite;
}
.landing__core {
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), transparent 45%),
    radial-gradient(circle, rgba(42, 160, 232, .35), rgba(12, 79, 140, .08) 70%, transparent 75%);
  box-shadow: 0 0 60px rgba(42, 160, 232, .18);
  animation: landing-pulse 5.5s ease-in-out infinite;
}
/* E46 B51 — вид сверху, валит боком по кольцу */
.landing__car-track {
  position: absolute;
  inset: -1.5%;
  animation: landing-car-orbit 9.5s linear infinite;
  z-index: 3;
}
.landing__car {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(110px, 14vw, 176px);
  aspect-ratio: 988 / 465;
  transform-origin: center center;
  animation: landing-car-drift 1.05s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(8, 40, 72, .32));
  will-change: transform;
}
.landing__car-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}
.landing__car-smoke {
  position: absolute;
  left: -2%;
  top: 18%;
  width: 34%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 198, 214, .62), rgba(180, 198, 214, 0) 72%);
  filter: blur(2.5px);
  pointer-events: none;
  animation: landing-car-smoke 0.65s ease-out infinite;
}
.landing__car-smoke--b {
  left: -10%;
  top: 42%;
  width: 40%;
  height: 32%;
  animation-delay: -.2s;
  opacity: .8;
}
.landing__car-smoke--c {
  left: -16%;
  top: 62%;
  width: 46%;
  height: 34%;
  animation-delay: -.4s;
  opacity: .5;
}
.landing__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 40%,
    rgba(255, 255, 255, .28) 49%,
    rgba(42, 160, 232, .1) 52%,
    transparent 62%
  );
  background-size: 240% 100%;
  animation: landing-beam 9s ease-in-out infinite;
  mix-blend-mode: soft-light;
  opacity: .85;
}
.landing__schematic {
  position: absolute;
  right: max(-4%, calc(48% - 700px));
  top: 12%;
  width: min(62vw, 720px);
  height: auto;
  opacity: .72;
}
.landing__path {
  stroke: rgba(20, 115, 196, .5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  animation: landing-draw 3.6s cubic-bezier(.4, 0, .2, 1) forwards 0.45s;
}
.landing__path--soft {
  stroke: rgba(8, 54, 98, .28);
  stroke-width: 1.2;
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  animation-duration: 2.8s;
  animation-delay: 1.05s;
}
.landing__path--delay {
  animation-delay: 1.55s;
  animation-duration: 2.4s;
}
.landing__tick {
  stroke: rgba(20, 115, 196, .55);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0;
  animation: landing-node 0.55s ease forwards 2.35s;
}
.landing__tick--b { animation-delay: 2.55s; }
.landing__tick--c { animation-delay: 2.75s; }
.landing__node {
  fill: #1473c4;
  opacity: 0;
  animation: landing-node 0.55s ease forwards 2.3s;
}
.landing__node--delay { animation-delay: 2.5s; }
.landing__node--delay2 { animation-delay: 2.7s; fill: #0c4f8c; }
.landing__halo {
  stroke: rgba(42, 160, 232, .35);
  stroke-width: 1;
  fill: none;
  opacity: 0;
  animation: landing-halo 2.8s ease-in-out infinite 2.6s;
}

.landing__shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  padding: clamp(6.5rem, 12vh, 9rem) 0 clamp(5rem, 10vh, 7rem);
}
.landing__copy {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.landing__brand {
  display: block;
  height: clamp(72px, 10.5vw, 112px);
  width: auto;
  margin: 0 0 clamp(2.4rem, 4.5vh, 3.4rem);
  opacity: 0;
  transform: translateY(28px);
  animation: landing-rise 1.05s cubic-bezier(.16, 1, .3, 1) forwards 0.12s;
  filter: drop-shadow(0 18px 40px rgba(12, 79, 140, .14));
}
.landing__headline {
  margin: 0 0 clamp(1.1rem, 2vh, 1.45rem);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.8vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--brand-deep);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(30px);
  animation: landing-rise 1.1s cubic-bezier(.16, 1, .3, 1) forwards 0.28s;
}
.landing__lead {
  margin: 0 0 clamp(2rem, 3.8vh, 2.75rem);
  max-width: 26rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #4a5d73;
  opacity: 0;
  transform: translateY(24px);
  animation: landing-rise 1.05s cubic-bezier(.16, 1, .3, 1) forwards 0.42s;
}
.landing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(22px);
  animation: landing-rise 1s cubic-bezier(.16, 1, .3, 1) forwards 0.56s;
}
.landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -.015em;
  text-decoration: none !important;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), background .2s ease, color .2s ease, box-shadow .22s ease, border-color .2s ease;
}
.landing__btn--primary {
  color: #fff !important;
  background: linear-gradient(145deg, #0c4f8c 0%, #1473c4 55%, #1d8ad4 100%);
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 14px 32px rgba(12, 79, 140, .24);
}
.landing__btn--primary:hover {
  transform: translateY(-3px);
  color: var(--brand-deep) !important;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(20, 115, 196, .28);
  box-shadow: 0 14px 32px rgba(12, 40, 72, .08);
}
.landing__btn--ghost {
  color: var(--brand-deep) !important;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(20, 115, 196, .22);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(12, 40, 72, .04);
}
.landing__btn--ghost:hover {
  transform: translateY(-3px);
  color: #fff !important;
  background: linear-gradient(145deg, #0c4f8c 0%, #1473c4 55%, #1d8ad4 100%);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 16px 36px rgba(12, 79, 140, .28);
}
.landing__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 28px);
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(8, 54, 98, .22);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
  opacity: 0;
  animation: landing-rise 0.9s ease forwards 1.25s;
  transition: border-color .2s ease;
}
.landing__scroll:hover { border-color: rgba(20, 115, 196, .45); }
.landing__scroll span {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--brand);
  animation: landing-scroll 1.8s ease-in-out infinite;
}
.home-below {
  padding-top: clamp(2.75rem, 6vh, 4rem);
}

@keyframes landing-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes landing-spin-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes landing-car-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes landing-car-drift {
  /* вид сверху: сильный yaw — корпус почти поперёк кольца */
  0%, 100% { transform: translate(-50%, -50%) rotate(58deg); }
  50% { transform: translate(-50%, -53%) rotate(66deg); }
}
@keyframes landing-car-smoke {
  0% { transform: scale(.5) translate(0, 0); opacity: .75; }
  100% { transform: scale(1.7) translate(-14px, 2px); opacity: 0; }
}
@keyframes landing-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1.5%, 2.5%) scale(1.04); }
}
@keyframes landing-drift {
  to { transform: translate3d(-72px, -36px, 0); }
}
@keyframes landing-beam {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
@keyframes landing-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes landing-node {
  to { opacity: 1; }
}
@keyframes landing-halo {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.15); }
}
@keyframes landing-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes landing-scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .landing__brand, .landing__headline, .landing__lead, .landing__cta, .landing__scroll,
  .landing__path, .landing__node, .landing__tick, .landing__halo, .landing__glow,
  .landing__grid, .landing__ring, .landing__core, .landing__beam, .landing__scroll span,
  .landing__car-track, .landing__car, .landing__car-smoke {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .landing__car-track { transform: rotate(-28deg) !important; }
  .landing__car { transform: translate(-50%, -50%) rotate(62deg) !important; }
  .landing__car-smoke { display: none; }
}
.catalog-more {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 18px 0 8px;
  padding: 12px 0 4px;
}
.catalog-more .btn-ghost { min-width: 180px; }
.catalog-section { margin: 1.2rem auto 2rem; }
.catalog-section__title {
  text-align: center;
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 14px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); color: var(--ink);
  text-decoration: none !important; min-height: 78px;
}
.category-tile:nth-child(5n) { border-right: 0; }
.category-tile:hover { background: #f7fbff; }
.category-tile__name {
  font-family: var(--display);
  font-weight: 650;
  font-size: 14px;
}
.category-tile__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 12px;
  background-color: var(--brand-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
}
.category-tile__icon--oil { background-image: url("/static/img/cat/oil.svg"); }
.category-tile__icon--wiper { background-image: url("/static/img/cat/wiper.svg"); }
.category-tile__icon--battery { background-image: url("/static/img/cat/battery.svg"); }
.category-tile__icon--antifreeze { background-image: url("/static/img/cat/antifreeze.svg"); }
.category-tile__icon--chem { background-image: url("/static/img/cat/chem.svg"); }
.category-tile__icon--box { background-image: url("/static/img/cat/box.svg"); }
.category-tile__icon--tool { background-image: url("/static/img/cat/tool.svg"); }
.category-tile__icon--all {
  background-color: transparent;
  background-image:
    url("/static/img/cat/all.svg"),
    linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  background-size: 26px 26px, cover;
}
.category-tile--all .category-tile__name { color: var(--brand-dark); }
.category-tile:hover .category-tile__icon {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(12, 79, 140, 0.12);
}
.category-tile__icon { transition: transform .18s ease, box-shadow .18s ease; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.catalog-layout--filters {
  grid-template-columns: 260px minmax(0, 1fr);
}
.catalog-layout--filters .catalog-main { grid-column: 2; grid-row: 1; min-width: 0; }
.catalog-layout--filters .catalog-side--desktop { grid-column: 1; grid-row: 1; }
.catalog-tools {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.drawer {
  border: 0;
  background: transparent;
  margin: 0;
}
.drawer__sum {
  list-style: none;
}
.drawer__sum::-webkit-details-marker { display: none; }
@media (min-width: 961px) {
  .drawer__sum { display: none; }
  .drawer > .drawer__body { display: block !important; }
  /* На десктопе категории и фильтры — в левой колонке, не в drawers */
  .catalog-tools { display: none; }
  .catalog-side--desktop { display: block; }
}
@media (max-width: 960px) {
  .catalog-side--desktop { display: none !important; }
}
.catalog-nav { padding: 6px 0; }
.catalog-nav__item {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  border-left: 3px solid transparent; font-size: 14px; border-radius: 0 8px 8px 0;
}
.catalog-nav__item:hover { background: #f7fbff; }
.catalog-nav__item.is-active {
  border-left-color: var(--brand);
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.cat-chips {
  display: none;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1px 2px 4px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(185, 205, 224, .85);
  background: #fff;
  color: var(--brand-deep);
  text-decoration: none !important;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.cat-chip.is-active {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  box-shadow: 0 4px 12px rgba(20, 115, 196, .2);
}
/* Segmented control — равные половины, без «синей плашки на весь экран» */
.seg-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: #e8eef5;
  border: 0;
}
.seg-tabs__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #5b6b7c;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-tabs__btn.is-active {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(12, 40, 72, .1);
}
.catalog-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.catalog-tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--display); font-weight: 700;
  padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent;
}
.catalog-tab.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.brand-section { margin-bottom: 22px; }
.brand-section h3 { margin: 0 0 10px; font-family: var(--display); }
.brand-letter { margin-bottom: 12px; }
.brand-letter__title {
  font-weight: 700; color: var(--muted); margin-bottom: 6px; font-size: 13px;
}
.brand-letter__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.brand-chip {
  display: block; border: 1px solid var(--line); padding: 8px 10px;
  color: var(--ink); text-decoration: none; background: #fff; font-size: 14px;
  border-radius: 8px;
}
.brand-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.brands-toolbar { margin-bottom: 12px; }
.brands-toolbar input {
  width: min(360px, 100%); margin-bottom: 8px;
}
.catalog-side .brand-list a {
  display: block; padding: 4px 0; color: var(--ink); font-size: 14px;
}

/* Product table */
.product-toolbar { margin-bottom: 16px; }
.delivery-inline { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.delivery-inline label { white-space: nowrap; font-weight: 700; font-size: 14px; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-bottom: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.parts-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.parts-table th {
  text-align: left; background: #f7fafc; padding: 10px 12px;
  border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.parts-table td {
  padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.parts-table .brand-cell {
  font-family: var(--display);
  font-size: 20px; font-weight: 700; color: #b7c2cf; text-transform: uppercase;
}
.qty-wrap { display: flex; gap: 6px; align-items: center; }
.qty-wrap input {
  width: 56px; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; text-align: center;
}
.btn-cart {
  border: 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  color: #fff; cursor: pointer;
  width: 36px; height: 36px; font-size: 18px; font-weight: 700;
  border-radius: 8px;
}
.btn-cart:hover { filter: brightness(1.05); }
.btn-cart:disabled { opacity: .4; cursor: not-allowed; }
.analogs h2 { margin: 0 0 8px; font-family: var(--display); }
.analogs-note { color: var(--muted); font-size: 13px; margin: 0 0 12px; max-width: 780px; }

/* Product card */
.product-page { padding-bottom: 36px; }
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-back {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}
.product-back:hover { text-decoration: underline; }
.product-card[hidden],
.product-thumbs[hidden],
.product-desc[hidden],
.analogs[hidden] { display: none !important; }
.product-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-items: start;
}
.product-card__media { display: grid; gap: 10px; }
.product-photo {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafc;
  padding: 16px;
  cursor: zoom-in;
  display: grid;
  place-items: center;
}
.product-photo img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.product-photo__empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
}
.product-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card__cat {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
}
.product-card__sku {
  margin: 0 0 12px;
  font-size: 17px;
}
.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-fact {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--brand-deep);
}
.product-section-title {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 17px;
}
.product-card__stocks {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}
.stock-line__when { font-weight: 600; }
.stock-line__desc { font-size: 12px; margin-top: 2px; }
.product-desc {
  margin: 0 0 28px;
  padding: 16px;
}
.product-chars { display: grid; gap: 12px; }
.product-char {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.product-char__name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-char__value {
  font-size: 15px;
  line-height: 1.45;
}
.product-char__more {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0;
}
.product-links--media { margin: 0; }
.product-links a {
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 14px;
}
.product-lightbox {
  border: 0;
  padding: 0;
  max-width: min(920px, 94vw);
  background: transparent;
}
.product-lightbox::backdrop { background: rgba(10, 16, 24, .72); }
.product-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}
.product-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.cart-item {
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
}
.cart-item__meta { color: var(--muted); font-size: 13px; }
.order-form { padding: 14px; display: grid; gap: 10px; }
.order-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.cart-totals { display: grid; gap: 6px; margin-top: 4px; }
.cart-total-line { font-size: 14px; color: #445; }
.cart-total-line--promo { color: var(--brand-deep); }
.cart-total { font-size: 18px; margin-top: 2px; font-family: var(--display); }
.field-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #6b7785; }
.btn-red, .btn-ghost {
  cursor: pointer; padding: 12px 14px; font-weight: 700;
  border-radius: 10px;
  font-family: var(--display);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .18s ease;
}
.btn-red {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 115, 196, .25);
}
.btn-red:hover {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(20, 115, 196, .35);
  box-shadow: 0 8px 18px rgba(12, 40, 72, .08);
}
.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(20, 115, 196, .25);
}
.remove-btn {
  border: 0; background: transparent; color: var(--danger); cursor: pointer;
  font-size: 13px; font-weight: 700;
}

/* Footer */
.ftr {
  background: linear-gradient(180deg, #0f1720 0%, #0b121a 100%);
  color: #c9d3de;
  padding: 34px 0 40px;
  margin-top: 28px;
}
.ftr__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px;
}
.ftr__logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(1.05);
}
.ftr__tag { margin: 0; color: #8fa0b3; font-size: 14px; max-width: 280px; }
.ftr h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ftr a { display: block; color: #aebccd; margin: 5px 0; font-size: 14px; }
.ftr a:hover { color: #fff; }
.ftr p { margin: 4px 0; font-size: 14px; color: #8fa0b3; }

/* AI assistant widget */
.ai-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-glow));
  box-shadow: 0 12px 28px rgba(12, 79, 140, .35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-toggle__icon {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}
.ai-panel {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 61;
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 680px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12, 40, 72, .22);
  overflow: hidden;
}
.ai-panel[hidden] {
  display: none !important;
}
.ai-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0c4f8c, #2aa0e8);
  color: #fff;
}
.ai-panel__head strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
}
.ai-panel__head span { font-size: 13px; opacity: .9; }
.ai-panel__close {
  border: 0;
  background: rgba(255,255,255,.16);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.ai-messages {
  padding: 14px;
  overflow: auto;
  display: grid;
  gap: 10px;
  background: #f7fafc;
  min-height: 220px;
  flex: 1;
}
.ai-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.ai-msg--assistant {
  background: #fff;
  border: 1px solid var(--line);
  justify-self: start;
}
.ai-msg--user {
  background: var(--brand-soft);
  border: 1px solid #cfe4f6;
  justify-self: end;
}
.ai-offers {
  border-top: 1px solid var(--line);
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: #fff;
}
.ai-offers__title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}
.ai-offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.ai-offer strong { font-size: 14px; }
.ai-offer span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.ai-offer em { font-style: normal; font-weight: 700; color: var(--brand-deep); }
.ai-offer small {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}
.ai-offer:hover { border-color: var(--brand); background: #f7fbff; }
.vin-offer__stocks .is-approx { color: #c48a00; font-weight: 700; }
.ai-actions {
  padding: 0 12px 8px;
  background: #fff;
}
.ai-actions .btn-red { width: 100%; }
.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-form input {
  border: 1px solid rgba(185, 205, 224, .9);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 15px;
  background: linear-gradient(180deg, #fff 0%, #f5f9fc 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ai-form input:focus {
  outline: none;
  border-color: #7eb6e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 115, 196, .14);
}

/* Account / partner / promo */
.account-page { padding-bottom: 40px; }
.page-lead {
  margin: -6px 0 22px;
  color: var(--muted);
  max-width: 640px;
  font-size: 16px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.account-form {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.account-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.account-form input,
.account-form select,
.account-form textarea,
.order-form input,
.order-form select,
.order-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
}
.account-meta { margin: 4px 0; font-size: 15px; }
.account-meta.muted, .muted { color: var(--muted); }
.account-form .opt {
  font-weight: 500;
  color: var(--muted);
}
.account-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.account-userbar__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.account-userbar__who strong {
  font-family: var(--display);
  font-size: 18px;
}
.account-userbar__who span {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-block {
  margin-bottom: 28px;
}
.account-block__head {
  margin-bottom: 14px;
}
.account-block__head h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 22px;
}
.account-block__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.account-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.account-forgot {
  margin: 0;
  font-size: 14px;
}
.account-forgot a { color: var(--accent, #0b5cab); }
.account-form--narrow {
  max-width: 420px;
}
.garage-add {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}
.garage-add input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}
.garage-add .status,
.garage-add--promo .status {
  grid-column: 1 / -1;
}
.garage-add--promo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}
.garage-add--promo .promo-admin__first {
  grid-column: 1 / -2;
  align-self: center;
}
.garage-list { display: grid; gap: 10px; }
.promo-admin__list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.promo-admin__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.promo-admin__item:last-child { border-bottom: 0; }
.promo-admin__item.is-off { opacity: 0.55; }
.promo-admin__code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.promo-admin__code code {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 16px;
}
.promo-admin__code span {
  font-weight: 700;
  color: var(--ok);
}
.promo-admin__code em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
.promo-admin__create {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.promo-admin__create summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}
.promo-admin__create summary::-webkit-details-marker { display: none; }
.promo-admin__create[open] summary { color: inherit; margin-bottom: 4px; }
.garage-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.garage-vin {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .04em;
  margin-top: 4px;
}
.garage-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.cities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.city-chip {
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #f3f8fc);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.city-chip strong {
  font-family: var(--display);
  font-size: 15px;
}
.city-chip span { font-size: 13px; color: var(--muted); }
.city-chip.is-soon {
  opacity: .72;
  background: #f7f7f8;
}
.legal-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  font-weight: 500 !important;
  line-height: 1.4;
  color: var(--muted);
}
.legal-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}
.legal-check a {
  color: var(--accent, #0b5cab);
  text-decoration: underline;
}
.legal-page .legal-back,
.help-page .legal-back {
  margin: 0 0 8px;
  font-size: 14px;
}
.legal-body {
  padding: 22px 24px;
  line-height: 1.55;
  font-size: 15px;
}
.legal-body h2 {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: 18px;
}
.legal-body p,
.legal-body li { margin: 0 0 10px; }
.legal-body ul,
.legal-body ol { padding-left: 1.2em; margin: 0 0 12px; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.help-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.help-card:hover {
  border-color: var(--accent, #0b5cab);
  transform: translateY(-1px);
}
.help-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.help-faq {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}
.help-faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0 6px;
}
.help-faq details:first-of-type { border-top: 0; padding-top: 0; }
.help-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.help-faq p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.help-contact {
  margin-top: 18px;
  font-size: 15px;
}
@media (max-width: 960px) {
  .help-grid { grid-template-columns: 1fr; }
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.promo-hint {
  font-size: 13px;
  color: var(--ok);
  margin-top: -4px;
}
.cart-total--discount {
  color: var(--ok);
  font-size: 16px;
}

@media (max-width: 960px) {
  body {
    font-size: 16px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body.is-menu-open { overflow: hidden; }
  .container { width: min(1240px, calc(100% - 20px)); }
  .main { padding: 14px 0 28px; }

  /* Header: logo + city chip + menu — воздух как у нормальных мобильных витрин */
  .hdr-top {
    background: rgba(255, 255, 255, .96);
  }
  .hdr-top__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 0 6px;
  }
  .hdr-nav,
  .phone--top,
  .hdr-utils__desktop { display: none !important; }
  .logo { flex: 0 0 auto; }
  .logo__img { height: 30px; max-width: 118px; }
  .hdr-utils {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
  }
  .city-picker {
    min-width: 0;
    margin-right: 0;
    flex: 0 1 auto;
    max-width: 42vw;
  }
  .city-picker__label { display: none; }
  .city-picker select {
    width: 100%;
    max-width: none;
    min-height: 38px;
    padding: 7px 28px 7px 12px;
    font-size: 13px;
    border-radius: 999px;
    background-color: #f3f7fb;
    border-color: transparent;
  }
  .hdr-menu-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border-color: transparent;
    background: #f3f7fb;
  }

  /* Search: one clean pill like big shops — без «Кат.» слева */
  .hdr-search {
    padding: 4px 0 12px;
    background: transparent;
    border-bottom: 0;
  }
  .hdr-search__inner { gap: 0; }
  .hdr-search__links { display: none; }
  .catalogs-wrap { display: none; }
  .search-form {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 0;
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 8px 22px rgba(12, 40, 72, .08);
    background: #fff;
  }
  .search-form:focus-within {
    box-shadow:
      0 0 0 3px rgba(20, 115, 196, .16),
      0 8px 22px rgba(12, 40, 72, .1);
  }
  .search-form input {
    padding: 13px 8px 13px 18px;
    font-size: 16px;
  }
  .search-form .btn-vin-scan {
    height: 40px;
    padding: 0 8px;
    max-width: 44px;
    margin-right: 2px;
  }
  .search-form .btn-vin-scan span { display: none; }
  .search-form .btn-vin-scan.is-hidden { max-width: 0; }
  .btn-search {
    width: 46px;
    flex: 0 0 46px;
    margin: 3px 3px 3px 0;
    border-radius: 999px;
  }

  /* Mobile menu sheet */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
  }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, .46);
  }
  .mobile-menu__sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(12, 40, 72, .18);
    display: flex;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    animation: msheet-in .22s ease;
  }
  @keyframes msheet-in {
    from { transform: translateX(18px); opacity: .6; }
    to { transform: none; opacity: 1; }
  }
  .mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu__head strong {
    font-family: var(--display);
    font-size: 16px;
  }
  .mobile-menu__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f2f6fa;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--brand-deep);
  }
  .mobile-menu__nav {
    display: grid;
    gap: 2px;
    padding: 10px 10px 20px;
    overflow: auto;
  }
  .mobile-menu__nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 650;
    font-size: 15px;
  }
  .mobile-menu__nav a:active,
  .mobile-menu__nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
  .mobile-menu__phone {
    margin-top: 8px;
    color: var(--brand-dark) !important;
  }

  /* Bottom tab bar */
  .mnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(217, 226, 236, .95);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(12, 40, 72, .06);
  }
  .mnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px 2px;
    border-radius: 12px;
    color: #6b7c8f;
    text-decoration: none !important;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--display);
    letter-spacing: -.01em;
  }
  .mnav__item svg {
    width: 22px;
    height: 22px;
  }
  .mnav__item.is-active {
    color: var(--brand-dark);
    background: rgba(20, 115, 196, .08);
  }
  .mnav__item.has-items span { color: var(--brand-dark); }

  /* Landing — логотип уже в хедере; hero под абсолютным хедером */
  .landing { min-height: auto; overflow: hidden; }
  .landing__shell {
    width: min(1240px, calc(100% - 20px));
    padding: 1.35rem 0 2.2rem;
  }
  .page-home .landing__shell {
    padding: calc(56px + 1.15rem) 0 2.2rem;
  }
  .page-home .hdr {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(185, 205, 224, .55);
    backdrop-filter: blur(12px);
  }
  .page-home .hdr-top {
    background: transparent;
    backdrop-filter: none;
  }
  .landing__copy { max-width: 100%; min-width: 0; gap: 0; }
  .landing__brand { display: none; }
  .landing__headline {
    margin: 0 0 .65rem;
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    letter-spacing: -.03em;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .landing__lead {
    margin: 0 0 1.2rem;
    max-width: 28rem;
    font-size: .95rem;
    line-height: 1.45;
  }
  .landing__cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .landing__btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
  }
  .landing__scroll,
  .landing__orbit,
  .landing__schematic,
  .landing__glow--c { display: none; }
  .landing__glow--a {
    width: 70vw; height: 70vw; right: -28%; top: 8%; opacity: .35;
  }
  .landing__glow--b {
    width: 55vw; height: 55vw; left: -25%; bottom: 0; opacity: .28;
  }
  .landing__wash {
    background:
      linear-gradient(180deg, rgba(247, 251, 254, .55) 0%, rgba(247, 251, 254, .9) 62%, #eef5fb 100%);
  }
  .page-home .main { padding: 0 0 18px; }

  /* Home categories */
  .home-below { padding-top: 1.4rem; }
  .catalog-section { margin: .85rem auto 1.25rem; }
  .catalog-section__title {
    font-size: 1.18rem;
    margin: 0 0 10px;
    text-align: left;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }
  .category-tile {
    min-height: 68px;
    padding: 12px;
    gap: 10px;
    align-items: center;
  }
  .category-tile:nth-child(5n) { border-right: 1px solid var(--line); }
  .category-tile:nth-child(2n) { border-right: 0; }
  .category-tile__icon { width: 34px; height: 34px; flex-basis: 34px; background-size: 20px 20px; }
  .category-tile__name { font-size: 12.5px; line-height: 1.25; }
  .home-actions { flex-direction: column; gap: 8px; }
  .home-actions a {
    width: 100%;
    text-align: center;
    min-height: 46px;
  }

  /* Layouts → column */
  .search-layout,
  .cart-layout,
  .catalog-layout,
  .catalog-layout--filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-template-columns: none;
  }
  .catalog-layout--filters .catalog-main,
  .catalog-layout--filters .catalog-side--desktop {
    grid-column: auto;
    grid-row: auto;
  }
  .catalog-layout,
  .catalog-layout--filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .catalog-main,
  .search-main,
  .search-aside {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .cat-chips {
    display: flex;
    width: 100%;
    max-width: 100%;
  }
  .seg-tabs {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .catalog-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 12px;
  }
  .catalog-side,
  .catalog-side__all { display: none !important; }
  /* Старые .catalog-tabs на мобилке тоже как seg */
  .catalog-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    border: 0;
    border-radius: 14px;
    background: #e8eef5;
    overflow: visible;
  }
  .catalog-tab {
    flex: 1 1 0;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    border-bottom: 0;
    background: transparent;
    color: #5b6b7c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .catalog-tab.is-active {
    color: var(--brand-deep);
    background: #fff;
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px rgba(12, 40, 72, .1);
  }
  .vin-panel {
    padding: 16px 16px 18px;
    border-radius: 18px;
    border-color: rgba(185, 205, 224, .7);
    box-shadow: 0 10px 28px rgba(12, 40, 72, .06);
  }
  .vin-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .vin-panel__lead {
    margin-bottom: 14px;
    font-size: 13.5px;
  }
  .vin-panel .btn-red {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  .vin-form label {
    font-size: 11px;
    letter-spacing: .06em;
  }
  .vin-form input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
  }
  .catalog-page .page-title {
    margin-bottom: 12px;
    font-size: 1.45rem;
  }
  .drawer {
    margin: 0;
    border: 1px solid rgba(185, 205, 224, .85);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(12, 40, 72, .06);
    overflow: hidden;
  }
  .drawer__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-deep);
    cursor: pointer;
  }
  .drawer__sum::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex: 0 0 auto;
    margin-top: -4px;
  }
  .drawer[open] > .drawer__sum::after {
    transform: rotate(225deg);
    margin-top: 2px;
  }
  .drawer__body { display: none !important; padding: 0 0 8px; }
  .drawer[open] > .drawer__body { display: block !important; }
  .drawer .aside-card {
    margin: 0 8px 8px;
    box-shadow: none;
  }
  .drawer .catalog-nav { margin: 0 8px 8px; }
  .drawer .brand-list { max-height: min(42vh, 280px); }
  .catalog-tools .drawer[open] { grid-column: 1 / -1; }

  /* Result cards */
  .group {
    border-radius: 14px;
    overflow: hidden;
  }
  .group__head { display: none; }
  .result-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand price"
      "info info";
    gap: 4px 12px;
    padding: 14px 14px;
    align-items: start;
  }
  .result-row__brand {
    grid-area: brand;
    font-size: 13px;
    line-height: 1.2;
    color: var(--brand-deep);
    letter-spacing: .02em;
  }
  .result-row > div:nth-child(2) {
    grid-area: info;
    min-width: 0;
  }
  .result-row > div:last-child {
    grid-area: price;
    display: grid;
    justify-items: end;
    text-align: right;
    margin-top: 0;
    gap: 2px;
  }
  .result-row__art { font-size: 15px; margin-bottom: 2px; }
  .result-row__name {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    color: var(--muted);
  }
  .result-row__price {
    text-align: right;
    font-size: 17px;
  }
  .result-row__date,
  .result-row__empty {
    text-align: right;
    font-size: 12px;
  }
  .parts-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-title {
    font-size: clamp(1.3rem, 5.2vw, 1.65rem);
    margin-bottom: 10px;
  }
  .home-hero__sub {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
  }

  /* VIN / product / cart / account */
  .brand-letter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vin-catalog { grid-template-columns: 1fr; }
  .vin-tree { max-height: 220px; }
  .vin-scheme { grid-template-columns: 1fr; }
  .vin-scheme > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .vin-scheme__img-wrap { min-height: 200px; max-height: 42vh; }
  .vin-form--inline { grid-template-columns: 1fr; }
  .vin-input-wrap { flex-wrap: wrap; }
  .vin-input-wrap .btn-vin-scan {
    width: 100%;
    justify-content: center;
    height: 42px;
    border: 1px solid rgba(185, 205, 224, .9);
    background: #f7fbff;
    opacity: 1;
  }
  .account-grid { grid-template-columns: 1fr; }
  .garage-add,
  .garage-add--promo { grid-template-columns: 1fr; }
  .garage-add--promo .promo-admin__first { grid-column: auto; }
  .account-userbar { align-items: flex-start; }
  .product-card { grid-template-columns: 1fr; gap: 14px; }
  .product-photo { min-height: 220px; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ftr { margin-top: 18px; padding-bottom: 28px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 16px; }
  .promo-row { grid-template-columns: 1fr; }
  .garage-item { grid-template-columns: 1fr; }
  .order-form,
  .account-form { min-width: 0; }
  .btn-red,
  .btn-ghost {
    min-height: 46px;
    padding: 12px 16px;
  }
  .catalog-more .btn-ghost { width: 100%; min-width: 0; }

  /* AI — FAB над mnav; открытый чат = fullscreen sheet над клавиатурой */
  .ai-toggle {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(12, 79, 140, .34);
  }
  .ai-toggle__text { display: none; }
  .ai-toggle__icon { display: inline-flex; width: 100%; height: 100%; font-size: 13px; }
  body.ai-open {
    overflow: hidden;
  }
  body.ai-open .ai-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(.86);
  }
  body.ai-open .mnav {
    display: none !important;
  }
  .ai-panel {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    z-index: 80;
  }
  .ai-panel__head {
    padding: 12px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    flex: 0 0 auto;
  }
  .ai-panel__head strong { font-size: 15px; }
  .ai-panel__head span { font-size: 12px; }
  .ai-messages {
    min-height: 0;
    flex: 1 1 auto;
    max-height: none;
    padding: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ai-offers {
    max-height: min(28vh, 160px);
    flex: 0 1 auto;
  }
  .ai-actions {
    padding: 8px 12px 0;
    flex: 0 0 auto;
  }
  .ai-actions:has(#aiCheckout[hidden]) {
    display: none;
  }
  .ai-form {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    flex: 0 0 auto;
  }
  body.ai-kb .ai-form {
    padding-bottom: 10px;
  }
  .ai-form .btn-red {
    width: auto;
    min-width: 96px;
    padding: 0 14px;
    white-space: nowrap;
  }
  .ai-form input {
    font-size: 16px; /* iOS: без автозума */
  }

  .page-title { letter-spacing: -.03em; }
  .group {
    border: 1px solid rgba(185, 205, 224, .75);
    background: #fff;
    box-shadow: 0 8px 22px rgba(12, 40, 72, .05);
  }
  .result-row + .result-row { border-top: 1px solid rgba(217, 226, 236, .85); }
  .result-row { border-bottom: 0; }

  /* На мобилке футер не должен «ломать» короткие экраны как приложение */
  .ftr {
    display: none;
  }
  .btn-red {
    color: #fff !important;
  }
  .vin-panel .btn-vin-scan {
    max-width: none;
    width: auto;
    padding: 0 12px;
  }
  .vin-panel .btn-vin-scan span { display: inline; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 16px); }
  .logo__img { height: 28px; max-width: 108px; }
  .city-picker { max-width: 42vw; }
  .landing__shell { padding: 1.1rem 0 1.8rem; }
  .page-home .landing__shell { padding: calc(52px + 1rem) 0 1.8rem; }
  .landing__headline { font-size: 1.35rem; }
  .landing__lead { font-size: .9rem; }
  .mnav__item { font-size: 10px; }
  .mnav__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
