/* ===== AUTOШРЕДЕР — global ===== */
:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --yellow: #ffcc00;
  --yellow-hover: #ffd633;
  --white: #ffffff;
  --gray: #b8b8b8;
  --gray-soft: #8e8e8e;
  --line: #ffcc00;
  --card-border: rgba(255, 255, 255, 0.18);
  --divider: rgba(255, 255, 255, 0.28);
  --container: 1760px;
  --gutter: 32px;
  --header-h: 96px;
  --anchor-offset: calc(var(--header-h) + 20px);
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", "Roboto Condensed", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Sticky header must not cover section titles on #anchor jumps */
#brands,
#catalog,
#new-parts,
#delivery,
#buyout,
#contacts {
  scroll-margin-top: var(--anchor-offset);
}

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

/* picture is a layout pass-through so existing img rules keep working */
.logo picture,
.brands__list picture,
.contacts__logo picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--yellow);
  color: #111;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 6px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-inline: 0;
}

.accent {
  color: var(--yellow);
}

.section-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn__arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--yellow);
  color: #111;
}

.btn--primary:hover {
  background: var(--yellow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.btn--outline:hover {
  background: rgba(255, 204, 0, 0.08);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  background: #000;
  border-bottom: 3px solid var(--line);
  min-height: var(--header-h);
}

.header__inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(280px, 300px);
  align-items: center;
  gap: 16px 24px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  width: 200px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.logo__icon {
  width: 54px;
  height: 22px;
  color: var(--yellow);
}

.logo__name {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo__auto { color: var(--white); }
.logo__shred { color: var(--yellow); }

.logo__tagline {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  font-weight: 500;
}

.logo__tagline--sm {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--gray);
  text-transform: none;
}

.nav {
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.nav__list > li {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
  padding: 6px 6px 12px;
  transition: color 180ms ease;
  white-space: normal;
  overflow-wrap: break-word;
}

.nav__link br {
  display: block;
}

.nav__link:hover {
  color: var(--yellow);
}

.nav__link.is-active {
  color: var(--yellow);
  font-weight: 700;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 52px);
  height: 3px;
  background: var(--yellow);
  border-radius: 1px;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--divider);
  min-width: 0;
  overflow: visible;
}

.header__phones-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.header__phones {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.header__phones .ico-phone,
.header__address .ico-pin {
  width: 17px;
  height: 17px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.header__phone-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header__phones a {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: visible;
}

.header__phones a:hover {
  color: var(--yellow);
}

.messengers {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 1px;
}

.msg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 180ms ease, filter 180ms ease;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
}

.msg:hover {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.msg__icon,
.msg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Фирменные цвета Simple Icons (без второго круга под логотипом) */
.msg--wa,
.contacts__item a.msg--wa { color: #25d366; }
.msg--tg,
.contacts__item a.msg--tg { color: #2aabee; }
.msg--viber,
.contacts__item a.msg--viber { color: #7360f2; }

.contacts__item a.msg {
  display: inline-flex;
  white-space: nowrap;
}

.contacts__item a.msg:hover {
  color: inherit;
  filter: brightness(1.12);
}

.contacts__item a.msg--wa:hover { color: #25d366; }
.contacts__item a.msg--tg:hover { color: #2aabee; }
.contacts__item a.msg--viber:hover { color: #7360f2; }

.header__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.header__address > div {
  min-width: 0;
}

.header__address strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1px;
}

.header__address span {
  color: var(--white);
  display: block;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--yellow);
  background: transparent;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(480px, 58vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.12) 100%),
    url("../assets/images/hero-cover.jpg");
  background-position: 0 0, 72% center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero__bg {
    background-image:
      linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 34%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.12) 100%),
      image-set(
        url("../assets/images/hero-cover.webp") type("image/webp"),
        url("../assets/images/hero-cover.jpg") type("image/jpeg")
      );
  }
}

.hero__content {
  padding: 48px 0 52px;
  max-width: 720px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero__subtitle {
  margin-top: 14px;
  font-family: var(--font);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.hero__desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--white);
  max-width: 480px;
}

.hero__features {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 26px 0 28px;
  max-width: 640px;
  /* Keep features left-aligned with logo / hero text */
  margin-left: 0;
  padding-left: 0;
}

.hero__features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
}

.hero__features li:first-child {
  padding-left: 0;
}

.hero__features li:last-child {
  padding-right: 0;
}

.hero__features li + li {
  border-left: 1px solid var(--yellow);
}

.hero__features svg {
  width: 32px;
  height: 32px;
  color: var(--yellow);
  flex-shrink: 0;
  display: block;
}

.hero__features span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: block;
  overflow-wrap: break-word;
}

/* ===== HAZARD TAPE ===== */
.hazard-tape {
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    #ffcc00 0 14px,
    #111 14px 28px
  );
  border-top: 1px solid #ffcc00;
  border-bottom: 1px solid #ffcc00;
}

/* ===== BRANDS ===== */
.brands {
  padding: 0 0 36px;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.brands__inner {
  padding-top: 28px;
}

.brands__title {
  text-align: center;
  font-family: var(--font);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  margin-bottom: 26px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.brands__title span {
  white-space: normal;
}

.brands__title .accent {
  margin-left: 0.3em;
}

.brands__list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}

.brands__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 0;
  padding: 8px 12px;
  position: relative;
}

.brands__list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 28px;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.brands__list img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.brands__list li:nth-child(6) img {
  width: 88px;
  height: 56px;
}

.brands__list span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ===== CATALOG ===== */
.catalog {
  padding: 40px 0 46px;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.catalog__head-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.catalog__icon {
  width: 70px;
  height: 70px;
  color: var(--yellow);
  flex-shrink: 0;
}

.catalog__head h2 {
  font-family: var(--font);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.catalog__head p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 620px;
  line-height: 1.4;
}

.catalog__grid {
  display: grid;
  gap: 14px;
}

.catalog__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.catalog__grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.cat-card {
  position: relative;
  display: block;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  overflow: hidden;
  background: #121212;
}

.cat-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: calc(100% - 24px);
  overflow-wrap: break-word;
  white-space: normal;
}

.cat-card__label svg {
  width: 26px;
  height: 26px;
  color: var(--yellow);
  flex-shrink: 0;
}

.catalog__grid--5 .cat-card {
  height: 176px;
}

.catalog__grid--5 .cat-card__label {
  font-size: 14px;
}

/* ===== NEW PARTS ===== */
.new-parts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0;
  min-height: 0;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.new-parts__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.9) 26%,
      rgba(0, 0, 0, 0.55) 52%,
      rgba(0, 0, 0, 0.22) 74%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    url("../assets/images/new-parts-bg.jpg?v=3");
  background-position: 0 0, 78% center;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .new-parts__bg {
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.9) 26%,
        rgba(0, 0, 0, 0.55) 52%,
        rgba(0, 0, 0, 0.22) 74%,
        rgba(0, 0, 0, 0.12) 100%
      ),
      image-set(
        url("../assets/images/new-parts-bg.webp?v=3") type("image/webp"),
        url("../assets/images/new-parts-bg.jpg?v=3") type("image/jpeg")
      );
    background-position: 0 0, 78% center;
    background-size: 100% 100%, cover;
    background-repeat: no-repeat;
  }
}

