﻿.eps-popup {
  position: fixed;
  right: 94px;
  bottom: 20px;
  width: 500px;
  background: #152746;
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(8, 18, 39, 0.34);
  color: #ffffff;
  padding: 52px 48px 34px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.eps-popup,
.eps-popup * {
  box-sizing: border-box;
}

.eps-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: eps-popup-intro 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eps-popup__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px !important;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.eps-popup__title {
  margin: 0 0 26px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(54px, 4vw, 78px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.eps-popup__text {
  margin: 0 0 40px !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.15vw, 20px);
  line-height: 1.26;
  font-weight: 400;
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

.eps-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eps-popup__btn {
  font-family: "Rubik", Sans-serif;
  font-size: 16px;
  font-weight: 500 !important;
  text-transform: none;
  text-align: center;
  font-style: normal;
  text-decoration: none;
  line-height: 1.25em;
  letter-spacing: -0.01em;
  fill: var( --e-global-color-677002f );
  color: var( --e-global-color-677002f );
  background-color: var( --e-global-color-primary );
  border-radius: 30px 30px 30px 30px;
  padding: 12px 24px 12px 24px;
}

.eps-popup__btn--primary {
  background: #0f2ea9;
  color: #ffffff !important;
}

.eps-popup__btn--secondary {
  background: #a0b9e4;
  color: #10224a !important;
}

.eps-popup .eps-popup__btn,
.eps-popup a.eps-popup__btn,
.eps-popup a.eps-popup__btn:visited,
.eps-popup a.eps-popup__btn:hover,
.eps-popup a.eps-popup__btn:focus {
  text-decoration: none !important;
  opacity: 1 !important;
}

.eps-popup .eps-popup__btn--primary,
.eps-popup a.eps-popup__btn--primary,
.eps-popup a.eps-popup__btn--primary:visited,
.eps-popup a.eps-popup__btn--primary:hover,
.eps-popup a.eps-popup__btn--primary:focus {
  color: #ffffff !important;
}

.eps-popup .eps-popup__btn--secondary,
.eps-popup a.eps-popup__btn--secondary,
.eps-popup a.eps-popup__btn--secondary:visited,
.eps-popup a.eps-popup__btn--secondary:hover,
.eps-popup a.eps-popup__btn--secondary:focus {
  color: #10224a !important;
}

.eps-popup button.eps-popup__close,
.eps-popup button.eps-popup__close:hover,
.eps-popup button.eps-popup__close:focus {
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@keyframes eps-popup-intro {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .eps-popup.is-visible {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .eps-popup {
    width: min(560px, calc(100vw - 24px));
    padding: 42px 38px 30px;
    border-radius: 24px;
  }

  .eps-popup__title {
    font-size: clamp(46px, 6vw, 66px);
  }

  .eps-popup__text {
    font-size: clamp(19px, 2.7vw, 26px);
  }

  .eps-popup__btn {
    font-size: clamp(22px, 3vw, 32px);
  }
}

@media (max-width: 680px) {
  .eps-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    border-radius: 18px;
    padding: 28px 22px 20px;
  }

  .eps-popup__close {
    top: 10px;
    right: 12px;
    font-size: 38px;
  }

  .eps-popup__title {
    margin-bottom: 18px;
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.95;
  }

  .eps-popup__text {
    margin-bottom: 24px;
    font-size: clamp(16px, 4.6vw, 21px);
  }

  .eps-popup__btn {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .eps-popup__actions {
    gap: 12px;
  }
}
