.switch-quiz { margin: 0 auto; padding: 1rem 1.25rem 2rem; min-height: 60vh; }
.quiz-app .hidden { display: none; }
.quiz-btn { padding: .75rem 1rem; border: 0; border-radius: .75rem; cursor: pointer; font-weight: 600; }
.quiz-btn:not(:disabled) { background: #2271b1; color: #fff; }
.quiz-btn:disabled { background: #9fb7cc; color: #fff; cursor: not-allowed; }
.quiz-label { display: block; font-weight: 600; margin: .25rem 0 .5rem; }
.quiz-msg { min-height: 1.25rem; }

/* Объединенный стиль для quiz-status */
.quiz-status { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: .75rem; 
  font-weight: 600; 
  gap: 1rem; 
  align-items: center;
  padding: .75rem 1rem;
  background: #f8f9fa;
  border-radius: .5rem;
  border: 1px solid #e9ecef;
}
.quiz-status span { 
  display: flex; 
  align-items: center; 
  white-space: nowrap; 
  font-size: 0.9rem;
}
.quiz-status .fa-solid { 
  color: var(--switch-accent, #2271b1); 
  margin-right: 0.5rem;
  font-size: 1rem;
}
#q-timer { 
  color: #dc2626; 
  font-weight: bold; 
}

.q-text { 
  font-size: 1.2rem; 
  margin: .5rem 0 1rem; 
  line-height: 1.4;
  font-weight: 500;
}
.q-choices { 
  display: grid; 
  gap: .5rem; 
}
.q-choice { 
  padding: .6rem .75rem; 
  border: 1px solid #c7d2da; 
  border-radius: .5rem; 
  cursor: pointer; 
  transition: all 0.2s ease;
  background: #fff;
}
.q-choice:hover {
  border-color: #2271b1;
  background: #f8fafc;
}
.q-choice.selected { 
  outline: 2px solid #2271b1; 
  background: #f0f7ff;
  border-color: #2271b1;
}

/* Стили для картинки */
.question-image {
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  max-height: 400px;
  width: 100%;
}

/* Адаптивность для статуса */
@media (max-width: 768px) {
  .quiz-status { 
    flex-direction: column; 
    gap: 0.5rem; 
    align-items: flex-start; 
  }
  .quiz-status span {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .quiz-status {
    padding: .5rem .75rem;
  }
  .quiz-status span {
    font-size: 0.8rem;
  }
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #495057;
}

.quiz-btn.btn-secondary {
  background: #6c757d;
  color: #fff;
}
.quiz-btn.btn-secondary:hover:not(:disabled) {
  background: #5a6268;
}

.badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: .375rem;
}

/* Дополнительные улучшения */
.alert {
  border-radius: .5rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-control {
  border-radius: .5rem;
  border: 1px solid #ced4da;
  padding: .75rem 1rem;
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 0.2rem rgba(34, 113, 177, 0.25);
}

.question-image-block {
  position: relative;
  overflow: hidden;
}

.question-choices-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.q-actions {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

#char-counter {
  font-size: 0.85rem;
  margin-left: 0 !important; /* было auto */
}
