/* ===========================
   Спливаюче вікно «−5% за реєстрацію»
   Десктоп — картка в правому нижньому куті; телефон — шторка знизу з затемненням
   =========================== */
.promo-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1060;
  width: 360px;
  max-width: calc(100vw - 32px);
  border-radius: 20px;
  overflow: hidden;
  color: #1f2133;
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 20, 80, .28);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.promo-popup.is-visible { opacity: 1; transform: none; }

.promo-popup-top {
  position: relative;
  padding: 18px 20px 16px;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  overflow: hidden;
}
.promo-popup-top::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.promo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.promo-popup-close:hover { background: rgba(255, 255, 255, .32); }
.promo-popup-big { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-right: 24px; }
.promo-popup-ticket {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #fff;
  color: #764ba2;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transform: rotate(-6deg);
  animation: promo-wobble 4s ease-in-out infinite;
}
.promo-popup-ticket b { font-size: 28px; display: block; }
.promo-popup-ticket small { font-size: 9px; letter-spacing: .1em; }
@keyframes promo-wobble {
  0%, 85%, 100% { transform: rotate(-6deg); }
  90% { transform: rotate(4deg); }
  95% { transform: rotate(-10deg); }
}
.promo-popup-title { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 900; color: #fff; }
.promo-popup-lead { margin: 4px 0 0; font-size: 13px; opacity: .9; color: #fff; }

.promo-popup-body { padding: 14px 20px 18px; display: grid; gap: 10px; }
.promo-popup-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: #4b4f66; }
.promo-popup-perks li { display: flex; gap: 8px; align-items: center; }
.promo-popup-perks li::before {
  content: '✓';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d7f5ea;
  color: #0f6b52;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.promo-popup-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(120deg, #667eea, #764ba2);
  box-shadow: 0 8px 18px rgba(118, 75, 162, .3);
}
.promo-popup-cta:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.promo-popup-sub { text-align: center; font-size: 12.5px; color: #8a8ea6; }
.promo-popup-sub a { color: #667eea; font-weight: 700; text-decoration: none; }
.promo-popup-fine { font-size: 11px; color: #a0a4b8; text-align: center; }
.promo-popup-close:focus-visible,
.promo-popup-cta:focus-visible,
.promo-popup-sub a:focus-visible { outline: 3px solid #ffe066; outline-offset: 2px; }

.promo-popup-dim { position: fixed; inset: 0; z-index: 1059; background: rgba(20, 16, 40, .35); }

/* телефон: шторка знизу */
@media (max-width: 575px) {
  .promo-popup {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .promo-popup-top { padding: 14px 18px 16px; }
  .promo-popup-ticket { width: 68px; height: 68px; }
  .promo-popup-ticket b { font-size: 24px; }
  .promo-popup-title { font-size: 17px; }
  .promo-popup-perk-extra, .promo-popup-fine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup { transition: opacity .2s ease; transform: none; }
  .promo-popup-ticket { animation: none; }
}
