/* ==========================================================================
   Авто+ — главная страница
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

a:hover { color: var(--text-brand); }

img { display: block; max-width: 100%; }

button { font: inherit; }

h1, h2, h3, p { margin: 0; }

svg { flex: 0 0 auto; }

/* Sprite icons inherit text color and keep lucide stroke geometry. */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-5) var(--page-pad) 0;
}

.section { margin-bottom: var(--space-10); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}

.section__head--baseline {
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--space-1) var(--space-4);
}

.section__link {
  font-size: var(--type-ui-size);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

/* ---------- Typography helpers ---------- */
.h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-lh);
  letter-spacing: var(--type-h1-ls);
  font-weight: var(--type-h1-weight);
}

.h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-ls);
  font-weight: var(--type-h2-weight);
}

.h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-lh);
  letter-spacing: var(--type-h3-ls);
  font-weight: var(--type-h3-weight);
}

.display {
  font-size: var(--type-display-size);
  line-height: var(--type-display-lh);
  letter-spacing: var(--type-display-ls);
  font-weight: var(--type-display-weight);
}

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.caption { font-size: var(--type-caption-size); line-height: var(--type-caption-lh); }

.micro {
  font-size: var(--type-micro-size);
  line-height: var(--type-micro-lh);
  letter-spacing: var(--type-micro-ls);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.sku {
  font-family: var(--font-mono);
  font-size: var(--type-code-size);
  letter-spacing: var(--type-code-ls);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--action-primary);
  color: var(--text-inverse);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-lh);
  font-weight: var(--type-ui-weight);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.btn:hover { background: var(--action-primary-hover); color: var(--text-inverse); }
.btn:active { background: var(--action-primary-press); }

.btn--secondary {
  background: var(--white);
  border-color: var(--border-default);
  color: var(--text-heading);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.btn--brand { background: var(--action-brand); }
.btn--brand:hover { background: var(--action-brand-hover); }
.btn--brand:active { background: var(--action-brand-press); }

.btn--inverse {
  background: rgba(255, 255, 255, .12);
  border-color: var(--border-inverse);
  color: var(--text-inverse);
  backdrop-filter: blur(6px);
}

.btn--inverse:hover { background: rgba(255, 255, 255, .22); }

.btn--ghost { background: transparent; color: var(--text-heading); }
.btn--ghost:hover { background: var(--surface-hover); color: var(--text-heading); }

.btn--sm { height: 32px; padding: 0 var(--space-4); font-size: var(--type-caption-size); }
.btn--lg { height: 48px; padding: 0 var(--space-6); font-size: var(--type-body-lg-size); }
.btn--block { width: 100%; }

/* ---------- Icon button ---------- */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-heading);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.icon-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.icon-btn--sm { width: 34px; height: 34px; }

.icon-btn--floating {
  background: rgba(255, 255, 255, .92);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.icon-btn.is-active { color: var(--text-brand); border-color: var(--red-100); background: var(--red-050); }
.icon-btn.is-active svg { fill: currentColor; }

.icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--surface-brand);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.icon-btn__badge[hidden] { display: none; }

/* ---------- Search bar ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-2) 0 var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.searchbar:focus-within { border-color: var(--border-focus); }

.searchbar__icon { color: var(--text-subtle); }

.searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-size: var(--type-body-size);
  color: var(--text-heading);
}

.searchbar__input::placeholder { color: var(--text-subtle); }
.searchbar__input:focus { outline: none; }

/* ---------- Field (input / select) ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--type-caption-size);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.input,
.select {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--text-heading);
  font-family: inherit;
  font-size: var(--type-body-size);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.input::placeholder { color: var(--text-subtle); }

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.select {
  appearance: none;
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  cursor: pointer;
}

.select:disabled { background-color: var(--surface-app); color: var(--text-subtle); cursor: not-allowed; }

.input--inverse {
  background: rgba(255, 255, 255, .08);
  border-color: var(--border-inverse);
  color: var(--text-inverse);
}

.input--inverse::placeholder { color: rgba(255, 255, 255, .55); }
.input--inverse:focus { border-color: rgba(255, 255, 255, .6); }

/* ---------- Badge / Tag / Price ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--type-caption-size);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.badge--success { background: var(--success-100); color: var(--success-500); }
.badge--warning { background: var(--warning-100); color: #8A6200; }
.badge--danger { background: var(--danger-100); color: var(--danger-500); }
.badge--info { background: var(--info-100); color: var(--info-500); }
.badge--brand { background: var(--surface-brand); color: var(--text-inverse); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--type-caption-size);
  font-weight: var(--fw-semibold);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.tag:hover {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--text-inverse);
}

.price {
  font-size: var(--type-price-size);
  font-weight: var(--type-price-weight);
  letter-spacing: var(--type-price-ls);
  color: var(--text-price);
  white-space: nowrap;
}

/* ---------- Media plate ---------- */
.media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-media);
  border-radius: var(--radius-media);
  color: var(--ink-400);
  overflow: hidden;
}

