:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f2f5;
  --text: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #b98524;
  --accent-dark: #8a5d15;
  --navy: #172033;
  --success: #166534;
  --warning: #9a3412;
  --danger: #991b1b;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(185, 133, 36, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

.section-padding {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-content h2,
.contact-info h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(185, 133, 36, 0.2);
  color: #ffffff;
}

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

.btn-outline {
  background: #ffffff;
  border-color: #cbd1d9;
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Header */
.site-header {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  height: var(--header-height);
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.navbar {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
}

.logo {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  gap: 12px;
  letter-spacing: 0.02em;
}

.logo-mark {
  align-items: center;
  background: var(--navy);
  border-radius: var(--radius);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  outline: 2px solid rgba(185, 133, 36, 0.24);
  outline-offset: 3px;
  width: 42px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 800;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-links a::after {
  background: var(--accent);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 44px;
  position: relative;
  width: 44px;
}

.menu-toggle span {
  background: var(--navy);
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 9px;
  position: absolute;
  transition: transform 0.25s ease, opacity 0.25s ease;
  width: 26px;
}

.menu-toggle span:nth-child(1) {
  top: 13px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 29px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Home hero */
.hero {
  align-items: center;
  display: flex;
  min-height: 94vh;
  padding: calc(var(--header-height) + 76px) 0 110px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 5.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 13, 22, 0.86) 0%, rgba(9, 13, 22, 0.62) 43%, rgba(9, 13, 22, 0.14) 100%),
    linear-gradient(180deg, rgba(9, 13, 22, 0.16) 0%, rgba(9, 13, 22, 0.48) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.65rem, 6.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 22px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  text-transform: uppercase;
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.26rem);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 12px;
  width: fit-content;
}

.hero-proof span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero-dots button {
  background: rgba(255, 255, 255, 0.44);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 5px;
  transition: background 0.25s ease, width 0.25s ease;
  width: 42px;
}

.hero-dots button.is-active {
  background: var(--accent);
  width: 88px;
}

/* Page hero */
.page-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.9), rgba(23, 32, 51, 0.64)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #ffffff;
  padding: calc(var(--header-height) + 86px) 0 86px;
}

