:root {
  --black: #0b0d10;
  --graphite: #171a1f;
  --charcoal: #25282d;
  --red: #d6a532;
  --red-dark: #a87918;
  --paper: #f6f6f4;
  --muted: #a8adb5;
  --line: #dedfe2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: #181a1e;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

button,
select,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 16, 0.96);
  color: white;
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1360px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-logo {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
  object-position: center;
  clip-path: circle(47% at 50% 50%);
}

.site-header .brand-logo,
footer .brand-logo {
  clip-path: none;
  border-radius: 0;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  gap: clamp(22px, 2.7vw, 48px);
}

.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #c5c8ce;
  font-size: 15px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: white;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--red);
}

.whatsapp-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #25d366;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.whatsapp-button-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.whatsapp-button:hover {
  border-color: #1fbd5a;
  background: #1fbd5a;
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--black) url("./hero-showroom.jpg") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.98) 0%, rgba(7, 8, 10, 0.82) 34%, rgba(7, 8, 10, 0.16) 64%, rgba(7, 8, 10, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
  padding: 74px 0 122px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: #d7d9dd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: -3.9px;
  text-wrap: balance;
}

.hero-copy {
  max-width: 550px;
  margin: 28px 0 0;
  color: #c5c8cd;
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: background 160ms ease, border 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--red);
  color: #17130a;
}

.button-primary:hover {
  background: #efc65f;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
  background: rgba(0, 0, 0, 0.22);
}

.button-secondary:hover {
  border-color: var(--red);
  background: rgba(214, 165, 50, 0.11);
}

.inventory-shell {
  position: relative;
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
  padding: 112px 0 82px;
}

.vehicle-search {
  position: absolute;
  top: -62px;
  left: 0;
  right: 0;
  min-height: 124px;
  padding: 24px 28px;
  border: 1px solid rgba(28, 30, 34, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 18, 22, 0.18);
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(3, minmax(135px, 1fr)) 190px;
  align-items: end;
  gap: 20px;
}

.vehicle-search label {
  display: grid;
  gap: 8px;
}

.vehicle-search label span {
  font-size: 12px;
  font-weight: 800;
}

.vehicle-search select,
.vehicle-search input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  outline: none;
  color: #62666d;
  background: white;
}

.vehicle-search input::placeholder {
  color: #9a9da3;
  font-size: 12px;
}

.vehicle-search select:focus,
.vehicle-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 165, 50, 0.14);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 15px;
  width: 13px;
  height: 13px;
  border: 2px solid #74777d;
  border-radius: 50%;
  pointer-events: none;
}

.search-input-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 28px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #74777d;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.vehicle-search .search-input-wrap input {
  padding-left: 43px;
}

.search-button {
  width: 100%;
}

.inventory-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 52px 24px;
  border: 1px dashed #d5d7da;
  border-radius: 12px;
  color: #6e7177;
  background: #fafafa;
  text-align: center;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1.5px;
}

.section-heading > a {
  padding-bottom: 6px;
  color: #5c6067;
  font-size: 14px;
  font-weight: 800;
}

.section-heading > a span {
  color: var(--red);
  margin-left: 5px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
  scroll-margin-top: 105px;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid #e2e3e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vehicle-card-link {
  display: block;
  height: 100%;
}

.vehicle-card-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 22, 26, 0.1);
}

.vehicle-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: none;
}

.vehicle-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #e7e8ea;
  color: #777b82;
  font-size: 13px;
  font-weight: 700;
}

.vehicle-image > span {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vehicle-badges {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}

.vehicle-badge {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 14, 17, 0.9);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.45px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.vehicle-badge-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #111317;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: -0.4px;
}

.vehicle-badge--abaixo-fipe {
  border-color: rgba(221, 183, 80, 0.42);
  background: rgba(174, 125, 15, 0.94);
}

.vehicle-badge--abaixo-fipe .vehicle-badge-icon {
  background: #fff;
  font-size: 14px;
}

.vehicle-card-content {
  padding: 22px 22px 20px;
}

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

