:root {
    --bg: #f3f5f7;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #111827;
    --accent-2: #2563eb;
    --good: #166534;
    --good-bg: #dcfce7;
    --bad: #991b1b;
    --bad-bg: #fee2e2;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
}
p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}
.main {
    padding: 24px;
}
.field {
    margin: 18px 0;
}
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 16px;
}
button {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}
.btn {
    background: var(--accent);
    color: white;
}
.btn:hover { opacity: 0.92; }
.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--line);
}
.question {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    margin-top: 16px;
}
.meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.qtext {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 14px;
}
.options {
    display: grid;
    gap: 10px;
}
.option {
    width: 100%;
    text-align: left;
    background: white;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 16px;
}
.option.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.stat {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.stat .k {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}
.stat .v {
    font-size: 24px;
    font-weight: 700;
}
.badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}
.good { background: var(--good-bg); color: var(--good); }
.bad { background: var(--bad-bg); color: var(--bad); }
.result-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    margin-top: 12px;
}
.topic-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.topic-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--muted);
    font-size: 14px;
}
.topic-list li:last-child { border-bottom: 0; }
.hidden { display: none; }
@media (max-width: 880px) {
    .grid { grid-template-columns: 1fr; }
    .wrap { padding: 14px; }
    h1 { font-size: 28px; }
}