:root {
  color-scheme: light;
  --ink: #172d40;
  --muted: #53616d;
  --accent: #286454;
  --accent-dark: #1e4e41;
  --tint: #edf4f0;
  --paper: #fff;
  --canvas: #f3f5f5;
  --line: #d4dcdd;
  --control: #85938f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 18px/1.55 'Golos Text', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1:focus, h2:focus, #app:focus { outline: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
svg { display: block; flex-shrink: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px 20px; background: white; z-index: 5; }
.skip-link:focus { top: 12px; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .page-heading, .layout, .footer { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 20px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand-mark { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -1.8px; }
.brand-logo { display: block; width: 112px; height: 40px; object-fit: contain; }
.brand-name { padding-left: 20px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.header-note { font-size: 14px; text-align: right; }
.header-note span { display: block; margin-top: 4px; color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; gap: 16px; padding-block: 27px 21px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.page-heading span:first-child { color: var(--ink); font-weight: 500; }
.layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.quiz-panel { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 40px 44px 36px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: currentColor; }
h1 { font-size: clamp(38px, 3.7vw, 52px); line-height: 1.13; letter-spacing: -.045em; margin-top: 25px; }
h1 span { color: var(--accent); }
.intro-text { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.start-bottom { margin-top: 32px; padding-top: 27px; border-top: 1px solid var(--line); }
.start-description { font-size: 17px; margin-bottom: 22px; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 58px; padding: 15px 22px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: white; font-weight: 500; line-height: 1.4; text-align: left; transition: background .15s; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.arrow { font-size: 25px; font-weight: 400; line-height: 1; }
.micro { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 14px; }
.start-bottom .micro { text-align: center; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-top: -12px; }
.back { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 12px 8px 12px 0; background: transparent; min-height: 48px; font-size: 15px; color: var(--muted); }
.back:hover { color: var(--ink); }
.progress { display: flex; gap: 5px; margin: 9px 0 30px; }
.progress span { height: 3px; flex: 1; background: var(--line); }
.progress .complete { background: var(--accent); }
.question-number { color: var(--accent); font-size: 13px; letter-spacing: .08em; font-weight: 500; margin-bottom: 12px; }
h2 { font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.hint { color: var(--muted); font-size: 15px; margin-top: 12px; margin-bottom: 24px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; min-height: 60px; border: 1px solid var(--control); border-radius: 3px; background: var(--paper); font-size: 18px; text-align: left; line-height: 1.45; transition: border-color .15s, background .15s; }
.option:hover { background: var(--canvas); border-color: var(--accent); }
.choice { flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid var(--control); border-radius: 50%; display: grid; place-items: center; }
.multi .choice { border-radius: 3px; }
.selected { background: var(--tint); border-color: var(--accent); }
.selected .choice { border-color: var(--accent); }
.selected .choice::after { content: ''; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.multi .selected .choice { background: var(--accent); }
.multi .selected .choice::after { width: 6px; height: 11px; border: solid white; border-width: 0 2px 2px 0; border-radius: 0; transform: translateY(-1px) rotate(45deg); background: none; }
.question-foot { margin-top: 24px; }
.question-foot .micro { display: flex; align-items: flex-start; gap: 8px; }
.question-foot svg { margin-top: 2px; }
.custom-time { margin-top: 22px; display: grid; gap: 12px; }
.custom-time label { font-size: 16px; }
.custom-time input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 56px; padding: 12px; color: var(--ink); background: white; border: 1px solid var(--control); border-radius: 3px; }
.custom-time input::-webkit-date-and-time-value { text-align: left; }
.sidebar { padding-top: 3px; min-width: 0; }
.side-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 15px; }
.reference summary { min-height: 48px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 24px; line-height: 1.3; letter-spacing: -.025em; font-weight: 500; }
.reference summary::-webkit-details-marker { display: none; }
.reference summary::after { content: '+'; color: var(--muted); font-size: 24px; font-weight: 400; }
.reference[open] summary::after { content: '−'; }
.law-list { padding: 0; margin: 24px 0 0; list-style: none; counter-reset: laws; }
.law-list li { position: relative; padding: 19px 0 13px 35px; border-top: 1px solid var(--line); counter-increment: laws; }
.law-list li::before { content: '0' counter(laws); position: absolute; left: 0; top: 22px; color: var(--accent); font-size: 12px; font-weight: 500; }
.law-list h3 { font-size: 17px; line-height: 1.4; }
.law-list p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 6px; }
.law-link { display: flex; align-items: center; min-height: 48px; width: fit-content; max-width: 100%; font-size: 14px; }
.side-note { margin-top: 22px; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.side-note strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; }
.final-intro { color: var(--muted); font-size: 16px; margin-top: 16px; }
.results { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: result; }
.result { border-top: 1px solid var(--line); padding: 22px 0 16px; counter-increment: result; }
.result-heading { display: flex; align-items: flex-start; gap: 12px; }
.result-heading::before { content: '0' counter(result); display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--accent); background: var(--tint); font-size: 12px; font-weight: 500; }
.result h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.02em; }
.result p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.asset-warning { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--tint); font-size: 16px; margin-top: 10px; }
.confirmation { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.confirmation h3 { font-size: 25px; line-height: 1.3; letter-spacing: -.025em; }
.confirmation-copy { color: var(--muted); font-size: 17px; margin-top: 14px; }
.consent-block { margin: 22px 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.consent input { flex: 0 0 24px; width: 24px; height: 24px; accent-color: var(--accent); margin: 1px 0 0; cursor: pointer; }
.consent-block > a { display: flex; align-items: center; min-height: 48px; margin-left: 36px; font-size: 14px; }
.messengers { display: grid; gap: 12px; }
.messenger { justify-content: center; gap: 12px; }
.messenger svg { width: 22px; height: 22px; fill: currentColor; }
.notice { font-size: 16px; overflow-wrap: anywhere; }
.notice:not(:empty) { margin-top: 16px; padding: 14px; border: 1px solid var(--line); }
.notice a { display: flex; align-items: center; min-height: 48px; }
.notice.error { color: #8b2929; border-color: #8b2929; background: #fff8f7; }
.company { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.company strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 7px; }
.company p + p { margin-top: 7px; }
.company a { display: flex; align-items: center; min-height: 48px; }
.next-steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: next; }
.next-steps li { border-top: 1px solid var(--line); padding: 18px 0 18px 36px; position: relative; counter-increment: next; }
.next-steps li::before { content: '0' counter(next); position: absolute; left: 0; top: 21px; font-size: 12px; color: var(--accent); font-weight: 500; }
.next-steps strong { font-size: 17px; font-weight: 500; }
.next-steps p { font-size: 15px; margin-top: 6px; color: var(--muted); }
.sidebar h2 { font-size: 26px; }
.answer-summary { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
.answer-summary summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; cursor: pointer; }
.answer-summary summary::after { content: '+'; }
.answer-summary[open] summary::after { content: '−'; }
.answer-summary dl { margin: 12px 0; font-size: 15px; }
.answer-summary dt { color: var(--muted); margin-top: 16px; }
.answer-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.preview-note { background: var(--tint); padding: 12px 16px; margin-bottom: 22px; font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 28px 0 32px; display: flex; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer strong { color: var(--ink); font-weight: 500; }
.footer span { display: block; }
.footer a { display: flex; align-items: center; min-height: 48px; }
.noscript { padding: 24px; max-width: 720px; margin: auto; }
@media (min-width: 960px) { [data-stage="question"] .quiz-panel { min-height: 650px; } }
@media (max-width: 1100px) and (min-width: 960px) {
  .header-inner, .page-heading, .layout, .footer { width: calc(100% - 48px); }
  .layout { gap: 32px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .quiz-panel { padding-inline: 30px; }
}
@media (max-width: 959px) {
  .header-inner, .page-heading, .layout, .footer { width: min(680px, calc(100% - 40px)); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .header-inner { min-height: 100px; }
  .header-note { max-width: 165px; font-size: 12px; }
  .header-note span { display: none; }
  .quiz-panel { padding: 32px; }
  h1 { font-size: 44px; }
  .sidebar { padding: 0 12px; }
  .reference summary { font-size: 22px; }
  [data-stage="question"] .side-label, [data-stage="question"] .side-note { display: none; }
  .footer { margin-top: 32px; }
}
@media (max-width: 540px) {
  .header-inner, .page-heading, .layout, .footer { width: calc(100% - 32px); }
  .header-inner { min-height: 108px; align-content: center; flex-wrap: wrap; justify-content: flex-start; gap: 9px; padding-block: 16px; }
  .brand { gap: 14px; min-height: 48px; }
  .brand-mark { font-size: 30px; }
  .brand-name { font-size: 13px; padding-left: 14px; }
  .header-note { max-width: none; width: 100%; text-align: left; color: var(--muted); font-size: 12px; }
  .page-heading { padding-block: 20px 14px; font-size: 11px; letter-spacing: .06em; }
  .page-heading span:last-child { display: none; }
  .layout { gap: 28px; }
  .quiz-panel { padding: 25px 20px 24px; }
  .eyebrow { font-size: 11px; gap: 8px; letter-spacing: .05em; }
  h1 { font-size: clamp(30px, 8.5vw, 36px); margin-top: 22px; line-height: 1.16; letter-spacing: -.045em; }
  .intro-text { font-size: 18px; line-height: 1.55; margin-top: 20px; }
  .start-bottom { margin-top: 25px; padding-top: 22px; }
  .start-description { font-size: 17px; }
  .primary { padding: 15px 16px; }
  .micro { font-size: 13px; }
  .step-top { font-size: 12px; }
  .progress { margin-bottom: 25px; }
  h2 { font-size: 28px; line-height: 1.23; }
  .hint { font-size: 15px; margin-bottom: 20px; }
  .option { padding: 14px 12px; gap: 12px; }
  .choice { flex-basis: 20px; width: 20px; height: 20px; }
  .sidebar { padding-inline: 4px; }
  .reference summary { font-size: 21px; }
  .side-label { font-size: 11px; }
  .law-list { margin-top: 18px; }
  .final-intro { font-size: 16px; }
  .result h3 { font-size: 20px; }
  .result p { font-size: 17px; }
  .result-heading { gap: 10px; }
  .result-heading::before { flex-basis: 25px; height: 27px; }
  .confirmation h3 { font-size: 24px; }
  .messenger { font-size: 16px; gap: 8px; padding-inline: 10px; }
  .messenger svg { width: 19px; height: 19px; }
  .consent { font-size: 15px; }
  .consent-block > a { font-size: 13px; }
  .custom-time input { font-size: 16px; }
  .footer { display: grid; gap: 20px; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.mobile-confirm { display: none; }
@media (max-width: 760px) {
  body[data-stage="final"] { padding-bottom: var(--mobile-confirm-height, 0px); }
  .mobile-confirm {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px #172d4014;
  }
  .mobile-confirm.main-visible { visibility: hidden; pointer-events: none; }
  .mobile-confirm-button { flex: 1 1 0; width: auto; min-height: 44px; justify-content: center; padding: 10px 12px; font-size: 15px; text-align: center; }
  .mobile-confirm-primary { flex-basis: 100%; }
  .mobile-confirm-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
  .mobile-confirm-button[aria-disabled="true"]:hover { background: var(--accent); }
}