.vehicle-title-row p {
  margin: 0 0 5px;
  color: #7b7f86;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vehicle-title-row h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.7px;
}

.vehicle-title-row strong {
  color: var(--red);
  font-size: 18px;
  white-space: nowrap;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.vehicle-specs span {
  padding: 7px 9px;
  border-radius: 6px;
  background: #f1f2f3;
  color: #5f636a;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-interest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #ececef;
  font-size: 13px;
  font-weight: 850;
}

.vehicle-interest i {
  color: var(--red);
  font-size: 20px;
  font-style: normal;
}

.services-section {
  padding: 96px 0;
  background: var(--black);
  color: white;
}

.services-inner {
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 90px;
}

.services-intro h2,
.evaluation-copy h2,
.finance-section h2,
.store-section h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -2.7px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.service-list article {
  min-height: 280px;
  padding: 30px;
  background: var(--graphite);
}

.service-list article > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.service-list h3 {
  margin: 62px 0 14px;
  font-size: 21px;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.evaluation-section {
  width: min(1220px, calc(100% - 80px));
  margin: 0 auto;
  padding: 104px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 100px;
}

.evaluation-copy > p:not(.section-kicker),
.store-section > div > p:not(.section-kicker),
.finance-section > div > p:not(.section-kicker) {
  color: #656970;
  font-size: 16px;
  line-height: 1.75;
}

.evaluation-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.evaluation-copy li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  font-weight: 750;
}

.evaluation-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
}

.evaluation-form {
  padding: 34px;
  border: 1px solid #e0e1e4;
  border-radius: 14px;
  background: white;
  box-shadow: 0 22px 60px rgba(20, 22, 26, 0.1);
  display: grid;
  gap: 18px;
}

.form-title span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-title h3 {
  margin: 7px 0 10px;
  font-size: 25px;
}

.evaluation-form label {
  display: grid;
  gap: 8px;
}

.evaluation-form label > span {
  font-size: 12px;
  font-weight: 800;
}

.evaluation-form input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  outline: none;
}

.evaluation-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 165, 50, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 14px;
}

.finance-section {
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto 104px;
  padding: 70px;
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(11, 13, 16, 0.99), rgba(23, 26, 31, 0.84)),
    url("./hero-showroom.jpg") right center / cover no-repeat;
  color: white;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.finance-section > div {
  max-width: 720px;
}

.finance-section > div > p:not(.section-kicker) {
  color: #c4c7cc;
  max-width: 620px;
}

.finance-section .button {
  flex: 0 0 auto;
}

.store-section {
  width: min(1220px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: center;
}

.store-section > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: var(--black);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(20, 22, 26, 0.12);
}

.store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.store-tags span {
  padding: 8px 11px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #53575e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

footer {
  padding: 64px max(40px, calc((100% - 1360px) / 2));
  background: var(--black);
  color: white;
}

.footer-top {
  display: grid;
  grid-template-columns: 0.75fr 1.45fr 1fr 1fr auto;
  align-items: start;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-top > div {
  display: grid;
  gap: 6px;
}

.footer-top > div span {
  color: #777c84;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-top > div strong {
  font-size: 16px;
}

.footer-top > div p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-top > div a {
  color: #e7c66e;
  font-size: 12px;
  line-height: 1.5;
}

.footer-top > div a:hover {
  color: white;
}

.footer-instagram-link {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: white !important;
  text-decoration: none;
}

.footer-instagram-link b {
  font-size: 12px;
}

.instagram-icon {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 69% 31%, white 0 2px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, transparent 0 5px, white 5.5px 7px, transparent 7.5px),
    radial-gradient(circle at 31% 103%, #ffd600 0 22%, #ff7a00 30%, #ff0169 58%, #d300c5 76%, #7638fa 100%);
  box-shadow: 0 7px 22px rgba(211, 0, 197, 0.22);
}

.instagram-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid white;
  border-radius: 7px;
}

.footer-whatsapp-button {
  min-width: 205px;
  gap: 10px;
  border-color: #25d366;
  background: #25d366;
  color: #fff;
  white-space: nowrap;
}

.footer-whatsapp-button:hover {
  border-color: #1fbd5a;
  background: #1fbd5a;
  color: #fff;
}

.footer-whatsapp-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #777c84;
  font-size: 11px;
}

