:root {
  --ink: #111820;
  --muted: #637083;
  --line: #dce3ea;
  --soft: #f4f7fa;
  --paper: #ffffff;
  --accent: #c79b43;
  --accent-dark: #8d6822;
  --forest: #153c35;
  --steel: #263642;
  --danger: #b42318;
  --ok: #13795b;
  --shadow: 0 24px 70px rgba(17, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 234, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a {
  padding: 10px 0;
}

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

.nav-call {
  padding: 10px 18px !important;
  color: #fff !important;
  background: var(--forest);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-end;
  padding: clamp(80px, 10vw, 150px) clamp(18px, 5vw, 64px) clamp(42px, 7vw, 86px);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 15, 20, 0.82), rgba(8, 15, 20, 0.42) 52%, rgba(8, 15, 20, 0.18));
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--accent-dark);
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-content > p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.card-actions,
.detail-actions,
.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button.primary {
  color: #14100a;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(199, 155, 67, 0.28);
}

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

.button.glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.large {
  min-height: 52px;
  padding: 13px 22px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section,
.page-title,
.admin-wrap,
.contact-layout,
.detail-hero,
.cta-band {
  padding-inline: clamp(18px, 5vw, 64px);
}

.section {
  padding-block: clamp(58px, 8vw, 110px);
}

.compact-top {
  padding-top: 20px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(28px, 6vw, 76px);
  background: var(--soft);
}

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

.steps article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-weight: 900;
}

.steps p,
.car-body p,
.page-title p,
.detail-panel p,
.contact-copy p,
.site-footer p,
.admin-car p {
  color: var(--muted);
}

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

.text-link {
  color: var(--forest);
  font-weight: 850;
  border-bottom: 2px solid var(--accent);
}

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

.car-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(23, 34, 45, 0.08);
}

.car-photo {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  overflow: hidden;
}

.car-photo img,
.detail-image img,
.admin-car img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-body {
  padding: 22px;
}

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

.car-title-row h3 {
  margin-bottom: 0;
}

.car-title-row span,
.detail-price {
  color: var(--forest);
  font-weight: 900;
  white-space: nowrap;
}

.spec-list,
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.spec-list li,
.detail-specs li {
  padding: 7px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 64px) clamp(58px, 8vw, 90px);
  padding-block: clamp(34px, 6vw, 64px);
  color: #fff;
  background: var(--forest);
  border-radius: 8px;
}

.cta-band div {
  max-width: 760px;
}

.cta-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.page-title {
  padding-top: clamp(58px, 7vw, 92px);
  padding-bottom: 28px;
  max-width: 980px;
}

.page-title h1,
.detail-panel h1,
.contact-copy h1,
.admin-wrap h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 6vw, 82px);
}

.detail-image {
  min-height: 420px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-panel {
  max-width: 620px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.detail-summary {
  font-size: 20px;
}

.detail-price {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 420px;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(58px, 8vw, 110px);
  background: var(--soft);
}

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

.contact-card,
.admin-login,
.admin-form,
.admin-list,
.empty-state {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(23, 34, 45, 0.08);
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-card dt {
  color: var(--muted);
  font-weight: 750;
}

.contact-card dd {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
}

.admin-wrap {
  padding-block: clamp(42px, 7vw, 86px);
  background: var(--soft);
}

.admin-login {
  max-width: 460px;
  margin: 0 auto;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1.05fr;
  gap: 22px;
  align-items: start;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--steel);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.form-error,
.form-notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-error {
  color: var(--danger);
  background: #fff0ee;
}

.form-notice {
  color: var(--ok);
  background: #eaf8f2;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-car {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-car:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-car img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--soft);
}

.admin-car h3 {
  margin-bottom: 2px;
  font-size: 17px;
}

.admin-car div div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-car a,
.admin-car button {
  padding: 0;
  color: var(--forest);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-car button {
  color: var(--danger);
}

.empty-state {
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #0d141b;
}

.site-footer strong,
.site-footer a {
  color: #fff;
}

.site-footer div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}

@media (max-width: 980px) {
  .car-grid,
  .steps,
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .detail-hero,
  .contact-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    display: block;
    width: 40px;
    height: 40px;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: grid;
    gap: 8px;
  }

  .hero {
    min-height: 0;
    height: auto;
    display: grid;
    align-items: end;
    padding: 150px 18px 24px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(8, 15, 20, 0.12) 0%, rgba(8, 15, 20, 0.58) 42%, rgba(8, 15, 20, 0.92) 100%),
      linear-gradient(90deg, rgba(8, 15, 20, 0.35), rgba(8, 15, 20, 0.05));
  }

  .hero-media img {
    object-position: 56% center;
  }

  .hero-content {
    max-width: 430px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
    line-height: 1.35;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.02;
  }

  h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.12;
  }

  h3 {
    font-size: 18px;
  }

  .hero-content > p:not(.eyebrow) {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 360px;
  }

  .button,
  .button.large {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 15px;
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: #d6dee7;
  }

  .trust-strip div {
    min-height: 82px;
    padding: 14px 14px 12px;
    background: var(--ink);
    border-right: 0;
  }

  .trust-strip strong {
    font-size: 20px;
  }

  .trust-strip span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.25;
  }

  .section,
  .page-title,
  .admin-wrap,
  .contact-layout,
  .detail-hero,
  .cta-band {
    padding-inline: 18px;
  }

  .section {
    padding-block: 42px;
  }

  .intro-grid {
    gap: 18px;
    padding-block: 34px;
  }

  .intro-grid > div:first-child h2 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.18;
  }

  .steps {
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .steps article {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .steps article:last-child {
    border-bottom: 0;
  }

  .steps span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #fff;
    background: var(--forest);
    border-radius: 8px;
    font-size: 12px;
  }

  .steps h3 {
    margin-bottom: 4px;
  }

  .steps p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.42;
  }

  .section-heading,
  .cta-band,
  .admin-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-band {
    margin-inline: 18px;
    margin-bottom: 44px;
    padding-block: 28px;
  }

  .cta-band h2 {
    font-size: 26px;
  }

  .car-grid {
    gap: 16px;
  }

  .car-body {
    padding: 18px;
  }

  .car-title-row {
    display: grid;
    gap: 6px;
  }

  .car-title-row span {
    white-space: normal;
  }

  .spec-list {
    margin: 14px 0;
  }

  .spec-list li,
  .detail-specs li {
    padding: 6px 9px;
    font-size: 13px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 9px;
  }

  .page-title {
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .page-title h1,
  .detail-panel h1,
  .contact-copy h1,
  .admin-wrap h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .detail-image {
    min-height: 260px;
  }

  .admin-car {
    grid-template-columns: 92px 1fr;
  }

  .site-footer div:last-child {
    justify-items: start;
  }
}
