/* Homepage presentation layer.
 *
 * All selectors are scoped to the homepage so the catalogue and service
 * templates keep their existing visual contracts.  The component classes are
 * intentionally small: the existing filter, Embla and Commerce markup can
 * live inside these sections without a second runtime.
 */
body.is-home {
  --st-color-primary: #0878d8;
  --st-color-primary-hover: #0668bd;
  --st-color-heading: #0b315c;
  --st-color-text: #27364a;
  --st-color-muted: #6b7787;
  --st-color-success: #168a45;
  --st-color-warning: #f59e0b;
  --st-color-promo: #e5484d;
  --st-color-border: #dfe6ee;
  --st-color-surface: #fff;
  --st-color-surface-soft: #f4f8fc;
  --st-color-surface-blue: #eaf5ff;
  --st-home-radius-card: 16px;
  --st-home-radius-control: 12px;
  --st-home-shadow: 0 2px 8px rgb(11 49 92 / 6%);
  --st-home-shadow-raised: 0 12px 32px rgb(11 49 92 / 12%);
  --st-home-nav-height: 68px;
  color: var(--st-color-text);
  background: var(--st-color-surface);
}

body.is-home .st-home {
  overflow: clip;
  padding-bottom: 24px;
  font-family: var(--st-font, "Roboto", sans-serif);
}

body.is-home .st-home :where(h1, h2, h3, h4) {
  margin-top: 0;
  color: var(--st-color-heading);
  font-family: var(--st-font-head, "Montserrat", sans-serif);
  line-height: 1.2;
}

body.is-home .st-home :where(a) {
  color: var(--st-color-primary);
}

body.is-home .st-home :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgb(8 120 216 / 30%);
  outline-offset: 2px;
}

body.is-home .st-home :where(button, input, select, textarea) {
  font: inherit;
}

/* Keep the existing header controls and breakpoints, adding only a calmer
 * homepage surface and reliable touch targets for its actions. */
body.is-home .site-header {
  position: relative;
  z-index: 1100;
  border-bottom: 1px solid var(--st-color-border);
  background: #fff;
}

body.is-home .site-header .headTop {
  min-height: 76px;
  gap: 16px;
}

body.is-home .site-header .site-logo {
  flex: 0 0 auto;
}

body.is-home .site-header .site-logo img {
  max-height: 48px;
}

body.is-home .site-header .headerSearch-input {
  min-height: 48px;
  border-color: var(--st-color-border);
  border-radius: var(--st-home-radius-control);
}

body.is-home .site-header .headActions :where(a, button, .header-cart, .header-cart > *) {
  min-width: 44px;
  min-height: 44px;
}

body.is-home .site-header .headActions :where(a, button) {
  border-radius: 10px;
}

body.is-home .site-header .headActions :where(a, button):hover {
  color: var(--st-color-primary);
}

