:root {
  --green: #1c7a43;
  --green-dark: #156536;
  --ink: #16181d;
  --muted: #5e6772;
  --line: #e4e7ec;
  --bg: #f6f7f9;
  --card: #fff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Manrope, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; }

.header {
  position: relative;
  z-index: 20;
  max-width: none;
  margin: 0;
  padding: 10px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(#fff, #fff) 7px 8px / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) 7px 13px / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) 7px 18px / 10px 2px no-repeat,
    var(--green);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--green);
}
.btn-ghost {
  color: var(--green);
  background: #fff;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
}
.btn-ghost:hover { background: #f3faf6; }
.btn-solid {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
}
.btn-solid:hover { background: var(--green-dark); }

.hero {
  max-width: none;
  margin: 0;
  padding: 8px 16px 16px 36px;
  display: grid;
  grid-template-columns: minmax(440px, 600px) 1fr;
  gap: 28px;
  align-items: center;
  flex: 1;
  min-height: 0;
}
.hero h1 {
  margin: 0 0 14px;
  transform: translateY(-36px);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lead {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
}
.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}
.points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 22px;
  padding: 0;
  color: #2c333b;
  font-size: 17px;
  font-weight: 600;
}
.points li { display: flex; align-items: center; gap: 8px; }
.ico {
  width: 28px;
  height: 28px;
  color: var(--green);
  display: inline-flex;
}
.ico svg, .field-ico svg { width: 22px; height: 22px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(22, 24, 29, 0.05);
  padding: 18px 18px 16px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.fields label, .vin, .phone {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  min-height: 46px;
}
.phone, .vin { margin-top: 10px; }
.vin[hidden] { display: none; }
.field-ico { color: #8b949e; display: inline-flex; }
input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
}
input::placeholder { color: #98a0aa; }
.or {
  margin: 10px 0 0;
  text-align: center;
  color: #9aa2ab;
  font-size: 13px;
}
.link {
  display: block;
  width: 100%;
  margin-top: 2px;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
}
.link:hover { text-decoration: underline; }

.hero-photo {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #eceff3;
  align-self: stretch;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.78) 42%, rgba(255,255,255,0) 100%);
}
.badge {
  z-index: 2;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.models {
  max-width: none;
  margin: 0;
  padding: 48px 32px 28px;
  background: #f6f7f9;
}
.models-inner {
  max-width: none;
  margin: 0 auto;
}
.models-head {
  margin: 0 0 20px;
}
.models h2 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.models-note {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.model {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 12px 10px 14px;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  width: auto;
  color: inherit;
}
.model:hover { border-color: #b7d8c4; box-shadow: 0 8px 18px rgba(22, 24, 29, 0.05); }
.model.is-on {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(28, 122, 67, 0.16);
}
.model img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f4f5f7;
  border-radius: 14px;
}
.model span {
  display: block;
  margin-top: 12px;
  font-size: clamp(14px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.model small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.2;
}
.center { text-align: center; margin: 16px 0 8px; }
.pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 8px 24px 48px; }
.pages a { color: var(--green); font-weight: 700; text-decoration: none; }
.pages a:hover { text-decoration: underline; }
.center .link { display: inline; }
.models-last { padding-bottom: 48px; }
.model-marquee {
  overflow: hidden;
  margin-inline: -32px;
  padding: 4px 0 8px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.model-marquee.is-drag { cursor: grabbing; }
.model-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.model-set {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
.model-marquee .model {
  width: 250px;
  flex: 0 0 250px;
  cursor: grab;
}
.model-marquee.is-drag .model { cursor: grabbing; }

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.thanks-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--line);
}
.thanks-card h1 {
  margin: 12px 0 8px;
  font-size: 32px;
  letter-spacing: -0.03em;
}
.thanks-card p { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.thanks-card .btn-solid { width: auto; padding: 12px 22px; text-decoration: none; }

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 981px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  body { display: flex; flex-direction: column; }
  .hero {
    flex: none;
    height: calc(100vh - 56px);
    min-height: 640px;
  }
  .hero-copy { height: 100%; justify-content: center; }
}
@media (max-width: 980px) {
  html, body { height: auto; overflow: auto; }
  .hero { grid-template-columns: 1fr; padding: 12px 16px 28px; }
  .hero h1 { font-size: 34px; }
  .hero-photo { min-height: 320px; height: 360px; border-radius: 16px; }
  .hero-photo::after { width: auto; height: 28%; right: 0; bottom: auto; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%); }
  .models h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .models h2 { font-size: 24px; }
  .grid { gap: 8px; }
  .model { padding: 8px 6px 10px; border-radius: 12px; }
  .model-marquee { margin-inline: -16px; }
  .model-marquee .model { width: 190px; flex-basis: 190px; }
  .model-set { gap: 10px; padding-right: 10px; }
  .header { padding-inline: 16px; }
  .hero, .models { padding-inline: 16px; }
}


.header-side {
  display: flex;
  align-items: center;
  gap: 12px;
}
.req { position: relative; }
.req-btn {
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.req-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 248px;
  padding: 12px 14px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 24, 29, 0.12);
  text-align: left;
}
.req-card[hidden] { display: none; }
.req-card strong {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.req-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}
.req-card p span { color: var(--muted); }
.req-card p b { font-weight: 650; font-variant-numeric: tabular-nums; }

.req--hl .req-card, .req--tl .req-card, .req--bl .req-card { left: 0; right: auto; }
.req--bl, .req--br, .req--tl, .req--tr { position: fixed; z-index: 30; }
.req--bl { left: 16px; bottom: 16px; }
.req--br { right: 16px; bottom: 16px; }
.req--tl { left: 16px; top: 16px; }
.req--tr { right: 16px; top: 16px; }
.req--bl .req-card, .req--br .req-card { top: auto; bottom: calc(100% + 8px); }

.req-v1 .req-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}
.req-v1 .req-btn:hover { border-color: var(--green); color: var(--green); }
.req-v2 .req-btn {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.req-v2 .req-btn:hover { color: var(--green); }
.req-v3 .req-btn {
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(22, 24, 29, 0.22);
}
.req-v3 .req-btn:hover { background: var(--green); }
.req-v4 .req-btn {
  color: var(--ink);
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.req-v4 .req-btn:hover { border-color: var(--green); }
.req-v5 .req-btn {
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 24, 29, 0.16);
}
.req-v5 .req-btn:hover { filter: brightness(0.92); }
.req-v6 .req-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 600;
}
.req-v6 .req-btn::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
}
.req-v6 .req-btn:hover { color: var(--green); }
.req-v7 .req-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(22, 24, 29, 0.1);
}
.req-v7 .req-btn:hover { border-color: var(--green); }
.req-v8 .req-btn {
  color: var(--green);
  background: none;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 700;
}
.req-v8 .req-btn:hover { opacity: 0.75; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 20, 24, 0.45);
}
.lead-modal.open { display: flex; }
.lead-modal .card { width: min(640px, 100%); position: relative; }
.fields .wide { grid-column: 1 / -1; }
.lead-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}
.phone-error {
  display: none;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
}
.phone-error.show { display: block; }
