:root {
  --navy-950: #0b1d34;
  --navy-900: #102947;
  --navy-800: #173a60;
  --ink: #15233a;
  --ink-soft: #5c6879;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --white: #ffffff;
  --gold: #bc9050;
  --gold-dark: #936a31;
  --gold-pale: #efe2cc;
  --line: #e4d9c8;
  --green: #5a7864;
  --shadow: 0 26px 70px rgba(16, 41, 71, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 3%, rgba(188, 144, 80, 0.11), transparent 28rem),
    radial-gradient(circle at 92% 100%, rgba(23, 58, 96, 0.08), transparent 34rem),
    var(--cream);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

button {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  margin-bottom: 20px;
}

.brand__logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(16, 41, 71, 0.13);
}

.brand__name {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.08;
}

.brand__tagline {
  margin: 4px 0 0;
  color: #788397;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(188, 144, 80, 0.36);
  border-radius: 42px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow);
}

.shell::before,
.shell::after {
  position: absolute;
  z-index: 0;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(188, 144, 80, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.shell::before {
  top: -190px;
  right: -80px;
}

.shell::after {
  bottom: -225px;
  left: -130px;
}

.screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 680px;
  grid-template-columns: 128px minmax(0, 1fr);
}

.rail {
  padding: 95px 0 0 44px;
}

.rail__number {
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.rail__line {
  width: 1px;
  height: 180px;
  margin: 16px 0 0 28px;
  background: linear-gradient(var(--gold), rgba(188, 144, 80, 0.08));
}

.content {
  display: flex;
  max-width: 880px;
  flex-direction: column;
  justify-content: center;
  padding: 74px 72px 74px 34px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 840px;
  font-size: clamp(48px, 6.7vw, 92px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
}

.lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin-top: 28px;
  color: var(--navy-800);
  font-size: 16px;
  line-height: 1.5;
}

.note::before {
  width: 70px;
  height: 1px;
  flex: 0 0 auto;
  margin-top: 12px;
  background: var(--gold);
  content: "";
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
.answer:focus-visible,
.back:focus-visible {
  outline: 3px solid rgba(188, 144, 80, 0.46);
  outline-offset: 3px;
}

.button--primary {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 13px 28px rgba(16, 41, 71, 0.2);
  font-weight: 740;
}

.button--primary:hover {
  background: var(--navy-800);
}

.button--secondary {
  border: 1px solid rgba(16, 41, 71, 0.2);
  color: var(--navy-900);
  background: transparent;
  font-weight: 680;
}

.meta {
  color: #7b8595;
  font-size: 15px;
}

.progress {
  width: 100%;
  height: 4px;
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe4da;
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #d8ba83);
  transition: width 220ms ease;
}

.question-number {
  margin: 0 0 15px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.question {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.3vw, 53px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.answer-list {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin-top: 38px;
}

.answer {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.answer:hover {
  transform: translateX(2px);
  border-color: rgba(188, 144, 80, 0.72);
  background: #fffaf1;
}

.answer__score {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--gold-pale);
  font-weight: 800;
}

.answer__text strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy-900);
  font-size: 17px;
}

.answer__text span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.back {
  padding: 8px 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.result-score {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--gold-dark);
}

.result-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 500;
}

.result-score span {
  color: var(--ink-soft);
}

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

.result-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.result-card--accent {
  border-color: rgba(188, 144, 80, 0.38);
  background: #fff9ef;
}

.result-card__label {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.focus-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding-left: 18px;
  color: var(--navy-800);
  line-height: 1.45;
}

.focus-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.privacy {
  max-width: 760px;
  margin-top: 26px;
  color: #838b96;
  font-size: 13px;
  line-height: 1.5;
}

.result .content {
  justify-content: flex-start;
  max-width: 930px;
  padding-top: 62px;
}

.result .screen {
  min-height: 760px;
}

.noscript {
  margin: 40px;
  padding: 20px;
  color: #721c24;
  background: #f8d7da;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 22px, 680px);
    padding-top: 15px;
  }

  .brand {
    gap: 10px;
    margin-bottom: 12px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .brand__tagline {
    font-size: 12px;
  }

  .shell {
    min-height: 650px;
    border-radius: 28px;
  }

  .screen {
    min-height: 650px;
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .content {
    padding: 46px 23px;
  }

  h1 {
    font-size: clamp(45px, 15vw, 67px);
  }

  .lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .note {
    font-size: 14px;
  }

  .note::before {
    width: 40px;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .meta {
    width: 100%;
    text-align: center;
  }

  .question {
    font-size: clamp(30px, 8.5vw, 43px);
  }

  .answer {
    grid-template-columns: 38px 1fr;
    padding: 14px 15px;
  }

  .answer__score {
    width: 34px;
    height: 34px;
  }

  .result .content {
    padding-top: 44px;
  }

  .result-card {
    padding: 19px;
  }
}

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