    body {
    font-family: Arial, sans-serif;
    margin: 40px auto;
    max-width: 700px;
    background: #f4f6fb;
    color: #333;
  }

  a {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #4a76a8;
    font-size: 14px;
  }
  a:hover { text-decoration: underline; }

  h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    color: #222;
  }

  .question {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: block;
}

.question p {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: bold;
}

/* Общий стиль для всех вариантов */
/* Сетка для ответов */
.answers {
    display: grid;
    gap: 10px;
}

/* Динамическое деление на колонки по количеству вариантов */
.answers-1 {
    grid-template-columns: 1fr;
}

.answers-2, .answers-3, .answers-4 {
    grid-template-columns: repeat(2, 1fr);
}

.answers-5, .answers-6 {
    grid-template-columns: repeat(3, 1fr);
}

/* Адаптивность: на узких экранах (мобильных) делаем одну колонку */
@media (max-width: 500px) {
    .answers-2,
    .answers-3,
    .answers-4,
    .answers-5,
    .answers-6 {
        grid-template-columns: 1fr;
    }
}



  label {
    display: block;
    padding: 6px 0;
    cursor: pointer;
    font-size: 15px;
  }

  input[type="radio"] {
    margin-right: 8px;
  }

  button {
    display: block;
    margin: 25px auto 0;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: #4a76a8;
    color: white;
    cursor: pointer;
    transition: 0.3s;
  }
  button:hover {
    background: #3a5d89;
  }
 

  .result {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    width: 100%;
    border: 1px solid #4caf50;
    font-weight: bold;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 25px auto;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: #333;
}

/* Заголовок результата */
.result h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    color: #222;
}

/* Ошибки */
.result h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #444;
}

/* Список ошибок в одну строку */
.result .errors {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    font-size: 16px;
    flex-direction: column;
}

/* Каждый элемент ошибки */
.result .errors span {
    padding: 4px 8px;
    border-radius: 6px;
}

/* Цвета для правильного и неправильного ответа */
.result .errors .wrong {
    background: #ffd6d6;
    color: #d32f2f;
    font-weight: bold;
}

.result .errors .correct {
    background: #d6ffd6;
    color: #388e3c;
    font-weight: bold;
}

.error_box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
