:root {
  --bg: #0b0f12;
  --panel: #12181d;
  --section: #20282e;
  --card: #1a2025;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --red: #e5262e;
  --red-hover: #ff333b;
  --text: #ffffff;
  --muted: #aeb6bd;
  --dark-muted: #6f7a83;
  --radius: 6px;
  --container: 1376px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Manrope, Arial, sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #0d1216 0%, #0a0e11 100%);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: grid;
  grid-template-columns: 205px 250px minmax(320px, 1fr) 210px 150px;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand img,
.brand-logo {
  width: 162px;
  height: auto;
}

.brand-note {
  margin-top: 5px;
  color: #f0f3f5;
  font-size: 15px;
}

.header-place,
.header-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.header-place strong,
.header-phone strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.header-place span:not(.line-icon),
.header-phone a {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.header-phone a {
  color: var(--red);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--red);
  font-size: 22px;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2f3f5;
}

.header-search input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  color: #2c343a;
  outline: none;
  background: transparent;
}

.header-search button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  border-radius: 0;
  line-height: 1;
}

.header-search button,
.vin-row button,
.btn-primary,
.inline-filter button,
.contact-form button {
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.vin-row button:hover,
.btn-primary:hover,
.inline-filter button:hover,
.contact-form button:hover {
  background: var(--red-hover);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.action-link {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 54px;
  color: #f4f6f7;
  font-size: 21px;
}

.action-link small {
  font-size: 12px;
  color: #f4f6f7;
}

.badge {
  position: absolute;
  top: -5px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.site-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(16, 22, 27, 0.92);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 26px;
}

.catalog-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 215px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--red);
  font-weight: 800;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #f1f4f6;
  font-size: 15px;
}

.nav-list a {
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--red-hover);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 496px;
  overflow: hidden;
  background: #080b0e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.96) 0%, rgba(8, 11, 14, 0.66) 48%, rgba(8, 11, 14, 0.86) 100%),
    linear-gradient(180deg, rgba(8, 11, 14, 0.05), rgba(8, 11, 14, 0.88)),
    url("../img/hero-bg.jpg") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, 0.94fr) minmax(560px, 1.1fr);
  grid-template-rows: auto auto;
  gap: 18px 20px;
  padding-top: 42px;
  padding-bottom: 26px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 560px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 470px;
  margin: 0 0 24px;
  color: #eef2f4;
  font-size: 17px;
  line-height: 1.55;
}

.vin-card {
  width: min(100%, 500px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 30, 36, 0.92);
  box-shadow: var(--shadow);
}

.vin-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-weight: 800;
}

.vin-title span {
  width: 4px;
  height: 12px;
  background: var(--red);
}

.vin-title small {
  color: var(--dark-muted);
}

.vin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  height: 46px;
  border-radius: var(--radius);
  background: #f2f3f5;
  overflow: hidden;
}

.vin-row input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px;
  outline: none;
  background: #f2f3f5;
  color: #2c343a;
}

.vin-row button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.15;
  text-align: center;
}

.hero-visual {
  position: relative;
  min-height: 310px;
}

.hero-car {
  position: absolute;
  right: 220px;
  bottom: -6px;
  width: min(760px, 92%);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.62));
}

.stock-card {
  position: absolute;
  top: 22px;
  right: 4px;
  width: 188px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 31, 37, 0.95);
  box-shadow: var(--shadow);
}

.stock-card span {
  display: block;
  color: #dce2e6;
  line-height: 1.45;
}

.stock-card strong {
  display: block;
  margin: 4px 0;
  color: var(--red-hover);
  font-size: 33px;
  line-height: 1.05;
}

.stock-card ul {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stock-card li {
  margin: 0 0 14px;
  color: #f3f5f6;
  font-size: 14px;
}

.stock-card li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 2px, transparent 3px), #263039;
}

.trust-row {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 2px;
}

.trust-row div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 12px;
}

.trust-row span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--red-hover);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.trust-row strong {
  font-size: 14px;
}

