:root{--navy:#0b2a4a;--blue:#2f80d0;--light:#e8f3fc;--white:#fff;--line:#cfe0ef}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--light);color:var(--navy);line-height:1.5}
header{background:var(--navy);color:var(--white);text-align:center;padding:28px 16px}
header h1{margin:0;font-size:2rem;letter-spacing:.06em}
header h1 span{display:block;font-size:.95rem;color:#a9d4ff;letter-spacing:.12em}
header p{margin:8px 0 0}
main{max-width:860px;margin:0 auto;padding:16px}
.card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px}
h2{margin:0 0 14px;font-size:1.1rem}
h2 b{display:inline-block;width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;text-align:center;line-height:28px;font-size:.9rem;margin-right:6px}
.drop{display:block;border:2px dashed var(--blue);border-radius:12px;padding:24px;text-align:center;cursor:pointer;background:#f6fbff;position:relative}
.drop.over{background:var(--light)}
.drop input{position:absolute;opacity:0;width:1px;height:1px}
.drop:focus-within{outline:3px solid var(--blue)}
.drop img{max-width:100%;max-height:300px;border-radius:8px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.grid button,.chips button{font:inherit;color:var(--navy);background:var(--white);border:2px solid var(--line);border-radius:12px;cursor:pointer;font-weight:600}
.grid button{padding:14px 6px}
.grid button i{display:block;font-style:normal;font-size:1.8rem}
.chips button{padding:8px 16px;border-radius:999px}
button[aria-pressed="true"]{background:var(--navy)!important;border-color:var(--navy)!important;color:#fff!important}
label{font-weight:600}
textarea,input[type=password]{width:100%;font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;margin:4px 0 10px}
.primary{display:block;width:100%;text-align:center;text-decoration:none;background:var(--blue);color:#fff;border:0;border-radius:12px;padding:15px;font-size:1.05rem;font-weight:700;cursor:pointer;letter-spacing:.04em}
.primary:disabled{opacity:.6;cursor:wait}
.small{font-size:.85rem;color:#4a6580;text-align:center}
.msg{padding:12px 14px;border-radius:10px;background:var(--white);border:1px solid var(--blue)}
.msg.error{border-color:#c0392b;background:#fdecea;color:#8e2418}
.msg.warn{border-color:#d9a21b;background:#fff7e0;margin-bottom:0}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
figure{margin:0}
figure img{width:100%;border-radius:10px;display:block}
figcaption{text-align:center;font-weight:600;margin-top:4px}
@media(max-width:640px){.grid{grid-template-columns:repeat(2,1fr)}.compare{grid-template-columns:1fr}header h1{font-size:1.6rem}}
