/* Тест на входе */
.qz .gwrap { gap: 14px; }
.qz h2.ph { font-size: 34px; }
.qz h1 { font-size: 38px; }
.qlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.qlist li { position: relative; padding-left: 26px; font-size: 15px; }
.qlist li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2.5px solid var(--ac); border-bottom: 2.5px solid var(--ac); transform: rotate(-45deg); }
.qq { font-size: 31px; line-height: 1.15; }
.qopts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.qopt { width: 100%; text-align: left; background: var(--s1); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; min-height: 58px; font-size: 17px; font-weight: 600; transition: border-color .15s, background .15s, transform .15s; }
.qopt:active { transform: scale(.985); }
.qopt.on { background: rgba(242,180,90,.16); border-color: var(--ac); color: var(--ac); }
.qform { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.qchk { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--mut); line-height: 1.4; }
.qchk input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ac); }
.qload { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding-top: 70px; }
.qload .lead { min-height: 26px; }
.qorb { position: relative; width: 120px; height: 120px; margin-bottom: 8px; }
.qorb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ac); opacity: 0; animation: qpulse 2.4s ease-out infinite; }
.qorb i:nth-child(2) { animation-delay: .8s; border-color: #6FD3C5; } .qorb i:nth-child(3) { animation-delay: 1.6s; }
.qorb::after { content: ''; position: absolute; inset: 40px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 30px var(--ac); }
@keyframes qpulse { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.qprog { width: 100%; max-width: 280px; height: 6px; background: var(--s2); border-radius: 6px; overflow: hidden; }
.qprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), #6FD3C5); border-radius: 6px; animation: qfill 8.2s cubic-bezier(.4, .1, .3, 1) forwards; }
@keyframes qfill { to { width: 100%; } }
.qscs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qsc { background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.qsc span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.qsc b { font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 700; color: var(--ac); }
.qsc em { font-style: normal; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 10px; align-self: center; background: var(--s2); }
.qsc.l3 b { color: var(--ok); } .qsc.l3 em { background: rgba(127,217,154,.18); color: var(--ok); }
.qsc.l2 b { color: #6FD3C5; } .qsc.l2 em { background: rgba(111,211,197,.16); color: #6FD3C5; }
.qsc.l1 b { color: var(--ac); } .qsc.l1 em { background: rgba(242,180,90,.16); color: var(--ac); }
.qsc.l0 b { color: #F08A5D; } .qsc.l0 em { background: rgba(240,138,93,.16); color: #F08A5D; }
.qbar { display: flex; flex-direction: column; gap: 5px; }
.qbl { display: flex; justify-content: space-between; font-size: 15px; } .qbl b { color: var(--ac); }
.qbt { height: 8px; background: var(--s2); border-radius: 99px; overflow: hidden; } .qbt i { display: block; height: 100%; background: var(--ac); border-radius: 99px; }
.qh3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 600; margin: 0; }
.qfocus { border-left: 4px solid var(--ac); }
.qoffer { border-color: rgba(242,180,90,.5); background: linear-gradient(160deg, rgba(242,180,90,.12), var(--s1) 60%); }
.qoffer a.btn { text-decoration: none; }
.qz .btn.ghost { margin-top: 0; }

/* ---- вопросы и задания ---- */
.qpb { flex: none; height: 4px; margin: 8px 16px 0; background: var(--s2); border-radius: 4px; overflow: hidden; }
.qpb i { display: block; height: 100%; background: var(--ac); border-radius: 4px; transition: width .3s; }
.qwords { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 0; }
.qwords span { font-family: var(--serif); font-size: 32px; font-weight: 600; padding: 6px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
.qdig { font-family: var(--serif); font-size: 76px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 18px 0; color: var(--ink); }
.qcdw { height: 5px; background: var(--s2); border-radius: 5px; overflow: hidden; }
.qcdw i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ac), #6FD3C5); transform-origin: left; animation: qshrink linear forwards; }
@keyframes qshrink { to { transform: scaleX(0); } }
.qpass { font-size: 18px; line-height: 1.55; }
.qgrid { display: flex; flex-direction: column; gap: 6px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; }
.qgrid div { display: flex; gap: 14px; }
.qgrid span { width: 26px; text-align: center; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qchips { display: flex; flex-wrap: wrap; gap: 10px; }
.qchip { background: var(--s1); border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 18px; font-weight: 600; }
.qchip.on { background: rgba(242,180,90,.18); border-color: var(--ac); color: var(--ac); }
.qz .gwrap { padding-bottom: 8px; }

/* ---- результат ---- */
.qscs .qsc span { line-height: 1.25; min-height: 33px; display: flex; align-items: center; justify-content: center; }
.qtag { align-self: flex-start; background: var(--ac); color: var(--on); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.qoffer { gap: 14px; padding: 20px 18px; border: 1.5px solid rgba(242,180,90,.6); background: radial-gradient(120% 80% at 100% 0%, rgba(111,211,197,.14), transparent 60%), linear-gradient(165deg, rgba(242,180,90,.16), var(--s1) 55%); box-shadow: 0 18px 50px -24px var(--ac); }
.qoffer .qh3 { font-size: 30px; }
.qroad { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 4px; }
.qroad > div { position: relative; padding: 0 0 14px 26px; display: flex; flex-direction: column; }
.qroad > div:last-child { padding-bottom: 0; }
.qroad > div::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.qroad > div:last-child::before { display: none; }
.qroad i { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 4px rgba(242,180,90,.18); }
.qroad b { font-size: 15px; } .qroad span { font-size: 14px; color: var(--mut); }
.qchart { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 8px; }
.qcl { font-size: 12px; color: var(--mut); margin-bottom: 4px; }
.qchart svg { width: 100%; height: 120px; display: block; overflow: visible; }
.qchart circle { fill: #6FD3C5; stroke: var(--bg); stroke-width: 2; }
.qline { fill: none; stroke: #6FD3C5; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: qdraw 2.2s .3s ease-out forwards; }
.qend { animation: qpop 1.6s ease-in-out 2.4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes qdraw { to { stroke-dashoffset: 0; } }
@keyframes qpop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.qax { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-top: 6px; }
.qavg { display: flex; align-items: center; gap: 14px; background: rgba(127,217,154,.12); border: 1px solid rgba(127,217,154,.5); border-radius: 18px; padding: 12px 16px; }
.qavg b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ok); } .qavg span { font-size: 14px; }
.qprice { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 4px; }
.qprice b { font-family: var(--serif); font-size: 60px; line-height: .9; font-weight: 700; color: var(--ink); }
.qprice b small { font-size: 26px; font-weight: 600; }
.qprice span { display: block; font-size: 14px; color: var(--mut); margin-top: 4px; }
.qprice em { font-style: normal; font-size: 13px; font-weight: 700; border: 1px solid var(--ac); color: var(--ac); border-radius: 999px; padding: 5px 12px; margin-bottom: 4px; white-space: nowrap; }
.qmsg:empty { display: none; }
.qsw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qsw .card { gap: 4px; } .qsw b { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.qgood { border-left: 4px solid var(--ok); }
.qfacs { display: flex; flex-direction: column; gap: 12px; }
.qfac { display: flex; gap: 12px; align-items: flex-start; }
.qfac i { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--ok); }
.qfac.y i { background: var(--ac); } .qfac.r i { background: #F08A5D; }
.qfac b { display: block; font-size: 15px; } .qfac span { display: block; font-size: 13px; color: var(--mut); }
.qsticky { position: sticky; bottom: 0; z-index: 5; margin: 8px -24px -8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(180deg, rgba(16,15,26,0), rgba(16,15,26,.94) 30%); backdrop-filter: blur(6px); }
.qsticky b { font-family: var(--serif); font-size: 28px; line-height: 1; display: block; } .qsticky span { font-size: 12px; color: var(--mut); }
.qsticky .btn { text-decoration: none; padding: 12px 26px; }
@media (prefers-reduced-motion: reduce) { .qline { stroke-dashoffset: 0; } }

.qskip { margin-top: 0; border-color: transparent; color: var(--mut); min-height: 44px; font-weight: 600; }
.qweak { color: var(--mut); font-size: 15px; } .qweak b { color: var(--ink); }
.qlive { background: rgba(111,211,197,.10); border: 1px solid rgba(111,211,197,.4); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.qlive b { font-size: 16px; color: #6FD3C5; } .qlive span { font-size: 14px; color: var(--mut); }
.qtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qtiles > div { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.qtiles u { text-decoration: none; height: 34px; display: grid; place-items: center; width: 100%; } .qtiles u svg { height: 28px; width: auto; } .qtiles u .meter { width: 100%; gap: 3px; } .qtiles u .meter i { height: 8px; }
.qtiles b { font-size: 15px; } .qtiles span { font-size: 12px; color: var(--mut); line-height: 1.25; }
.qtrial { margin-top: 0; border-color: var(--ac); color: var(--ac); font-weight: 700; }
.view .qoffer { margin-bottom: 10px; }

.qsteps { gap: 14px; padding: 18px; }
.qsteps > div { display: flex; gap: 14px; align-items: flex-start; }
.qsteps i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ac); color: var(--on); font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.qsteps p { font-size: 17px; line-height: 1.4; padding-top: 2px; } .qsteps b { color: var(--ac); }