.trust-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 28px 0;
  background: var(--section);
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-categories {
  padding-top: 18px;
  padding-bottom: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 136px;
  height: 136px;
  padding: 12px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #252d33, #1d252b);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 38, 46, 0.72);
  box-shadow: 0 12px 26px rgba(229, 38, 46, 0.12);
}

.category-card img {
  flex: 0 0 78px;
  height: 78px;
  width: 100%;
  max-width: 112px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 8px;
}

.category-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 34px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2,
.page-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.section-head a {
  color: var(--red-hover);
  font-weight: 700;
}

.section-head.compact h2 {
  position: relative;
  padding-left: 15px;
  font-size: 19px;
}

.section-head.compact h2::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 13px;
  background: var(--red);
  transform: skew(-12deg);
}

.cars-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.car-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 148px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.car-card img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
}

.car-card div {
  display: flex;
  flex-direction: column;
  padding: 13px 12px 10px;
  min-width: 0;
}

.car-card h3 {
  margin: 0 20px 9px 0;
  font-size: 13px;
  line-height: 1.25;
}

.car-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.car-card strong {
  display: block;
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 15px;
}

.car-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #f4f6f7;
  font-size: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.car-card a:hover {
  border-color: var(--red);
  color: var(--red-hover);
}

.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 15, 18, 0.3);
  color: #cfd6db;
}

.bottom-band {
  padding-top: 34px;
  background: linear-gradient(90deg, #12191e 0%, #151d22 48%, #10161a 100%);
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(480px, 0.58fr) minmax(420px, 0.42fr);
  gap: 36px;
}

.bottom-grid > *,
.latest,
.latest-wrap {
  min-width: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.benefit-card,
.part-card,
.filter-panel,
.product-card,
.info-card,
.contact-form,
.text-grid article,
.tabs-block,
.section-soft {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 39, 45, 0.95), rgba(24, 31, 36, 0.95));
}

.benefit-card {
  min-height: 116px;
  padding: 18px 13px;
}

.benefit-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  border: 1px solid rgba(229, 38, 46, 0.5);
  border-radius: var(--radius);
  color: var(--red-hover);
  background: rgba(229, 38, 46, 0.08);
  font-weight: 900;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.latest-wrap {
  position: relative;
}

.parts-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0 34px;
}

.parts-row::-webkit-scrollbar {
  display: none;
}

.part-card {
  display: flex;
  flex-direction: column;
  min-height: 136px;
  overflow: hidden;
  background: #f1f3f4;
  color: #12181d;
}

.part-card img {
  width: 100%;
  height: 62px;
  object-fit: cover;
}

.part-card h3 {
  margin: 10px 10px 5px;
  min-height: 34px;
  color: #20282e;
  font-size: 11px;
  line-height: 1.25;
}

.part-card strong {
  display: block;
  margin: auto 10px 10px;
  color: #000;
  font-size: 13px;
}

.slider-btn {
  position: absolute;
  top: 36px;
  z-index: 2;
  width: 28px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #263039;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
  background: #f4f6f7;
  color: var(--red);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #080c0f;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
}

.footer-brand img {
  width: 150px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  color: #eef2f4;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red-hover);
}

