.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
}
.popup._open {
  opacity: 1;
  visibility: visible;
}
.popup__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.popup__content {
  border-radius: 20px;
  background-color: var(--white);
  /* padding: clamp(1.5rem, 3vw, 3rem); */
  padding: 48px;
  max-width: 642px;
  text-align: center;
  position: relative;
  width: 100%;
}
.popup__close {
  position: absolute;
  top: 0;
  right: 0;
  height: 54px;
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup__close svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 0.3s ease;
}
.popup__close svg path,
.popup__close svg use {
  stroke: var(--arrow-color);
  transition: stroke 0.3s ease;
}
@media (any-hover: hover) {
  .popup__close:hover svg {
    transform: rotate3d(0, 0, 1, 90deg);
  }
  .popup__close:hover svg path,
  .popup__close:hover svg use {
    stroke: var(--brand-blue);
  }
}

@media (max-width: 768px) {
  .popup__content {
    padding: 24px;
  }
}
