.video-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.video-popup.is-active {
  display: block;
}

.video-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 27, 43, 0.58);
  backdrop-filter: blur(3px);
}

.video-popup__box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(59.5rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 2rem 2rem;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: 0.3s ease;
  overflow: hidden;
  box-shadow: 0 1.5rem 4rem rgba(0, 68, 105, 0.22);
}

.video-popup.is-active .video-popup__box {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.video-popup__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-popup__close:hover {
  opacity: 0.8;
}

.video-popup__head {
  position: relative;
  padding-right: 3rem;
  margin-bottom: 1.25rem;
}

.video-popup__head h2 {
  margin: 0 0 0.45rem;
  color: #119bd7;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.video-popup__head p {
  margin: 0;
  color: #31556b;
  font-size: 0.875rem;
}

.video-popup__decor {
  position: absolute;
  top: 1rem;
  right: 10rem;
  width: 10rem;
  height: 3rem;
  pointer-events: none;
}
.popup-decor-image {
  width: 19.11125rem;
  height: 5.63781rem;
}

.video-popup__iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #eaf7fc;
}

.video-popup__iframe iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile */
@media (max-width: 639px) {
  .video-popup__head {
    margin-bottom: 0.5rem;
  }
  .video-popup__box {
    width: calc(100vw - 1.25rem);
    padding: 1rem 0.75rem 0.75rem;
    border-radius: 1rem;
  }

  .video-popup__head h2 {
    font-size: 1.25rem;
  }

  .video-popup__decor {
    display: none;
  }

  .video-popup__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