.footer-contacts {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.footer-contacts strong {
  color: #fff;
  font-size: 17px;
}

.footer-contacts span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.page-main {
  min-height: 620px;
  padding: 30px 0 54px;
  background: linear-gradient(180deg, #161d22 0%, #20282e 220px, #151c21 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: #f3f5f6;
}

.page-title {
  margin-bottom: 22px;
  font-size: 34px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 16px;
  padding: 18px;
}

.filter-panel h2,
.contact-form h2,
.info-card h2,
.text-grid h2,
.section-soft h2 {
  margin: 0 0 16px;
  font-size: 19px;
}

.filter-panel label,
.contact-form {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel label + label,
.price-fields,
.check-line {
  margin-top: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #10161a;
  color: #f6f7f8;
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-line {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 8px;
}

.check-line input {
  width: 16px;
  height: 16px;
}

.btn-primary,
.btn-ghost,
.filter-panel .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
}

.filter-panel .btn-primary {
  width: 100%;
  margin-top: 18px;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-grid.small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f2f4f5;
}

.product-card h3,
.product-card p,
.product-card span,
.product-card strong,
.product-card div {
  margin-left: 14px;
  margin-right: 14px;
}

.product-card h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}

.product-card p,
.product-card span {
  display: block;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.product-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.product-card a,
.product-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 4px;
  font-size: 13px;
}

.product-card a {
  border: 1px solid var(--line-strong);
}

.product-card button {
  border: 0;
  background: var(--red);
  color: #fff;
}

.inline-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 120px;
  gap: 10px;
  margin-bottom: 18px;
}

.inline-filter button {
  border-radius: var(--radius);
}

.cars-grid.large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cars-grid.large .car-card {
  grid-template-columns: 1fr;
}

.cars-grid.large .car-card img {
  height: 210px;
}

.cars-grid.large .car-card div {
  min-height: 164px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(360px, 0.45fr);
  gap: 24px;
  align-items: stretch;
}

.detail-photo,
.detail-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.detail-photo {
  min-height: 430px;
  overflow: hidden;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
}

.detail-info p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-price {
  display: block;
  margin: 22px 0;
  color: var(--text);
  font-size: 32px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs-block,
.section-soft {
  margin-top: 22px;
  padding: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button,
.chip-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.tabs button.active,
.chip-row a:hover {
  border-color: var(--red);
  background: rgba(229, 38, 46, 0.12);
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.spec-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(360px, 0.42fr);
  gap: 22px;
}

.info-card,
.contact-form {
  padding: 22px;
}

.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.map-placeholder {
  display: grid;
  place-items: center;
  height: 250px;
  margin-top: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #131a1f;
  background-size: 28px 28px;
  color: var(--muted);
}

.contact-form button {
  border-radius: var(--radius);
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.text-grid article {
  min-height: 170px;
  padding: 22px;
}

.text-grid p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1280px) {
  .header-main {
    grid-template-columns: 190px minmax(300px, 1fr) 200px 130px;
  }

  .header-place {
    display: none;
  }

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

  .cars-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-main {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-phone,
  .header-actions {
    display: none;
  }

  .nav-wrap {
    gap: 10px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    inset: 126px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #11181d;
    box-shadow: var(--shadow);
  }

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

  .nav-list a {
    display: block;
    padding: 13px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .hero-car {
    right: 180px;
    width: min(620px, 78%);
  }

  .stock-card {
    right: 0;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .product-grid,
  .product-grid.small,
  .cars-grid.large,
  .text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-main {
    grid-template-columns: 1fr;
  }

  .brand img,
  .brand-logo {
    width: 150px;
  }

  .header-search {
    grid-template-columns: 1fr 78px;
  }

  .catalog-trigger {
    min-width: 0;
    width: calc(100% - 54px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .vin-row {
    grid-template-columns: 1fr;
    height: auto;
  }

  .vin-row input,
  .vin-row button {
    height: 44px;
  }

  .vin-row input {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .vin-row button {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .hero-visual {
    display: grid;
    gap: 18px;
    min-height: auto;
  }

  .hero-car {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: min(95%, 440px);
  }

  .stock-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(100%, 280px);
    padding: 16px;
  }

  .stock-card strong {
    font-size: 28px;
  }

  .trust-row,
  .category-grid,
  .benefit-grid,
  .product-grid,
  .product-grid.small,
  .cars-grid.large,
  .text-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cars-row {
    grid-template-columns: 1fr;
  }

  .car-card {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .bottom-grid {
    gap: 26px;
  }

  .inline-filter {
    grid-template-columns: 1fr;
  }

  .detail-info {
    padding: 22px;
  }

  .detail-info h1,
  .page-title {
    font-size: 28px;
  }

  .detail-photo {
    min-height: 280px;
  }

  .spec-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-contacts {
    justify-items: start;
    text-align: left;
  }

  .product-card div {
    grid-template-columns: 1fr;
  }
}