.media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--16x10 { aspect-ratio: 16 / 10; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: relative;
  z-index: 3;
  margin-bottom: -84px;
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) 22px;
  padding: 10px var(--space-6);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-app);
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--type-caption-size);
  color: var(--text-muted);
}

.topbar__item svg { color: var(--ink-400); }

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.topbar__phone {
  font-size: var(--type-caption-size);
  font-weight: var(--fw-semibold);
}

.topbar__social {
  font-size: var(--type-caption-size);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

.header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: var(--space-4) var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header__logo img { height: 34px; width: auto; }

.header__search { flex: 1 1 460px; min-width: 280px; }

.header__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.header__phone-number {
  font-size: 15px;
  font-weight: var(--fw-bold);
  letter-spacing: -.01em;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header__burger { display: none; }

/* Короткие часы и кнопка звонка — только для узких экранов. */
.topbar__hours-short { display: none; }
.header__call { display: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) 26px;
  padding: 0 var(--space-6) var(--space-4);
}

.nav__link {
  font-size: var(--type-ui-size);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

.nav__link--active {
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: linear-gradient(120deg, #DDDDDD, #BDBDBD 55%, #9E9E9E);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  /* Вертикальная затемняющая подложка макета плюс левый клин под заголовок. */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .12) 70%, rgba(0, 0, 0, .05) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .45) 100%);
}

.hero__body {
  position: relative;
  padding: 120px 56px 64px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__badge { align-self: flex-start; }

.hero__title {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: var(--fw-extrabold);
  color: var(--text-inverse);
  text-wrap: pretty;
}

.hero__text {
  max-width: 560px;
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-lh);
  color: rgba(255, 255, 255, .88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Vehicle picker
   ========================================================================== */
.picker {
  position: relative;
  z-index: 2;
  margin: -46px var(--space-6) var(--space-10);
  padding: 26px 30px;
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  align-items: end;
}

.picker__submit { align-self: end; }

.picker__vin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.picker__vin svg { color: var(--text-muted); }

.picker__vin-text { font-size: 13px; color: var(--text-muted); }

.picker__vin-action { margin-left: auto; }

.picker__result {
  font-size: 13px;
  color: var(--success-500);
  font-weight: var(--fw-semibold);
}

.picker__result[hidden] { display: none; }

/* ==========================================================================
   Categories / brands
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-tile__name {
  font-size: 15px;
  font-weight: var(--fw-semibold);
}

.cat-tile:hover .media { background: var(--ink-200); }
.cat-tile:hover .media svg { color: var(--ink-500); }

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

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 84px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  font-size: var(--type-h3-size);
  font-weight: var(--fw-extrabold);
  letter-spacing: -.02em;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.brand-tile:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.brand-tile--dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--text-inverse);
  font-size: var(--type-ui-size);
  font-weight: var(--fw-bold);
}

.brand-tile--dark:hover { background: var(--ink-800); border-color: var(--ink-800); color: var(--text-inverse); }

/* ==========================================================================
   Products
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  row-gap: var(--space-7);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product__badge { position: absolute; top: 10px; left: 10px; }
.product__fav { position: absolute; top: 8px; right: 8px; }

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 10px;
  font-size: var(--type-caption-size);
  color: var(--text-muted);
}

.product__fit { font-size: var(--type-caption-size); color: var(--text-subtle); }

.product__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

/* ==========================================================================
   Moto band / vehicles / features
   ========================================================================== */
.band {
  background: var(--surface-app);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}

.band__head { margin-bottom: var(--space-2); }

.band__text {
  margin-bottom: 22px;
  max-width: 620px;
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.vehicle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vehicle__name {
  font-size: var(--type-h3-size);
  font-weight: var(--fw-bold);
  letter-spacing: -.012em;
}

.vehicle__note { font-size: 13px; color: var(--text-muted); }

.vehicle:hover .media { background: var(--ink-200); }

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

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.feature svg { color: var(--text-brand); }

.feature__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Request band (dark CTA)
   ========================================================================== */
.request {
  background: var(--surface-inverse);
  border-radius: var(--radius-card);
  padding: var(--space-9) var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.request__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request__title { color: var(--text-inverse); text-wrap: balance; }

.request__text {
  max-width: 380px;
  font-size: var(--type-body-size);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.request__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.request__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}

.request__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-1);
}

.request__note { font-size: var(--type-caption-size); color: rgba(255, 255, 255, .62); }

.request__status {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #7BE0AA;
}

.request__status[hidden] { display: none; }

/* ==========================================================================
   Shops
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.shop {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.shop__phones {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.shop__phones a { font-size: 15px; font-weight: var(--fw-bold); }

.shop__hours {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.shop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.map-placeholder {
  min-height: 240px;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: var(--space-8) 0 var(--space-9);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-7);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__brand img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
}

.footer__about {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.footer__col a,
.footer__col span:not(.footer__col-title) {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__col a.is-strong { color: var(--text-heading); font-weight: var(--fw-semibold); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}

.footer__legal span,
.footer__legal a {
  font-size: var(--type-caption-size);
  color: var(--text-subtle);
}

/* ==========================================================================
   Demo note
   ========================================================================== */
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: var(--space-8) 0 var(--space-7);
  padding: 14px var(--space-5);
  border: 1px solid var(--border-warning);
  border-radius: var(--radius-lg);
  background: var(--surface-warning);
}

.demo-note__icon {
  color: var(--text-warning);
  margin-top: 1px;
}

.demo-note__text {
  font-size: var(--type-caption-size);
  line-height: 1.5;
  color: var(--text-muted);
}

.demo-note__text strong { color: var(--text-heading); }

/* ==========================================================================
   Modal (VIN)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--overlay-scrim);
}

.modal[hidden] { display: none; }

.modal__dialog {
  width: 100%;
  max-width: 460px;
  padding: var(--space-7);
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.modal__close {
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
  line-height: 0;
}

.modal__close:hover { color: var(--text-heading); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  z-index: 60;
  transform: translate(-50%, 20px);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__title { font-size: 44px; }
  .hero__body { padding: 100px var(--space-8) var(--space-9); }
  .request { padding: var(--space-8); }
}

@media (max-width: 860px) {
  :root { --page-pad: 16px; }

  .header { margin-bottom: -60px; border-radius: var(--radius-lg); }

  .topbar {
    gap: 6px 14px;
    padding: 8px var(--space-4);
  }

  /* Полное расписание слишком длинное для одной строки — остаётся короткое. */
  .topbar__item--hours .topbar__hours-full { display: none; }
  .topbar__hours-short { display: inline; }
  .topbar__links { gap: 14px; }

  /* Первая строка — логотип и действия, вторая — поиск во всю ширину. */
  .header__bar {
    gap: 12px;
    padding: 12px var(--space-4);
  }

  .header__logo { order: 1; margin-right: auto; }
  .header__logo img { height: 30px; }
  .header__actions { order: 2; gap: 8px; }
  .header__burger { order: 3; display: inline-flex; }
  .header__search { order: 4; flex: 1 1 100%; min-width: 0; }

  .header__phone { display: none; }
  .header__catalog { display: none; }
  .header__contact { display: none; }
  .header__call { display: inline-flex; }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.is-open { display: flex; }

  .nav__link {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-default);
    font-size: var(--type-body-lg-size);
  }

  .hero {
    min-height: 0;
    border-radius: var(--radius-lg);
  }

  /* Левый клин заголовку на мобильном не нужен: текст лежит на всю ширину. */
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(0, 0, 0, .34) 0%,
      rgba(0, 0, 0, .52) 42%,
      rgba(0, 0, 0, .80) 100%);
  }

  .hero__image { object-position: 62% 50%; }

  .hero__body {
    /* Снизу запас под панель подбора, которая заезжает на hero на -36px. */
    padding: 88px var(--space-5) 64px;
    max-width: none;
    gap: var(--space-4);
  }

  .hero__title { font-size: 32px; letter-spacing: -.02em; }
  .hero__text { font-size: var(--type-body-size); max-width: none; }

  .hero__actions {
    gap: 10px;
    margin-top: var(--space-2);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .picker {
    margin: -36px 0 var(--space-8);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }

  .picker__vin-action { margin-left: 0; width: 100%; }
  .picker__vin-action .btn { width: 100%; }

  .section { margin-bottom: var(--space-8); }
  .band { padding: var(--space-5); }
  .request { padding: var(--space-6); gap: var(--space-6); }
  .display { font-size: var(--type-h1-size); }
  .h1 { font-size: 26px; }

  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); row-gap: var(--space-6); }
  .product h3 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
