:root {
  --ink: #111318;
  --muted: #667085;
  --line: #d9dee7;
  --paper: #f5f7fa;
  --white: #ffffff;
  --accent: #2f7d54;
  --accent-dark: #1e5d3d;
  --dark: #171a20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 38px;
  color: var(--white);
  background: rgba(17, 19, 24, 0.92);
}

.page-topbar {
  background: rgba(17, 19, 24, 0.92);
}

.brand,
.nav,
.phone {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--white);
  border-radius: 50%;
}

.nav {
  gap: 18px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.geo-select {
  min-width: 178px;
  display: grid;
  gap: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.geo-select select {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.geo-select select:focus {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(47, 125, 84, 0.28);
}

.geo-select option {
  color: var(--ink);
}

.phone {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-weight: 650;
}

.site-footer {
  width: min(1360px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.75fr) 1.1fr;
  gap: 32px;
  margin: 80px auto 28px;
  padding: 30px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--dark);
  border-radius: 8px;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 680px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.site-footer a {
  color: var(--white);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 18px;
  align-content: start;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.lead-form button {
  height: 46px;
}

.lead-form button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.lead-form small {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
}

.lead-form [data-lead-status] {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.car-detail-panel .lead-form {
  margin-top: 8px;
}

.car-detail-panel .lead-form [data-lead-status] {
  color: var(--muted);
}

.text-page {
  width: min(900px, calc(100% - 48px));
  margin: 132px auto 80px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-page h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.text-page p {
  color: #3e4754;
  font-size: 18px;
  line-height: 1.6;
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, #151922 0%, #223228 52%, #f5f7fa 52%, #f5f7fa 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 0 120px 64px;
  color: var(--white);
  animation: heroIn 760ms ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ef0b0;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  overflow: hidden;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.summary {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -58px auto 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary div {
  min-height: 116px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.summary div:last-child {
  border-right: 0;
}

.summary span {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 850;
}

.summary p {
  margin: 0;
  color: var(--muted);
}

.workspace,
.stock-section {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto 92px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-head.compact {
  align-items: start;
  flex-direction: column;
  gap: 0;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0 0 14px;
}

.brand-chip {
  width: 100%;
  min-width: 0;
  height: 78px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.brand-chip:hover,
.brand-chip.active {
  color: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.brand-chip img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-chip-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.brand-chip span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.model-area {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.model-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.model-head h3 {
  margin: 0;
  font-size: 28px;
}

.model-head p,
.stock-toolbar p {
  margin: 0;
  color: var(--muted);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.model-item {
  min-height: 112px;
  padding: 18px;
  background: var(--white);
  transition: background 160ms ease;
}

.model-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
  background: #f1f4f7;
  border-radius: 6px;
}

.model-item:hover {
  background: #edf7f1;
}

.model-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.model-item span {
  color: var(--muted);
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px 170px 150px;
  gap: 12px;
  margin-bottom: 16px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filters input,
.filters select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.stock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 18px;
}

.text-button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

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

.car-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.car-card:hover {
  transform: translateY(-3px);
  border-color: #a9b7c8;
}

.car-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #e7ebf0;
}

.car-body {
  padding: 18px;
}

.car-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.car-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.badge {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--accent-dark);
  background: #e6f4eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.attrs li {
  padding: 5px 8px;
  border-radius: 4px;
  color: #4e5867;
  background: #f1f4f7;
  font-size: 13px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 22px;
  font-weight: 850;
}

.credit {
  color: var(--muted);
  font-size: 14px;
}

.more {
  min-width: 220px;
  margin: 28px auto 0;
}

.hidden {
  display: none;
}

.seo-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 128px 48px 72px;
  color: var(--white);
  background:
    linear-gradient(135deg, #151922 0%, #20342a 62%, #2f7d54 100%);
}

.car-page-hero {
  min-height: 300px;
  padding: 104px 48px 46px;
}

.car-page-hero h1 {
  max-width: 100%;
  font-size: 48px;
  line-height: 1.04;
}

.car-page-hero p:last-child {
  max-width: 760px;
  font-size: 17px;
}

.seo-hero > div {
  width: min(1680px, 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 650;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs a:hover {
  color: #8ef0b0;
}

.seo-hero h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1;
}

.seo-hero.car-page-hero h1 {
  max-width: 100%;
  font-size: 48px;
  line-height: 1.04;
}

.seo-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.45;
}

.seo-hero.car-page-hero p:last-child {
  max-width: 760px;
  font-size: 17px;
}

.seo-list {
  margin-top: 72px;
}

.page-filters {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(7, minmax(126px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-filters input,
.page-filters select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f9fafb;
}

.page-filters input:focus,
.page-filters select:focus {
  outline: 2px solid rgba(47, 125, 84, 0.18);
  border-color: var(--accent);
  background: var(--white);
}

.filter-result {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.filter-empty {
  display: grid;
  gap: 6px;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-empty strong {
  color: var(--ink);
  font-size: 22px;
}

.listing-list {
  display: grid;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.internal-links {
  margin-top: 56px;
}

.internal-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.internal-links-grid a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  color: #1e5d3d;
  background: #eef8f2;
  border: 1px solid #cfe8d8;
  border-radius: 6px;
  font-weight: 750;
}

.internal-links-grid a:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.catalog-render-card {
  display: grid;
  grid-template-columns: 300px minmax(320px, 1fr) 190px;
  gap: 24px;
  align-items: start;
  padding: 22px;
  margin-bottom: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-render-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #eef2f6;
  border-radius: 6px;
}

.catalog-render-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.catalog-render-gallery img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
}

.catalog-render-main h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.catalog-render-trim {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.catalog-render-specs,
.catalog-render-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.catalog-render-specs li,
.catalog-render-dimensions li {
  padding: 6px 9px;
  border-radius: 4px;
  background: #f1f4f7;
  color: #3e4754;
  font-size: 13px;
  font-weight: 700;
}

.catalog-render-dimensions li {
  background: #eaf4ee;
  color: var(--accent-dark);
}

.catalog-render-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-render-features span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-render-price {
  text-align: right;
}

.catalog-render-price strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.1;
}

.catalog-render-price span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.catalog-render-price em {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--white);
  background: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.catalog-render-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--white);
  background: var(--accent);
  font-weight: 850;
}

.catalog-render-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.catalog-render-actions + .nearest-salon-card,
.catalog-salon-card {
  margin-top: 18px;
}

.catalog-render-price .nearest-salon-card {
  text-align: left;
}

.catalog-render-link.secondary {
  color: var(--accent);
  background: #edf7f1;
  border: 1px solid rgba(47, 125, 84, 0.24);
}

.catalog-sale-detail .car-detail-panel {
  gap: 12px;
}

.catalog-sale-detail .car-detail-panel small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.specs-hero {
  min-height: 320px;
}

.specs-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.specs-media,
.specs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.specs-media {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.specs-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #eef2f6;
  border-radius: 6px;
}

.specs-media h2 {
  margin: 18px 0 6px;
  font-size: 28px;
}

.specs-media p {
  color: var(--muted);
}

.specs-media strong {
  display: block;
  font-size: 24px;
}

.specs-content {
  display: grid;
  gap: 18px;
}

.specs-card {
  padding: 22px;
}

.specs-card h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.specs-trims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.specs-trims article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.specs-trims h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.specs-trims p {
  color: var(--muted);
}

.specs-trims strong,
.specs-trims span {
  display: block;
}

.specs-trims span {
  margin-top: 4px;
  color: var(--muted);
  text-decoration: line-through;
}

.specs-group,
.specs-feature-group {
  margin-top: 18px;
}

.specs-group h3,
.specs-feature-group h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.specs-feature-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs-feature-group li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #3e4754;
  background: #f8fafc;
}

.listing-card {
  display: grid;
  grid-template-columns: 240px minmax(260px, 1fr) 80px 120px 180px;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background 160ms ease;
}

.listing-card:hover {
  transform: none;
  border-color: var(--line);
  background: #f8fafc;
}

.listing-photo {
  position: relative;
}

.listing-card .listing-photo img {
  width: 240px;
  height: 180px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 4px;
}

.listing-photo span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  color: var(--white);
  background: rgba(17, 19, 24, 0.78);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
}

.listing-main h3 {
  margin: 0 0 6px;
  color: #175bd7;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.listing-trim {
  margin: 0 0 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing-specs {
  max-width: 520px;
  margin: 0 0 42px;
  color: #05070a;
  line-height: 1.3;
}

.listing-place {
  margin: 0;
  color: #8b95a3;
  font-size: 14px;
}

.listing-year,
.listing-mileage {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.listing-price {
  text-align: right;
}

.listing-price strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 850;
}

.listing-price span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.listing-price em {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.card-data {
  display: none;
}

.model-summary {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.model-summary div {
  min-height: 104px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.model-summary div:last-child {
  border-right: 0;
}

.model-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.model-summary strong {
  font-size: 20px;
}

.car-detail {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 360px;
  gap: 24px;
  margin-top: 64px;
}

.car-detail-gallery,
.car-detail-panel,
.car-detail-specs dl {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.car-detail-gallery {
  padding: 16px;
}

.car-detail-main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #eef2f6;
  border-radius: 6px;
}

.car-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.car-detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f6;
}

.car-detail-panel {
  padding: 24px;
}

.car-detail-panel h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.car-detail-panel p:not(.eyebrow) {
  color: var(--muted);
}

.car-detail-panel strong {
  display: block;
  margin: 22px 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.car-detail-panel span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
}

.car-detail-specs {
  margin-top: 0;
}

.car-detail-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 0;
}

.car-detail-extra > div {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.car-detail-extra h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.car-data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.car-data-table tr {
  border-bottom: 1px solid var(--line);
}

.car-data-table tr:last-child {
  border-bottom: 0;
}

.car-data-table th,
.car-data-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.car-data-table th {
  width: 42%;
  color: var(--muted);
  background: #f6f8fb;
  font-size: 13px;
  font-weight: 800;
}

.car-data-table td {
  color: var(--ink);
  background: var(--white);
  font-weight: 850;
}

.car-detail-extra dl {
  margin: 0;
}

.car-detail-extra dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.car-detail-extra dt {
  color: var(--muted);
}

.car-detail-extra dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.car-detail-specs dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.car-detail-specs dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.car-detail-specs dt {
  color: var(--muted);
}

.car-detail-specs dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 20px;
  }

  h1 {
    font-size: 48px;
  }

  .seo-hero h1,
  .seo-hero.car-page-hero h1,
  .car-page-hero h1 {
    font-size: 40px;
  }

  .nav {
    display: none;
  }

  .geo-select {
    margin-left: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-left: 24px;
    margin-bottom: 92px;
  }

  .summary,
  .model-summary,
  .page-filters,
  .models-grid,
  .stock-grid,
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .listing-card {
    grid-template-columns: 200px minmax(220px, 1fr) 90px;
  }

  .catalog-render-card {
    grid-template-columns: 220px 1fr;
  }

  .car-detail,
  .car-detail-extra,
  .car-detail-specs dl,
  .specs-layout {
    grid-template-columns: 1fr;
  }

  .specs-media {
    position: static;
  }

  .catalog-render-price {
    grid-column: 2 / -1;
    text-align: left;
  }

  .listing-card .listing-photo img {
    width: 200px;
    height: 150px;
  }

  .listing-mileage,
  .listing-price {
    grid-column: 2 / -1;
  }

  .listing-price {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .phone {
    display: none;
  }

  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .geo-select {
    min-width: 150px;
  }

  h1 {
    font-size: 32px;
  }

  .seo-hero h1,
  .seo-hero.car-page-hero h1,
  .car-page-hero h1 {
    font-size: 28px;
  }

  .hero {
    min-height: 560px;
  }

  .summary,
  .model-summary,
  .page-filters,
  .models-grid,
  .stock-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-head,
  .stock-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .listing-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .listing-card .listing-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .listing-mileage,
  .listing-price {
    grid-column: auto;
  }

  .catalog-render-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .car-detail {
    grid-template-columns: 1fr;
  }

  .car-page-hero {
    padding: 96px 24px 38px;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }

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

  .catalog-render-price {
    grid-column: auto;
  }

  .specs-feature-group ul {
    grid-template-columns: 1fr;
  }
}

.lead-modal-open {
  overflow: hidden;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 24, 0.64);
  backdrop-filter: blur(6px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 19, 24, 0.28);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #eef2f6;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lead-modal__dialog h2 {
  margin: 4px 0 10px;
  font-size: 30px;
}

.lead-modal__copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.lead-modal__form {
  display: grid;
  gap: 12px;
}

.lead-modal__form input,
.credit-calc input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.credit-calc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(220px, 0.9fr);
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credit-calc label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.credit-calc label strong {
  color: var(--ink);
}

.credit-calc__result {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  color: var(--white);
  background: var(--dark);
  border-radius: 8px;
}

.credit-calc__result span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.credit-calc__result strong {
  font-size: 26px;
}

.nearest-salon-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.nearest-salon-card h3 {
  margin: 0;
  font-size: 18px;
}

.nearest-salon-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nearest-salon-card dl div {
  display: grid;
  gap: 2px;
}

.nearest-salon-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.nearest-salon-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.nearest-salon-card a {
  color: var(--green-dark);
}

@media (max-width: 980px) {
  .credit-calc__grid {
    grid-template-columns: 1fr 1fr;
  }

  .credit-calc__result {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .credit-calc__grid {
    grid-template-columns: 1fr;
  }
}
