:root {
  color-scheme: light;
  --navy-950: #061423;
  --navy-900: #0b1f36;
  --navy-800: #123556;
  --navy-700: #1a4d76;
  --gold-600: #d99a25;
  --gold-500: #f2bd53;
  --gold-300: #ffe0a0;
  --gold-100: #fff5df;
  --red-500: #c64b40;
  --red-100: #fff0ee;
  --green-500: #2f9f65;
  --green-100: #eaf8f0;
  --white: #ffffff;
  --surface: #f7f9fc;
  --text: #142235;
  --muted: #68778b;
  --line: #e4eaf2;
  --line-strong: #cfd9e6;
  --shadow-soft: 0 20px 56px rgba(6, 20, 35, 0.1);
  --shadow-card: 0 16px 38px rgba(6, 20, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 20, 35, 0.05), rgba(255, 245, 223, 0.5) 46%, #f7f9fc),
    var(--surface);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 430px;
  background:
    linear-gradient(140deg, rgba(6, 20, 35, 0.98), rgba(18, 53, 86, 0.96) 58%, rgba(198, 75, 64, 0.42)),
    var(--navy-900);
  content: "";
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.app-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 18%, rgba(242, 189, 83, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    var(--navy-900);
  color: var(--white);
  box-shadow: 0 34px 80px rgba(6, 20, 35, 0.32);
}

.hero::after {
  position: absolute;
  right: 44px;
  bottom: 34px;
  width: min(410px, 46vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  content: "";
  opacity: 0.85;
}

.hero__content,
.score-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 224, 160, 0.35);
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.1);
  color: var(--gold-300);
}

h1 {
  max-width: 850px;
  margin: 14px 0 0;
  font-size: clamp(2.35rem, 5.25vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__audience {
  margin: 14px 0 0;
  color: var(--gold-300);
  font-size: 1.02rem;
  font-weight: 850;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__badges span {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 224, 160, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}

.score-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  border: 1px solid rgba(255, 224, 160, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.score-ring {
  position: relative;
  width: min(184px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.score-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 10;
}

.score-ring__track {
  stroke: rgba(255, 255, 255, 0.14);
}

.score-ring__value {
  stroke: var(--gold-500);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  stroke-linecap: round;
  transition: stroke-dashoffset 280ms ease;
}

.score-ring__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-ring__text span,
.score-ring__text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.score-ring__text strong {
  color: var(--gold-300);
  font-size: clamp(3rem, 6vw, 4.1rem);
  line-height: 1;
}

.score-panel__meta {
  display: grid;
  gap: 4px;
  text-align: center;
}

.score-panel__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-panel__meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 820;
}

.analysis-box {
  display: grid;
  gap: 10px;
}

.analysis-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.analysis-item strong,
.analysis-item small {
  display: block;
}

.analysis-item strong {
  font-size: 0.96rem;
}

.analysis-item small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 720;
}

.status-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.status-good .status-icon {
  background: rgba(47, 159, 101, 0.2);
  color: #98e3b7;
}

.status-warn .status-icon {
  background: rgba(242, 189, 83, 0.2);
  color: var(--gold-300);
}

.status-bad .status-icon {
  background: rgba(198, 75, 64, 0.22);
  color: #ffaaa2;
}

.status-neutral .status-icon {
  color: rgba(255, 255, 255, 0.55);
}

.progress-card {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(207, 217, 230, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.progress-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.3;
}

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

.progress-meter span {
  color: var(--navy-800);
  font-weight: 850;
}

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

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), #f7d475);
  transition: width 220ms ease;
}

.quiz {
  display: grid;
  gap: 18px;
}

.question {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.question::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold-500), rgba(198, 75, 64, 0.72));
  content: "";
}

.question.is-missing {
  border-color: rgba(198, 75, 64, 0.58);
  background: linear-gradient(180deg, var(--white), var(--red-100));
  box-shadow: 0 0 0 4px rgba(198, 75, 64, 0.1), var(--shadow-card);
}

