:root {
  --bg: #f5f8fc;
  --bg-soft: #edf3fa;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-blue: linear-gradient(135deg, #0b224b 0%, #0b3b82 58%, #1e63bd 100%);
  --text: #0d1b2f;
  --text-soft: #5f6b7a;
  --text-on-dark: rgba(255, 255, 255, 0.86);
  --line: rgba(11, 59, 130, 0.12);
  --line-strong: rgba(11, 59, 130, 0.2);
  --accent: #0b3b82;
  --accent-strong: #0b224b;
  --cyan: #06b6d4;
  --green: #16a34a;
  --green-2: #2fdd67;
  --amber: #f59e0b;
  --red: #dc2626;
  --shadow: 0 18px 50px rgba(11, 34, 75, 0.08);
  --shadow-strong: 0 28px 80px rgba(11, 59, 130, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(30, 99, 189, 0.12), transparent 24%),
    var(--bg);
}

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

button,
input {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section--muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(237, 243, 250, 0.85));
}

.section--accent {
  padding-top: 40px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head--tight {
  margin-bottom: 24px;
}

.section-text {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--small {
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.45rem, 4.8vw, 3.9rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #07101e 0%, #0b1730 58%, #13264b 100%);
}

.topbar {
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 115, 146, 0.12);
  box-shadow: 0 10px 28px rgba(10, 24, 46, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(220px, 38vw);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__phone {
  font-weight: 600;
  color: var(--text);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero__orb--one {
  top: -40px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: rgba(76, 141, 255, 0.2);
}

.hero__orb--two {
  right: -120px;
  top: 120px;
  width: 480px;
  height: 480px;
  background: rgba(30, 99, 189, 0.24);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 440px);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 82px 0 92px;
}

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

.hero__copy {
  max-width: 720px;
}

.hero__lead {
  margin-top: 28px;
  max-width: 760px;
  color: var(--text-on-dark);
  font-size: 1rem;
  line-height: 1.66;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2e72dd 0%, #235bc0 100%);
  box-shadow: 0 14px 30px rgba(30, 99, 189, 0.26);
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(173, 194, 220, 0.22);
  box-shadow: 0 10px 24px rgba(10, 24, 46, 0.08);
}

.btn--wa {
  color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  box-shadow: 0 14px 30px rgba(47, 221, 103, 0.26);
}

.btn--full {
  width: 100%;
  margin-top: 28px;
}

.hero__panel {
  display: grid;
  gap: 22px;
}

.hero__metric {
  padding: 30px 30px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero__metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__metric strong {
  display: block;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  line-height: 1.46;
}

.hero__metric--accent {
  background: linear-gradient(135deg, rgba(43, 53, 83, 0.92), rgba(53, 62, 92, 0.9));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__metric--accent .hero__metric-label {
  color: rgba(224, 232, 247, 0.74);
}

.hero__metric--accent strong {
  color: #fff;
}

.signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-card,
.result-panel,
.gift-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card {
  padding: 28px;
  border-radius: var(--radius-md);
}

.signal-card__index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.signal-card p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.65;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 28px;
  align-items: start;
}

.audit-progress {
  position: sticky;
  top: 24px;
  z-index: 10;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}

.audit-progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 59, 130, 0.08);
  overflow: hidden;
}

.audit-progress__value {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, #f59e0b 55%, #dc2626 100%);
  transition: width 220ms ease;
}

.audit-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.audit-grid {
  display: grid;
  gap: 14px;
}

.audit-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(11, 34, 75, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.audit-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(11, 34, 75, 0.09);
}

.audit-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.audit-card__box {
  position: relative;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  border: 1.5px solid rgba(11, 59, 130, 0.24);
  background: #fff;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.audit-card__box::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: #fff;
  transform: scale(0);
  transition: transform 180ms ease;
}

.audit-card__title {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.audit-card__text {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.62;
}

.audit-card:has(input:checked) {
  border-color: rgba(11, 59, 130, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 1));
  box-shadow: 0 22px 50px rgba(11, 59, 130, 0.12);
}

.audit-card:has(input:checked) .audit-card__box {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.02);
}

.audit-card:has(input:checked) .audit-card__box::after {
  transform: scale(1);
}

.result-panel {
  position: sticky;
  top: 24px;
  padding: 28px;
  border-radius: 28px;
}

.result-panel__head {
  margin-bottom: 16px;
}

.result-panel__score {
  margin-bottom: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.result-panel__score span {
  color: var(--accent);
}

.result-panel__text {
  color: var(--text-soft);
  line-height: 1.68;
}

.result-panel__alert {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.14);
  color: #991b1b;
  line-height: 1.58;
}

.result-panel__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.result-panel__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.result-panel__item strong {
  max-width: 172px;
  color: var(--text);
  text-align: right;
}

.gift {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.gift__copy {
  padding: 34px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.26), transparent 28%),
    linear-gradient(140deg, #0b224b 0%, #0b3b82 64%, #1e63bd 100%);
  box-shadow: var(--shadow-strong);
}

.gift__copy p:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.72;
}

