:root {
  --font: "Segoe UI", "Aptos", Arial, sans-serif;
  --display-font: "Segoe UI Light", "Segoe UI", "Aptos Display", "Aptos", Arial, sans-serif;
  --ink: #050505;
  --muted: #687078;
  --paper: #f4f4f2;
  --band: #eeeeec;
  --line: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: var(--font);
}

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

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

.site-container,
.catalog-container {
  width: calc(100% - 60px);
  max-width: none;
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.brand-emblem {
  display: block;
  height: 30px;
  width: auto;
}

.brand-wordmark {
  display: block;
  height: 23px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: #050505;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 610;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav-item {
  position: relative;
  display: inline-flex;
}

.site-nav-item.has-subnav::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
}

.site-nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  min-width: 214px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav-item:hover .site-nav-submenu,
.site-nav-item:focus-within .site-nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav-submenu a {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav-submenu a:hover {
  background: #f2f2f0;
}

.site-nav-submenu a::after {
  display: none;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 250px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 8px 0 22px;
  color: #fff;
  background: #050505;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.header-cta span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #050505;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.catalog-template {
  min-height: 100vh;
  background: #fff;
}

.catalog-hero {
  padding: clamp(78px, 6.5vw, 116px) 0 clamp(54px, 5vw, 78px);
}

.catalog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.34fr);
  gap: clamp(54px, 7vw, 118px);
  align-items: center;
}

.catalog-kicker,
.vehicle-detail-kicker {
  margin: 0 0 18px;
  color: #6c6c6c;
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.catalog-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 3.15vw, 3.72rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
}

.catalog-hero h1 span {
  display: block;
}

.catalog-hero p:not(.catalog-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: #6b6f75;
  font-size: 0.9rem;
  font-weight: 390;
  line-height: 1.72;
}

.catalog-stock-panel {
  display: grid;
  justify-self: end;
  align-content: center;
  gap: 18px;
  width: 360px;
}

.catalog-stock-count {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-stock-count strong {
  color: #070707;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 3.25vw, 3.7rem);
  font-weight: 300;
  line-height: 0.9;
}

.catalog-stock-count span {
  color: #0d0d0d;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.catalog-search-box {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 0 15px 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.catalog-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111;
  background: transparent;
  font: inherit;
}

.catalog-list {
  padding: 30px 0 clamp(86px, 8vw, 132px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f2f2f0;
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.catalog-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-filter-bar button,
.catalog-sort-select {
  min-height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 0;
  padding: 0 18px;
  color: #151515;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 660;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-filter-bar button.is-active {
  border-color: #050505;
  color: #fff;
  background: #050505;
}

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

.vehicle-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.18);
}

.vehicle-card[hidden] {
  display: none;
}

.vehicle-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.25;
  overflow: hidden;
  background: #e8e8e5;
}

.vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  position: absolute;
  bottom: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: #050505;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.reserved {
  background: #7e1c16;
}

.status-pill.sold {
  background: #555;
}

.vehicle-card-body {
  display: grid;
  gap: 16px;
  padding: 24px 22px 20px;
}

.vehicle-card-heading {
  display: grid;
  gap: 8px;
}

.vehicle-title {
  margin: 0;
  color: #050505;
  font-size: clamp(1.32rem, 1.35vw, 1.62rem);
  font-weight: 620;
  line-height: 1.05;
  text-transform: uppercase;
}

.vehicle-card-heading p {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: #5b6066;
  font-size: 0.92rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #1f2327;
  font-size: 0.78rem;
  font-weight: 560;
  text-transform: uppercase;
}

.vehicle-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 16px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

.vehicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-card-footer strong {
  color: #050505;
  font-family: var(--display-font);
  font-size: clamp(1.32rem, 1.35vw, 1.62rem);
  font-weight: 460;
  line-height: 1;
}

.vehicle-card-link {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #050505;
}

.catalog-empty {
  padding: 48px;
  background: #fff;
  color: #5f6770;
}

.vehicle-detail-template {
  color: #050505;
  background: var(--paper);
}

.vehicle-detail-container {
  width: calc(100% - 60px);
  max-width: none;
  margin: 0 auto;
}

.vehicle-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 22px;
  color: #707780;
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.3;
}

