body.popup-visible {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup.hidden {
  display: none;
}

.popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup__container {
  position: relative;
  width: 100%;
  max-width: 620px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  animation: popup-appear 0.3s ease-out;
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 1;
}

.popup__close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.popup__media {
  position: relative;
  height: 400px;
}

.popup__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
}

.popup__image,
.popup__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 85%;
  border-radius: 8px;
}

.popup__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: white;
  padding: 2rem 1rem;
}

.popup__title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #212529;
}

.popup__description {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #495057;
  margin-bottom: 2rem;
  max-width: 600px;
}

.popup__button {
  display: block;
  width: 100%;
  max-width: 345px;
  padding: 12px;
  background-color: rgb(0, 26, 175);
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

.popup__button:hover {
  background-color: rgb(0, 20, 137);
  transform: translateY(-1px);
}

@keyframes popup-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .popup__container {
    max-width: 90%;
  }

  .popup__media {
    height: 300px;
  }

  .popup__title {
    font-size: 1.25rem;
  }

  .popup__description {
    font-size: 0.9rem;
  }
}

@media (prefers-color-scheme: dark) {
  .popup__info {
    background-color: #343a40;
  }

  .popup__title {
    color: #f8f9fa;
  }

  .popup__description {
    color: #dee2e6;
  }
}