.page-hero-vehicles {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.9), rgba(23, 32, 51, 0.6)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero-about {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.9), rgba(23, 32, 51, 0.58)),
    url("https://images.unsplash.com/photo-1563720223185-11003d516935?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero-contact {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.9), rgba(23, 32, 51, 0.62)),
    url("https://images.unsplash.com/photo-1549924231-f129b911e442?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero .container {
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 680px;
}

/* Shared sections */
.why,
.process,
.services,
.about,
.featured,
.contact {
  background: var(--bg);
}

.about-snapshot,
.vehicles,
.values,
.showroom {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.features-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.process-card,
.service-card,
.contact-form,
.filter-panel,
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.feature-card {
  min-height: 235px;
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(185, 133, 36, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.feature-icon {
  color: var(--accent);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.feature-card h3,
.testimonial-card h3 {
  color: var(--navy);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.feature-card p,
.process-card p,
.service-card p,
.about-content p,
.map-placeholder p {
  color: var(--muted);
}

/* Vehicle lists */
.filter-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 22px;
  padding: 18px;
}

.filter-panel label,
.contact-form label {
  color: #344054;
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
}

.filter-panel select,
.contact-form input,
.contact-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  color: var(--text);
  min-height: 46px;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.filter-panel select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 133, 36, 0.14);
}

.contact-form textarea {
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
}

.vehicle-count {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 18px 0;
}

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

.vehicle-card {
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vehicle-card:hover {
  border-color: rgba(185, 133, 36, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.vehicle-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.vehicle-image::after {
  background: linear-gradient(180deg, transparent 48%, rgba(17, 24, 39, 0.46) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.vehicle-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.vehicle-badge,
.vehicle-year-badge {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  position: absolute;
  z-index: 1;
}

.vehicle-badge {
  background: #ffffff;
  color: var(--accent-dark);
  left: 14px;
  padding: 7px 10px;
  top: 14px;
}

.vehicle-year-badge {
  background: rgba(23, 32, 51, 0.9);
  color: #ffffff;
  bottom: 14px;
  padding: 7px 10px;
  right: 14px;
}

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

.vehicle-body {
  padding: 20px;
}

.vehicle-brand {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.vehicle-topline {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vehicle-topline h3 {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.25;
}

.vehicle-price {
  color: var(--accent-dark);
  font-weight: 900;
  white-space: nowrap;
}

.vehicle-specs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin-bottom: 18px;
}

.vehicle-specs li {
  background: var(--surface-soft);
  border-radius: var(--radius);
  color: #344054;
  font-size: 0.88rem;
  padding: 8px 10px;
}

.vehicle-card .btn {
  width: 100%;
}

.empty-state {
  background: #fff8ea;
  border: 1px solid rgba(185, 133, 36, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  display: none;
  margin-top: 22px;
  padding: 26px;
  text-align: center;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* Home process and showroom */
.process-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.process-card,
.service-card {
  padding: 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.process-card:hover,
.service-card:hover {
  border-color: rgba(185, 133, 36, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.process-card span,
.service-card span {
  color: var(--accent-dark);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.process-card h3,
.service-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.showroom-layout {
  align-items: center;
  display: grid;
  gap: 50px;
  grid-template-columns: 1.08fr 0.92fr;
}

.showroom-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.showroom-gallery img {
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.12);
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  width: 100%;
}

.showroom-gallery .gallery-large {
  grid-row: span 2;
  min-height: 440px;
}

.showroom-content h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.showroom-content p {
  color: var(--muted);
  margin: 18px 0 0;
}

.showroom-points {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.showroom-points span {
  background: #fff8ea;
  border: 1px solid rgba(185, 133, 36, 0.24);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 900;
  padding: 12px 14px;
}

.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.brand-links {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.brand-link-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.brand-link-card {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(23, 32, 51, 0.82)),
    #172033;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.16);
  color: #ffffff;
  min-height: 220px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-link-card:hover {
  border-color: rgba(185, 133, 36, 0.72);
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.22);
  transform: translateY(-5px);
}

.brand-link-card span {
  color: #f2d17c;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.brand-link-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.brand-link-card p {
  color: rgba(255, 255, 255, 0.76);
}

/* Vehicle detail page */
.detail-page {
  background: var(--surface);
  padding-top: calc(var(--header-height) + 48px);
}

.back-link {
  color: var(--accent-dark);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 22px;
}

.detail-header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.detail-header h1,
.detail-empty h1 {
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.detail-header p,
.detail-empty p {
  color: var(--muted);
  max-width: 720px;
}

.detail-header strong {
  color: var(--accent-dark);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.35fr 0.65fr;
  margin-bottom: 26px;
}

.detail-media,
.detail-summary,
.detail-panel,
.detail-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.detail-media {
  overflow: hidden;
}

.detail-main-image {
  position: relative;
}

.detail-main-image img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-main-image span {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(185, 133, 36, 0.24);
  border-radius: 999px;
  bottom: 18px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  left: 18px;
  padding: 8px 12px;
  position: absolute;
}

.detail-thumbs {
  background: #ffffff;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px;
}

.detail-thumbs button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.detail-thumbs button.active {
  border-color: var(--accent);
}

.detail-thumbs img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  width: 100%;
}

.detail-thumbs button:hover img,
.detail-thumbs button.active img {
  opacity: 1;
}

.detail-summary {
  align-self: start;
  padding: 24px;
}

.detail-summary h2,
.detail-panel h2,
.car-diagram-card h2 {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.2;
}

.detail-specs {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-top: 18px;
}

.detail-specs li,
.expertise-grid div,
.part-item {
  background: var(--surface-soft);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.detail-specs span,
.expertise-grid span,
.part-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-specs strong,
.expertise-grid strong {
  color: var(--navy);
  text-align: right;
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.car-diagram-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  margin-bottom: 26px;
  padding: 26px;
}

.car-expertise-visual-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-top: 22px;
}

.car-model-container,
.damage-summary {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  padding: 20px;
}

.car-model-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
}

#car-model {
  height: auto;
  max-width: 650px;
  width: 100%;
}

.car-base {
  fill: #f8f9fa;
  stroke: #dee2e6;
  stroke-width: 1;
}

.car-side {
  fill: #e9ecef;
  stroke: #ced4da;
  stroke-width: 1;
}

.car-detail {
  fill: #dee2e6;
  stroke: #ced4da;
  stroke-width: 0.5;
}

.car-part {
  cursor: pointer;
  fill: #ffffff;
  stroke: #adb5bd;
  stroke-width: 1;
  transition: fill 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease;
}

.car-part:hover {
  fill: #d0ebff;
}

.car-part.original {
  fill: #ffffff;
}

.car-part.painted {
  fill: rgba(76, 175, 80, 0.34);
  stroke: #4caf50;
}

.car-part.local-painted {
  fill: rgba(255, 247, 0, 0.5);
  stroke: #d4c800;
}

.car-part.changed {
  fill: rgba(33, 150, 243, 0.32);
  stroke: #2196f3;
}

.car-part.chassis {
  fill: rgba(244, 67, 54, 0.24);
  stroke: #f44336;
}

.car-part.chassis-rail {
  fill: #ffffff;
  stroke: #adb5bd;
}

.car-part.selected {
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 1.5;
}

.indicator-group circle {
  stroke: #ffffff;
  stroke-width: 1;
}

.indicator-group text {
  fill: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.indicator-group.painted circle {
  fill: #4caf50;
}

.indicator-group.local-painted circle {
  fill: #fff700;
}

.indicator-group.changed circle {
  fill: #2196f3;
}

.indicator-group.chassis circle {
  fill: #f44336;
}

.indicator-group.painted text,
.indicator-group.changed text,
.indicator-group.chassis text {
  fill: #ffffff;
}

.indicator-group.local-painted text {
  fill: #111827;
}

.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.diagram-legend span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
  padding: 7px 10px;
}

.diagram-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.damage-dot.original {
  background: #4caf50;
}

.damage-dot.painted {
  background: #4caf50;
}

.damage-dot.local-painted {
  background: #fff700;
  border: 1px solid #d4c800;
}

.damage-dot.changed {
  background: #2196f3;
}

.damage-dot.chassis {
  background: #f44336;
}

.damage-summary h3 {
  border-bottom: 1px solid #e9ecef;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.damage-items {
  display: grid;
  gap: 10px;
  max-height: 600px;
  overflow-y: auto;
}

.damage-item {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #edf0f3;
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 14px;
  transition: background 0.25s ease;
}

.damage-item:hover {
  background: #e9ecef;
}

.damage-part {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.damage-status {
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  white-space: nowrap;
}

.damage-status.original,
.damage-status.painted,
.damage-status.clean {
  background: #4caf50;
}

.damage-status.clean {
  background: var(--navy);
}

.damage-status.local-painted {
  background: #fff700;
  color: #111827;
}

.damage-status.changed {
  background: #2196f3;
}

.damage-status.chassis {
  background: #f44336;
}

.car-map {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 51, 0.04) 1px, transparent 1px),
    #f8fafc;
  background-size: 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 22px;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.car-map-shadow {
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.12), rgba(23, 32, 51, 0.04)),
    rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(23, 32, 51, 0.14);
  border-radius: 46% 46% 38% 38%;
  bottom: 7%;
  left: 29%;
  position: absolute;
  right: 29%;
  top: 7%;
}

.car-map-shadow::before,
.car-map-shadow::after {
  background: rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  content: "";
  left: 18%;
  position: absolute;
  right: 18%;
}

.car-map-shadow::before {
  height: 13%;
  top: 24%;
}

.car-map-shadow::after {
  bottom: 19%;
  height: 16%;
}

.diagram-part {
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 44px;
  padding: 6px;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.diagram-part span {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
}

.diagram-part strong {
  font-size: 0.68rem;
  line-height: 1.1;
}

.diagram-front-bumper {
  height: 7%;
  left: 36%;
  top: 4%;
  width: 28%;
}

.diagram-hood {
  height: 14%;
  left: 33%;
  top: 13%;
  width: 34%;
}

.diagram-left-front-fender {
  height: 17%;
  left: 18%;
  top: 13%;
  width: 13%;
}

.diagram-right-front-fender {
  height: 17%;
  right: 18%;
  top: 13%;
  width: 13%;
}

.diagram-left-front-door {
  height: 16%;
  left: 13%;
  top: 34%;
  width: 19%;
}

.diagram-right-front-door {
  height: 16%;
  right: 13%;
  top: 34%;
  width: 19%;
}

.diagram-roof {
  height: 25%;
  left: 36%;
  top: 32%;
  width: 28%;
}

.diagram-left-rear-door {
  height: 16%;
  left: 13%;
  top: 53%;
  width: 19%;
}

.diagram-right-rear-door {
  height: 16%;
  right: 13%;
  top: 53%;
  width: 19%;
}

.diagram-left-rear-fender {
  height: 17%;
  left: 18%;
  top: 73%;
  width: 13%;
}

.diagram-right-rear-fender {
  height: 17%;
  right: 18%;
  top: 73%;
  width: 13%;
}

.diagram-trunk {
  height: 13%;
  left: 33%;
  top: 74%;
  width: 34%;
}

.diagram-rear-bumper {
  height: 7%;
  left: 36%;
  top: 90%;
  width: 28%;
}

.detail-content-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 0.82fr 1.18fr;
}

.detail-panel {
  padding: 26px;
}

.detail-panel p {
  color: var(--muted);
  margin-top: 14px;
}

.detail-panel h3 {
  color: var(--navy);
  margin-top: 24px;
}

.panel-title {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.panel-title > span {
  background: #fff8ea;
  border: 1px solid rgba(185, 133, 36, 0.22);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.expertise-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.parts-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.part-item strong {
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 4px 9px;
  text-align: right;
}

.status-original {
  background: #dcfce7;
  color: var(--success);
}

.status-painted {
  background: #fff7ed;
  color: var(--warning);
}

.status-local {
  background: #dbeafe;
  color: #1e40af;
}

.status-changed {
  background: #fee2e2;
  color: var(--danger);
}

.part-item .status-painted {
  background: #fff7ed;
  color: var(--warning);
}

.part-item .status-local {
  background: #dbeafe;
  color: #1e40af;
}

.part-item .status-changed {
  background: #fee2e2;
  color: var(--danger);
}

.status-clean {
  background: #eef2f7;
  color: var(--navy);
}

.expertise-notes {
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin-left: 18px;
  margin-top: 12px;
}

.detail-empty {
  padding: 34px;
}

.detail-empty .btn {
  margin-top: 22px;
}

/* About */
.about-layout {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.95fr 1.05fr;
}

.about-image {
  border-radius: var(--radius);
  min-height: 470px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-content p {
  margin-top: 18px;
}

.about-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 0;
}

.about-stats span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: #344054;
  padding: 14px 16px;
}

.about-stats strong {
  color: var(--accent-dark);
  display: block;
  font-size: 1.5rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  padding: 28px;
}

.testimonial-card p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.testimonial-card span {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.contact-list a,
.contact-list address {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-style: normal;
  padding: 16px 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transform: translateX(4px);
}

.contact-list span {
  color: var(--accent-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.map-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(185, 133, 36, 0.14), rgba(23, 32, 51, 0.06)),
    #ffffff;
  border: 1px solid rgba(185, 133, 36, 0.24);
  border-radius: var(--radius);
  display: grid;
  min-height: 210px;
  padding: 24px;
}

.map-placeholder span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-placeholder strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form-message {
  color: var(--accent-dark);
  display: none;
  font-weight: 800;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-layout {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 1fr auto;
}

.footer-links,
.social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

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

.social-links a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  width: 38px;
}

.social-links a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.footer p {
  color: var(--muted);
  font-size: 0.88rem;
  grid-column: 1 / -1;
}

.equipment-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.equipment-list li {
  background: var(--surface-soft);
  border-radius: var(--radius);
  color: #344054;
  padding: 10px 12px;
}

.equipment-list {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.equipment h3 {
  color: var(--navy);
  margin-top: 22px;
}

/* Scroll animation */
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .features-grid,
  .vehicle-grid,
  .process-grid,
  .service-grid,
  .brand-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout,
  .contact-layout,
  .detail-layout,
  .detail-content-grid,
  .car-expertise-visual-grid,
  .showroom-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .menu-toggle {
    display: block;
    z-index: 52;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 20px 14px 24px;
    pointer-events: none;
    position: fixed;
    top: var(--header-height);
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    width: 100%;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: var(--radius);
    display: block;
    padding: 13px 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .section-padding {
    padding: 72px 0;
  }

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

  .testimonial-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .detail-header,
  .panel-title {
    align-items: start;
    display: grid;
  }

  .diagram-legend {
    justify-content: flex-start;
  }

  .detail-header strong,
  .panel-title > span {
    white-space: normal;
  }

  .footer-layout {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .center-action {
    display: grid;
  }

  .hero-proof {
    display: grid;
    width: 100%;
  }

  .hero-proof span {
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .features-grid,
  .vehicle-grid,
  .process-grid,
  .service-grid,
  .brand-link-grid,
  .filter-panel,
  .about-stats,
  .equipment-list,
  .expertise-grid,
  .parts-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-topline {
    display: grid;
  }

  .vehicle-price {
    white-space: normal;
  }

  .page-hero {
    padding: calc(var(--header-height) + 58px) 0 62px;
  }

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

  .showroom-gallery {
    grid-template-columns: 1fr;
  }

  .showroom-gallery .gallery-large,
  .showroom-gallery img {
    min-height: 240px;
  }

  .car-diagram-card {
    padding: 18px;
  }

  .car-map {
    min-height: 455px;
  }

  .diagram-part {
    min-height: 38px;
    padding: 4px;
  }

  .diagram-part span {
    font-size: 0.66rem;
  }

  .diagram-part strong {
    font-size: 0.6rem;
  }

  .contact-form {
    padding: 20px;
  }
}