.vehicle-detail-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.vehicle-detail-breadcrumb a:hover {
  color: #050505;
}

.vehicle-detail-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: #050505;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-separator {
  color: #b1b5b9;
}

.vehicle-detail-hero {
  padding: 22px 0 64px;
}

.vehicle-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 30px;
  align-items: start;
}

.vehicle-detail-main-photo {
  display: block;
  width: 100%;
  height: clamp(520px, 44vw, 690px);
  overflow: hidden;
  background: #ddd;
}

.vehicle-detail-main-photo img,
.vehicle-detail-thumbs img,
.vehicle-detail-photo-grid img,
.vehicle-detail-similar-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.vehicle-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vehicle-detail-thumbs img {
  height: 108px;
  background: #ddd;
}

.vehicle-detail-thumbs button,
.vehicle-detail-photo-grid button,
.vehicle-detail-main-photo {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.vehicle-detail-thumbs button {
  position: relative;
}

.vehicle-detail-thumbs button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
}

.vehicle-detail-thumbs button.is-active::after {
  border-color: #050505;
}

.vehicle-detail-summary,
.vehicle-detail-card {
  border: 1px solid var(--line);
  background: #fff;
}

.vehicle-detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(30px, 3vw, 42px);
}

.vehicle-detail-summary h1 {
  max-width: 420px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 3.9vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
}

.vehicle-detail-subtitle {
  max-width: 380px;
  margin: 18px 0 0;
  color: #5f6770;
  font-size: 1rem;
  line-height: 1.55;
}

.vehicle-detail-price {
  margin: 34px 0 18px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 2.7vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
}

.vehicle-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  color: #fff;
  background: #050505;
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}

.vehicle-detail-status.reserved {
  background: #7a5b22;
}

.vehicle-detail-status.sold {
  background: #555;
}

.vehicle-detail-quick-specs,
.vehicle-detail-spec-grid {
  display: grid;
  border: 1px solid var(--line);
  background: var(--line);
}

.vehicle-detail-quick-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
}

.vehicle-detail-quick-specs div,
.vehicle-detail-spec-card {
  min-width: 0;
  background: #fff;
}

.vehicle-detail-quick-specs div {
  min-height: 86px;
  padding: 18px;
}

.vehicle-detail-quick-specs span,
.vehicle-detail-spec-card span {
  display: block;
  margin-bottom: 9px;
  color: #727a82;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vehicle-detail-quick-specs strong,
.vehicle-detail-spec-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.3;
}

.vehicle-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.vehicle-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  min-width: 154px;
  border: 1px solid #050505;
  padding: 0 17px;
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.vehicle-detail-button.dark {
  color: #fff;
  background: #050505;
}

.vehicle-detail-button.light {
  color: #050505;
  background: #fff;
}

.vehicle-detail-section {
  padding: clamp(66px, 6vw, 104px) 0;
  background: var(--paper);
}

.vehicle-detail-intro-section {
  padding-top: 0;
}

.vehicle-detail-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 24px;
}

.vehicle-detail-card {
  padding: clamp(30px, 3vw, 44px);
}

.vehicle-detail-card h2,
.vehicle-detail-section-head h2,
.vehicle-detail-final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 3.4vw, 4rem);
  font-weight: 300;
  line-height: 1.06;
}

.vehicle-detail-description {
  max-width: 840px;
  margin-top: 28px;
  color: #5f6770;
  font-size: 1rem;
  line-height: 1.75;
}

.vehicle-detail-seller-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.vehicle-detail-seller-highlights li {
  padding: 10px 14px;
  border: 1px solid #d8d4cb;
  border-radius: 999px;
  background: #f7f5f0;
  color: #262a2f;
  font-size: 0.93rem;
  line-height: 1.25;
}

.vehicle-detail-note {
  max-width: 760px;
  margin: 28px 0 0;
  color: #262a2f;
  font-size: 0.96rem;
  line-height: 1.6;
}

.vehicle-detail-trust-card ul,
.vehicle-detail-equipment-list {
  display: grid;
  gap: 14px 28px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.vehicle-detail-trust-card ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-detail-trust-card .vehicle-detail-seller-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 22px 0 28px;
}