/* Página de detalhes do veículo */
.detail-page {
  background: #f2f3f5;
}

.detail-main {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  padding: 34px 0 92px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #777c84;
  font-size: 12px;
  font-weight: 700;
}

.detail-breadcrumb a:hover {
  color: var(--red-dark);
}

.detail-breadcrumb strong {
  color: #25282d;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 28px;
}

.detail-card,
.contact-card {
  border: 1px solid rgba(24, 26, 30, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(20, 22, 26, 0.07);
}

.detail-card {
  overflow: hidden;
}

.detail-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 24px;
}

.detail-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -2px;
}

.detail-title > div > p:last-child {
  margin: 11px 0 0;
  color: #6d7178;
  font-size: 14px;
}

.detail-code {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 7px;
  background: #f0f1f2;
  color: #686c73;
  font-size: 11px;
  font-weight: 800;
}

.vehicle-gallery {
  padding: 0 34px 30px;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #eceeef;
}

.gallery-stage > img,
.gallery-stage > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #111;
}

.gallery-stage > img {
  cursor: zoom-in;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: rgba(11, 13, 16, 0.66);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  transform: translateY(-50%);
}

.gallery-arrow:hover {
  background: var(--red-dark);
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.gallery-open {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: rgba(11, 13, 16, 0.76);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.gallery-open:hover {
  background: var(--red-dark);
}

.gallery-open span {
  font-size: 18px;
  line-height: 1;
}

.gallery-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 8, 0.98);
  color: #fff;
}

.gallery-lightbox[open] {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
}

.gallery-lightbox::backdrop {
  background: rgba(5, 6, 8, 0.98);
}

.lightbox-stage {
  width: 100%;
  height: 100vh;
  padding: 34px 0;
  display: grid;
  place-items: center;
}

.lightbox-stage img,
.lightbox-stage video {
  width: 100%;
  height: 100%;
  max-width: 1600px;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  z-index: 3;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  z-index: 2;
  width: 52px;
  height: 64px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
  background: var(--red-dark);
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.gallery-badges {
  right: 92px;
  max-width: calc(100% - 120px);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 96px));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbnail {
  overflow: hidden;
  padding: 0;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #eceeef;
  cursor: pointer;
}

.gallery-thumbnail.active {
  border-color: var(--red);
}

.gallery-thumbnail img,
.gallery-thumbnail video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.specification-panel,
.detail-copy-section {
  margin: 0 34px;
  padding: 30px 0;
  border-top: 1px solid #e7e8ea;
}

.detail-copy-section:last-child {
  padding-bottom: 38px;
}

.detail-section-title {
  position: relative;
  margin: 0 0 22px;
  padding-left: 17px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.detail-section-title::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: var(--red);
}

.specification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  padding: 25px;
  border-radius: 12px;
  background: #f3f4f5;
}

.specification-grid > div {
  display: grid;
  gap: 5px;
}

.specification-grid span {
  color: #797d84;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.specification-grid strong {
  color: #202328;
  font-size: 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 23px;
  color: #555960;
  font-size: 13px;
  line-height: 1.5;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red-dark);
  font-weight: 900;
}

.detail-copy-section > p {
  margin: 0;
  color: #62666d;
  font-size: 14px;
  line-height: 1.8;
}

.contact-card {
  position: sticky;
  top: 108px;
  padding: 28px;
}

.contact-eyebrow {
  margin: 0 0 6px;
  color: #777c84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-price {
  color: #171a1f;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1.6px;
}

.contact-note {
  margin: 10px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7e8ea;
  color: #6c7077;
  font-size: 12px;
  line-height: 1.5;
}

.contact-card form {
  display: grid;
  gap: 14px;
}

.contact-card label {
  display: grid;
  gap: 7px;
}

.contact-card label > span {
  font-size: 11px;
  font-weight: 800;
}

.contact-card input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #d6d8dc;
  border-radius: 8px;
  outline: none;
}

