*{box-sizing:border-box}
:root{color-scheme:light;--ink:#132b43;--muted:#52677a;--blue:#164ee7;--line:#dce5ee;--paper:#f2f6fb;--mint:#b5f0da}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 Tahoma,Arial,sans-serif}
.shell{width:min(1120px,calc(100% - 40px));margin-inline:auto}
.top{background:#fff;border-bottom:1px solid var(--line)}
.masthead,.footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:15px}
.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:bold}
.brand img{max-width:155px;max-height:45px;object-fit:contain}
.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--ink);color:var(--mint)}
.section-label,.footer{color:var(--muted);font-size:.88rem}
main{min-height:55vh;padding-block:clamp(24px,6vw,72px) 24px}
.footer{border-top:1px solid var(--line);margin-top:22px}
h1,h2,p,figure{margin:0}
h1{line-height:1.25}
button,input,select{font:inherit}
button,select{cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid #164ee7;outline-offset:4px}
.hero{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:28px;background:var(--ink);color:white;box-shadow:0 18px 40px #132b4320}
.hero-copy{padding:clamp(26px,5vw,65px);align-self:center}
.hero h1{font-size:clamp(3rem,8vw,6rem);margin-block:7px 15px;letter-spacing:-.035em}
.hero p{color:#e0eaf2;max-width:35ch;margin-bottom:26px}
.hero .primary{color:#132b43;background:var(--mint)}
.hero .primary:hover{background:#d6faec}
.kicker{font-weight:bold;color:#2450ad;font-size:.95rem}
.hero .kicker{color:var(--mint)}
.hero-visual{padding:22px;display:grid;align-content:center;background:radial-gradient(ellipse at 50% 40%,#244a73,#162f4b 72%)}
.art canvas,.art img{width:100%;display:block;border-radius:16px}
.hero-visual canvas{border-radius:18px}
.overview{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:19px 4px 0;color:var(--muted)}
.overview span{border:1px solid var(--line);background:white;border-radius:30px;padding:4px 12px;font-size:.87rem}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:13px;min-height:49px;padding:9px 23px;font-weight:bold;text-decoration:none}
.primary{background:var(--blue);color:#fff}
.primary:hover{background:#113dc0}
.primary:disabled{background:#dae3f7;color:#536782}
.secondary{background:white;border-color:var(--line);color:var(--ink)}
.quiz,.result{max-width:850px;margin-inline:auto}
.progress-head{display:flex;justify-content:space-between;gap:12px;font-weight:bold;margin-bottom:9px}
progress{display:block;width:100%;height:10px;border:0;border-radius:10px;overflow:hidden;background:#dce5ee;appearance:none}
progress::-webkit-progress-bar{background:#dce5ee}
progress::-webkit-progress-value{background:#2859e6}
progress::-moz-progress-bar{background:#2859e6}
.card{border:1px solid var(--line);border-radius:24px;padding:clamp(17px,4vw,34px);background:white;margin-top:16px;box-shadow:0 8px 28px #132b4309}
.card h1{font-size:clamp(1.35rem,4vw,2rem);line-height:1.5;margin:5px 0 16px}
.question-art{max-width:560px;margin:0 auto 18px}
.controls,.order-list,.review{display:grid;gap:9px}
.option,.pair,.order-row,.review li{border:1px solid var(--line);border-radius:12px;background:#f8fafd;padding:10px 13px}
.option{cursor:pointer;display:flex;gap:10px;align-items:center;min-height:49px}
.option:has(input:checked){border-color:var(--blue);background:#eaf0ff}
.option input{accent-color:var(--blue);width:20px;height:20px;flex:none}
.option img{width:110px;max-width:35%;max-height:90px;object-fit:contain}
.pair,.order-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pair select,.fill input{min-width:0;max-width:100%;background:white;color:var(--ink);border:1px solid #a4b5c8;border-radius:8px;padding:8px}
.pair select{width:min(56%,270px)}
.fill{display:flex;align-items:center;gap:9px}
.fill input{width:9rem;text-align:center}
.order-list,.review{list-style:none;padding:0;margin:0}
.order-actions{display:flex;gap:6px;flex:none}
.order-actions button{width:44px;height:44px;background:white;color:var(--ink);border:1px solid #a4b5c8;border-radius:8px}
.order-actions button:disabled{opacity:.42}
.hint{color:var(--muted);margin-bottom:8px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:19px}
.feedback{margin-top:18px;display:flex;align-items:center;gap:12px;padding:14px;border-radius:13px;background:#fff1e2;color:#623410}
.feedback.good{background:#e4f8ed;color:#115638}
.feedback img{display:block;width:62px;height:62px;object-fit:contain}
.voice{width:46px;height:46px;flex:none;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:1.3rem;font-weight:bold}
.result .summary{display:flex;align-items:center;gap:20px;margin-bottom:24px}
.score{display:grid;place-items:center;flex:none;width:100px;height:100px;border-radius:50%;background:var(--mint);font-size:1.65rem;font-weight:bold}
.review li{display:grid;gap:3px}
.review .status{font-weight:bold;color:#115638}
.review .miss .status{color:#743b12}
[hidden]{display:none!important}
@media(max-width:680px){.hero{grid-template-columns:1fr}.hero-visual{padding:10px 16px 16px}.shell{width:calc(100% - 24px)}.hero h1{margin-block:2px 10px}.hero-copy{padding:25px}.pair{align-items:stretch;flex-direction:column}.pair select{width:100%}}
@media(max-width:360px){.section-label{font-size:.75rem}.brand{font-size:17px}.result .summary{gap:10px}.score{width:76px;height:76px}}


.brand img{max-width:115px;width:auto;max-height:82px;border-radius:10px}
.feedback{min-height:125px;gap:16px}
.feedback img{width:104px;height:104px;object-fit:contain;object-position:center top;flex:none}
@media(max-width:480px){.feedback img{width:76px;height:88px}.feedback{gap:10px;min-height:105px}.brand img{max-height:65px}}