.vehicle-detail-trust-card .vehicle-detail-seller-highlights li {
  color: #262a2f;
  font-size: 0.9rem;
  line-height: 1.25;
}

.vehicle-detail-trust-card .vehicle-detail-seller-highlights li::before {
  content: none;
  margin: 0;
}

.vehicle-detail-trust-card li,
.vehicle-detail-equipment-list li {
  color: #5d6570;
  font-size: 0.95rem;
  line-height: 1.4;
}

.vehicle-detail-trust-card li::before,
.vehicle-detail-equipment-list li::before {
  content: "+";
  margin-right: 12px;
  color: #050505;
  font-weight: 760;
}

.vehicle-detail-spec-section,
.vehicle-detail-photo-section {
  background: var(--band);
}

.vehicle-detail-section-head {
  margin-bottom: 34px;
}

.vehicle-detail-spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.vehicle-detail-spec-card {
  min-height: 94px;
  padding: 20px;
}

.vehicle-detail-equipment-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-detail-photo-grid img {
  display: block;
  height: clamp(220px, 20vw, 320px);
  background: #ddd;
}

.vehicle-detail-similar-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(720px, 1.45fr);
  gap: 34px;
  align-items: center;
}

.vehicle-detail-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vehicle-detail-similar-grid a {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.vehicle-detail-similar-grid img {
  width: 100%;
  height: auto;
  object-fit: unset;
  background: transparent;
}

.vehicle-detail-final-cta {
  padding: clamp(30px, 3vw, 44px) 0;
  margin-bottom: clamp(34px, 4vw, 58px);
  color: #fff;
  background: #050505;
}

.vehicle-detail-final-cta .vehicle-detail-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.vehicle-detail-final-cta .vehicle-detail-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.vehicle-detail-final-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.2vw, 2.55rem);
}

.vehicle-detail-final-cta .vehicle-detail-actions {
  flex: 0 0 auto;
  margin: 0;
}

.site-footer {
  padding: 64px 0 0;
  color: #fff;
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 34px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding: 22px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .site-container,
  .catalog-container,
  .vehicle-detail-container {
    width: calc(100% - 40px);
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .brand,
  .header-cta {
    min-width: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .catalog-hero-grid,
  .vehicle-detail-hero-grid,
  .vehicle-detail-two-columns,
  .vehicle-detail-similar-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .catalog-stock-panel {
    justify-self: stretch;
    width: 100%;
  }

  .vehicle-grid,
  .vehicle-detail-spec-grid,
  .vehicle-detail-equipment-list,
  .vehicle-detail-photo-grid,
  .vehicle-detail-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-container,
  .catalog-container,
  .vehicle-detail-container {
    width: calc(100% - 28px);
  }

  .catalog-hero {
    padding-top: 48px;
  }

  .catalog-hero h1,
  .vehicle-detail-summary h1 {
    font-size: 2.65rem;
  }

  .catalog-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .vehicle-grid,
  .vehicle-detail-quick-specs,
  .vehicle-detail-spec-grid,
  .vehicle-detail-equipment-list,
  .vehicle-detail-photo-grid,
  .vehicle-detail-similar-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-main-photo {
    height: 360px;
  }

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

  .vehicle-detail-final-cta .vehicle-detail-container,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-cookie-button:hover {
  text-decoration: underline;
}

.footer-bottom span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cookie-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Final polish: tighter vehicle detail rhythm and unified premium buttons. */
.header-cta {
  border: 1px solid #050505;
  border-radius: 8px;
  background: linear-gradient(180deg, #050505 0%, #050505 72%, #202020 100%);
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.08);
}

.header-cta span {
  border-radius: 7px;
}

.vehicle-detail-hero {
  padding-bottom: clamp(38px, 4vw, 56px);
}

.vehicle-detail-summary h1 {
  max-width: 100%;
  font-size: clamp(1.92rem, 2.05vw, 2.48rem);
  line-height: 1.12;
}

.vehicle-detail-subtitle {
  max-width: 100%;
  margin-top: 16px;
}

.vehicle-detail-price {
  margin-top: 28px;
}

.vehicle-detail-quick-specs,
.vehicle-detail-actions {
  margin-top: 28px;
}

.vehicle-detail-section {
  padding: clamp(38px, 4vw, 64px) 0;
}

.vehicle-detail-card h2,
.vehicle-detail-section-head h2,
.vehicle-detail-final-cta h2 {
  font-size: clamp(1.68rem, 2.05vw, 2.45rem);
  line-height: 1.1;
}

.vehicle-detail-section-head,
.vehicle-detail-equipment-card h2 {
  margin-bottom: 24px;
}

/* Mobile conversion pass: navigation, cards and vehicle detail actions. */
.mobile-menu-toggle,
.mobile-menu-panel,
.catalog-mobile-controls,
.catalog-mobile-sheet,
.vehicle-mobile-sticky-actions {
  display: none;
}

html.mobile-menu-lock,
body.mobile-menu-lock {
  overflow: hidden;
}

.vehicle-card {
  position: relative;
}

.vehicle-card a:not(.vehicle-card-stretched-link),
.vehicle-card button {
  position: relative;
  z-index: 2;
}

.vehicle-card-stretched-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  font-size: 0;
}

.vehicle-detail-main-photo {
  position: relative;
}

.vehicle-photo-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 5, 5, 0.76);
  font-size: 0.78rem;
  font-weight: 760;
}

