/* Общие стили */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #51260b; /* базовый коричневатый цвет текста */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 850px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    color: #ff6d00;
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Огляд тесту */
.overview {
    background-color: #fff7eb;
    border-left: 5px solid #ff6d00;
    padding: 20px;
    margin-bottom: 32px;
    border-radius: 6px;
}
.overview-title {
    display: flex;
    align-items: center;
    margin: 0 0 6px 0;
}
.overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff6d00;
    color: #ffffff;
    font-size: 14px;
    margin-right: 8px;
    font-weight: 700;
}
.overview-subtitle {
    font-style: italic;
    font-size: 0.95em;
    margin-top: 4px;
    margin-bottom: 12px;
    color: #6b4c3b;
}
.overview p,
.overview li {
    color: #51260b; /* выравниваем цвет как у ответов */
}
.overview ul { padding-left: 20px; }

/* Инструкция */
.instruction {
    background-color: #fff3e0;
    border-left: 5px solid #ff6d00;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 6px;
    font-size: 1.05em;
    color: #51260b;
}
.instruction p { margin: 0 0 10px 0; }
.instruction p:last-child { margin-bottom: 0; }
.instruction strong { color: #e65100; }
.instruction .instruction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff6d00;
    color: #ffffff;
    font-size: 14px;
    margin-right: 8px;
    font-weight: 700;
}
.instruction-subtitle {
    font-style: italic;
    font-size: 0.95em;
    margin-top: 4px;
    margin-bottom: 14px; /* увеличенный отступ */
    color: #6b4c3b;
}

/* Блок вопросов */
.question-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}
.question-block:last-of-type { border-bottom: none; }
.question-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #51260b;
}

/* Стили для радиокнопок и меток */
label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
label:hover {
    background-color: #fffaf0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ff6d00;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    position: relative;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
input[type="radio"]:checked { border-color: #e65100; background-color: #e65100; }
input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Кнопка */
button {
    display: block;
    width: 200px;
    padding: 14px 25px;
    background-color: #ff6d00;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.15em;
    margin: 40px auto 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
button:hover { background-color: #e65100; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
button:active { transform: translateY(0); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); }

/* Блок результатов */
#result {
    margin-top: 40px;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    display: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-color: #e8f5e9;
    border: none;
    color: #51260b;
}
#result strong { font-weight: 700; color: #388E3C; }

/* Адаптивность */
@media (max-width: 768px) {
    .container { margin: 20px; padding: 25px; }
    h2 { font-size: 1.8em; }
    .instruction { padding: 15px; }
    .overview { padding: 16px; }
    .question-number { font-size: 1.2em; }
    label { padding: 8px 12px; }
    input[type="radio"] { width: 18px; height: 18px; margin-right: 10px; }
    button { width: 180px; font-size: 1.05em; }
    #result { font-size: 1.1em; padding: 20px; }
}
@media (max-width: 480px) {
    .container { margin: 15px; padding: 15px 20px; }
    h2 { font-size: 1.5em; }
    .question-number { font-size: 1.1em; }
    label { font-size: 0.95em; }
    button { width: 100%; max-width: 160px; }
}
