/* Test "Кто я": phone-first column on paper */
body { display: flex; justify-content: center; min-height: 100vh; }
.app { width: 100%; max-width: 430px; min-height: 100vh; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.screen { display: none; flex-direction: column; gap: 20px; flex-grow: 1; }
.screen.is-on { display: flex; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.top__logo span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.pill--signal { background: var(--signal); color: var(--ink); }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); text-transform: uppercase; }
.meta--ink { color: var(--ink); }
.h1 { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 0.94; letter-spacing: -0.05em; margin-top: 8px; }
.h1 em { font-style: normal; color: var(--cobalt); }
.lead { font-size: 17px; line-height: 1.45; font-weight: 500; }
.parts { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; }
.parts li::marker { font-family: var(--mono); color: var(--cobalt); }
.card { background: var(--surface); border-radius: 28px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--rest); }
.card--lift { box-shadow: var(--lift); gap: 12px; padding: 24px 22px; }
.card__head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 48px; padding: 0 18px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.chip--grow { flex: 1 1 0; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--pick { height: auto; min-height: 46px; padding: 9px 15px; text-align: left; line-height: 1.25; font-size: 15px; }
.chip--pick.is-on { background: var(--cobalt); border-color: var(--cobalt); }
.chip.is-off, .add__btn.is-off { opacity: 0.35; cursor: default; }
.note--count { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.note--count.is-full { color: var(--signal); }
.tag { flex-shrink: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 6px 9px; border-radius: 999px; color: var(--ink); background: var(--paper); text-transform: uppercase; }
.tag--signal { background: var(--signal-tint); }
.tag--cobalt { background: var(--cobalt-tint); }
.grow { flex-grow: 1; }
#r-body { display: flex; flex-direction: column; gap: 14px; }
#r-body > .cta--ghost { margin-top: 6px; }
#r-body > .fine { margin-top: 6px; }
.cta { display: flex; justify-content: center; align-items: center; height: 60px; width: 100%; background: var(--cobalt); color: #fff; border: 0; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 18px; cursor: pointer; text-decoration: none; }
.cta:hover { background: var(--ink); color: #fff; }
.cta:disabled { background: var(--line); color: var(--ink-muted); cursor: default; }
.cta--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); font-size: 17px; height: 58px; gap: 10px; }
.cta--ghost:hover { background: var(--ink); color: #fff; }
.cta--ghost:hover svg { stroke: #fff; }
.cta--white { background: #fff; color: var(--cobalt); height: 58px; font-size: 17px; }
.cta--white:hover { background: var(--ink); color: #fff; }
.note { text-align: center; font-size: 13px; color: var(--ink-muted); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* question chrome */
.top--q { align-items: center; }
.back { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.back:hover { background: var(--ink); color: #fff; }
.prog { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.prog__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog__bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; transition: width .2s; }
.prog__row { display: flex; justify-content: space-between; gap: 8px; }
#q-body { display: flex; flex-direction: column; gap: 16px; }
.q-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.04em; }
.q-title--big { font-size: 28px; }
.q-sub { font-size: 15px; line-height: 1.45; color: var(--ink-muted); margin-top: -6px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { min-height: 54px; padding: 12px 18px; border-radius: 18px; text-align: left; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.opt.is-on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.tint { background: var(--signal-tint); border-radius: 20px; padding: 14px 16px; font-size: 14px; line-height: 1.4; }
.iam-row { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--line); padding: 6px 0; }
.iam-pre { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--cobalt); flex-shrink: 0; }
.iam-row--target .iam-pre { font-size: 16px; }
.iam { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: inherit; font-size: 18px; font-weight: 500; color: var(--ink); padding: 8px 0; outline: none; }
.iam::placeholder { color: var(--line-dark); opacity: .5; }
.add { display: flex; gap: 8px; }
.add__inp { flex: 1 1 auto; min-width: 0; height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); padding: 0 16px; font-family: inherit; font-size: 15px; color: var(--ink); outline: none; }
.add__inp:focus { border-color: var(--ink); }
.add__btn { height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.add__btn:hover { background: var(--ink); color: #fff; }
.ask { display: flex; flex-direction: column; gap: 10px; }
.ask__q { font-size: 17px; font-weight: 600; }
.scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.scale button { min-height: 50px; padding: 8px 10px; border-radius: 16px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.scale[data-k="f"] button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.scale[data-k="i"] button.is-on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice button { text-align: left; min-height: 54px; padding: 12px 18px; border-radius: 18px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.choice button.is-on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.hidden-canvas { position: absolute; left: -9999px; top: 0; }

/* result */
.res__type { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 0.95; letter-spacing: -0.06em; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -0.04em; }
.card__p { font-size: 16px; line-height: 1.5; }
.card__p--strong { font-weight: 600; font-size: 17px; }
.kv { display: flex; flex-direction: column; gap: 6px; }
.dark { background: var(--ink); color: #fff; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.dark .meta { color: var(--ink-on-dark); }
.dark__big { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; }
.dark__p { font-size: 16px; line-height: 1.5; color: var(--ink-on-dark); }
.urns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.urn { border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.urn--new { background: var(--cobalt-tint); } .urn--new .urn__n { color: var(--cobalt); }
.urn--old { background: var(--signal-tint); } .urn--old .urn__n { color: var(--signal); }
.urn__n { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -0.05em; }
.urn__l { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.map { width: 100%; height: auto; display: block; }
.map__q { font-family: var(--mono); font-size: 10px; fill: var(--ink-muted); letter-spacing: 0.04em; }
.map__ax { font-family: var(--mono); font-size: 10px; fill: var(--ink-muted); letter-spacing: 0.06em; }
.keys { display: flex; gap: 16px; font-size: 13px; color: var(--ink-muted); }
.keys span { display: flex; align-items: center; gap: 6px; }
.keys i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.gap { border-top: 2px solid var(--paper); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.gap__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: flex; flex-direction: column; gap: 6px; }
.bar__row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.bar__val { font-family: var(--mono); color: var(--ink-muted); }
.bar__track { height: 10px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.bar__track i.is-cobalt { background: var(--cobalt); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp__col { border-radius: 20px; padding: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.cmp__col--blue { background: var(--cobalt); color: #fff; } .cmp__col--blue .meta { color: var(--cobalt-tint); }
.cmp__list { margin: 0; padding-left: 18px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cmp__target { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -0.02em; }
.plan { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: p; }
.plan li { display: flex; flex-direction: column; gap: 4px; padding-left: 34px; position: relative; }
.plan li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 999px; background: var(--cobalt); color: #fff; font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.plan__k { font-weight: 700; font-size: 16px; line-height: 1.3; }
.plan__v { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.blue { background: var(--cobalt); color: #fff; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.blue__title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.08; letter-spacing: -0.04em; }
.blue p { font-size: 16px; line-height: 1.5; }
.blue__fine { font-size: 13px !important; line-height: 1.45 !important; color: var(--cobalt-tint); }
.blue__fine a { color: #fff; }
.cta--outline-white { background: transparent; color: #fff; border: 2px solid #fff; height: 56px; font-size: 16px; }
.cta--outline-white:hover { background: #fff; color: var(--cobalt); }
.cta.is-busy { background: var(--cobalt-tint); color: var(--cobalt); pointer-events: none; }

.map__num { font-family: var(--mono); font-size: 11px; font-weight: 700; fill: #fff; }
.map-legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.map-legend__item { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.2; }
.map-legend__n { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-style: normal; font-weight: 700; color: #fff; }
.map-legend__n.is-good { background: var(--cobalt); }
.map-legend__n.is-bad { background: var(--signal); }
