:root {
  --black: #070707;
  --panel: #101011;
  --panel-2: #171718;
  --gold: #d6a13a;
  --gold-light: #f6d77e;
  --white: #f8f7f3;
  --muted: #a8a8aa;
  --line: rgba(255,255,255,.09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--white); background: radial-gradient(circle at 50% 0, #1b170f 0, #0b0b0b 34%, #070707 72%); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%); pointer-events: none; }
button, a { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; width: 560px; height: 560px; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .11; }
.ambient-one { left: -350px; top: -250px; background: #c38a19; }
.ambient-two { right: -380px; bottom: -300px; background: #efd77a; opacity: .045; }

.quiz-header { position: relative; z-index: 3; width: min(1120px, calc(100% - 40px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(214,161,58,.16); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 15px; letter-spacing: .05em; }
.brand strong b { color: var(--gold-light); }
.brand small { margin-top: 6px; color: #aaa; font-size: 7px; letter-spacing: .27em; }
.header-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; color: #d8d6cf; border: 1px solid rgba(246,215,126,.23); border-radius: 99px; background: rgba(214,161,58,.06); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.header-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 14px var(--gold); }

.quiz-shell { position: relative; z-index: 2; width: min(940px, calc(100% - 32px)); margin: 52px auto 70px; }
.panel { display: none; min-height: 570px; padding: clamp(34px, 6vw, 68px); overflow: hidden; border: 1px solid rgba(246,215,126,.2); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,24,25,.96), rgba(8,8,8,.98)); box-shadow: 0 36px 110px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.03); }
.panel.is-active { display: block; animation: panel-in .42s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.kicker { margin: 0 0 11px; color: var(--gold-light); font-size: 11px; font-weight: 900; letter-spacing: .23em; text-transform: uppercase; }
.intro-mark { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 7px 12px; color: #d6d3ca; border: 1px solid rgba(246,215,126,.27); border-radius: 99px; background: rgba(214,161,58,.06); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.intro-mark span { width: 18px; height: 18px; display: grid; place-items: center; color: #0b0905; border-radius: 50%; background: var(--gold-light); font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 23px; font-size: clamp(43px, 6.2vw, 72px); line-height: .98; letter-spacing: -.052em; text-transform: uppercase; }
h1 em { color: transparent; background: linear-gradient(110deg, #fff0ad 0, #d39b31 46%, #fff0b0 100%); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.intro-copy { max-width: 760px; color: #c8c7c2; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.intro-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 31px; }
.intro-points div { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.intro-points strong { color: var(--gold-light); font-size: 26px; line-height: 1; }
.intro-points span { color: #aaa8a2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.primary-button { display: inline-flex; min-width: min(100%, 430px); align-items: center; justify-content: center; gap: 13px; padding: 18px 25px; cursor: pointer; color: #0b0905; border: 1px solid #f4d17a; border-radius: 12px; background: linear-gradient(135deg, #f8dd8e 0%, #d8a441 46%, #f0c865 100%); box-shadow: 0 14px 38px rgba(214,161,58,.22), inset 0 1px rgba(255,255,255,.58); text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 900; letter-spacing: .06em; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(214,161,58,.33); }
.primary-button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.privacy-note { margin: 14px 0 0; color: #858583; font-size: 11px; }

.progress-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.progress-head > div { display: grid; gap: 4px; }
.progress-label { color: #8f8e8a; font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.progress-head strong { font-size: 14px; }
.progress-head strong b { color: var(--gold-light); }
.progress-percent { color: var(--gold-light); font-size: 22px; font-weight: 900; }
.progress-track { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #292929; box-shadow: inset 0 1px 3px rgba(0,0,0,.7); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9f6713, #f4d477, #c58a23); box-shadow: 0 0 16px rgba(214,161,58,.42); transition: width .4s ease; }
.question-stage { min-height: 410px; padding: 48px 0 30px; }
.question-stage.is-changing { animation: question-change .3s ease both; }
@keyframes question-change { from { opacity: .2; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.question-kicker { margin-bottom: 10px; color: var(--gold); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .22em; }
.question-stage h2 { max-width: 780px; margin-bottom: 12px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.question-context { max-width: 720px; margin-bottom: 27px; color: var(--muted); font-size: 15px; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer { position: relative; min-height: 82px; padding: 18px 54px 18px 19px; cursor: pointer; color: #deddd7; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: linear-gradient(145deg, #1a1a1c, #111112); text-align: left; font-size: 14px; font-weight: 650; line-height: 1.35; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.answer::after { content: ""; position: absolute; right: 18px; top: 50%; width: 21px; height: 21px; border: 1px solid #5e5d59; border-radius: 50%; transform: translateY(-50%); transition: background .2s ease, border-color .2s ease; }
.answer:hover { border-color: rgba(246,215,126,.52); background: linear-gradient(145deg, #211e17, #121212); transform: translateY(-2px); }
.answer.is-selected { border-color: var(--gold-light); background: linear-gradient(145deg, rgba(214,161,58,.18), rgba(255,255,255,.025)); }
.answer.is-selected::after { border: 5px solid #17130a; background: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-light); }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.question-footer > span { color: #777; font-size: 10px; }
.back-button, .restart-button { cursor: pointer; color: #c6c4be; border: 0; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.back-button:disabled { opacity: .3; cursor: default; }

.loading-screen { text-align: center; place-items: center; align-content: center; }
.loading-screen.is-active { display: grid; }
.loader-orbit { position: relative; width: 126px; height: 126px; margin: 0 auto 34px; border: 1px solid rgba(246,215,126,.22); border-radius: 50%; }
.loader-orbit::before { content: ""; position: absolute; inset: 17px; border: 1px dashed rgba(246,215,126,.36); border-radius: 50%; animation: rotate 4s linear infinite reverse; }
.loader-orbit span { position: absolute; inset: -2px; border: 3px solid transparent; border-top-color: var(--gold-light); border-right-color: var(--gold); border-radius: 50%; animation: rotate 1.2s linear infinite; }
.loader-orbit i { position: absolute; inset: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0ac, #bc7e1c); box-shadow: 0 0 32px rgba(214,161,58,.42); }
@keyframes rotate { to { transform: rotate(360deg); } }
.loading-screen h2 { margin-bottom: 13px; font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: -.04em; }
.loading-message { min-height: 25px; color: #aaa8a2; }
.analysis-track { width: min(520px, 100%); height: 8px; margin: 25px auto 10px; overflow: hidden; border-radius: 99px; background: #292929; }
.analysis-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9f6713, #f4d477); transition: width .25s linear; }
.analysis-status { width: min(520px, 100%); display: flex; justify-content: space-between; color: var(--gold-light); font-size: 13px; font-weight: 900; }
.analysis-status small { color: #777; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }

.result-screen { padding-bottom: 50px; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-topline span { color: var(--gold-light); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.result-topline b { padding: 7px 10px; color: #0d0a04; border-radius: 7px; background: var(--gold-light); font-size: 12px; }
.result-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; color: #0d0a04; border-radius: 50%; background: linear-gradient(135deg, #f8df91, #c98b20); box-shadow: 0 13px 35px rgba(214,161,58,.23); font-size: 25px; font-weight: 900; }
.result-screen h2 { max-width: 800px; margin-bottom: 16px; font-size: clamp(39px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.result-summary { max-width: 760px; color: #c7c5bf; font-size: 18px; line-height: 1.62; }
.result-bars { display: grid; gap: 17px; margin: 35px 0; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.022); }
.result-bars > div > span { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.result-bars b { font-size: 12px; }
.result-bars small { color: var(--gold-light); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.result-bars i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #282829; }
.result-bars em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9e6814, #f4d477); transition: width .9s .2s ease; }
.diagnosis-box { padding: 25px 27px; border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; background: linear-gradient(90deg, rgba(214,161,58,.12), rgba(255,255,255,.015)); }
.diagnosis-box > span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.diagnosis-box strong { display: block; margin: 7px 0 9px; font-size: 24px; line-height: 1.2; }
.diagnosis-box p { margin: 0; color: #aaa8a2; font-size: 14px; }
.next-steps { margin-top: 42px; }
.next-steps h3 { font-size: 25px; text-transform: uppercase; }
.next-steps ol { display: grid; gap: 10px; padding: 0; list-style: none; }
.next-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #121213; }
.next-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(246,215,126,.28); border-radius: 50%; font-size: 10px; font-weight: 900; }
.next-steps li p { margin: 0; color: #918f8a; font-size: 13px; }
.next-steps li strong { display: block; margin-bottom: 3px; color: #ebe9e2; font-size: 14px; }
.result-offer { margin-top: 37px; padding: 31px; text-align: center; border: 1px solid rgba(246,215,126,.3); border-radius: 19px; background: radial-gradient(circle at 50% 0, rgba(214,161,58,.16), transparent 58%), #0c0c0c; }
.result-offer > p:first-child { margin-bottom: 19px; color: #d2d0ca; font-size: 18px; font-weight: 700; }
.result-offer > div { display: flex; align-items: end; justify-content: center; gap: 10px; margin-bottom: 21px; }
.result-offer small { color: #8b8983; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-offer strong { font-size: 48px; line-height: .95; letter-spacing: -.05em; }
.result-offer sup { position: relative; top: -14px; margin-right: 4px; color: var(--gold-light); font-size: 16px; }
.result-offer strong span { color: var(--gold-light); font-size: .65em; }
.result-offer .primary-button { width: min(100%, 480px); }
.offer-note { margin: 13px 0 0; color: #777; font-size: 9px; }
.restart-button { display: block; margin: 25px auto 0; color: #8e8c87; text-decoration: underline; text-underline-offset: 4px; }

footer { position: relative; z-index: 2; width: min(940px, calc(100% - 32px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto 32px; color: #656565; font-size: 9px; }

@media (max-width: 680px) {
  .quiz-header { width: calc(100% - 26px); min-height: 70px; }
  .brand img { width: 42px; height: 42px; }.brand strong { font-size: 12px; }.brand small { font-size: 5px; }
  .header-badge { padding: 8px 9px; font-size: 8px; letter-spacing: .09em; }
  .quiz-shell { width: calc(100% - 20px); margin: 23px auto 42px; }
  .panel { min-height: 0; padding: 28px 20px; border-radius: 18px; }
  h1 { font-size: clamp(41px, 12vw, 58px); }
  .intro-points { grid-template-columns: 1fr; gap: 8px; }.intro-points div { padding: 13px 15px; }
  .primary-button { width: 100%; min-width: 0; padding-inline: 15px; font-size: 11px; }
  .question-stage { min-height: 0; padding: 38px 0 26px; }
  .question-stage h2 { font-size: clamp(31px, 9vw, 43px); }
  .answers { grid-template-columns: 1fr; }
  .answer { min-height: 72px; }
  .question-footer { align-items: start; flex-direction: column-reverse; }.question-footer > span { line-height: 1.4; }
  .loading-screen { min-height: 570px; }
  .result-screen h2 { font-size: 41px; }
  .result-bars { padding: 19px 16px; }
  .diagnosis-box { padding: 22px 20px; }
  .next-steps li { grid-template-columns: 42px 1fr; gap: 11px; padding: 15px 13px; }
  .result-offer { padding: 28px 16px; }.result-offer > div { flex-wrap: wrap; }.result-offer > div small:first-child { width: 100%; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