.new-parts__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 40px;
  align-items: center;
  min-height: 0;
}

.new-parts__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 460px;
}

.new-parts__cart {
  width: 52px;
  height: 52px;
  color: var(--yellow);
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.new-parts__left h2 {
  font-family: var(--font);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.new-parts__left p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.45;
  max-width: 380px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.new-parts__left .btn,
.delivery__main .btn,
.buyout__left .btn,
.hero__content .btn {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

.new-parts__benefits {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 20px;
  min-width: 0;
  justify-self: end;
  width: min(100%, 340px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
  border: 1px solid rgba(255, 204, 0, 0.28);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.new-parts__benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.new-parts__benefits svg {
  width: 36px;
  height: 36px;
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.new-parts__benefits span {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  min-width: 0;
  overflow-wrap: break-word;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ===== DELIVERY ===== */
/* Desktop mock: [photo] | [title+CTA] | [regions | cities] */
.delivery {
  padding: 0;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.delivery__panel {
  display: grid;
  grid-template-columns:
    minmax(0, 1.75fr)
    minmax(150px, 0.48fr)
    minmax(280px, 0.9fr);
  gap: 0;
  align-items: stretch;
  min-height: 320px;
  width: 100%;
  margin: 0;
}

/* Зона 1: фото на всю ширину, CTA с лёгким затемнением — без жёлтой линии */
.delivery__lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(240px, 0.85fr);
  gap: 0;
  min-width: 0;
  min-height: 320px;
  align-items: stretch;
  overflow: hidden;
}

.delivery__visual {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  z-index: 0;
}

.delivery__cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 22% center;
  border-radius: 0;
}

.delivery__main {
  position: relative;
  z-index: 1;
  grid-column: 2;
  padding: 28px 26px 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  background: transparent;
}

/* Мягкий переход затемнения в фото — без жёсткой линии */
.delivery__main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: -55%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 28%,
    rgba(0, 0, 0, 0.4) 48%,
    rgba(0, 0, 0, 0.68) 72%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.delivery__main h2,
.delivery__main p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.delivery__main h2 {
  font-family: var(--font);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.delivery__main p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.45;
  max-width: 300px;
}

.delivery__group {
  min-width: 0;
  padding: 24px 18px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.delivery__group--main {
  padding: 24px 28px 24px 22px;
  padding-right: max(28px, calc((100vw - min(100vw, var(--container))) / 2 + var(--gutter)));
}

.delivery__group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.25;
}

.delivery__group h3 svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}

.delivery__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery__list li {
  position: relative;
  padding-left: 14px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
}

.delivery__list li:last-child {
  margin-bottom: 0;
}

.delivery__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

.delivery__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  min-width: 0;
}

/* ===== BUYOUT ===== */
.buyout {
  padding: 0;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buyout__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 18px 28px;
  align-items: stretch;
  min-height: 260px;
  padding: 28px 0;
}

.buyout__icon {
  width: 52px;
  height: 34px;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}

.buyout__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.buyout__left h2 {
  font-family: var(--font);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.buyout__left p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 340px;
}

.buyout__visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  align-self: stretch;
}

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

.buyout__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: 55% center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.buyout__benefits {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  justify-content: center;
  min-width: 0;
}

.buyout__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.buyout__benefits svg {
  width: 32px;
  height: 32px;
  color: var(--yellow);
  flex-shrink: 0;
}

.buyout__benefits span {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.contacts__bar {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 1.15fr)
    minmax(0, 1.2fr)
    minmax(0, 1.25fr)
    minmax(160px, 0.95fr);
  align-items: center;
  gap: 0;
  padding: 28px 0;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 20px;
  min-height: 108px;
  min-width: 0;
}

.contacts__item:first-child {
  padding-left: 0;
}

.contacts__item + .contacts__item,
.contacts__logo {
  border-left: 1px solid var(--line);
}

.contacts__item > svg {
  width: 26px;
  height: 26px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.contacts__item > div {
  min-width: 0;
}

.contacts__item strong {
  display: block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
  line-height: 1.3;
}

.contacts__item span,
.contacts__item a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  overflow-wrap: break-word;
  white-space: normal;
}

.contacts__item a:hover {
  color: var(--yellow);
}

.contacts__item--msg {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.contacts__item--msg p {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

.messengers--lg {
  gap: 10px;
}

.messengers--lg .msg {
  width: 44px;
  height: 44px;
}

.messengers--lg .msg svg {
  width: 100%;
  height: 100%;
}

.contacts__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px;
  min-height: 96px;
  min-width: 0;
  overflow: hidden;
}

.contacts__logo-img {
  width: min(158px, 100%);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--bg);
  padding: 16px 0 20px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
  flex-wrap: wrap;
}

.footer__inner p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.footer__inner p:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1600px) {
  :root {
    --container: 1480px;
    --gutter: 28px;
  }
  .header__inner {
    grid-template-columns: 190px minmax(0, 1fr) minmax(270px, 290px);
    gap: 14px 20px;
  }
  .logo__img { width: 180px; }
  .nav__link { font-size: 13px; }
}

@media (max-width: 1440px) {
  :root {
    --container: 1320px;
    --gutter: 28px;
    --header-h: 92px;
  }
  .header__inner {
    grid-template-columns: 150px minmax(0, 1fr) minmax(240px, 260px);
    gap: 10px 12px;
  }
  .logo__img { width: 144px; height: 50px; }
  .nav__link { font-size: 12px; line-height: 1.25; padding: 4px 4px 10px; min-height: 42px; }
  .header__phones a { font-size: 12px; }
  .header__address { font-size: 11px; }
  .header__contacts { padding-left: 12px; }
  .header__phones-row { gap: 6px; }
  .msg { width: 26px; height: 26px; }
  .catalog__grid--4 .cat-card { height: 170px; }
  .catalog__grid--5 .cat-card { height: 150px; }
  .catalog__grid--5 .cat-card__label { font-size: 13px; }
  .new-parts__inner,
  .buyout__panel {
    gap: 18px 22px;
  }
  .delivery__main {
    padding: 24px 22px;
  }
  .delivery__main h2 { font-size: 24px; }
  .contacts__item { padding: 8px 16px; }
  .contacts__item:first-child { padding-left: 0; }
  .contacts__logo-img { width: min(140px, 100%); }
  .hero__features { max-width: 600px; }
  .hero__features span { font-size: 12px; }
}

@media (max-width: 1280px) {
  :root { --container: 1160px; }
  .header__inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .nav__link br { display: none; }
  .nav__link {
    min-height: 40px;
    padding: 6px 8px 10px;
  }
  .nav__list {
    gap: 6px 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav__list > li {
    flex: 0 1 auto;
  }
  .header__contacts { display: none; }
  .buyout__panel {
    grid-template-columns: 1fr 1fr;
  }
  .new-parts__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 24px 28px;
  }
  .new-parts__benefits {
    width: min(100%, 300px);
    padding: 18px 16px;
  }
  .delivery__panel {
    grid-template-columns:
      minmax(0, 1.6fr)
      minmax(140px, 0.48fr)
      minmax(250px, 0.9fr);
  }
  .delivery__lead {
    grid-template-columns: minmax(240px, 1.25fr) minmax(210px, 0.85fr);
  }
  .delivery__cover {
    min-height: 300px;
  }
  .delivery__main {
    padding: 22px 18px;
  }
  .delivery__group {
    padding: 20px 14px;
  }
  .delivery__group--main {
    padding-right: 20px;
  }
  .contacts__bar {
    grid-template-columns: 1fr 1fr;
  }
  .contacts__item--msg,
  .contacts__logo {
    border-top: 1px solid rgba(255, 204, 0, 0.45);
  }
  .contacts__logo {
    border-left: none;
  }
}

@media (max-width: 1100px) {
  .delivery__panel {
    grid-template-columns: 1fr 1fr;
  }
  .delivery__lead {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    min-height: 280px;
  }
  .delivery__group {
    border-top: 1px solid var(--line);
  }
  .delivery__group:not(.delivery__group--main) {
    border-left: none;
  }
}

@media (max-width: 1024px) {
  .burger { display: flex; justify-self: end; }
  .header__inner {
    grid-template-columns: 1fr auto;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 120;
    background: #000;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header {
    z-index: 130;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav__link {
    text-align: left;
    justify-content: flex-start;
    font-size: 16px;
    padding: 12px 8px;
    min-height: 44px;
    width: 100%;
  }
  .nav__link.is-active::after {
    left: 8px;
    transform: none;
    width: 40px;
  }
  .nav__list > li {
    justify-content: stretch;
  }
  .hero__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    max-width: 420px;
  }
  .hero__features li,
  .hero__features li:first-child,
  .hero__features li:last-child {
    padding: 0;
    border: none !important;
  }
  .catalog__grid--4,
  .catalog__grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .buyout__panel {
    grid-template-columns: 1fr;
  }
  .buyout__benefits {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; --header-h: 72px; }
  .container { width: min(100% - (var(--gutter) * 2), var(--container)); }
  .header__inner {
    min-height: var(--header-h);
    padding-block: 8px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .logo__img { width: 148px; height: 50px; }
  .footer__inner p:last-child { white-space: normal; }
  .hero {
    min-height: 560px;
  }
  .hero__title { font-size: clamp(36px, 11vw, 48px); }
  .hero__subtitle { font-size: clamp(18px, 5.2vw, 22px); }
  .hero__desc { font-size: 15px; }
  .hero__features {
    margin: 22px 0 24px;
    gap: 14px 18px;
    max-width: 100%;
  }
  .hero__features span { font-size: 13px; }
  .brands__title span {
    white-space: normal;
  }
  .brands__list {
    justify-content: flex-start;
    gap: 0;
    scrollbar-width: thin;
  }
  .brands__list li {
    min-width: 100px;
    flex: 0 0 auto;
  }
  .new-parts {
    padding: 32px 0;
  }
  .new-parts__bg {
    background-position: 0 0, 0 0, 70% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 45%,
        rgba(0, 0, 0, 0.78) 100%
      ),
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.35) 100%
      ),
      url("../assets/images/new-parts-bg.jpg?v=3");
    background-size: 100% 100%, 100% 100%, cover;
    background-repeat: no-repeat;
  }
  .new-parts__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .new-parts__left {
    max-width: 100%;
  }
  .new-parts__benefits {
    justify-self: stretch;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .buyout__visual img {
    height: 220px;
    min-height: 220px;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .delivery__panel {
    grid-template-columns: 1fr;
  }
  .delivery__lead {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .delivery__visual {
    position: relative;
    inset: auto;
    min-height: 200px;
  }
  .delivery__cover {
    min-height: 200px;
    height: 220px;
    object-position: center 40%;
  }
  .delivery__main {
    grid-column: auto;
    padding: 22px var(--gutter);
    background: #000;
  }
  .delivery__main::before {
    display: none;
  }
  .delivery__main h2 { font-size: clamp(20px, 5.5vw, 26px); }
  .delivery__group {
    padding: 18px var(--gutter);
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .delivery__group--main {
    padding: 18px var(--gutter) 22px;
    border-left: none;
  }
  .delivery__dual {
    gap: 0 16px;
  }
  .contacts__bar {
    grid-template-columns: 1fr;
  }
  .contacts__item,
  .contacts__item + .contacts__item,
  .contacts__logo {
    border-left: none;
    border-top: 1px solid rgba(255, 204, 0, 0.35);
    min-height: auto;
    padding: 16px 0;
  }
  .contacts__item:first-child {
    border-top: none;
  }
  .contacts__item a {
    padding-block: 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .catalog__grid--4,
  .catalog__grid--5 {
    grid-template-columns: 1fr 1fr;
  }
  .catalog__grid--5 .cat-card__label {
    font-size: 13px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .catalog__grid--4,
  .catalog__grid--5 {
    grid-template-columns: 1fr;
  }
  .cat-card { height: 180px; }
  .hero__features {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
  .delivery__dual {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .delivery__main .btn {
    white-space: normal;
  }
  .catalog__icon {
    width: 52px;
    height: 52px;
  }
}
