.popup-is-open {
  overflow: hidden;
}

.site-popup {
  position: fixed;
  z-index: 1080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 24, 52, .62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.site-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-popup-dialog {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 24, 52, .3);
  transform: translateY(16px) scale(.97);
  transition: transform .3s ease;
}

.site-popup.is-visible .site-popup-dialog {
  transform: translateY(0) scale(1);
}

.site-popup-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #49336f;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 14px rgba(35, 24, 52, .13);
  cursor: pointer;
  font-size: 1.1rem;
}

.site-popup-media {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  background: #f6f2fb;
}

.site-popup-content {
  padding: 22px 24px 24px;
}

.site-popup-label {
  display: block;
  margin-bottom: 7px;
  color: #7963a7;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-popup-content h2 {
  margin: 0 0 8px;
  color: #49336f;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.site-popup-content p {
  margin: 0;
  color: #756d85;
  font-size: .88rem;
  line-height: 1.65;
}

.site-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: #7963a7;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.site-popup-link:hover {
  color: #fff;
  background: #49336f;
}

@media (max-width: 480px) {
  .site-popup {
    align-items: end;
    padding: 12px;
  }

  .site-popup-dialog {
    border-radius: 18px;
  }

  .site-popup-media {
    max-height: 245px;
  }

  .site-popup-content {
    padding: 18px 19px 20px;
  }
}
