:root {
  --ink: #171717;
  --muted: #666f7a;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #dedbd2;
  --red: #b91c1c;
  --green: #0f766e;
  --blue: #1d4ed8;
  --gold: #c48a2c;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 5vw;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.top-call,
.button,
.contact-link {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.12rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.top-call {
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.hero,
.section,
.contact-section {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 44px 0 28px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.45rem, 5.1vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
}

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

.button.ghost,
.button.line {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero-cars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-img {
  position: static;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 7px solid #fff;
  border-radius: 8px;
}

.hero-img-main {
  grid-column: span 2;
  height: 330px;
  object-position: center 48%;
}

.hero-img-small.top {
  height: 210px;
  object-position: center 62%;
}

.hero-img-small.bottom {
  height: 210px;
  object-position: center 58%;
}

.section {
  padding: 76px 0;
}

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

.section-note {
  max-width: 260px;
  margin: 0;
  padding: 12px 14px;
  color: var(--green);
  background: #e8f3ef;
  border: 1px solid #b7d9cf;
  border-radius: 8px;
  font-weight: 900;
}

.section-head h2,
.contact-panel h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.7vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.vehicle-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 23, 23, 0.08);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e4db;
}

.vehicle-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.vehicle-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-title h3 {
  margin: 8px 0 0;
  font-size: 1.36rem;
  line-height: 1.08;
}

.vehicle-title strong {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 1.24rem;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.darker {
  background: var(--blue);
}

.subtitle {
  min-height: 44px;
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.specs div {
  min-width: 0;
  padding: 12px;
  background: #f5f3ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.specs dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.specs dd {
  margin: 5px 0 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.note {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 800;
}

.card-actions {
  margin-top: auto;
  padding-top: 18px;
}

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

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #171717 0%, #27313c 48%, #7f1d1d 100%);
  border-radius: 8px;
}

.contact-panel p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

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

.contact-link {
  display: block;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.contact-link span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 5vw;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer span:first-child {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .hero-cars {
    min-height: 420px;
  }

  .inventory,
  .info-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .top-call {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 8px;
    font-size: 0.92rem;
  }

  .hero,
  .section,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .hero-cars {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-img,
  .hero-img-main,
  .hero-img-small.top,
  .hero-img-small.bottom {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .vehicle-title {
    display: block;
  }

  .vehicle-title strong {
    display: block;
    margin-top: 12px;
  }

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

  .button {
    width: 100%;
  }

  .contact-panel {
    padding: 22px;
  }
}
