:root {
  color-scheme: light;
  --ink: #2b1936;
  --body: #54495d;
  --muted: #695d71;
  --purple: #6b2588;
  --deep: #30163f;
  --line: #e7dfea;
  --surface: #fff;
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8f5fa;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8642a0; outline-offset: 4px; }
svg { display: block; width: 20px; height: 20px; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }

.topbar { background: #fff; border-bottom: 1px solid #eee8f1; }
.topbar-inner { height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; line-height: 1.2; }
.brand img { display: block; border-radius: 9px; }
.brand-name { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.brand-tagline { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.header-link { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; font-size: 14px; font-weight: 700; color: var(--purple); text-decoration: none; white-space: nowrap; }
.header-link svg { width: 15px; height: 15px; }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.layout { display: grid; grid-template-columns: minmax(290px, 355px) minmax(0, 1fr); align-items: stretch; gap: 26px; margin-top: 37px; }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px 31px 25px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 95% -15%, #794399 0%, transparent 51%), linear-gradient(145deg, #49255a 0%, #32193f 66%, #2b173b 100%);
  color: white;
}
.intro::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 152px;
  height: 145px;
  opacity: .39;
  background: radial-gradient(circle, #f7c2f5 1.15px, transparent 1.8px) 0 0 / 13px 13px;
  mask-image: linear-gradient(225deg, #000, transparent 77%);
}
.eyebrow { margin: 0; font-size: 11px; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.intro .eyebrow { color: #f1b9eb; }
.intro h1 { margin: 15px 0 13px; font-family: "Roboto Condensed", "Segoe UI", sans-serif; font-size: clamp(39px, 3.45vw, 53px); line-height: .99; letter-spacing: -.058em; }
.intro h1 em { display: block; font-style: normal; color: #ffd671; }
.intro-description { margin: 0; max-width: 260px; font-size: 14px; line-height: 1.57; color: #eee0f2; }
.journey { margin: 26px 0 23px; }
.journey ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.journey button, .journey-current, .journey-future {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 5px 9px;
  text-align: left;
  color: #ead9ee;
  background: transparent;
  font-size: 13px;
  line-height: 1.19;
}
.journey-index { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 1px solid #a583ae; font-size: 10px; font-weight: 700; }
.journey-index svg { width: 13px; height: 13px; }
.journey-current { background: #ffffff16; border-color: #ffffff30; color: #fff; font-weight: 750; }
.journey-current .journey-index { color: #351b40; background: #ffd671; border-color: #ffd671; }
.journey button .journey-index { color: #ffd671; border-color: #be9d5d; }
.journey button:hover { background: #ffffff20; }
.journey button:focus-visible { outline-color: #ffd671; outline-offset: 0; }
.consultant { margin-top: auto; display: flex; gap: 11px; align-items: center; border-top: 1px solid #ffffff2b; padding-top: 18px; }
.consultant img { border-radius: 50%; object-fit: cover; border: 1px solid #ffffff4d; }
.consultant strong, .consultant span { display: block; }
.consultant strong { font-size: 13px; margin-bottom: 4px; }
.consultant span { font-size: 12px; color: #e5d5eb; }

.questionnaire {
  min-width: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 36px 26px;
  background: var(--surface);
  box-shadow: 0 12px 40px #35133f0b;
}
.progress-area { margin-bottom: 31px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 750; letter-spacing: .018em; }
#progress-step { color: var(--purple); }
#progress-topic { color: var(--muted); text-align: right; }
progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #f1eaf3; color: #a532a0; }
progress::-webkit-progress-bar { background: #f1eaf3; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #87349d, #cc4599); border-radius: 99px; }
progress::-moz-progress-bar { background: #a532a0; border-radius: 99px; }
#screen, .step-form { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.screen-title { margin: 0; font-family: "Roboto Condensed", "Segoe UI", sans-serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.042em; }
.screen-title:focus { outline: none; }
.screen-lead { color: var(--body); margin: 10px 0 21px; line-height: 1.5; font-size: 15px; max-width: 61ch; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice {
  position: relative;
  min-width: 0;
  min-height: 105px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e6dee9;
  border-radius: 14px;
  padding: 15px 11px 14px 13px;
  cursor: pointer;
}
.choice:hover { border-color: #ad7cc0; background: #fdfaff; }
.choice:has(input:checked) { border-color: #813d98; background: #faf3fc; box-shadow: inset 0 0 0 1px #813d98; }
.choice:has(input:focus-visible) { outline: 3px solid #8642a0; outline-offset: 3px; }
.choice-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; background: var(--icon-bg); color: var(--icon-fg); }
.choice-icon svg { width: 18px; height: 18px; }
.gold { --icon-bg: #ffefc2; --icon-fg: #734500; }
.blue { --icon-bg: #e0f3fa; --icon-fg: #105979; }
.rose { --icon-bg: #fce2ef; --icon-fg: #95234f; }
.lilac { --icon-bg: #f0e2fa; --icon-fg: #722992; }
.choice-copy { flex: 1; min-width: 0; }
.choice strong { display: block; margin: 1px 0 4px; font-size: 14px; line-height: 1.25; }
.choice small { display: block; color: var(--body); font-size: 12.5px; line-height: 1.38; }
.choice-check { flex: 0 0 16px; height: 16px; margin-top: 2px; border: 1px solid #9b8ba4; border-radius: 50%; }
.choice input:checked ~ .choice-check { border: 5px solid #782b93; background: #fff; }
.activity { display: grid; gap: 7px; margin-top: 17px; font-size: 13px; font-weight: 700; color: var(--ink); }
.activity span { font-weight: 400; color: var(--muted); }
.activity input, .activity select { width: 100%; padding: 10px 12px; min-height: 44px; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #a999b2; border-radius: 9px; }
.form-error { margin: 12px 0 0; color: #a02348; font-size: 13px; font-weight: 700; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 26px; }
.step-hint, .back { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; color: var(--muted); font-size: 13px; }
.step-hint svg, .back svg { width: 17px; height: 17px; }
.back, .plain-button { border: 0; background: transparent; padding: 0 4px; color: var(--purple); font-weight: 700; }
.back:hover, .plain-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.primary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #65207f; border-radius: 10px; background: #65207f; color: white; padding: 10px 17px; text-decoration: none; text-align: center; font-weight: 750; font-size: 14px; }
.primary:hover { background: #4b165f; border-color: #4b165f; }
.primary svg { width: 18px; height: 18px; flex: 0 0 18px; }

.result-kicker { color: var(--purple); margin: 0 0 9px; }
.result-priorities { margin: 0 0 18px; background: #faf5fc; border: 1px solid #eadcf0; border-radius: 13px; padding: 14px 16px; }
.result-priorities h3 { margin: 0 0 9px; font-size: 14px; }
.result-priorities ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.result-priorities li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.42; color: var(--body); }
.result-priorities svg { width: 15px; height: 15px; margin-top: 2px; flex: 0 0 15px; color: var(--purple); }
.context { margin: -1px 0 14px; font-size: 13px; color: var(--body); overflow-wrap: anywhere; }
.result-contact { padding-top: 0; }
.result-contact h3 { margin: 0 0 6px; font-size: 16px; }
.result-contact p { margin: 0 0 12px; color: var(--body); font-size: 13px; line-height: 1.45; }
.result-actions, .result-utilities { display: flex; align-items: center; flex-wrap: wrap; column-gap: 15px; row-gap: 7px; }
.result-utilities { margin-top: auto; padding-top: 16px; }
.result-actions .plain-button, .result-utilities .plain-button { min-height: 37px; font-size: 13px; }
.copy-status { margin: 7px 0 0; color: var(--body); font-size: 12px; }
.manual-copy { margin-top: 9px; width: 100%; resize: vertical; min-height: 120px; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-block: 20px 26px; font-size: 12px; color: var(--muted); }
.privacy { display: flex; align-items: center; gap: 6px; }
.privacy svg { width: 14px; height: 14px; }
.no-script { color: var(--body); }

@media (max-width: 980px) {
  .shell { width: calc(100% - 48px); }
  .layout { grid-template-columns: minmax(256px, 31%) minmax(0, 1fr); gap: 17px; }
  .intro { padding-inline: 23px; }
  .questionnaire { padding-inline: 24px; }
  .choice { padding-inline: 10px; gap: 8px; min-height: 110px; }
}
@media (max-width: 740px) {
  .shell { width: min(560px, calc(100% - 32px)); }
  .topbar-inner { height: 61px; }
  .brand img { width: 35px; height: 35px; }
  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 10px; }
  .header-link { font-size: 12px; gap: 4px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .intro { border-radius: 16px; padding: 19px 20px 18px; }
  .intro h1 { font-size: clamp(27px, 6.2vw, 40px); line-height: 1.02; margin-block: 8px; }
  .intro h1 em { display: inline; }
  .intro-description { max-width: 39ch; font-size: 13px; }
  .intro .eyebrow { font-size: 10px; }
  .journey, .consultant { display: none; }
  .questionnaire { min-height: 0; padding: 19px 18px 17px; border-radius: 16px; }
  .progress-area { margin-bottom: 22px; }
  .screen-lead { margin-bottom: 16px; font-size: 14px; }
  .step-actions { padding-top: 19px; }
  .footer { flex-wrap: wrap; margin-block: 13px 19px; font-size: 11px; }
}
@media (max-width: 480px) {
  .options { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .choice { align-items: center; min-height: 57px; padding: 8px 10px; gap: 10px; border-radius: 10px; }
  .choice strong { margin-block: 0 2px; }
  .choice small { font-size: 12px; }
  .choice-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .choice-check { margin-top: 0; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .plain-button { align-self: flex-start; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 22px); }
  .brand-tagline { display: none; }
  .questionnaire { padding-inline: 13px; }
  .primary { padding-inline: 11px; }
}