.question__head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.question__number {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 0.86rem;
  font-weight: 900;
}

.question h2 {
  margin: 1px 0 0;
  color: var(--navy-950);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.22;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.options label {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: #233249;
  cursor: pointer;
  font-weight: 760;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.options label:hover {
  border-color: rgba(242, 189, 83, 0.78);
  background: var(--gold-100);
  box-shadow: 0 12px 24px rgba(6, 20, 35, 0.06);
  transform: translateY(-1px);
}

.options label:has(input:checked) {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #fff7e5, #ffffff);
  box-shadow: 0 0 0 3px rgba(242, 189, 83, 0.22);
}

.options input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red-500);
}

.form-message {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--red-500);
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold-500), #ffd978);
  color: var(--navy-950);
  box-shadow: 0 14px 28px rgba(242, 189, 83, 0.28);
}

.primary-button:hover {
  box-shadow: 0 18px 34px rgba(242, 189, 83, 0.36);
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--navy-800);
}

.secondary-button:hover {
  border-color: var(--navy-700);
  background: #f8fbff;
}

.result {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 32px;
  padding: clamp(28px, 4vw, 38px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(242, 189, 83, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 224, 160, 0.1), rgba(198, 75, 64, 0.08)),
    var(--navy-950);
  color: var(--white);
  box-shadow: 0 30px 76px rgba(6, 20, 35, 0.27);
}

.result[hidden] {
  display: none;
}

.result__score {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255, 224, 160, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.result__score span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.result__score strong {
  color: var(--gold-300);
  font-size: clamp(4.6rem, 9vw, 6.4rem);
  line-height: 1;
}

.result__content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
}

.result__content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.result__content h3 {
  margin: 26px 0 12px;
  color: var(--gold-300);
}

.result__content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result__content li {
  position: relative;
  padding: 13px 15px 13px 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.result__content li::before {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--navy-950) 0 28%, transparent 30%),
    var(--gold-500);
  content: "";
}

.trust,
.cta {
  margin-top: 32px;
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid rgba(18, 53, 86, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.trust {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.trust__portrait {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(242, 189, 83, 0.96), rgba(255, 224, 160, 0.98));
  color: var(--navy-950);
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(242, 189, 83, 0.28);
}

.trust h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.trust__role {
  margin: 5px 0 12px;
  color: var(--red-500);
  font-weight: 850;
}

.trust p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(135deg, #ffffff, #fff8ec),
    var(--white);
}

.cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.1;
}

.cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.cta__message {
  flex-basis: 100%;
  margin: -8px 0 0;
  color: var(--navy-800);
  font-weight: 800;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 18px;
  }

  .hero,
  .progress-card,
  .result,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px;
  }

  .score-panel {
    min-height: auto;
  }

  .progress-card {
    position: static;
  }

  .question {
    padding: 22px;
  }

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

  .cta {
    display: grid;
  }

  .trust__portrait {
    width: 88px;
    height: 88px;
  }

  .cta .primary-button,
  .actions .primary-button,
  .actions .secondary-button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .app-shell {
    width: min(100% - 18px, 1160px);
  }

  .hero,
  .progress-card,
  .question,
  .result,
  .trust,
  .cta {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .intro {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero__badges {
    display: none;
  }

  .score-panel {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .score-ring {
    width: 126px;
    margin: 0;
  }

  .score-ring__text strong {
    font-size: 2.6rem;
  }

  .score-ring__text span,
  .score-ring__text small {
    font-size: 0.72rem;
  }

  .score-panel__meta {
    align-content: center;
    text-align: left;
  }

  .analysis-box {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .analysis-item {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 90px;
    justify-items: center;
    gap: 7px;
    padding: 10px 8px;
    text-align: center;
  }

  .analysis-item strong {
    font-size: 0.78rem;
  }

  .analysis-item small {
    font-size: 0.72rem;
  }

  .question__head {
    display: grid;
    gap: 12px;
  }

  .question__number {
    width: 44px;
  }
}
