/* ПроЗапчасти: final unified visual theme */
:root {
  --brand: #c62828;
  --brand-dark: #8e1b1b;
  --brand-soft: #fff1f1;
  --ink: #25272b;
  --muted: #747b86;
  --surface: #ffffff;
  --page: #f7f7f5;
  --line: #e4e5e7;
  --dark: #27292e;
  --shadow: 0 10px 30px rgba(25, 28, 33, .08);
  --d4-blue: var(--brand);
  --d4-blue-dark: var(--brand-dark);
  --d4-blue-soft: var(--brand-soft);
  --d4-navy: var(--dark);
  --d4-navy-dark: #1e2024;
  --d4-bg: var(--page);
  --d4-card: var(--surface);
  --d4-line: var(--line);
  --d4-line-strong: #cfd2d6;
  --d4-text: var(--ink);
  --d4-muted: var(--muted);
  --d4-shadow: var(--shadow);
  --d4-shadow-hover: 0 16px 36px rgba(25, 28, 33, .12);
}

html,
body,
.main {
  background: var(--page) !important;
  color: var(--ink);
}

/* Header and navigation */
.site-topline {
  background: var(--dark) !important;
  color: rgba(255,255,255,.76);
}
.site-topline__item i {color: #ef6b6b !important;}
.header {
  background: #fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 3px 16px rgba(25,28,33,.06) !important;
}
.brand-logo {color: var(--ink);}
.brand-logo > span {color: var(--brand);}
.brand-logo small {color: var(--muted);}
.header__promise {color: var(--ink);}
.header__promise span {color: var(--muted);}
.header__phone-item {color: var(--ink) !important;}
.header__phone-item:hover {color: var(--brand) !important;}
.header__show-telephone {background: var(--brand) !important;}

nav,
.main-nav {
  background: var(--dark) !important;
  border-bottom: 3px solid var(--brand) !important;
}
nav ul li.catalog {background: var(--brand) !important;}
nav ul li.catalog a,
nav ul li.catalog a:hover {background: var(--brand) !important;}
nav ul li a:hover,
nav ul li a.current {background: #181a1d !important;}

/* Main surfaces */
.main .article {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
}
.main .article .caption {
  border-color: var(--line) !important;
  background: #fff !important;
}
.main .article .caption h1,
.section-head h2,
.brand-catalog h2,
.last-items h2 {
  color: var(--ink) !important;
}
.section-head h2::after,
.brand-catalog h2::after,
.last-items h2::after {
  background: var(--brand) !important;
}
.section-head p {color: var(--muted) !important;}

/* Search filter */
.filterForm {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
}
html body .filterForm-d4 .filterForm__head {
  min-height: 76px !important;
  background: var(--dark) !important;
  border-radius: 11px 11px 0 0 !important;
}
html body .filterForm-d4 .filterForm__icon {
  background: var(--brand) !important;
  box-shadow: none !important;
}
.filterForm .row .col > span {color: var(--ink) !important;}
.filterForm .row input,
.filterForm .row select,
.filterForm .asi,
.gas-select__summary {
  border-color: #cfd2d6 !important;
  background: #fff !important;
  color: var(--ink) !important;
}
.filterForm .row input:focus,
.filterForm .row select:focus,
.filterForm .asi:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.10) !important;
}
.filterForm .plus,
.filterForm .minus,
.filterForm .plus i,
.filterForm .minus i {color: var(--brand) !important;}
.filterForm .row button {
  background: var(--brand) !important;
  box-shadow: none !important;
}
.filterForm .row button:hover {background: var(--brand-dark) !important;}

