:root {
  --primary: #0020ff;
  --primary-hover: #0020ff;

  --secondary: #e900e7;
  --secondary-hover: #e900e7;
}

/* =========================
   EVENT POPUP
========================= */

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;
}

.event-popup__overlay {
  position: absolute;
  inset: 0;

  background: rgba(5, 12, 35, 0.78);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.event-popup__box {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 760px;

  padding: 55px 60px 50px;

  background: #ffffff;
  border-radius: 24px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);

  text-align: center;

  animation: eventPopupShow 0.35s ease;
}

/* CLOSE */

.event-popup__close {
  position: absolute;
  top: 18px;
  right: 22px;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  background: transparent;

  color: #777;

  font-size: 34px;
  line-height: 42px;

  cursor: pointer;

  transition: color 0.2s ease;
}

.event-popup__close:hover {
  color: var(--primary);
}

/* ICON */

.event-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  margin: 0 auto 24px;

  border-radius: 50%;

  background: var(--secondary);
  color: #ffffff;

  font-size: 42px;
  font-weight: 700;
}

/* LABEL */

.event-popup__label {
  display: inline-block;

  margin-bottom: 12px;

  color: var(--secondary);

  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* HEADING */

.event-popup h2 {
  margin: 0 0 24px;

  color: var(--primary);

  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 700;
}

/* TEXT */

.event-popup p {
  max-width: 620px;

  margin: 0 auto 16px;

  color: #3c4350;

  font-size: 17px;
  line-height: 1.65;
}

.event-popup p strong {
  color: #1b1f28;
  font-weight: 700;
}

/* BUTTON */

.event-popup__button {
  margin-top: 24px;

  padding: 14px 36px;

  border: 0;
  border-radius: 50px;

  background: var(--primary);
  color: #ffffff;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.event-popup__button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* HIDDEN */

.event-popup.is-hidden {
  display: none !important;
}

/* ANIMATION */

@keyframes eventPopupShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 768px) {
  .event-popup {
    padding: 20px;
  }

  .event-popup__box {
    padding: 45px 30px 38px;
    border-radius: 20px;
  }

  .event-popup__icon {
    width: 62px;
    height: 62px;

    margin-bottom: 20px;

    font-size: 36px;
  }

  .event-popup p {
    font-size: 16px;
    line-height: 1.55;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
  .event-popup {
    padding: 14px;
  }

  .event-popup__box {
    max-height: calc(100vh - 28px);

    padding: 42px 20px 28px;

    overflow-y: auto;

    border-radius: 18px;
  }

  .event-popup__close {
    top: 12px;
    right: 14px;
  }

  .event-popup__icon {
    width: 54px;
    height: 54px;

    margin-bottom: 18px;

    font-size: 30px;
  }

  .event-popup h2 {
    margin-bottom: 18px;
  }

  .event-popup p {
    font-size: 15px;
  }

  .event-popup__button {
    width: 100%;

    margin-top: 20px;
    padding: 14px 20px;
  }
}