/* Hero: one primary buying task, supported by a service offer. */
body.is-home .st-home-hero { padding: 32px 0 20px; background: #f1f5f9; }
body.is-home .st-home-hero__inner { max-width: 1320px; margin: auto; padding: 0 24px; }
body.is-home .st-home-hero__copy { margin-bottom: 24px; }
body.is-home .st-home-hero__copy .st-home-hero__eyebrow { margin: 0 0 10px; color: #526b85; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
body.is-home .st-home-hero__copy h1 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -.045em; }
body.is-home .st-home-hero__copy h1 span { color: #0878d8; }
body.is-home .st-home-hero__lead { margin: 0; color: #526176; font-size: 16px; line-height: 1.5; }
body.is-home .st-home-hero__body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body.is-home .st-home-hero__promo { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 370px; height: 100%; overflow: hidden; padding: 26px; border-radius: 18px; color: #fff; background: linear-gradient(180deg, rgb(7 27 49 / 12%) 0%, rgb(7 27 49 / 35%) 35%, #071b31 100%), url('../img/homepage/hero-winter-768.webp') center 45% / cover; }
body.is-home .st-home-hero__badge { align-self: start; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 6px; background: rgb(7 27 49 / 55%); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
body.is-home .st-home-hero__offer { margin-top: 70px; }
body.is-home .st-home-hero__offer h2 { margin-bottom: 12px; color: #fff; font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.03em; }
body.is-home .st-home-hero__offer p { margin-bottom: 20px; color: #e4ebf3; font-size: 14px; line-height: 1.6; }
body.is-home .st-home-hero__offer a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 8px; background: #fff; color: #103355; font-size: 14px; font-weight: 700; text-decoration: none; }
body.is-home .st-home-hero__offer a:hover { background: #eaf5ff; }
body.is-home .st-home-hero__trust { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 20px; }
body.is-home .st-home-hero__trust a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #384f68; font-size: 13px; text-decoration: none; }
body.is-home .st-home-hero__trust a:hover { color: #0878d8; }
body.is-home .st-home-hero__trust img { opacity: .75; }
body.is-home .st-home-hero__trust a span { color: #0878d8; }

/* Finder/search primitives */
body.is-home .st-home-finders {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-home .st-home-finders > .container {
  max-width: none;
  padding: 0;
}

body.is-home .st-home-finder {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: var(--st-color-surface);
  box-shadow: var(--st-home-shadow-raised);
}

body.is-home .st-home-finder > :first-child {
  margin-top: 0;
}

body.is-home .st-home-finder :where(h2, h3) {
  margin-bottom: 14px;
  font-size: 20px;
}

body.is-home .st-home :where(.filterForm, .filter-form, .st-home-finder form) {
  min-width: 0;
}

body.is-home .st-home :where(.filterForm input, .filterForm select, .filterForm .select2-selection, .st-home-finder input, .st-home-finder select) {
  min-height: 48px;
  border-radius: var(--st-home-radius-control);
}

body.is-home .st-home :where(.filterForm button, .filterForm .shopBtn-1, .filterForm .btn, .st-home-finder button) {
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--st-home-radius-control);
}

body.is-home .st-home :where(.filterForm .btn-primary, .filterForm .shopBtn-1, .st-home-finder .btn-primary, .st-home-finder .shopBtn-1) {
  border-color: var(--st-color-primary);
  background: var(--st-color-primary);
  color: #fff;
}

body.is-home .st-home-finder .filterResult {
  color: #fff;
  text-decoration: none;
}

body.is-home .st-home :where(.filterForm .btn-primary, .filterForm .shopBtn-1, .st-home-finder .btn-primary, .st-home-finder .shopBtn-1):hover {
  border-color: var(--st-color-primary-hover);
  background: var(--st-color-primary-hover);
}

/* Trust and discovery sections */
body.is-home .st-home-benefits {
  max-width: 1320px;
  margin: 28px auto 0;
  padding: 0 24px;
}

body.is-home .st-home-benefits > .container {
  max-width: none;
  padding: 0;
}

body.is-home .st-home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.is-home .st-home-benefit {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: var(--st-color-surface);
  box-shadow: var(--st-home-shadow);
}

body.is-home .st-home-benefit > img {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  object-fit: contain;
}

body.is-home .st-home-benefit :where(h3, strong, .st-home-benefit__title) {
  display: block;
  margin-bottom: 6px;
  color: var(--st-color-heading);
  font-size: 16px;
  font-weight: 700;
}

body.is-home .st-home-benefit :where(p, .st-home-benefit__text) {
  margin: 0;
  color: var(--st-color-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.is-home .st-home-products,
body.is-home .st-home-vehicle,
body.is-home .st-home-services,
body.is-home .st-home-brands,
body.is-home .st-home-news {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

body.is-home .st-home-products > :where(h2, .itemsBlock-head h2),
body.is-home .st-home-vehicle > :where(h2, h3),
body.is-home .st-home-services > :where(h2, h3),
body.is-home .st-home-brands > :where(h2, h3),
body.is-home .st-home-news > :where(h2, h3) {
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

/* Existing product cards/Embla inside the homepage section. */
body.is-home .st-home-products :where(.embla__container) {
  align-items: stretch;
}

body.is-home .st-home-products :where(.embla__slide) {
  display: flex;
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
}

body.is-home .st-home-products :where(.item) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
  box-shadow: var(--st-home-shadow);
}

body.is-home .st-home-products :where(.item-grid-main) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

body.is-home .st-home-products :where(.item-grid-media) {
  position: relative;
  aspect-ratio: 1.2;
  background: var(--st-color-surface-soft);
}

body.is-home .st-home-products :where(.item-grid-photo) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.is-home .st-home-products :where(.item-grid-body) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px 16px 8px;
}

body.is-home .st-home-products :where(.itemBrand, .itemModel, .itemText) {
  margin: 0 0 4px;
  line-height: 1.4;
}

body.is-home .st-home-products :where(.itemBrand) {
  color: var(--st-color-muted);
  font-size: 13px;
}

body.is-home .st-home-products :where(.itemModel, .itemText) {
  color: var(--st-color-heading);
  font-size: 15px;
  font-weight: 600;
}

body.is-home .st-home-products :where(.mainPriceBlock) {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--st-color-heading);
}

body.is-home .st-home-products :where(.rubPrice) {
  font-size: 24px;
  font-weight: 700;
}

body.is-home .st-home-products :where(.item-grid-stock) {
  margin: 8px 0 0;
  color: var(--st-color-success);
  font-size: 13px;
}

body.is-home .st-home-products :where(.item-grid-buy) {
  display: flex;
  padding: 0 16px 16px;
}

body.is-home .st-home-products :where(.item-grid-buy .shopBtn-1) {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--st-color-primary);
  border-radius: var(--st-home-radius-control);
  background: var(--st-color-primary);
  color: #fff;
  font-weight: 700;
}

body.is-home .st-home-products :where(.item-grid-compare) {
  min-width: 44px;
  min-height: 44px;
}

/* Vehicle and service cards */
body.is-home .st-home-vehicle {
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-radius: var(--st-home-radius-card);
  background: var(--st-color-surface-blue);
}

body.is-home .st-home-vehicle :where(form) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.is-home .st-home-vehicle :where(label) {
  display: block;
  margin-bottom: 6px;
  color: var(--st-color-heading);
  font-size: 13px;
  font-weight: 700;
}

body.is-home .st-home-vehicle :where(input, select, .select2-selection) {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-control);
  background: #fff;
}

body.is-home .st-home-vehicle :where(button, .btn) {
  align-self: end;
  min-height: 48px;
  border: 1px solid var(--st-color-primary);
  border-radius: var(--st-home-radius-control);
  background: var(--st-color-primary);
  color: #fff;
  font-weight: 700;
}

body.is-home .st-home-services,
body.is-home .st-home-brands,
body.is-home .st-home-news {
  padding-top: 40px;
}

body.is-home .st-home-services {
  display: block;
}

body.is-home .st-home-services > .container {
  max-width: none;
  padding: 0;
}

body.is-home .st-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.is-home .st-home-service {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
  box-shadow: var(--st-home-shadow);
}

body.is-home .st-home-service :where(h3, .st-home-service__title) {
  margin: 0 0 8px;
  font-size: 18px;
}

body.is-home .st-home-service :where(p, .st-home-service__text) {
  margin: 0 0 16px;
  color: var(--st-color-muted);
  line-height: 1.5;
}

body.is-home .st-home-service > span {
  display: block;
  margin-top: 6px;
  color: var(--st-color-muted);
  line-height: 1.5;
}

body.is-home .st-home-service :where(a:last-child) {
  margin-top: auto;
  font-weight: 700;
}

body.is-home .st-home-brands :where(.embla__slide) {
  flex: 0 0 16.666%;
}

body.is-home .st-home-brands > .container,
body.is-home .st-home-news > .container {
  max-width: none;
  padding: 0;
}

body.is-home .st-home-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

body.is-home .st-home-brands__grid > a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
}

body.is-home .st-home-brands__grid img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

body.is-home .st-home-brands :where(.embla__slide a) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
}

body.is-home .st-home-brands :where(img) {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

body.is-home .st-home-news :where(.embla__slide) {
  flex: 0 0 33.333%;
}

body.is-home .st-home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.is-home .st-home-news__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
  box-shadow: var(--st-home-shadow);
  color: inherit;
  text-decoration: none;
}

body.is-home .st-home-news__card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

body.is-home .st-home-news__card :where(span, time) {
  display: block;
  padding: 12px 16px 0;
}

body.is-home .st-home-news__card time {
  padding-bottom: 16px;
  color: var(--st-color-muted);
  font-size: 13px;
}

body.is-home .st-home-news :where(.newsBlockItem) {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  background: #fff;
  box-shadow: var(--st-home-shadow);
}

body.is-home .st-home-news :where(.newsImage) {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

body.is-home .st-home-news :where(.newsTitle, .newsDesc, .newsDate) {
  display: block;
  padding: 0 16px;
}

body.is-home .st-home-news :where(.newsTitle) {
  padding-top: 14px;
  color: var(--st-color-heading);
  font-weight: 700;
}

body.is-home .st-home-news :where(.newsDesc, .newsDate) {
  color: var(--st-color-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.is-home .st-home-news :where(.newsDate) {
  padding-bottom: 16px;
}

/* Mobile bottom navigation; the root receives enough space to avoid overlap. */
body.is-home .st-home-bottom-nav {
  display: none;
}

@media (max-width: 1199.98px) {
  body.is-home .fittingFab-textFull {
    display: none;
  }

  body.is-home .st-home-products :where(.embla__slide) {
    flex-basis: calc(33.333% - 11px);
  }

  body.is-home .st-home-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-home .st-home-vehicle :where(form) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-home .st-home-vehicle :where(button, .btn) {
    grid-column: 1 / -1;
  }

  body.is-home .st-home-brands :where(.embla__slide) {
    flex-basis: 20%;
  }

  body.is-home .st-home-brands__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.is-home .st-home-news :where(.embla__slide) {
    flex-basis: 50%;
  }

  body.is-home .st-home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.is-home {
    --st-home-nav-height: 64px;
  }

  body.is-home .st-home {
    padding-bottom: calc(var(--st-home-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
  }

  body.is-home .st-home-finders {
    margin-top: 0;
    padding: 0;
  }

  body.is-home .st-home-finder {
    padding: 16px;
  }

  body.is-home .st-home-finders .st-home-section-head {
    margin-bottom: 12px;
  }

  body.is-home .st-home-finders .st-home-section-head > :where(p) {
    margin-bottom: 4px;
  }

  body.is-home .st-home-benefits {
    margin-top: 16px;
    padding: 0 16px;
  }

  body.is-home .st-home-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.is-home .st-home-benefit {
    min-height: 0;
    padding: 14px;
  }

  body.is-home .st-home-benefit :where(h3, strong, .st-home-benefit__title) {
    font-size: 14px;
  }

  body.is-home .st-home-benefit :where(p, .st-home-benefit__text) {
    font-size: 13px;
  }

  body.is-home .st-home-products,
  body.is-home .st-home-vehicle,
  body.is-home .st-home-services,
  body.is-home .st-home-brands,
  body.is-home .st-home-news {
    padding: 32px 16px 0;
  }

  body.is-home .st-home-products :where(.embla__slide) {
    flex-basis: 86%;
  }

  body.is-home .st-home-products :where(.item-grid-photo) {
    max-height: 230px;
  }

  body.is-home .st-home-vehicle {
    margin: 32px 16px 0;
    padding: 24px 16px;
  }

  body.is-home .st-home-vehicle :where(form) {
    display: flex;
    flex-direction: column;
  }

  body.is-home .st-home-vehicle :where(button, .btn) {
    width: 100%;
  }

  body.is-home .st-home-services__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.is-home .st-home-services__grid > :first-child {
    order: -1;
  }

  body.is-home .st-home-brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-home .st-home-news__grid {
    grid-template-columns: 1fr;
  }

  body.is-home .st-home-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    min-height: var(--st-home-nav-height);
    align-items: stretch;
    justify-content: space-around;
    padding: 6px 8px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--st-color-border);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -4px 18px rgb(11 49 92 / 10%);
    backdrop-filter: blur(12px);
  }

  body.is-home .st-home-bottom-nav :where(a, button) {
    display: inline-flex;
    min-width: 56px;
    min-height: 48px;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--st-color-muted);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
  }

  body.is-home .st-home-bottom-nav :where(a.is-active, a[aria-current="page"], button.is-active) {
    color: var(--st-color-primary);
    font-weight: 700;
  }

  body.is-home .st-home-bottom-nav :where(svg, img) {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  body.is-home :where(.fittingFab) {
    bottom: calc(var(--st-home-nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-home .st-home :where(*) {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Hero form overrides are intentionally limited to the homepage picker. */
body.is-home .st-home-finder { padding: 26px; border-radius: 18px; box-shadow: 0 8px 24px rgb(11 49 92 / 5%); }
body.is-home .st-home-finder__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
body.is-home .st-home-finder__heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
body.is-home .st-home-finder__heading > span { color: #68788a; font-size: 12px; }
body.is-home .st-home-finder .filterTabs { display: flex; gap: 4px; margin: 0 0 20px; padding: 4px; border: 0; border-radius: 10px; background: #eef3f8; }
body.is-home .st-home-finder .filterTabs .nav-item { flex: 1; width: auto; }
body.is-home .st-home-finder .filterTabs .nav-link { width: 100%; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 7px; color: #526176; background: transparent; font-size: 14px; white-space: nowrap; }
body.is-home .st-home-finder .filterTabs .nav-link.active { color: #0b315c; background: #fff; box-shadow: 0 2px 6px rgb(11 49 92 / 10%); font-weight: 700; }
body.is-home .st-home-finder__hint { margin: 0 0 16px; color: #657487; font-size: 13px; line-height: 1.6; }
body.is-home .st-home-finder__hint strong { color: #27364a; white-space: nowrap; }
body.is-home .st-home-finder .filterForm { margin: 0; padding: 0; }
body.is-home .st-home-finder .filterForm > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
body.is-home .st-home-finder .filterField { width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 0; }
body.is-home .st-home-finder .filterName { display: block; margin: 0 0 7px; color: #526176; font-size: 12px; }
body.is-home .st-home-finder .filterSelect { width: 100%; height: 50px; min-height: 50px; padding: 0 10px; border: 1px solid #cdd8e4; border-radius: 8px; background-color: #fff; font-size: 15px; }
body.is-home .st-home-finder .filterBtns { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; width: 100%; margin: 6px 0 0 !important; padding: 0; }
body.is-home .st-home-finder .filterResult { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 50px; border: 0; border-radius: 8px; background: #0878d8; color: #fff; font-size: 16px; font-weight: 700; }
body.is-home .st-home-finder .filterResult:hover { background: #0668bd; }
body.is-home .st-home-finder .filterReset { width: auto; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: #68788a; font-size: 13px; }
body.is-home .st-home-finder__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 12px; }
body.is-home .st-home-finder__footer a { display: inline-flex; align-items: center; min-height: 40px; gap: 8px; font-size: 13px; text-decoration: none; }
body.is-home .st-home-finder__help { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid #e5ebf1; color: #657487; font-size: 12px; line-height: 1.8; }
body.is-home .st-home-finder__help a { display: inline-block; font-weight: 500; }
body.is-home .st-home-finder .filterForm--wheels .filterField--producer,
body.is-home .st-home-finder .filterForm--wheels .filterField--range { display: block; grid-column: span 2; }
body.is-home .st-home-finder #select_form > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.is-home .st-home-finder #select_form .filterSelect:disabled { background: #eef2f6; color: #788597; }
body.is-home #st-home-finders { scroll-margin-top: 16px; }
@media (max-width: 991.98px) {
  body.is-home .st-home-hero__body { grid-template-columns: 1fr; gap: 16px; }
  body.is-home .st-home-hero__promo { min-height: 260px; background-position: center 55%; }
  body.is-home .st-home-hero__offer { margin-top: 32px; }
  body.is-home .st-home-hero__offer a { max-width: 350px; }
}
@media (max-width: 575.98px) {
  body.is-home .st-home-hero { padding: 20px 0 16px; }
  body.is-home .st-home-hero__inner { padding: 0 16px; }
  body.is-home .st-home-hero__copy { margin-bottom: 18px; }
  body.is-home .st-home-hero__copy h1 { font-size: 29px; }
  body.is-home .st-home-hero__copy h1 span { display: block; }
  body.is-home .st-home-hero__lead { font-size: 14px; }
  body.is-home .st-home-finder { padding: 18px 16px; }
  body.is-home .st-home-finder__heading { margin-bottom: 16px; }
  body.is-home .st-home-finder__heading h2 { font-size: 20px; }
  body.is-home .st-home-finder__heading > span { display: none; }
  body.is-home .st-home-finder .filterForm > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-home .st-home-finder .filterTabs { margin-bottom: 14px; }
  body.is-home .st-home-finder .filterTabs .nav-link { font-size: 13px; }
  body.is-home .st-home-finder__footer a { font-size: 12px; }
  body.is-home .st-home-hero__promo { padding: 22px; }
  body.is-home .st-home-hero__trust { gap: 0; flex-direction: column; padding-top: 12px; }
}

body.is-home .st-home-finder .st-home-advanced { grid-column: 1 / -1; border-top: 1px solid #e5ebf1; margin-top: 4px; }
body.is-home .st-home-finder .st-home-advanced summary { padding: 14px 0; color: #0878d8; cursor: pointer; font-size: 13px; font-weight: 500; }
body.is-home .st-home-finder .st-home-advanced summary span { margin-left: 8px; color: #68788a; font-size: 12px; font-weight: 400; }
body.is-home .st-home-finder .st-home-advanced__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 4px 0 16px; }
body.is-home .st-home-finder .st-home-advanced .filterField { display: block; grid-column: auto; }
body.is-home .st-home-finder .st-home-advanced .filterInput { width: 100%; min-width: 0; }
body.is-home .st-home-finder .st-home-advanced .filterRange { display: flex; gap: 8px; }
@media (max-width: 575.98px) {
  body.is-home .st-home-finder .st-home-advanced summary span { display: none; }
  body.is-home .st-home-finder .st-home-advanced__fields { grid-template-columns: 1fr; }
}

body.is-home .st-home-finder .filterBtns { position: static; background: transparent; border: 0; box-shadow: none; }
body.is-home .st-home-finder .filterSelect { margin-bottom: 0; }
body.is-home .st-home-finder .filterReset { background: transparent; }
body.is-home.st-home-picker-visible .fittingFab { visibility: hidden; pointer-events: none; }
@media (max-width: 575.98px) {
  body.is-home .st-home-hero__copy h1 { font-size: 27px; margin-bottom: 8px; }
  body.is-home .st-home-finder .filterName { margin-bottom: 4px; }
  body.is-home .st-home-finder .st-home-advanced summary { min-height: 44px; padding: 12px 0; }
}

/* Product carousels aligned with the homepage content. */
body.is-home .st-home-products > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.is-home .st-home-products .itemsBlock-head {
  margin-bottom: 20px;
}

body.is-home .st-home-products .itemsBlock-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

body.is-home .st-home-products .embla__container {
  gap: 16px;
  margin: 0;
}

body.is-home .st-home-products .embla__slide {
  flex: 0 0 calc((100% - 48px) / 4);
  padding: 0;
}

body.is-home .st-home-products .item.item--grid {
  padding: 0;
}

body.is-home .st-home-products .item-grid-media {
  margin: 0;
  aspect-ratio: 1.3;
}

body.is-home .st-home-products .item-grid-photo {
  max-width: none;
  max-height: none;
  padding: 12px;
}

body.is-home .st-home-products .item-grid-badges {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  align-items: flex-start;
}

body.is-home .st-home-products .item .itemBrand {
  color: var(--st-color-heading);
  font-size: 16px;
  font-weight: 700;
}

body.is-home .st-home-products .item .itemModel {
  min-height: 2.6em;
  color: var(--st-color-text);
  font-size: 14px;
}

body.is-home .st-home-products .item .itemText {
  font-size: 14px;
  color: var(--st-color-heading);
}

body.is-home .st-home-products .item-grid-rassrochka,
body.is-home .st-home-products .priceStale {
  margin: 8px 0 0;
  color: var(--st-color-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.is-home .st-home-products .item-grid-compare {
  margin: 0 16px;
}

body.is-home .st-home-products .item-grid-buy {
  margin-top: 0;
}

body.is-home .st-home-products .item-grid-buy .shopBtn-1 {
  background: var(--st-color-primary);
  border-color: var(--st-color-primary);
  font-weight: 700;
  border-radius: var(--st-home-radius-control);
}

body.is-home .st-home-products .item-grid-buy .shopBtn-1:hover {
  background: var(--st-color-primary-hover);
}

@media (max-width: 1199.98px) {
  body.is-home .st-home-products .embla__slide {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767.98px) {
  body.is-home .st-home-products .embla__slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 575.98px) {
  body.is-home .st-home-products .embla__slide {
    flex-basis: 86%;
  }
}

/* Supporting sections: compact navigation and one clear consultation form. */
body.is-home .st-home-brands .st-home-section-head,
body.is-home .st-home-services .st-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

body.is-home .st-home-brands h2,
body.is-home .st-home-services h2 {
  font-weight: 700;
  margin: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

body.is-home .st-home-section-head > a {
  flex-shrink: 0;
  padding: 12px 0;
  color: var(--st-color-primary);
  font-size: 14px;
  font-weight: 600;
}

body.is-home .st-home-brands__grid > a {
  min-height: 64px;
  color: var(--st-color-heading);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 12px;
}

body.is-home .st-home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.is-home .st-home-service {
  position: relative;
  min-height: 132px;
  padding: 24px 36px 24px 20px;
  color: var(--st-color-heading);
  text-decoration: none;
  background: var(--st-color-surface-soft);
  box-shadow: none;
}

body.is-home .st-home-service strong {
  font-size: 17px;
  line-height: 1.35;
}

body.is-home .st-home-service > span {
  font-size: 14px;
}

body.is-home .st-home-service::after {
  content: '↗';
  position: absolute;
  top: 22px;
  right: 16px;
  color: var(--st-color-primary);
}

body.is-home .st-home-service:hover,
body.is-home .st-home-brands__grid > a:hover {
  border-color: var(--st-color-primary);
  background: var(--st-color-surface-blue);
}

body.is-home .st-home a:focus-visible,
body.is-home .st-home button:focus-visible,
body.is-home .st-home summary:focus-visible {
  outline: 2px solid var(--st-color-primary);
  outline-offset: 3px;
}

body.is-home .consultBlock,
body.is-home .st-home-seo {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

body.is-home .consultBlock > .container,
body.is-home .st-home-seo > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.is-home .consultBlock .row {
  margin: 0;
}

body.is-home .consultBlock .callMeBack {
  padding: 0;
  background: none;
}

body.is-home .consultBlock .offset-lg-5 {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.is-home .consultBlock .callMeBlock {
  margin: 0;
  padding: 32px;
  border: 1px solid var(--st-color-border);
  border-radius: var(--st-home-radius-card);
  color: var(--st-color-heading);
  background: var(--st-color-surface-blue);
}

body.is-home .consultBlock .callMe-1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

body.is-home .consultBlock .callMe-3 {
  margin: 0 0 24px;
  color: var(--st-color-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

body.is-home .consultBlock .callMe-4 {
  font-size: 14px;
}

body.is-home .consultBlock .callMeForm {
  max-width: 620px;
  margin-top: 8px;
}

body.is-home .callMeForm > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

body.is-home .callMeForm > .row > div {
  width: auto;
  padding: 0;
}

body.is-home .callMeForm-input,
body.is-home .callMeForm-btn {
  min-height: 48px;
  border-radius: var(--st-home-radius-control);
  font-size: 16px;
}

body.is-home .callMeForm-input {
  color: var(--st-color-heading);
  border-color: var(--st-color-border);
  background: #fff;
}

body.is-home .callMeForm-input::placeholder {
  color: var(--st-color-muted);
}

body.is-home .callMeForm-btn {
  background: var(--st-color-primary);
  border-color: var(--st-color-primary);
}

body.is-home .callMeForm-btn:hover {
  background: var(--st-color-primary-hover);
}

body.is-home .st-home-seo {
  padding-top: 24px;
  padding-bottom: 24px;
}

body.is-home .st-home-seo .seoStatic-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

body.is-home .st-home-seo .seoStatic-body {
  max-width: 900px;
  color: var(--st-color-text);
  line-height: 1.65;
  font-size: 15px;
}

body.is-home .st-home-seo .seoStatic-body > :first-child {
  margin-top: 0;
}

body.is-home .st-home-seo .seoStatic-body > :last-child {
  margin-bottom: 0;
}

body.is-home .st-home-seo .seoStatic-body.is-collapsed {
  max-height: 132px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

body.is-home .st-home-seo .seoStatic-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--st-color-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

body.is-home .st-home-seo .seoStatic-toggle:hover {
  color: var(--st-color-primary-hover);
  text-decoration: underline;
}

body.is-home .st-home-seo .seoStatic-toggle[hidden] {
  display: none;
}

body.is-home .st-home-seo .seoStatic-toggle::after {
  content: "▾";
  color: var(--st-color-muted);
  font-weight: 400;
}

body.is-home .st-home-seo .seoStatic-toggle[aria-expanded="true"]::after {
  content: "▴";
}

body.is-home .st-home-seo .seoCollapse-summary {
  padding: 18px 0;
  color: var(--st-color-muted);
}

body.is-home .st-home-seo .seoCollapse-body {
  max-width: 900px;
  color: var(--st-color-text);
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  body.is-home .st-home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.is-home .st-home-brands__grid {
    gap: 8px;
  }

  body.is-home .st-home-brands__grid > a {
    font-size: 13px;
  }

  body.is-home .st-home-services__grid {
    gap: 8px;
  }

  body.is-home .st-home-service {
    min-height: 128px;
    padding: 16px 28px 16px 14px;
  }

  body.is-home .st-home-service strong {
    font-size: 15px;
  }

  body.is-home .st-home-service::after {
    top: 14px;
    right: 12px;
  }

  body.is-home .consultBlock,
  body.is-home .st-home-seo {
    padding: 32px 16px 0;
  }

  body.is-home .consultBlock .callMeBlock {
    padding: 24px 20px;
  }

  body.is-home .callMeForm > .row {
    grid-template-columns: 1fr;
  }
}
