.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.8s ease 0s;
}

.popup.open {
  opacity: 1;
  visibility: visible;
}

.popup.open .popup__content {
  transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
  opacity: 1;
}

.popup__area {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.popup__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  transition: all 0.8s ease 0s;
}

.popup__content {
  background-color: #fff;
  color: #000;
  max-width: 670px;
  width: 100%;
  padding: 35px 38px 100px;
  position: relative;
  transition: all 0.8s ease 0s;
  opacity: 0;
  transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}

.popup__content_image {
  padding: 0;
}

.popup__image img {
  max-width: 100%;
  vertical-align: top;
}

.popup__close {
  width: 27px;
  height: 27px;
}

.popup__title {
  color: #000;
  text-align: center;
  font-family: Gilroy;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.96px;
  padding: 37px 0 9px;
}

.popup__text {
  color: #000;
  text-align: center;
  font-family: "Open Sans";
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.56px;
  padding-bottom: 30px;
}

.popup__btns {
  display: flex;
  justify-content: center;
}

.popup__btns .popup__btn:not(:last-child) {
  margin-right: 30px;
}

.popup__btn {
  padding: 21px;
  display: flex;
  align-items: center;
  color: #FFF;
  text-align: center;
  font-family: Gilroy;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.6px;
  border-radius: 20px;
  background: var(--btn-background);
  text-decoration: none;
}

.popup__btn:hover {
  color: #fff;
  text-decoration: none;
}

.popup__btn img {
  width: 41px;
  object-fit: contain;
  margin-right: 10px;
}

@media (max-width: 560px) {
  .popup__title {
    font-size: 24px;
    padding: 13px 0 9px;
  }

  .popup__text {
    font-size: 14px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 30px;
  }

  .popup__btns {
    flex-direction: column;
    align-items: center;
  }

  .popup__btn {
    width: 175px;
  }

  .popup__btns .popup__btn:not(:last-child) {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .popup__btn img {
    width: 28px;
  }

  .popup__btn {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .popup__content {
    padding: 15px 15px 15px;
  }
}