.knowledge-test {
max-width: 760px;
margin: 0 auto;
padding: 32px 0 64px;
}

.knowledge-test h1 {
font-size: clamp(2rem, 5vw, 3rem);
}

.test-info {
color: var(--muted);
}

.knowledge-test fieldset {
min-width: 0;
margin: 24px 0;
padding: 20px;
border: 1px solid var(--border);
border-radius: 16px;
background: var(--surface);
}

.knowledge-test legend {
padding: 0 6px;
font-weight: bold;
}

.knowledge-test pre {
overflow-x: auto;
padding: 18px;
border-radius: 10px;
background: var(--text);
color: #d3eea5;
}

.answer-option {
display: flex;
align-items: center;
gap: 12px;
min-height: 44px;
margin-top: 8px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
overflow-wrap: anywhere;
cursor: pointer;
}

.answer-option:has(input:checked) {
background: var(--light-green);
}

.answer-option input {
flex-shrink: 0;
}

#test-error {
color: #9b2929;
font-weight: bold;
}

#test-error:empty {
display: none;
}

#test-result {
margin-top: 24px;
padding: 20px;
border-radius: 12px;
background: var(--light-green);
}

@media (max-width: 480px) {
.knowledge-test fieldset {
padding: 14px;
}

.knowledge-test .button {
width: 100%;
}
}
