* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6fb;
    color: #1f2430;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.lead {
    color: #5a6270;
    margin-top: 0;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.card ul {
    padding-left: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.question-number {
    font-weight: 600;
    color: #5a6270;
}

.timer {
    font-variant-numeric: tabular-nums;
    background: #1f2430;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3d7e0;
    border-radius: 8px;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

button, .button {
    display: inline-block;
    margin-top: 16px;
    background: #3b5bfd;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

button:hover, .button:hover {
    background: #2f49cc;
}

.error {
    color: #c02942;
    font-weight: 600;
}

.results {
    text-align: center;
}

.result-line {
    font-size: 1.1rem;
}

.thanks {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 16px;
}

.mistake-item {
    padding: 12px 0;
    border-bottom: 1px solid #eceff5;
}

.mistake-item:last-child {
    border-bottom: none;
}

.mistake-item.correct .mistake-question {
    color: #1f2430;
}

.mistake-item.incorrect {
    background: #fff5f5;
    margin: 0 -24px;
    padding: 12px 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eceff5;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
