:root {
  color-scheme: light;
  --ink: #101713;
  --muted: #64716a;
  --line: #dfe7df;
  --panel: #ffffff;
  --soft: #f1f7f2;
  --cream: #f8fbf8;
  --forest: #08120f;
  --green: #008a43;
  --gold: #18a957;
  --coral: #0a8f47;
  --blue: #176f9f;
  --shadow: 0 18px 42px rgba(9, 34, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0, var(--cream) 420px, #f5faf6 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 122, 61, 0.14);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: clamp(118px, 15vw, 178px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 18px rgba(0, 122, 61, 0.12));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  color: #17231d;
  font-weight: 750;
}

.nav a {
  white-space: nowrap;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-button {
  min-width: 42px;
  height: 34px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.lang-button.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, #07120f, var(--green));
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 32px;
  align-items: end;
  min-height: 620px;
  padding: clamp(54px, 7vw, 92px) clamp(16px, 4vw, 56px) 34px;
  color: var(--ink);
  overflow: hidden;
  background: #ffffff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.24) 74%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 122, 61, 0.04), rgba(255, 255, 255, 0));
}

.hero.is-dark-hero {
  color: #fff;
}

.hero.is-dark-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.78) 0%, rgba(7, 18, 15, 0.58) 42%, rgba(7, 18, 15, 0.14) 100%),
    linear-gradient(180deg, rgba(7, 18, 15, 0.2), rgba(7, 18, 15, 0.04));
}

.hero.is-brand-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 25, 17, 0.82) 0%, rgba(3, 25, 17, 0.58) 34%, rgba(255, 255, 255, 0.42) 66%, rgba(255, 255, 255, 0.1) 100%),
    radial-gradient(circle at 44% 42%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 34%, rgba(3, 25, 17, 0.18) 70%),
    linear-gradient(180deg, rgba(0, 122, 61, 0.12), rgba(3, 25, 17, 0.1));
}

.hero.is-brand-hero h1 {
  max-width: 660px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 0.98;
  font-weight: 820;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.hero.is-brand-hero .hero-text {
  max-width: 560px;
}

.hero.is-photo-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 36%, rgba(255, 255, 255, 0.36) 68%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(245, 250, 247, 0.24), rgba(0, 122, 61, 0.05));
}

.hero.is-photo-hero .hero-slide.is-active {
  background-position: center right;
}

.hero.is-photo-hero h1 {
  max-width: 680px;
  color: #07120f;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1;
  font-weight: 850;
  text-shadow: 0 12px 32px rgba(255, 255, 255, 0.72);
}

.hero.is-photo-hero .eyebrow {
  color: var(--green);
}

.hero.is-photo-hero .hero-text {
  max-width: 570px;
  color: #43564d;
  font-weight: 650;
}

.hero.is-photo-hero .quick-panel {
  max-width: 360px;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 122, 61, 0.18);
  box-shadow: 0 18px 48px rgba(7, 18, 15, 0.14);
  backdrop-filter: blur(12px);
}

.hero.is-dark-hero .hero-text {
  color: rgba(255, 255, 255, 0.88);
}

.hero.is-dark-hero .hero .eyebrow,
.hero.is-dark-hero .eyebrow {
  color: #f4b63f;
}

.hero.is-dark-hero .primary-action {
  background: #e84d34;
  border-color: #e84d34;
}

.hero.is-dark-hero .secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

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

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  overflow-wrap: normal;
  word-break: keep-all;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.94;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: #4a5b52;
  font-size: 19px;
  line-height: 1.72;
}

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

.primary-action,
.secondary-action,
.reset-button,
.details-button,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #07120f, var(--green));
  border: 1px solid var(--green);
}

.secondary-action {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 122, 61, 0.24);
}

.reset-button,
.details-button,
.load-more {
  color: var(--forest);
  background: #fff;
  border: 1px solid var(--line);
}

.quick-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 122, 61, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quick-panel div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--green);
  font-size: 34px;
  font-weight: 950;
}

.inventory-band,
.process-band,
.about-band,
.inquiry-band {
  padding: 62px clamp(16px, 4vw, 56px);
}

.inventory-band {
  background: #fff;
}

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

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filters input,
.filters select,
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.filters input:focus,
.filters select:focus,
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 124, 74, 0.12);
}

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

.car-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(9, 34, 29, 0.08);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: #d7e1dc;
  border: 0;
}

.image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  transition: transform 220ms ease;
}

.car-card:hover .image-button img {
  transform: scale(1.035);
}

.stock-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(9, 34, 29, 0.86);
  border-radius: 8px;
}

