:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #18202a;
    --muted: #697386;
    --line: #e5e7eb;
    --primary: #2457d6;
    --primary-soft: #edf3ff;
    --success: #18794e;
    --warning: #b25e09;
    --danger: #b42318;
    --radius: 18px;
    --shadow: 0 14px 35px rgba(15, 23, 42, .07);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; }
.container { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.18rem; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 10px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; padding: 9px 11px; border-radius: 10px; }
.nav a:hover { background: #f2f4f7; color: var(--text); }
main { padding: 38px 0 70px; }
.hero { display:flex; justify-content:space-between; gap:24px; align-items:end; margin-bottom:28px; }
.eyebrow { color: var(--primary); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
h1,h2,h3 { margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
h2 { font-size: 1.35rem; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.action-card { text-decoration:none; display:block; min-height:210px; transition:.18s ease; }
.action-card:hover { transform: translateY(-2px); border-color:#cdd8f5; }
.action-card .number { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--primary-soft); color:var(--primary); font-weight:900; margin-bottom:40px; }
.action-card h2 { font-size:1.6rem; }
.action-card p { color:var(--muted); margin-bottom:0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:34px 0 14px; }
.list { display:grid; gap:10px; }
.list-item { background:#fff; border:1px solid var(--line); border-radius:14px; padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.list-item a { text-decoration:none; font-weight:750; }
.tag { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:.76rem; font-weight:800; background:#f2f4f7; color:#475467; }
.tag.success { background:#ecfdf3; color:var(--success); }
.tag.warning { background:#fff7ed; color:var(--warning); }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:12px; padding:11px 16px; text-decoration:none; font-weight:800; cursor:pointer; font:inherit; background:var(--primary); color:#fff; }
.button.secondary { background:#fff; color:var(--text); border:1px solid var(--line); }
.button.ghost { background:var(--primary-soft); color:var(--primary); }
.button.full { width:100%; }
.form-card { max-width:760px; }
.field { margin-bottom:20px; }
label.label { display:block; font-size:.9rem; font-weight:800; margin-bottom:8px; }
.hint { color:var(--muted); font-size:.83rem; margin-top:6px; }
input[type=text], input[type=date], textarea, select, input[type=file] { width:100%; border:1px solid #d7dce3; background:#fff; border-radius:12px; padding:12px 13px; font:inherit; color:var(--text); }
textarea { min-height:96px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:3px solid rgba(36,87,214,.12); border-color:var(--primary); }
.segment { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.segment.three { grid-template-columns:repeat(3,1fr); }
.segment input { position:absolute; opacity:0; pointer-events:none; }
.segment label { border:1px solid var(--line); border-radius:12px; padding:12px 8px; text-align:center; font-weight:800; cursor:pointer; background:#fff; }
.segment input:checked + label { background:var(--primary-soft); color:var(--primary); border-color:#9fb7f0; }
.alert { border-radius:12px; padding:13px 15px; margin-bottom:18px; font-weight:650; }
.alert.success { background:#ecfdf3; color:var(--success); }
.alert.error { background:#fff1f2; color:var(--danger); }
.question-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; margin-bottom:14px; }
.question-number { font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; color:var(--primary); margin-bottom:12px; }
.option-row { display:grid; grid-template-columns:44px 1fr; gap:10px; align-items:center; margin-top:10px; }
.option-letter { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; font-weight:900; background:#f2f4f7; }
.option-choice { display:flex; align-items:center; gap:10px; border:1px solid var(--line); padding:12px 14px; border-radius:12px; margin-top:9px; cursor:pointer; }
.option-choice:hover { background:#fafbfc; }
.stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; }
.stat strong { display:block; font-size:1.7rem; letter-spacing:-.04em; margin-top:4px; }
.progress { height:10px; background:#edf0f4; border-radius:999px; overflow:hidden; margin-top:9px; }
.progress > span { display:block; height:100%; background:var(--primary); border-radius:999px; }
.code-box { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; word-break:break-all; background:#f8fafc; border:1px solid var(--line); border-radius:12px; padding:12px; }
.score-big { font-size:clamp(3rem,10vw,5rem); font-weight:900; letter-spacing:-.06em; margin:15px 0 0; }
.footer-note { color:var(--muted); font-size:.82rem; margin-top:24px; }
@media (max-width: 760px) {
    .grid-2,.grid-3 { grid-template-columns:1fr; }
    .hero { align-items:start; flex-direction:column; }
    .nav a:not(:first-child) { display:none; }
    main { padding-top:25px; }
    .card { padding:19px; }
    .segment { gap:5px; }
    .segment label { padding:11px 5px; }
}
