.modal {
  display: none; /* по умолчанию скрыто */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal.show {
  display: flex; /* когда добавлен класс show */
}

/* Содержимое модалки */
.modal-content {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s ease;
}

/* Анимация появления */
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #000;
}

/* Адаптив */
@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }
  .modal-close {
    font-size: 1.25rem;
  }
}
