/* Стили оверлея */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Само модальное окно */
.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #94a3b8;
  left: 50%;
  top: 50%;
  transition: all 0.2s ease;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover::before,
.modal-close:hover::after {
  background: #64748b;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Контент модального окна */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
}

.modal-text {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Кнопки действий */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.modal-button.secondary {
  background: #f1f5f9;
  color: #64748b;
}

.modal-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 12px -2px rgba(99, 102, 241, 0.2);
}

.modal-button.secondary:hover {
  background: #e2e8f0;
}

/* Адаптивность */
@media (max-width: 600px) {
  .modal {
    width: 95%;
    padding: 24px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-button {
    width: 100%;
  }
}




































