:root {
  --bg: #070b11;
  --bg-2: #0d131d;
  --panel: #111721;
  --panel-soft: #161b25;
  --paper: #ebe7ea;
  --ink: #17131a;
  --text: #f5f0f3;
  --muted: #aaa1aa;
  --muted-2: #77717a;
  --line: rgba(211, 193, 204, 0.14);
  --line-strong: rgba(211, 193, 204, 0.25);
  --accent: #873344;
  --accent-bright: #a6465b;
  --accent-soft: #c9aab3;
  --steel: #39495d;
  --success: #a7baa5;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(57, 73, 93, 0.22), transparent 28rem),
    radial-gradient(circle at 8% 60%, rgba(135, 51, 68, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(198, 170, 179, 0.72);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(135, 51, 68, 0.62);
  color: white;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(211, 193, 204, 0.08);
  background: rgba(7, 11, 17, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

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

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand span {
  font-weight: 660;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.privacy-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9c1c8;
  font-size: 12px;
}

.privacy-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(167, 186, 165, 0.7);
}

.noscript {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(166, 70, 91, 0.45);
  border-radius: 16px;
  background: rgba(135, 51, 68, 0.12);
}

.screen {
  min-height: calc(100vh - 70px);
  padding: 72px 0 92px;
  animation: screen-in 0.5s ease both;
}

.screen--active {
  display: block;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent-bright);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: 8%;
  right: -34%;
  border: 1px solid rgba(198, 170, 179, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 90px rgba(198, 170, 179, 0.014),
    inset 0 0 0 180px rgba(198, 170, 179, 0.014);
}

.hero h1,
.result h2,
.context h2 {
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(50px, 8.5vw, 92px);
  line-height: 0.96;
}

.hero h1 em,
.context h2 em {
  color: var(--accent-soft);
  font-weight: 400;
}

.hero__lead {
  max-width: 740px;
  margin: 0;
  color: #d0c8ce;
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.48;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.hero__facts span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bbb3ba;
  font-size: 12px;
}

.hero__facts b {
  color: var(--text);
}

.intro-card {
  max-width: 820px;
  margin: 34px 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.intro-card > p {
  margin: 0;
  color: #c7c0c6;
}

.intro-card strong {
  color: #f3ebf0;
  font-weight: 600;
}

.scale-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.scale-preview span {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.scale-preview b {
  margin-right: 3px;
  color: var(--accent-soft);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.button--large {
  min-height: 56px;
  padding-inline: 25px;
}

.button--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 38px rgba(135, 51, 68, 0.18);
}

.button--primary:hover:not(:disabled) {
  background: var(--accent-bright);
  box-shadow: 0 18px 42px rgba(135, 51, 68, 0.3);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: #ded7dc;
}

.button--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.075);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--telegram {
  background: var(--accent);
  color: white;
}

.microcopy {
  margin: 13px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.quiz {
  max-width: 820px;
  margin-inline: auto;
}

.progress-wrap {
  margin-bottom: 30px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-bar {
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #be7585);
  transition: width 0.35s ease;
}

.question-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5.5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 4%, rgba(57, 73, 93, 0.24), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.question-card__mark {
  position: absolute;
  top: -12px;
  right: 24px;
  color: rgba(198, 170, 179, 0.08);
  font-family: Georgia, serif;
  font-size: 170px;
  line-height: 1;
  pointer-events: none;
}

.question-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 47px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.032em;
}

.question-hint {
  max-width: 630px;
  margin: 19px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.rating {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rating__option {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.024);
  color: #c7c0c6;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rating__option:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 170, 179, 0.42);
  background: rgba(255, 255, 255, 0.055);
}

.rating__option b {
  color: var(--accent-soft);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.rating__option span {
  font-size: 12px;
}

.rating__option.is-selected {
  border-color: rgba(166, 70, 91, 0.9);
  background: rgba(135, 51, 68, 0.2);
  box-shadow: inset 0 0 0 1px rgba(166, 70, 91, 0.35);
}

.rating__option.is-selected b,
.rating__option.is-selected span {
  color: white;
}

.sting {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.sting span {
  color: var(--accent-soft);
  font-size: 16px;
}

.sting[aria-pressed="true"] {
  color: #f0e6ec;
}

.sting[aria-pressed="true"] span {
  color: #c65c74;
  filter: drop-shadow(0 0 7px rgba(198, 92, 116, 0.45));
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.context {
  max-width: 820px;
  margin-inline: auto;
}

.context h2,
.result h2 {
  font-size: clamp(45px, 7vw, 72px);
  line-height: 1.01;
}

.context__lead {
  max-width: 680px;
  margin: -6px 0 32px;
  color: #c5bdc3;
  font-size: 18px;
}

.context-list {
  display: grid;
  gap: 12px;
}

.context-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.context-item p {
  margin: 0;
  color: #d7d0d5;
}

.binary {
  display: flex;
  gap: 7px;
}

.binary button {
  min-width: 54px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.binary button.is-selected {
  border-color: var(--accent-bright);
  background: rgba(135, 51, 68, 0.22);
  color: white;
}

.sting-summary {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(135, 51, 68, 0.38);
  border-radius: var(--radius-md);
  background: rgba(135, 51, 68, 0.085);
}

.sting-summary label {
  display: block;
  margin-bottom: 12px;
  color: #f0e7ed;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.28;
}

.sting-summary select {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #10151d;
  color: var(--text);
}

.sting-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.result {
  max-width: 860px;
  margin-inline: auto;
}

.result__header {
  padding-bottom: 40px;
}

.result__kicker {
  margin: 26px 0 0;
  color: var(--accent-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result h2 {
  max-width: 820px;
  margin-top: 13px;
}

.result__lead {
  max-width: 760px;
  margin: 0;
  color: #d5ccd2;
  font-family: Georgia, serif;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.42;
}

.secondary-result {
  margin: -10px 0 34px;
  padding: 20px 22px;
  border-left: 2px solid var(--steel);
  background: rgba(57, 73, 93, 0.12);
  color: #c8c2c8;
}

.secondary-result strong {
  color: white;
}

.result-panel {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 8%, rgba(135, 51, 68, 0.18), transparent 23rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.result-panel__label,
.impact__label,
.painful-result > span,
.cta__pretitle {
  display: block;
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-panel h3,
.impact h3,
.cta h3 {
  margin: 15px 0 13px;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.026em;
}

.result-panel h3 {
  max-width: 670px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.12;
}

.result-panel p {
  max-width: 740px;
  margin: 0;
  color: #cdc5cb;
  font-size: 17px;
}

.impact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.023);
}

.impact h3 {
  font-size: 26px;
}

.impact p {
  margin: 0;
  color: var(--muted);
}

.impact__meter {
  display: flex;
  gap: 7px;
}

.impact__meter i {
  width: 10px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.impact__meter i.is-on {
  background: linear-gradient(180deg, #bd7484, var(--accent));
  box-shadow: 0 0 14px rgba(135, 51, 68, 0.28);
}

.painful-result {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid rgba(135, 51, 68, 0.4);
  border-radius: var(--radius-md);
  background: rgba(135, 51, 68, 0.075);
}

.painful-result blockquote {
  margin: 14px 0;
  color: #f0e8ed;
  font-family: Georgia, serif;
  font-size: clamp(21px, 3.2vw, 29px);
  line-height: 1.35;
}

.painful-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.score-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.score-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  color: #d9d2d7;
  font-weight: 620;
}

.score-details summary::-webkit-details-marker {
  display: none;
}

.score-details summary::after {
  content: "+";
  color: var(--accent-soft);
  font-size: 25px;
  font-weight: 300;
}

.score-details[open] summary::after {
  content: "−";
}

.score-chart {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(125px, 0.7fr) 1fr 42px;
  gap: 13px;
  align-items: center;
}

.score-row__label {
  color: var(--muted);
  font-size: 12px;
}

.score-row__track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.score-row__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--steel), var(--accent-soft));
}

.score-row.is-primary .score-row__label,
.score-row.is-primary .score-row__value {
  color: white;
}

.score-row.is-primary .score-row__bar {
  background: linear-gradient(90deg, var(--accent), #c16d81);
}

.score-row__value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.disclaimer {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 2px solid var(--steel);
  background: rgba(57, 73, 93, 0.1);
  color: #aaa4aa;
  font-size: 12px;
}

.disclaimer b {
  color: #d9d1d7;
}

.cta {
  margin-top: 46px;
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 10%, rgba(135, 51, 68, 0.24), transparent 22rem),
    linear-gradient(145deg, #161b25, #0f141c);
  box-shadow: var(--shadow);
}

.cta h3 {
  max-width: 720px;
  font-size: clamp(35px, 5.5vw, 56px);
  line-height: 1.06;
}

.cta > p {
  max-width: 740px;
  color: #c5bdc3;
}

.cta__offer {
  margin-top: 22px;
  color: #e3dce1 !important;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cta__privacy {
  margin-bottom: 0;
  color: var(--muted-2) !important;
  font-size: 11px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.copy-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--success);
  font-size: 12px;
}

.footer {
  border-top: 1px solid rgba(211, 193, 204, 0.08);
  background: rgba(4, 7, 11, 0.42);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 30px;
  padding: 32px 0 46px;
  color: var(--muted-2);
  font-size: 11px;
}

.footer__inner > div:first-child {
  display: flex;
  flex-direction: column;
}

.footer__inner strong {
  color: #c8c0c6;
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 18px;
}

.footer__links a {
  color: #bbb3b9;
  text-decoration: none;
}

.footer__links a:hover {
  color: white;
}

.footer__inner > p {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0;
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .topbar__inner {
    min-height: 62px;
  }

  .brand small {
    display: none;
  }

  .privacy-pill {
    padding: 6px 9px;
    font-size: 10px;
  }

  .screen {
    min-height: calc(100vh - 62px);
    padding: 48px 0 72px;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

  .hero__lead {
    font-size: 18px;
  }

  .scale-preview {
    grid-template-columns: 1fr 1fr;
  }

  .question-card {
    min-height: 520px;
    padding: 28px 22px;
    border-radius: 27px;
  }

  .question-card h2 {
    font-size: clamp(29px, 8.6vw, 39px);
  }

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

  .rating__option {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
  }

  .rating__option span {
    text-align: right;
  }

  .quiz-nav .button {
    padding-inline: 16px;
  }

  .context h2,
  .result h2 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .context-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .binary {
    width: 100%;
  }

  .binary button {
    flex: 1;
  }

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

  .impact__meter i {
    width: 42px;
    height: 8px;
  }

  .score-row {
    grid-template-columns: 1fr 35px;
  }

  .score-row__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cta {
    border-radius: 28px;
  }

  .cta__buttons {
    flex-direction: column;
  }

  .cta__buttons .button {
    width: 100%;
  }

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

  .footer__links,
  .footer__inner > p {
    grid-column: 1;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 44px;
  }

  .privacy-pill {
    display: none;
  }

  .question-card h2 {
    font-size: 28px;
  }

  .rating__option {
    padding: 12px;
  }

  .rating__option span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