/* Home hero */
.home-hero {
  min-height: 350px !important;
  margin-bottom: 0 !important;
  border-radius: 16px !important;
  background: var(--dark) !important;
  box-shadow: var(--shadow) !important;
}
.home-hero::after {
  background: linear-gradient(90deg, rgba(25,27,31,.97) 0%, rgba(36,38,43,.87) 55%, rgba(36,38,43,.28) 100%) !important;
}
.home-hero::before {
  opacity: .35;
  border-color: rgba(255,255,255,.12);
}
.home-hero__bg img {
  opacity: .74 !important;
  transform: none !important;
  filter: grayscale(.12) saturate(.78) contrast(1.04) !important;
}
.home-hero__content {
  width: 100% !important;
  max-width: 660px !important;
  padding: 48px 38px 72px !important;
}
.home-hero__label {
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--brand) !important;
  backdrop-filter: none !important;
}
.home-hero h2 {
  max-width: 610px !important;
  margin-bottom: 14px !important;
  color: #fff !important;
  font-size: 39px !important;
  line-height: 1.08 !important;
}
.home-hero__content > p {
  max-width: 600px !important;
  color: rgba(255,255,255,.78) !important;
}
.home-hero__points i {color: #ef7777 !important;}
.home-hero__btn {
  background: var(--brand) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.home-hero__btn:hover {background: var(--brand-dark) !important;}
.home-hero__link {
  border-color: rgba(255,255,255,.28) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.08) !important;
}
.home-hero__card {display: none !important;}

.home-benefits {
  position: relative !important;
  z-index: 4 !important;
  width: calc(100% - 36px) !important;
  margin: -30px auto 34px !important;
  gap: 12px !important;
}
.home-benefits__item {
  padding: 18px !important;
  border-color: var(--line) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(25,28,33,.08) !important;
}
.home-benefits__item::before {background: var(--brand) !important;}
.home-benefits__item i {color: var(--brand) !important;}
.home-benefits__item strong {color: var(--ink) !important;}
.home-benefits__item span {color: var(--muted) !important;}
.home-benefits__item:hover {
  border-color: #d5d7da !important;
  box-shadow: 0 12px 28px rgba(25,28,33,.11) !important;
}

/* Brands and content cards */
.autos__link {
  border-color: var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.autos__link:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  box-shadow: 0 10px 24px rgba(25,28,33,.08) !important;
}
.home-about__card {
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
html body .home-about__card.home-about__card--accent,
html body .home-about__card--accent {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
}

/* Product cards */
html body .prod-list > li.vag-card,
html body .prod-list li {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}
html body .prod-list > li.vag-card:hover,
html body .prod-list li:hover {
  border-color: #d0d2d5 !important;
  box-shadow: 0 12px 28px rgba(25,28,33,.09) !important;
}
.vag-card__title,
.vag-card__title a {color: var(--ink) !important;}
.vag-card__title a:hover {color: var(--brand) !important;}
.vag-card__spec span,
.prod-list li .info .info__item span {color: var(--muted) !important;}
.vag-card__spec strong,
.prod-list li .info .info__item strong {color: var(--ink) !important;}
html body .prod-list > li.vag-card .vag-card__price-main,
html body .prod-list li .vag-card__price-main,
html body .prod-list > li.vag-card .price .BYN,
html body .prod-list li .price .BYN {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
html body .prod-list > li.vag-card .vag-card__price-alt,
html body .prod-list li .vag-card__price-alt,
html body .prod-list li .price .USD,
html body .prod-list li .price .RUR,
html body .prod-list li .price .EUR {color: var(--muted) !important;}
html body .prod-list > li.vag-card .vag-card__btn,
html body .prod-list li .vag-card__btn,
.card-kontakts button {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  box-shadow: none !important;
}
html body .prod-list > li.vag-card .vag-card__btn:hover,
html body .prod-list li .vag-card__btn:hover,
.card-kontakts button:hover {background: var(--brand-dark) !important;}
.vag-card__photo-count {background: rgba(30,32,36,.82) !important;}

/* Common controls, links and footer */
.pagination a.active,
.pagination a:hover,
.btn2cart,
.recall button {background: var(--brand) !important;}
.include-box a:not(.home-hero__link):not(.home-hero__btn):not(.autos__link):hover {
  color: var(--brand);
}
.footer {background: #1e2024 !important;}
.footer-dev:hover {
  border-color: rgba(198,40,40,.65) !important;
  background: rgba(198,40,40,.16) !important;
}

@media screen and (max-width: 768px) {
  .home-hero {min-height: auto !important;}
  .home-hero::after {
    background: linear-gradient(135deg, rgba(25,27,31,.97), rgba(39,41,46,.82)) !important;
  }
  .home-hero__content {padding: 32px 20px 62px !important;}
  .home-hero h2 {font-size: 30px !important;}
  .home-hero__actions {display: grid !important;}
  .home-hero__btn,
  .home-hero__link {width: 100% !important;}
  .home-benefits {
    width: calc(100% - 24px) !important;
    margin-top: -26px !important;
  }
}

@media screen and (max-width: 520px) {
  .home-hero h2 {font-size: 27px !important;}
  .home-hero__points {display: grid !important;}
}

/* Autocomplete and cart states */
.asi_name {
  border-color: #cfd2d6 !important;
  color: var(--ink) !important;
}
.asi_name::after {border-top-color: var(--ink) !important;}
.asi:hover .asi_name,
.asi.asi_open .asi_name {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.10) !important;
}
.asi.asi_open .asi_stuff {
  border-color: var(--line) !important;
  box-shadow: 0 16px 34px rgba(25,28,33,.14) !important;
}
.asi .asi_stuff input {
  border-color: var(--brand) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.08) !important;
}
.asi .asi_stuff ul li {
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.asi .asi_stuff ul li:hover,
.asi .asi_stuff ul li.current {
  background: var(--brand) !important;
  color: #fff !important;
}
.asi_name_selected .asi_cleaner:hover {color: var(--brand) !important;}
.asi .eventsBar {background: #f3f3f2 !important;}
.asi .eventsBar-go {background: var(--brand) !important;}
.asi .eventsBar-cleaner {background: var(--dark) !important;}
.order-pay-link {color: var(--brand) !important;}

/* Full product card */
html body .full-product.vag-product-page {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr) !important;
  gap: 28px !important;
  align-items: start !important;
  padding: 32px !important;
  background: #fff !important;
}
html body .vag-product-gallery {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body ul.photos.vag-product-photos {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html body ul.photos.vag-product-photos > li {
  border-color: var(--line) !important;
  border-radius: 9px !important;
  background: #f4f4f3 !important;
}
html body ul.photos.vag-product-photos > li.vag-product-photo--main {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #f4f4f3 !important;
}
html body .vag-product-photo--main img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  border-radius: 13px !important;
}
html body .vag-product-photos img {
  height: 68px !important;
  object-fit: cover !important;
}
html body .vag-product-photo--main img {
  height: auto !important;
  object-fit: contain !important;
}

html body .vag-product-side {
  gap: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fafaf9 !important;
}
html body .vag-product-info,
html body .vag-product-buy {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .vag-product-info__head {
  margin-bottom: 8px !important;
  padding-bottom: 16px !important;
  border-color: var(--line) !important;
}
html body .vag-product-info__badge {
  height: 25px !important;
  border-radius: 6px !important;
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
html body .vag-product-info__head h2 {
  margin-top: 12px !important;
  color: var(--ink) !important;
  font-size: 25px !important;
}
html body .info .info__item.vag-product-spec,
html body .vag-product-spec {
  padding: 10px 0 !important;
  border-bottom-color: var(--line) !important;
}
html body .vag-product-spec span {
  color: var(--muted) !important;
  font-weight: 600 !important;
}
html body .vag-product-spec strong,
html body .vag-product-spec strong a {
  color: var(--ink) !important;
}
html body .vag-product-description {
  margin-top: 12px !important;
  padding: 14px !important;
  border-color: var(--line) !important;
  border-radius: 9px !important;
  background: #fff !important;
}
html body .vag-product-description span {color: var(--ink) !important;}
html body .vag-product-description p {color: var(--muted) !important;}

html body .vag-product-buy {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--line) !important;
}
html body .vag-product-buy__price-line {
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}
html body .vag-product-buy__label {
  color: var(--muted) !important;
  font-size: 12px !important;
}
html body .vag-product-buy__price {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  font-size: 28px !important;
}
html body .vag-product-buy__btn,
html body .card-kontakts button.vag-product-buy__btn,
html body .ert.vag-product-buy__btn {
  min-height: 48px !important;
  border-radius: 8px !important;
  background: var(--brand) !important;
}
html body .vag-product-buy__btn:hover,
html body .card-kontakts button.vag-product-buy__btn:hover,
html body .ert.vag-product-buy__btn:hover {
  background: var(--brand-dark) !important;
}
html body .vag-product-buy__note {
  color: var(--muted) !important;
  text-align: center !important;
}

@media screen and (max-width: 1080px) {
  html body .full-product.vag-product-page {
    grid-template-columns: 1fr !important;
  }
}
@media screen and (max-width: 560px) {
  html body .full-product.vag-product-page {
    padding: 16px !important;
    gap: 18px !important;
  }
  html body .vag-product-side {padding: 18px !important;}
  html body .vag-product-info__head h2 {font-size: 22px !important;}
  html body .vag-product-buy__price-line {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

/* Contacts, delivery, guarantee and payment */
.contacts-page,
.info-page {color: var(--ink) !important;}
.contacts-hero,
.info-hero,
.info-page--guarantee .info-hero,
.info-page--delivery .info-hero {
  padding: 30px 32px !important;
  border-radius: 12px !important;
  background: var(--dark) !important;
  box-shadow: var(--shadow) !important;
}
.contacts-hero::before,
.info-hero::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}
.contacts-hero::after,
.info-hero::after {
  background: rgba(198,40,40,.16) !important;
}
.contacts-hero__badge,
.info-hero__badge {
  border-radius: 5px !important;
  background: var(--brand) !important;
  color: #fff !important;
}
.contacts-card,
.contacts-mini-card,
.contacts-map-card,
.info-card,
.info-mini-card {
  border-color: var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(25,28,33,.06) !important;
}
.contacts-card h2,
.contacts-map-card h2,
.info-card h2,
.contacts-mini-card strong,
.info-mini-card strong {color: var(--ink) !important;}
.contacts-row,
.contacts-help li,
.info-text,
.info-steps li {
  border-color: var(--line) !important;
  border-radius: 9px !important;
  background: #f6f6f5 !important;
}
.contacts-row__icon,
.contacts-mini-card__icon,
.info-mini-card__icon {
  border-radius: 9px !important;
  background: var(--brand) !important;
}
.contacts-row__content strong,
.contacts-mini-card p,
.info-mini-card p,
.contacts-help p,
.info-steps p,
.info-text {color: var(--muted) !important;}
.contacts-row__content p,
.contacts__tel,
.contacts__email {color: var(--ink) !important;}
.contacts__tel:hover,
.contacts__email:hover {color: var(--brand) !important;}
.contacts-help span,
.info-steps span {
  border-radius: 8px !important;
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
.info-text::before {background: var(--brand) !important;}
.info-text p:first-child {margin-top: 0;}
.info-text p:last-child {margin-bottom: 0;}
.contacts-map-placeholder {
  background: linear-gradient(135deg, rgba(30,32,36,.92), rgba(39,41,46,.82)) !important;
}
.info-mini-grid--payment {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media screen and (max-width: 900px) {
  .info-mini-grid--payment {grid-template-columns: 1fr !important;}
}