.car-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.car-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.car-brand {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

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

.price {
  white-space: nowrap;
  color: var(--coral);
  font-size: 20px;
  font-weight: 950;
}

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

.spec-list span,
.service-list span,
.tag-row span,
.condition-strip span {
  min-width: 0;
  padding: 8px 10px;
  color: #304039;
  background: var(--soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

.tag-row,
.condition-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: #7a5400;
  background: #fff4d6;
}

.card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.location,
.dialog-location {
  color: var(--muted);
  font-size: 14px;
}

.details-button {
  color: var(--forest);
  background: #edf7f1;
  border-color: #cde8d6;
}

.load-more {
  width: min(260px, 100%);
  margin: 26px auto 0;
}

.load-more[hidden] {
  display: none;
}

.process-band {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.process-step {
  min-height: 198px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 950;
  background: var(--green);
  border-radius: 8px;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.process-step p,
.about-copy p,
.dialog-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-band {
  --about-bg-image: url("/assets/about-car-bg.jpg");
  --about-bg-position: center center;
  --about-overlay-start: 0.9;
  --about-overlay-middle: 0.7;
  --about-overlay-end: 0.18;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, var(--about-overlay-start)) 0%, rgba(255, 255, 255, var(--about-overlay-middle)) 46%, rgba(255, 255, 255, var(--about-overlay-end)) 100%),
    var(--about-bg-image) var(--about-bg-position) / cover;
}

.about-band::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 122, 61, 0.12), rgba(0, 122, 61, 0));
}

.about-copy p {
  max-width: 620px;
  margin-top: 14px;
}

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

.service-list span {
  padding: 18px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 122, 61, 0.2);
  backdrop-filter: blur(4px);
}

.about-page {
  padding: 34px clamp(18px, 5vw, 72px) 72px;
  background:
    linear-gradient(180deg, #f5fbf7 0%, #ffffff 34%),
    #ffffff;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  min-height: 480px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(0, 122, 61, 0.14) 100%),
    url("/assets/about-car-bg.jpg") center right / cover;
  border: 1px solid rgba(0, 122, 61, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(7, 18, 15, 0.12);
}

.about-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1;
}

.about-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: #40554b;
  font-size: 19px;
  line-height: 1.72;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.license-card,
.about-panel,
.contact-panel,
.trust-band {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 122, 61, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 18, 15, 0.08);
}

.license-card {
  align-self: center;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.license-card > span {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.license-card strong {
  display: block;
  margin: 10px 0 22px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
}

.license-card dl,
.contact-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.license-card div,
.contact-panel div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f3f8f4;
  border-radius: 8px;
}

.license-card dt,
.contact-panel dt {
  color: #5a6c62;
  font-weight: 800;
}

.license-card dd,
.contact-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  margin-top: 24px;
}

.about-panel,
.contact-panel,
.trust-band {
  padding: clamp(24px, 4vw, 38px);
}

.about-panel h2,
.contact-panel h2,
.trust-band h2 {
  max-width: 740px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.business-grid article,
.trust-list span {
  padding: 18px;
  background: #f4f8f5;
  border: 1px solid rgba(0, 122, 61, 0.12);
  border-radius: 8px;
}

.business-grid strong {
  display: block;
  color: var(--green);
  font-size: 18px;
}

.business-grid p {
  margin: 8px 0 0;
  color: #53645d;
  line-height: 1.58;
}

.contact-panel a {
  color: var(--green);
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-weight: 850;
}

.inquiry-band {
  background: #fff;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
}

.inquiry-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.inquiry-form .primary-action {
  width: fit-content;
}

.form-message {
  align-self: center;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px 36px;
  align-items: center;
  padding: 42px clamp(18px, 5vw, 72px);
  color: #101814;
  background: #fffdf8;
  border-top: 1px solid #dfe8e2;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-logo {
  width: min(260px, 72vw);
  height: 78px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}

.footer-brand strong {
  color: var(--forest);
  font-size: 22px;
}

.footer-brand span {
  color: #53645d;
  font-weight: 800;
}

.footer-brand em {
  margin-top: 28px;
  color: #070b09;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  text-decoration: none;
  background: #050505;
  border-radius: 999px;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.footer-socials a:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials span {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: #53645d;
  font-size: 13px;
  font-weight: 800;
}

.car-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.car-dialog::backdrop {
  background: rgba(6, 18, 15, 0.68);
}

.dialog-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 10px 10px -48px 0;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.52);
  border: 0;
  border-radius: 8px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  background: #fff;
}

.dialog-gallery {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: #0d1814;
}

.dialog-main-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
}

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

.thumb-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  opacity: 0.82;
}

.thumb-grid img:hover {
  opacity: 1;
}

.thumb-grid button {
  min-height: 64px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: #18352d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.thumb-grid button.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 124, 74, 0.18);
}

.thumb-grid button.is-active img {
  opacity: 1;
}

.dialog-info {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
}

.dialog-info h2 {
  margin: 0;
  font-size: 30px;
}

.dialog-info h3 {
  margin: 0 0 8px;
}

.dialog-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dialog-specs div {
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.dialog-specs small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.defect-note {
  padding: 10px 12px;
  color: #7a5400;
  background: #fff4d6;
  border-radius: 8px;
}

.detail-page {
  padding: 24px clamp(16px, 4vw, 56px) 96px;
  background: var(--cream);
}

.detail-topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.detail-gallery,
.detail-summary,
.detail-sections section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(9, 34, 29, 0.08);
}

