/* Leaving-site interstitial */

.leaving-popup {
  background: rgba(0, 0, 0, 0.52);
}

.leaving-popup__body {
  display: flex;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.leaving-popup__content {
  position: relative;
  width: min(100%, 730px);
  max-width: 730px;
  min-height: 276px;
  padding: 80px 60px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.leaving-popup__content h2 {
  margin: 0 0 29px;
  color: var(--nsai-blue);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.leaving-popup__close {
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
}

.leaving-popup__close::before,
.leaving-popup__close::after {
  top: 14px;
  bottom: auto;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--nsai-blue);
}

.leaving-popup__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.leaving-popup__buttons .leaving-popup__button {
  display: inline-flex;
  min-height: 53px;
  margin: 0;
  padding: 12px 34px;
  border: 2px solid var(--nsai-blue);
  border-radius: 14px;
  background: var(--nsai-blue);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: Roboto, Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.leaving-popup__buttons .leaving-popup__button--return {
  width: 249px;
}

.leaving-popup__buttons .leaving-popup__button--continue {
  width: 194px;
  border-color: var(--nsai-green);
  background: var(--nsai-green);
}

.leaving-popup__button span {
  color: var(--nsai-coral);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 0;
}

.leaving-popup__button:hover,
.leaving-popup__button:focus {
  background: #fff;
  color: var(--nsai-blue);
}

.leaving-popup__button--continue:hover,
.leaving-popup__button--continue:focus {
  color: var(--nsai-green);
}

.leaving-popup__button:focus-visible,
.leaving-popup__close:focus-visible {
  outline: 3px solid var(--nsai-coral);
  outline-offset: 3px;
}

@media (max-width: 576px) {
  .leaving-popup__body {
    padding: 15px;
  }

  .leaving-popup__content {
    width: 100%;
    max-height: 384px;
    padding: 80px 20px;
    border-radius: 14px;
  }

  .leaving-popup__content h2 {
    max-width: 280px;
    margin: 0 auto 30px;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    line-height: 34px;
  }

  .leaving-popup__close {
    top: 29px;
    right: 28px;
  }

  .leaving-popup__buttons {
    flex-direction: column;
    gap: 30px;
  }

  .leaving-popup__buttons .leaving-popup__button {
    min-height: 53px;
    font-size: 18px;
  }

  .leaving-popup__buttons .leaving-popup__button--return {
    width: 250px;
  }

  .leaving-popup__buttons .leaving-popup__button--continue {
    width: 193px;
  }
}

.leaving-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.leaving-popup__button .leaving-popup__arrow {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  background: url("../img/right-arrow.svg") center / contain no-repeat;
}