.gift__stack {
  display: grid;
  gap: 16px;
}

.gift-card {
  padding: 24px;
  border-radius: 22px;
}

.gift-card__kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-card p {
  color: var(--text-soft);
  line-height: 1.68;
}

@media (max-width: 1080px) {
  .hero__grid,
  .audit-layout,
  .gift,
  .signals {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .audit-progress {
    position: static;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar,
  .topbar__actions,
  .hero__actions,
  .result-panel__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: center;
  }

  .brand__logo {
    height: 44px;
  }

  .topbar__actions {
    width: 100%;
  }

  .topbar__phone {
    display: none;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
    max-width: none;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .audit-progress {
    position: sticky;
    top: 12px;
    z-index: 20;
  }

  .audit-progress__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__metric,
  .gift__copy,
  .signal-card,
  .audit-card,
  .result-panel,
  .gift-card {
    border-radius: 22px;
  }

  .result-panel__item strong {
    text-align: left;
    max-width: none;
  }
}

/* --- Квиз «один вопрос на экран» поверх дизайн-токенов экспресс-аудита --- */
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 28px;
  align-items: start;
}

.quiz-main {
  min-width: 0;
}

.quiz-progress {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.quiz-progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 59, 130, 0.08);
  overflow: hidden;
}

.quiz-progress__value {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e72dd 0%, #1e63bd 100%);
  transition: width 220ms ease;
}

.quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.question-stage {
  min-height: 360px;
}

.question {
  animation: quiz-reveal 0.3s ease;
}

.question__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.question__hint {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.question__options {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.quiz-option {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(11, 34, 75, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(11, 34, 75, 0.09);
}

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

.quiz-option__dot {
  position: relative;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 59, 130, 0.24);
  background: #fff;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.quiz-option__dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 180ms ease;
}

.quiz-option__body {
  flex: 1;
}

.quiz-option__title {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.quiz-option__risk {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.quiz-option:has(input:checked) {
  border-color: rgba(11, 59, 130, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 1));
  box-shadow: 0 22px 50px rgba(11, 59, 130, 0.12);
}

.quiz-option:has(input:checked) .quiz-option__dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.02);
}

.quiz-option:has(input:checked) .quiz-option__dot::after {
  transform: scale(1);
}

.quiz-actions {
  margin-top: 26px;
}

.result-panel[data-state="low"] .result-panel__score span {
  color: var(--green);
}

.result-panel[data-state="medium"] .result-panel__score span {
  color: var(--amber);
}

.result-panel[data-state="high"] .result-panel__score span {
  color: var(--red);
}

/* Экран результата (тёмная карточка gift__copy) */
.gift__copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

#result-description {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.72;
}

#result-points {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

#result-points li {
  margin-top: 8px;
}

#result-score {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
}

@keyframes quiz-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .quiz-layout {
    grid-template-columns: 1fr;
  }
}
