:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --ink: #121619;
  --muted: #5c6870;
  --line: #d9e0dc;
  --dark: #182126;
  --green: #b7ff4a;
  --cyan: #3ce3d2;
  --violet: #7758ff;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(18, 22, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(115deg, rgba(183, 255, 74, 0.12), transparent 38%),
    linear-gradient(245deg, rgba(60, 227, 210, 0.13), transparent 42%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.76fr);
  gap: 34px;
  align-items: center;
  padding: 38px 0;
}

.hero {
  display: grid;
  gap: 46px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 900;
}

.brand-name,
.brand-caption,
.eyebrow,
.hero-subtitle,
.quiz-lead,
.panel-topline,
.progress-meta,
.form-error {
  margin: 0;
}

.brand-name {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.brand-caption {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(24, 33, 38, 0.14);
  border-radius: 999px;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.hero-subtitle {
  max-width: 690px;
  color: #2e373c;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.bonus-line {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--dark);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(18, 22, 25, 0.06);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
}

.trust-strip div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid rgba(24, 33, 38, 0.1);
  color: #263036;
  font-weight: 800;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip span {
  color: var(--violet);
  font-size: 12px;
}

.quiz-panel {
  min-height: 590px;
  padding: 24px;
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quiz-screen {
  min-height: 540px;
  display: none;
}

.quiz-screen.active {
  display: grid;
  align-content: center;
  gap: 22px;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h2,
legend {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.quiz-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.primary-btn,
.ghost-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.primary-btn {
  color: #101416;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost-btn {
  border: 1px solid rgba(24, 33, 38, 0.14);
  color: var(--dark);
  background: #fff;
}

.primary-btn:not(:disabled):hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.progress-wrap {
  display: grid;
  gap: 10px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #edf1ee;
  overflow: hidden;
}

.progress-bar {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  transition: width 200ms ease;
}

.question-block {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.options-list {
  display: grid;
  gap: 10px;
}

.option-card {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.option-card .option-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f4f1;
}

.option-card.selected {
  border-color: rgba(119, 88, 255, 0.66);
  background: #f7f6ff;
  box-shadow: inset 0 0 0 1px rgba(119, 88, 255, 0.26);
}

.nav-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
  align-self: end;
}

.done-badge {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  color: #111715;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.field-stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--dark);
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(119, 88, 255, 0.14);
}

.form-error {
  min-height: 22px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .hero {
    gap: 28px;
  }

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

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(24, 33, 38, 0.1);
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    min-height: auto;
    gap: 14px;
    padding: 14px 0 22px;
  }

  .hero {
    display: contents;
  }

  .brand-row {
    order: 1;
  }

  .hero-copy {
    order: 2;
    gap: 12px;
  }

  .quiz-panel {
    order: 3;
  }

  .trust-strip {
    order: 4;
    margin-top: 2px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-caption {
    font-size: 12px;
  }

  .eyebrow {
    padding: 6px 9px;
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.42;
  }

  .bonus-line {
    align-items: flex-start;
    width: 100%;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.3;
  }

  .quiz-panel {
    min-height: auto;
    padding: 14px;
  }

  .quiz-screen {
    min-height: auto;
  }

  .quiz-screen.active {
    align-content: start;
    gap: 16px;
  }

  .panel-topline,
  .progress-meta {
    font-size: 11px;
  }

  h2,
  legend {
    font-size: 25px;
    line-height: 1.12;
  }

  .quiz-lead {
    font-size: 15px;
    line-height: 1.45;
  }

  .option-card {
    min-height: 58px;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 10px;
    font-size: 14px;
  }

  .option-card .option-icon {
    width: 32px;
    height: 32px;
  }

  .question-block {
    gap: 14px;
  }

  .options-list {
    gap: 8px;
  }

  .primary-btn,
  .ghost-btn,
  input {
    min-height: 52px;
  }

  .trust-strip div {
    min-height: 68px;
    padding: 12px;
    font-size: 14px;
  }

  .nav-row {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
