:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #607068;
  --line: #dbe2de;
  --brand: #14532d;
  --brand-2: #0e7c67;
  --brand-dark: #0f3f23;
  --danger: #8a3a19;
  --danger-bg: #fff3ea;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --focus: #09a36f;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quiz-card {
  width: min(820px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(15, 63, 35, 0.09);
  overflow: hidden;
}

.progress {
  height: 6px;
  background: #d7ded9;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.25s ease;
}

.media-wrap {
  background: #092f25;
  border-bottom: 1px solid var(--line);
}

.media-wrap img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}

.content {
  padding: clamp(24px, 6vw, 48px);
}

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

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

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.02;
}

h2 {
  margin: 24px 0 12px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.18;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.58;
}

.note {
  color: var(--ink);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

label span {
  color: var(--muted);
  font-weight: 650;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(9, 163, 111, 0.28);
  outline-offset: 2px;
}

.hidden {
  display: none;
}

.case {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

.statement {
  color: var(--ink);
  font-weight: 780;
}

.scale-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.scale-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
}

.scale-button:hover {
  border-color: var(--brand);
  background: #f3faf6;
}

.scale-button strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eaf4ee;
  color: var(--brand);
}

.scale-button span {
  font-weight: 720;
}

.result-content {
  text-align: center;
}

.score-ring {
  width: clamp(156px, 38vw, 220px);
  height: clamp(156px, 38vw, 220px);
  display: inline-grid;
  place-items: center;
  grid-template-rows: 1fr auto;
  padding: 34px 20px 28px;
  margin: 4px auto 24px;
  border-radius: 999px;
  border: 10px solid #dce8e1;
  background: #f8fbf9;
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, 0.08);
}

.score-ring.positive {
  border-color: #61b984;
}

.score-ring.attention {
  border-color: #e6a15e;
  background: var(--danger-bg);
}

.score-ring span {
  align-self: end;
  color: var(--brand);
  font-size: clamp(56px, 15vw, 88px);
  line-height: 0.9;
  font-weight: 900;
}

.score-ring.attention span {
  color: var(--danger);
}

.score-ring small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

button,
.primary-cta,
.secondary {
  width: 100%;
  border-radius: 11px;
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 820;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button,
.primary-cta {
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.alert {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e5e0c8;
  border-radius: 11px;
  background: #fffbea;
  color: #5b4b12;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
  }

  .quiz-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .media-wrap img {
    max-height: 240px;
  }
}