/* Psychological tests (/testy): the question widget, the email gate and the result. Tokens from site.css */
#qt { max-width: 720px; margin: 0 auto; }
.qt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: 0 18px 50px -30px rgba(60,30,120,.35); }
.qt-card h2 { font-family: var(--display); font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 0 0 14px; }
.qt-muted { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.qt-start, .qt-gate { text-align: center; }
.qt-go { min-width: 240px; min-height: 56px; font-size: 18px; }
.qt-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 18px; }
.qt-bar i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.qt-step { margin: 0 0 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.qt-q { min-height: 3.2em; }
.qt-opts { display: grid; gap: 10px; }
.qt-opt { text-align: left; font: 700 16px/1.3 var(--font); padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s; }
.qt-opt:hover, .qt-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.qt-back { margin-top: 14px; background: none; border: 0; color: var(--brand-ink); font: 700 15px var(--font); cursor: pointer; padding: 8px 0; }
.qt-err { color: var(--bad); font-size: 14px; margin: 0; min-height: 1.2em; }
.qt-badge { display: inline-block; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; margin-bottom: 12px; }
.qt-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 8px; }
.qt-l { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.qt-form input[type=email] { height: 54px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; font: 600 17px var(--font); background: var(--surface); color: var(--fg); width: 100%; }
.qt-form input[type=email]:focus { outline: 0; border-color: var(--brand); }
.qt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.qt-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.qt-check a { color: var(--brand-ink); }
.qt-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qt-note { background: #e3f4ea; color: #17703d; border-radius: 12px; padding: 10px 14px; font-weight: 700; text-align: center; margin: 0 0 16px; }
.qr-title { text-align: center; }
.qr-row { padding: 14px 0; border-top: 1px solid var(--line); }
.qr-row.top .qr-head b { color: var(--brand-ink); }
.qr-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 16px; }
.qr-head span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.qr-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.qr-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.qr-row p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--fg); }
.qt-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.qt-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.qt-tile { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; text-decoration: none; color: var(--fg); transition: transform .15s, border-color .15s; }
.qt-tile:hover { transform: translateY(-2px); border-color: var(--brand); }
.qt-tile b { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.qt-tile span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.qt-tile em { font-style: normal; font-weight: 800; color: var(--brand-ink); font-size: 13px; margin-top: auto; }
@media (max-width: 480px) { .qt-card { padding: 22px 16px; } }
