body.popup-open {
  overflow: hidden;
}

.popup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
}

.popup__content {
  position: relative;
  background: #fff;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.popup.active .popup__content {
  opacity: 1;
  transform: scale(1);
}

.popup__close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}