.vehicle-detail-equipment-more {
  display: none;
}

.catalog-active-chips[hidden],
.catalog-mobile-sheet[hidden] {
  display: none;
}

.mobile-menu-icon.close {
  display: none;
}

.mobile-menu-open .mobile-menu-icon.open {
  display: none;
}

.mobile-menu-open .mobile-menu-icon.close {
  display: inline;
}

@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 220;
  }

  .site-header .site-container {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
    padding: 0;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    gap: 8px;
  }

  .brand .brand-emblem {
    height: 26px;
  }

  .brand .brand-wordmark {
    max-width: min(138px, calc(100vw - 112px));
    height: 20px;
    object-fit: contain;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 240;
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
    color: #050505;
    background: #fff;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
  }

  .mobile-menu-panel {
    position: fixed;
    z-index: 230;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 94px 18px 24px;
    background: #f5f5f3;
    overflow-y: auto;
  }

  .mobile-menu-panel[hidden] {
    display: none;
  }

  .mobile-menu-nav {
    display: grid;
    gap: 10px;
  }

  .mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.12);
    color: #050505;
    font-size: 1.05rem;
    font-weight: 680;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .mobile-menu-nav a.is-active {
    color: #555;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
  }

  .mobile-menu-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
    color: #050505;
    background: #fff;
    font-weight: 760;
  }

  .mobile-menu-actions .mobile-menu-primary {
    color: #fff;
    background: linear-gradient(180deg, #050505 0%, #050505 72%, #202020 100%);
  }
}

