:root {
  --green-dark: #064d1d;
  --green: #0b681f;
  --green-medium: #168335;
  --green-light: #eaf5ed;
  --green-pale: #f4faf5;

  --white: #ffffff;
  --background: #f5f8f5;
  --text: #122017;
  --muted: #68756d;
  --border: #d7e5da;
  --danger: #b42318;
  --warning: #a15c00;

  --shadow:
    0 22px 70px rgba(8, 55, 24, 0.12);

  --radius-large: 30px;
  --radius-medium: 20px;
  --radius-small: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      #edf7ef 0%,
      var(--background) 45%,
      #ffffff 100%
    );
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.diagnostic-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 70px);
  background: rgba(6, 77, 29, 0.97);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.diagnostic-logo {
  color: #80e39a;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.diagnostic-logo span {
  color: #a6e7b5;
  font-weight: 400;
}

.back-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.diagnostic-main {
  display: flex;
  min-height: calc(100vh - 160px);
  align-items: flex-start;
  justify-content: center;
  padding: 56px 20px 80px;
}

.diagnostic-card {
  width: min(100%, 820px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.screen {
  display: none;
  padding: clamp(30px, 6vw, 64px);
}

.screen.active {
  display: block;
  animation: screenEnter 0.32s ease;
}

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(35px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0;
}

.intro-text,
.contact-intro {
  max-width: 670px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro-benefits {
  display: grid;
  margin: 32px 0;
  padding: 0;
  gap: 14px;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  list-style: none;
}

.intro-benefits li {
  position: relative;
  padding: 15px 18px 15px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--green-pale);
  font-weight: 700;
}

.intro-benefits li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 18px;
  color: var(--green);
  font-weight: 900;
}

.privacy-note,
.result-disclaimer {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 2px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--green);
  color: var(--white);
  box-shadow:
    0 13px 30px rgba(11, 104, 31, 0.22);
}

.btn.primary:hover {
  background: var(--green-dark);
}

.btn.secondary {
  border-color: var(--green);
  background: var(--white);
  color: var(--green);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-header p {
  margin: 0;
}

.progress-track {
  width: 100%;
  height: 9px;
  margin: 13px 0 46px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eee6;
}

.progress-bar {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--green),
      #36aa58
    );
  transition: width 0.3s ease;
}

.question-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.question-fieldset legend {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -0.03em;
}

.question-help {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.answers-container {
  display: grid;
  gap: 14px;
}

.answer-option {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 17px 20px;
  border: 2px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.answer-option:hover {
  transform: translateY(-2px);
  border-color: #96caa2;
  box-shadow:
    0 12px 30px rgba(9, 72, 27, 0.08);
}

.answer-option.selected {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow:
    0 12px 30px rgba(9, 72, 27, 0.1);
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-marker {
  display: inline-flex;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  border: 2px solid #a6b9aa;
  border-radius: 50%;
  background: var(--white);
}

.answer-option.selected .answer-marker {
  border-color: var(--green);
  background: var(--green);
}

.answer-option.selected .answer-marker::after {
  content: "✓";
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
}

.answer-text {
  font-size: 17px;
  font-weight: 700;
}

.navigation-buttons {
  display: flex;
  margin-top: 38px;
  gap: 14px;
  justify-content: space-between;
}

.navigation-buttons .btn {
  min-width: 145px;
}

.form-error {
  min-height: 24px;
  margin: 15px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  margin-top: 32px;
  gap: 21px;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 800;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 2px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow:
    0 0 0 4px rgba(11, 104, 31, 0.1);
}

.consent-box {
  display: flex;
  margin-top: 25px;
  align-items: flex-start;
  gap: 12px;
  color: #48564d;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
}

.consent-box.optional {
  margin-top: 14px;
}

.consent-box input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  accent-color: var(--green);
}

.loading-screen {
  min-height: 500px;
  text-align: center;
}

.loading-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader {
  width: 65px;
  height: 65px;
  margin-bottom: 28px;
  border: 7px solid #dfece2;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: rotateLoader 0.8s linear infinite;
}

@keyframes rotateLoader {
  to {
    transform: rotate(360deg);
  }
}

.loading-screen p {
  color: var(--muted);
}

.result-level-label {
  width: fit-content;
  margin: 0 auto 25px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}

.score-circle {
  display: flex;
  width: 155px;
  height: 155px;
  align-items: center;
  justify-content: center;
  border: 11px solid var(--green-light);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  box-shadow:
    0 18px 45px rgba(9, 72, 27, 0.13);
  flex-direction: column;
}

.score-circle strong {
  font-size: 52px;
  line-height: 1;
}

.score-circle span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

#result-screen > h2 {
  text-align: center;
}

.result-description {
  max-width: 650px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
}

.result-findings,
.result-recommendation {
  margin-top: 24px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--green-pale);
}

.result-findings h3,
.result-recommendation h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.result-findings ul {
  display: grid;
  margin: 0;
  padding-left: 22px;
  gap: 9px;
  color: #46534a;
}

.result-recommendation p {
  margin: 0;
  color: #46534a;
  line-height: 1.7;
}

.result-actions {
  display: grid;
  margin-top: 30px;
  gap: 14px;
}

.text-button {
  display: block;
  margin: 26px auto 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}

.diagnostic-footer {
  padding: 28px 20px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.diagnostic-footer p {
  margin: 6px;
}

.diagnostic-footer a {
  color: inherit;
}

@media (max-width: 700px) {

  .diagnostic-header {
    min-height: 78px;
    padding: 16px 20px;
  }

  .diagnostic-logo {
    font-size: 20px;
  }

  .back-link {
    font-size: 13px;
  }

  .diagnostic-main {
    padding:
      24px
      14px
      55px;
  }

  .diagnostic-card {
    border-radius: 23px;
  }

  .screen {
    padding:
      35px
      23px;
  }

  .intro-benefits {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  .navigation-buttons {
    flex-direction: column-reverse;
  }

  .navigation-buttons .btn {
    width: 100%;
  }

  .answer-option {
    min-height: 67px;
    padding: 15px;
  }

  .answer-text {
    font-size: 16px;
  }

  .progress-track {
    margin-bottom: 35px;
  }

}

@media (max-width: 390px) {

  .screen {
    padding:
      30px
      18px;
  }

  .diagnostic-logo {
    font-size: 18px;
  }

  .score-circle {
    width: 135px;
    height: 135px;
  }

  .score-circle strong {
    font-size: 45px;
  }

}

.cf-turnstile {
  margin-top: 24px;
  margin-bottom: 10px;
}

@media (max-width: 390px) {
  .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
  }
}
