/* ===== ОБЩИЕ НАСТРОЙКИ ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #eef5ff, #f8fbff);
    min-height: 100vh;
    color: #000;
}

/* ===== ЛОГО ===== */

.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.logo-container img {
    width: 160px;
    height: auto;
}

/* ===== СТАРТОВАЯ СТРАНИЦА ===== */

.card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card h2 {
    margin-bottom: 20px;
}

/* Поля ввода */
.card input,
.card select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #cfe0ff;
    font-size: 15px;
    outline: none;
}

/* Убираем стрелки у number */
.card input[type=number]::-webkit-inner-spin-button,
.card input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.card input[type=number] {
    -moz-appearance: textfield;
}

/* Кнопка старта */
.card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #4f86ff;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.card button:hover {
    background: #3d73ea;
}

/* ===== ВИКТОРИНА ===== */

.quiz-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.quiz-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===== ВАРИАНТЫ ОТВЕТОВ ===== */

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.options button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #cfe0ff;
    background: #f5f9ff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.options button:hover {
    background: #edf3ff;
}

.options button.selected {
    border-color: #4f86ff;
    background: #e6efff;
}

/* ===== КНОПКА "ОТВЕТ" ===== */

#answerBtn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    background: #4f86ff;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

#answerBtn:disabled {
    background: #cfdcff;
    cursor: not-allowed;
}

/* ===== СТРАНИЦА FINISH ===== */

.container {
    width: 420px;
    margin: 120px auto 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.container h2 {
    margin: 0;
    font-size: 22px;
}

@media (max-width: 480px) {

    .card,
    .quiz-container,
    .container {
        padding: 20px;
        border-radius: 16px;
    }

    h2 {
        font-size: 18px;
    }

    .options button,
    #answerBtn,
    .card button {
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .logo-container img {
        width: 120px;
    }
}