@media (max-width: 760px) {
  html,
  body,
  .catalog-template {
    max-width: 100%;
    overflow-x: hidden;
  }

  .catalog-container {
    width: calc(100% - 24px);
    max-width: 100%;
    min-width: 0;
  }

  .catalog-mobile-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .catalog-mobile-controls button,
  .catalog-active-chips button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
    color: #050505;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 760;
    text-transform: uppercase;
  }

  .catalog-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }

  .catalog-active-chips button {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .catalog-filter-bar {
    display: none;
  }

  .catalog-template .vehicle-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .catalog-mobile-sheet {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: block;
  }

  .catalog-mobile-sheet[hidden] {
    display: none;
  }

  .catalog-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 5, 5, 0.48);
  }

  .catalog-mobile-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 18px;
    max-height: min(82svh, 680px);
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #fff;
    overflow-y: auto;
  }

  .catalog-mobile-sheet-panel.compact {
    max-height: min(58svh, 420px);
  }

  .catalog-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .catalog-mobile-sheet-head strong {
    font-size: 1.2rem;
  }

  .catalog-mobile-sheet-head button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 8px;
    background: #fff;
  }

  .catalog-mobile-filter-list {
    display: grid;
    gap: 8px;
  }

  .catalog-mobile-filter-list button {
    min-height: 48px;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    color: #050505;
    background: #f7f7f5;
    text-align: left;
    font-weight: 680;
  }

  .catalog-mobile-filter-list button.is-active,
  .catalog-mobile-apply {
    color: #fff;
    background: #050505;
  }

  .catalog-mobile-apply {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    font-weight: 780;
  }

  .catalog-template .vehicle-card,
  .vehicle-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .catalog-template .vehicle-card-media,
  .vehicle-card-media {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10.8;
  }

  .catalog-template .vehicle-card-media img,
  .vehicle-card-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .catalog-template .vehicle-card-body,
  .vehicle-card-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 18px 18px;
  }

  .catalog-template .vehicle-title,
  .vehicle-title {
    font-size: clamp(1.22rem, 7vw, 1.58rem);
  }

  .catalog-template .vehicle-card-heading p,
  .vehicle-card-heading p {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .catalog-template .vehicle-meta,
  .vehicle-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.72rem;
  }

  .catalog-template .vehicle-meta span,
  .vehicle-meta span {
    white-space: normal;
  }

  .catalog-template .vehicle-meta span + span::before,
  .vehicle-meta span + span::before {
    display: none;
  }

  .vehicle-detail-template {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .vehicle-detail-summary h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.45rem);
  }

  .vehicle-detail-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .vehicle-detail-main-photo {
    height: min(76vw, 330px);
  }

  .vehicle-detail-thumbs {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .vehicle-detail-thumbs button {
    flex: 0 0 92px;
    scroll-snap-align: start;
  }

  .vehicle-detail-thumbs img {
    height: 68px;
  }

  .vehicle-detail-photo-section {
    display: none;
  }

  .vehicle-detail-equipment-toggle:not(.is-expanded) .vehicle-detail-equipment-list li:nth-child(n+11) {
    display: none;
  }

  .vehicle-detail-equipment-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border: 1px solid #050505;
    border-radius: 8px;
    color: #fff;
    background: #050505;
    font-weight: 760;
  }

  .vehicle-mobile-sticky-actions {
    position: fixed;
    z-index: 210;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  }

  .vehicle-mobile-sticky-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 9px;
    color: #050505;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 760;
  }
}

.vehicle-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.vehicle-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.vehicle-lightbox-inner {
  position: absolute;
  z-index: 1;
  inset: 54px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vehicle-lightbox-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: auto;
}

.vehicle-lightbox-close,
.vehicle-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #050505;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.4rem;
  font-weight: 760;
}

.vehicle-lightbox-close {
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
}

.vehicle-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 56px;
  transform: translateY(-50%);
}

.vehicle-lightbox-nav.previous {
  left: 0;
}

.vehicle-lightbox-nav.next {
  right: 0;
}

@media (max-width: 760px) {
  .vehicle-detail-template,
  .vehicle-detail-hero,
  .vehicle-detail-container,
  .vehicle-detail-gallery,
  .vehicle-detail-summary {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .vehicle-detail-hero {
    padding: 18px 0 34px;
  }

  .vehicle-detail-breadcrumb {
    padding-top: 16px;
    font-size: 0.72rem;
  }

  .vehicle-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .vehicle-detail-main-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 8px;
    background: #f2f2f0;
  }

  .vehicle-detail-main-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 68svh;
    object-fit: contain;
    object-position: center center;
  }

  .vehicle-detail-summary {
    display: grid;
    gap: 22px;
    padding: 22px 18px;
  }

  .vehicle-detail-summary h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 8.5vw, 2.25rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .vehicle-detail-subtitle {
    max-width: 100%;
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .vehicle-detail-price {
    margin: 22px 0 14px;
    font-size: clamp(1.65rem, 9vw, 2.1rem);
  }

  .vehicle-detail-thumbs {
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .vehicle-detail-thumbs button {
    flex: 0 0 82px;
    min-width: 82px;
    scroll-snap-align: start;
  }

  .vehicle-detail-thumbs img {
    width: 82px;
    height: 62px;
    object-fit: contain;
    background: #f2f2f0;
  }

  .vehicle-photo-counter {
    right: 10px;
    bottom: 10px;
  }

  .vehicle-lightbox-inner {
    inset: 58px 12px 28px;
  }

  .vehicle-lightbox-close {
    top: -46px;
    right: 0;
  }

  .vehicle-lightbox-nav {
    width: 42px;
    height: 48px;
  }
}