.detail-gallery {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-gallery .thumb-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(12, 74, 49, 0.55) rgba(12, 74, 49, 0.08);
}

.detail-gallery .thumb-grid::-webkit-scrollbar {
  height: 8px;
}

.detail-gallery .thumb-grid::-webkit-scrollbar-track {
  background: rgba(12, 74, 49, 0.08);
  border-radius: 999px;
}

.detail-gallery .thumb-grid::-webkit-scrollbar-thumb {
  background: rgba(12, 74, 49, 0.55);
  border-radius: 999px;
}

.detail-gallery .thumb-grid button {
  flex: 0 0 clamp(150px, 18vw, 210px);
  min-height: 0;
  scroll-snap-align: start;
}

.detail-gallery .thumb-grid img {
  aspect-ratio: 4 / 3;
}

.detail-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #071611;
}

.detail-main-media {
  line-height: 0;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.is-previewable {
  cursor: zoom-in;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  background: rgba(5, 5, 5, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-button:hover {
  background: rgba(12, 124, 74, 0.92);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.media-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-summary h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}

.price-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.price-line small {
  color: var(--muted);
  font-weight: 900;
}

.whatsapp-action {
  width: 100%;
}

.fob-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fob-box h2 {
  font-size: 20px;
}

.fob-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fob-box select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.fob-grid div {
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}

.fob-grid small {
  display: block;
  color: var(--muted);
}

.detail-sections {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.detail-sections section {
  padding: 20px;
}

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

.detail-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.appearance-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.appearance-map {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbf6 0%, #edf4ea 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.car-silhouette {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1.75 / 1;
  border-radius: 46% 46% 42% 42% / 35% 35% 34% 34%;
  background: #ffffff;
  border: 2px solid #b8c7bd;
  box-shadow: inset 0 0 0 10px rgba(9, 34, 29, 0.04), 0 18px 38px rgba(9, 34, 29, 0.1);
}

.car-silhouette::before,
.car-silhouette::after {
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: 10px;
  content: "";
  background: #253a35;
  border-radius: 999px;
}

.car-silhouette::before {
  left: -5px;
}

.car-silhouette::after {
  right: -5px;
}

.windshield {
  position: absolute;
  top: 38%;
  width: 14%;
  height: 24%;
  background: #dfeae6;
  border: 1px solid #bfd0c8;
  border-radius: 40%;
}

.windshield.front {
  right: 18%;
}

.windshield.rear {
  left: 18%;
}

.appearance-part {
  position: absolute;
  border: 1px solid rgba(9, 34, 29, 0.16);
  border-radius: 8px;
  background: rgba(225, 235, 230, 0.72);
  cursor: default;
}

.appearance-part span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 4px auto 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.appearance-part.has-defect {
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(255, 201, 66, 0.16);
}

.appearance-part.has-defect span {
  background: #c82f2f;
}

.appearance-part.paint {
  border-color: #d7a229;
  background: rgba(255, 232, 162, 0.78);
}

.appearance-part.repair {
  border-color: #d26b2f;
  background: rgba(255, 207, 175, 0.78);
}

.appearance-part.changed {
  border-color: #316fd1;
  background: rgba(196, 219, 255, 0.82);
}

.appearance-part.defect {
  border-color: #bf3030;
  background: rgba(255, 202, 202, 0.82);
}

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

.defect-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.defect-grid span {
  color: var(--muted);
}

.defect-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.appearance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.appearance-legend span {
  padding: 8px 10px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.appearance-legend .paint {
  background: #ffe8a2;
}

.appearance-legend .repair {
  background: #ffcfae;
}

.appearance-legend .changed {
  background: #c4dbff;
}

.appearance-legend .defect {
  background: #ffcaca;
}

.bottom-action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  display: flex;
  justify-content: center;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.bottom-action-bar .primary-action {
  width: min(520px, 100%);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(3, 12, 10, 0.88);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox img {
  max-width: min(1120px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-band,
  .about-hero,
  .about-page-grid,
  .trust-band,
  .dialog-layout,
  .detail-shell,
  .appearance-panel {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    max-width: 540px;
  }

  .car-grid,
  .process-grid,
  .business-grid,
  .trust-list,
  .inquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding: 10px 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 112px;
    height: 38px;
  }

  .lang-button {
    min-width: 34px;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 40px;
  }

  .section-heading,
  .card-footer,
  .site-footer,
  .car-title-row {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .filters,
  .car-grid,
  .process-grid,
  .business-grid,
  .trust-list,
  .inquiry-form,
  .service-list,
  .spec-list,
  .dialog-specs,
  .fob-grid,
  .thumb-grid,
  .defect-grid {
    grid-template-columns: 1fr;
  }

  .appearance-map {
    min-height: 260px;
  }

  .inquiry-form .primary-action,
  .reset-button {
    width: 100%;
  }
}