.contact-card input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 165, 50, 0.14);
}

.contact-submit {
  width: 100%;
  margin-top: 4px;
}

.contact-submit > span {
  margin-right: 8px;
  color: #138a3f;
}

.contact-benefits {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: #656970;
  font-size: 11px;
  font-weight: 700;
}

.related-section {
  margin-top: 54px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.related-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  border: 1px solid #e1e2e5;
  border-radius: 12px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 22, 26, 0.09);
}

.related-card-media {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: #eceeef;
}

.related-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.related-card > .related-card-copy {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.related-badges {
  right: 7px;
  bottom: 7px;
  left: 7px;
  max-width: none;
}

.related-badges .vehicle-badge {
  min-height: 25px;
  padding: 3px 7px 3px 3px;
  font-size: 7px;
}

.related-badges .vehicle-badge-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  font-size: 6px;
}

.related-card-copy strong {
  font-size: 17px;
}

.related-card-copy > span {
  color: var(--red-dark);
  font-size: 15px;
  font-weight: 900;
}

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

  .contact-card {
    position: static;
  }

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

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: 220px 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .vehicle-search {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, 1fr);
    margin-top: -62px;
    margin-bottom: 56px;
  }

  .inventory-shell {
    padding-top: 0;
  }

  .vehicle-name-search,
  .search-button {
    grid-column: 1 / -1;
  }

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

  .vehicle-card:last-child {
    display: none;
  }

  .services-inner,
  .evaluation-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

@media (max-width: 720px) {
  .site-header {
    height: 72px;
  }

  .header-inner,
  .hero-content,
  .inventory-shell {
    width: min(100% - 36px, 1360px);
  }

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

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .whatsapp-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 630px;
    background-position: 64% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(6, 7, 9, 0.98), rgba(6, 7, 9, 0.72));
  }

  .hero-content {
    padding: 68px 0 168px;
  }

  .hero h1 {
    max-width: 430px;
    font-size: clamp(46px, 13vw, 62px);
    letter-spacing: -3px;
  }

  .hero-copy {
    max-width: 430px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .vehicle-search {
    margin-top: -88px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .vehicle-search label > span,
  .vehicle-search select,
  .vehicle-search input,
  .search-button {
    white-space: nowrap;
  }

  .vehicle-search select {
    min-width: 0;
  }

  .vehicle-name-search,
  .search-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .inventory-shell {
    padding-top: 0;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading > a {
    display: none;
  }

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

  .vehicle-badges {
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .gallery-badges {
    right: 74px;
    max-width: calc(100% - 94px);
  }

  .vehicle-card:last-child {
    display: block;
  }

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

  .services-inner,
  .evaluation-section,
  .finance-section,
  .store-section {
    width: min(100% - 36px, 1360px);
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: 0;
  }

  .service-list h3 {
    margin-top: 28px;
  }

  .evaluation-section {
    padding: 74px 0;
    gap: 36px;
  }

  .evaluation-form {
    padding: 24px 18px;
  }

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

  .finance-section {
    margin-bottom: 74px;
    padding: 42px 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 26px;
  }

  .store-section {
    grid-template-columns: 1fr;
    padding-bottom: 74px;
    gap: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .detail-main {
    width: min(100% - 28px, 1280px);
    padding-top: 24px;
  }

  .detail-title {
    padding: 24px 20px 19px;
  }

  .detail-title h1 {
    font-size: 32px;
    letter-spacing: -1.4px;
  }

  .detail-code {
    display: none;
  }

  .vehicle-gallery {
    padding: 0 14px 24px;
  }

  .gallery-open {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .gallery-open:not(:focus) {
    font-size: 0;
  }

  .gallery-lightbox[open] {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .lightbox-stage {
    padding: 66px 0 54px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 54px;
    font-size: 32px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .specification-panel,
  .detail-copy-section {
    margin: 0 20px;
  }

  .specification-grid {
    padding: 20px;
    gap: 20px 16px;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    padding: 24px 20px;
  }

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

  .related-card {
    grid-template-columns: 120px 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: rise-in 650ms ease both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
