:root {
  --bg: #f4f0e8;
  --ink: #101318;
  --muted: #68707d;
  --line: rgba(16, 19, 24, 0.12);
  --panel: #fffaf1;
  --panel-strong: #ffffff;
  --accent: #d84f2a;
  --accent-dark: #a9361e;
  --green: #1d7f64;
  --blue: #1e5f8f;
  --shadow: 0 24px 70px rgba(24, 27, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 34px clamp(18px, 6vw, 84px);
  overflow: hidden;
  color: #fff;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/hero-auto-import.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 13, 19, 0.9) 0%, rgba(9, 13, 19, 0.72) 39%, rgba(9, 13, 19, 0.22) 72%),
    linear-gradient(180deg, rgba(9, 13, 19, 0.25), rgba(9, 13, 19, 0.55));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding: 20px 0 72px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 86px;
}

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

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

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

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero__actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 0;
  border-radius: 8px;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(216, 79, 42, 0.32);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--panel);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

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

.trust-strip span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.quiz-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 82px);
  padding: clamp(44px, 8vw, 96px) clamp(18px, 6vw, 84px);
  align-items: start;
}

.quiz-intro {
  position: sticky;
  top: 28px;
}

.quiz-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.quiz {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 34px);
}

.progress {
  height: 8px;
  background: #ece7df;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.progress__bar {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f0ba62, var(--green));
  transition: width 220ms ease;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

legend {
  padding: 0;
  margin-bottom: 22px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  font-weight: 800;
}

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

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

.choice {
  display: block;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  background: #fbf7ef;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.choice input:checked + span {
  border-color: rgba(29, 127, 100, 0.5);
  background: #e6f4ef;
  color: #0b5d47;
}

label {
  display: grid;
  gap: 8px;
  color: #39404a;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  padding: 0 14px;
  outline: 0;
}

textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 95, 143, 0.12);
}

.textarea-label {
  margin-top: 16px;
}

.privacy,
.form-status {
  color: var(--muted);
  line-height: 1.5;
}

.form-footer {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

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

.is-hidden {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .hero {
    min-height: 92vh;
    align-items: flex-end;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(9, 13, 19, 0.22), rgba(9, 13, 19, 0.92)),
      linear-gradient(90deg, rgba(9, 13, 19, 0.65), rgba(9, 13, 19, 0.3));
  }

  .brand-row {
    margin-bottom: 42px;
  }

  .trust-strip,
  .quiz-section {
    grid-template-columns: 1fr;
  }

  .quiz-intro {
    position: static;
  }
}

@media (max-width: 560px) {
  .choice-grid,
  .choice-grid--wide,
  .field-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .form-footer {
    gap: 10px;
  }
}
