/* Payment popup — ported from art-french.grunkovskaya-academy.com.ua */
html.is-payment-popup-open,
html.is-payment-popup-open body {
  overflow: hidden;
}

/* Сброс наследуемых правил основного сайта (header{margin-top:-8rem}, section{padding-top:12rem}) */
.payment-popup .payment-popup__header {
  margin: 0;
}
.payment-popup .payment-popup__card {
  padding: 0;
}
.payment-popup .payment-popup__dialog * {
  transition: none;
}

.payment-popup {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #030303;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

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

.payment-popup__dialog {
  position: relative;
  flex: none;
  width: 390px;
  max-width: none;
  min-height: 840px;
  overflow: hidden;
  background: #030303;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transform: translateY(14px) scale(var(--payment-popup-scale, 1));
  transform-origin: top center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.payment-popup.is-open .payment-popup__dialog {
  transform: scale(var(--payment-popup-scale, 1));
}

.payment-popup__close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.payment-popup__close img {
  display: block;
  width: 22.2px;
  height: 22.2px;
  transform: rotate(45deg);
}

.payment-popup__header {
  position: absolute;
  top: 57px;
  left: 50%;
  width: 284px;
  text-align: center;
  transform: translateX(-50%);
}

.payment-popup__header h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 100;
  line-height: 35px;
  letter-spacing: 0.64px;
  text-transform: uppercase;
}

.payment-popup--contact .payment-popup__header {
  top: 29px;
  width: 340px;
}

.payment-popup--contact .payment-popup__header h2 {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: 0.52px;
}

.payment-popup--contact .payment-popup__subtitle {
  margin-top: 12px;
}

.payment-popup__subtitle {
  display: flex;
  flex-direction: column;
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 16px;
}

.payment-popup__subtitle strong {
  color: #fff;
  font-weight: 500;
}

.payment-popup__subtitle span {
  color: #aaa;
  font-weight: 300;
}

.payment-popup__card {
  position: absolute;
  left: 20px;
  width: calc(100% - 40px);
  border-radius: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.payment-popup__card--wayforpay,
.payment-popup__card--installments {
  height: 180px;
  border: 1px solid rgba(60, 157, 222, 0.2);
  background:
    radial-gradient(ellipse 155px 105px at 91% -6%, rgba(60, 157, 222, 0.31), transparent 72%),
    radial-gradient(ellipse 126px 90px at 29% 111%, rgba(60, 157, 222, 0.26), transparent 72%),
    linear-gradient(122deg, #080815 0%, #0c0c1e 55%, #09081b 100%);
}

.payment-popup__card--wayforpay {
  top: 164px;
}

.payment-popup__card--installments {
  top: 354px;
}

.payment-popup__card--other {
  top: 544px;
  height: 215px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(ellipse 154px 118px at 91% -4%, rgba(255, 255, 255, 0.19), transparent 76%),
    radial-gradient(ellipse 135px 96px at 32% 112%, rgba(113, 108, 96, 0.24), transparent 76%),
    linear-gradient(122deg, #0e0e0e 0%, #151515 58%, #101010 100%);
}

.payment-popup__method-icon,
.payment-popup__contact-icon {
  position: absolute;
  top: 19px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.payment-popup__method-icon {
  background: #fff;
}

.payment-popup__method-image {
  display: block;
  object-fit: cover;
}

.payment-popup__method-image--wayforpay {
  width: 43.1px;
  height: 43.1px;
}

.payment-popup__method-image--installments {
  width: 42px;
  height: 45px;
}

.payment-popup__method-copy {
  position: absolute;
  top: 22px;
  left: 92px;
  width: calc(100% - 104px);
}

.payment-popup__method-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
}

.payment-popup__method-copy p {
  margin: 6px 0 0;
  color: #aaa;
  font-size: 15px;
  font-weight: 300;
  line-height: 18px;
}

.payment-popup__card--installments .payment-popup__method-copy p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 17px;
}

.payment-popup__card--installments .payment-popup__method-copy p strong {
  color: #fff;
  font-weight: 400;
}

.payment-popup__card--installments .payment-popup__method-copy p span {
  color: #aaa;
}

.payment-popup__card--other .payment-popup__contact-icon {
  top: 28px;
  left: 21px;
  overflow: visible;
}

.payment-popup__contact-circle {
  position: absolute;
  inset: 0;
  display: block;
  width: 60px;
  height: 60px;
}

.payment-popup__contact-symbol {
  position: relative;
  z-index: 1;
  display: block;
  width: 29px;
  height: 29px;
}

.payment-popup__card--other .payment-popup__method-copy {
  top: 29px;
}

.payment-popup__card--other .payment-popup__method-copy p {
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
}

.payment-popup__action {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 7px;
  box-sizing: border-box;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  text-decoration: none;
}

.payment-popup__action--wayforpay {
  border: 1px solid #4f48e6;
  background: linear-gradient(180deg, #817bff 0%, #635bff 100%);
}

.payment-popup__action--telegram {
  gap: 10px;
  border: 1px solid #3c9dde;
  background: linear-gradient(180deg, #63c0ff 0%, #3c9dde 100%);
}

.payment-popup__action--telegram img {
  display: block;
  width: 21px;
  height: 21px;
}

.payment-popup__action--contact {
  left: 22px;
  right: 22px;
  bottom: 15px;
  height: 50px;
  border: 1px solid #3c3831;
  background: linear-gradient(180deg, #676560 0%, #4a463e 100%);
}

.payment-popup__security {
  position: absolute;
  top: 789px;
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 250px;
  transform: translateX(-50%);
}

.payment-popup__security img {
  flex: none;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.payment-popup__security p {
  width: 215px;
  margin: 0;
  color: #777;
  font-size: 12px;
  font-weight: 300;
  line-height: 14px;
}

.payment-popup__close:focus-visible,
.payment-popup__action:focus-visible {
  outline: 2px solid #8da8c5;
  outline-offset: 3px;
}

@media (max-width: 350px) {
  .payment-popup__method-copy {
    left: 88px;
    width: calc(100% - 98px);
  }

  .payment-popup__method-copy p,
  .payment-popup__card--other .payment-popup__method-copy p {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-popup,
  .payment-popup__dialog {
    transition: none;
  }
}
