.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms step-end;
  overflow-y: auto;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  will-change: opacity;
}

.popup-overlay::-webkit-scrollbar {
  display: none;
}

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

.popup-content {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  height: fit-content;
  position: relative;
  margin: 30px 0;
}

@media (max-width: 766px) {
  .popup-content {
    padding: 28px;
    border-radius: 10px;
    max-width: 90%;
  }
}

.popup-inner {
  position: relative;
  width: 100%;
}

.popup-block p {
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.popup-block p strong {
  font-weight: 900;
  font-size: 21px;
}

.popup-block p span {
  display: inline-block;
  color: #f00;
  font-size: 17px;
}

.popup-block ul {
  padding-left: 16px;
}

@media (max-width: 768px) {
  .popup-block p {
    font-size: 1.1em;
  }

  .popup-block p strong {
    font-size: 1.2em;
  }

  .popup-block p span {
    font-size: 0.8em;
    line-height: 1.5;
    padding-left: 10px;
    text-indent: -10px;
  }

  .popup-block ul {
    padding-left: 13px;
  }
}

.popup-close {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 300ms;
}

.popup-close:hover {
  opacity: 0.7;
}

.popup-close::before,
.popup-close::after {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  background-color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.popup-close::before {
  transform: translate3d(-50%, -50%, 0) rotate(45deg);
}

.popup-close::after {
  transform: translate3d(-50%, -50%, 0) rotate(-45deg);
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.popup-mail {
  border-bottom: 1px solid;
}