* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
  }
  
  body {
    width: 100%;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1d2671, #c33764);
    color: #fff;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 35px 20px;
  }
  
  .card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
  }
  
  .exam-card {
    max-width: 900px;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    line-height: 1.2;
  }
  
  h2 {
    line-height: 1.3;
  }
  
  .subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: #e5e5e5;
    line-height: 1.5;
    word-break: break-word;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 15px;
  }
  
  input,
  textarea,
  button {
    font-family: Arial, sans-serif;
  }
  
  input {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 16px;
  }
  
  textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.4;
  }
  
  input:focus,
  textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.6);
  }
  
  .checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
  }
  
  .checkbox input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
  }
  
  button {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #ffd60a;
    color: #111;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }
  
  button:hover {
    transform: translateY(-2px);
    background: #ffea00;
  }
  
  .timer-box {
    margin: 25px 0;
    padding: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    font-size: 20px;
    font-weight: bold;
  }
  
  #timer {
    color: #ffd60a;
    font-size: 28px;
  }
  
  .level-title {
    margin: 35px 0 20px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 214, 10, 0.2);
    color: #ffd60a;
    text-align: center;
    font-size: 24px;
  }
  
  .question-block {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
  }
  
  .question-block h3 {
    margin-bottom: 14px;
    line-height: 1.45;
    font-size: 19px;
  }
  
  .answer-option {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 11px;
    margin: 10px 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    line-height: 1.4;
  }
  
  .answer-option input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    padding: 0;
  }
  
  .answer-option span {
    flex: 1;
  }
  
  .answer-option:hover {
    background: rgba(255, 255, 255, 0.18);
  }
  
  .result-box {
    margin-top: 25px;
    padding: 25px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
    line-height: 1.6;
  }
  
  .result-box h2 {
    margin-bottom: 15px;
    color: #ffd60a;
  }
  
  .small-text {
    margin-top: 15px;
    font-size: 14px;
    color: #ddd;
  }
  
  .hidden {
    display: none;
  }
  
  /* Планшеты */
  @media (max-width: 768px) {
    .container {
      padding: 22px 14px;
    }
  
    .card {
      padding: 24px;
      border-radius: 20px;
    }
  
    .exam-card {
      max-width: 100%;
    }
  
    h1 {
      font-size: 28px;
    }
  
    .timer-box {
      position: sticky;
      top: 10px;
      z-index: 10;
      margin: 20px 0;
      font-size: 18px;
    }
  
    #timer {
      font-size: 26px;
    }
  
    .question-block {
      padding: 18px;
    }
  
    .question-block h3 {
      font-size: 18px;
    }
  
    .level-title {
      font-size: 22px;
    }
  }
  
  /* Телефоны */
  @media (max-width: 480px) {
    body {
      background: linear-gradient(160deg, #1d2671, #8e2f73);
    }
  
    .container {
      padding: 12px;
    }
  
    .card {
      padding: 18px;
      border-radius: 18px;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    }
  
    h1 {
      font-size: 24px;
      margin-bottom: 8px;
    }
  
    .subtitle {
      font-size: 14px;
      margin-bottom: 18px;
    }
  
    label {
      font-size: 14px;
    }
  
    input {
      padding: 12px;
      font-size: 16px;
    }
  
    button {
      padding: 13px;
      font-size: 16px;
      border-radius: 13px;
    }
  
    .timer-box {
      top: 8px;
      padding: 14px 10px;
      border-radius: 14px;
      font-size: 16px;
    }
  
    #timer {
      display: inline-block;
      font-size: 24px;
      margin-left: 4px;
    }
  
    .level-title {
      margin: 26px 0 14px;
      padding: 12px;
      font-size: 19px;
    }
  
    .question-block {
      margin-bottom: 18px;
      padding: 15px;
      border-radius: 16px;
    }
  
    .question-block h3 {
      font-size: 16px;
      line-height: 1.45;
    }
  
    .answer-option {
      padding: 11px;
      gap: 10px;
      font-size: 15px;
    }
  
    textarea {
      min-height: 90px;
      font-size: 16px;
    }
  
    .result-box {
      padding: 20px 15px;
      font-size: 15px;
    }
  
    .result-box h2 {
      font-size: 22px;
    }
  }
  
  /* Очень маленькие экраны */
  @media (max-width: 360px) {
    .container {
      padding: 8px;
    }
  
    .card {
      padding: 15px;
      border-radius: 16px;
    }
  
    h1 {
      font-size: 22px;
    }
  
    .question-block h3 {
      font-size: 15px;
    }
  
    .answer-option {
      font-size: 14px;
    }
  
    #timer {
      font-size: 22px;
    }
  }
.question-image {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 14px auto 18px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
