:root {
  --popup-blue: #0b4566;
  --popup-green: #83c900;
  --popup-shadow: 0 24px 70px rgba(18, 59, 89, .24);
}
.site-popup[hidden] { display: none; }
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 22, 33, .58);
  backdrop-filter: blur(8px);
}
.site-popup__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86svh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--popup-shadow);
  border: 1px solid rgba(18, 59, 89, .12);
}
.site-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: rgba(18, 59, 89, .92);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.site-popup__media {
  background: #f2f7fa;
  overflow: hidden;
}
.site-popup__media img,
.site-popup__media video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.site-popup__media video { background: #071722; }
.site-popup__content {
  padding: clamp(22px, 4vw, 36px);
  color: #233746;
}
.site-popup__kicker {
  margin: 0 0 8px;
  color: var(--popup-green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-popup__content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: .98;
  color: #123b59;
  letter-spacing: -.04em;
}
.site-popup__content p:not(.site-popup__kicker) {
  margin: 0;
  color: #607383;
  font-size: 1.05rem;
  line-height: 1.55;
}
.site-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.site-popup__actions .btn {
  min-height: 44px;
  border-radius: 10px;
}
.site-popup__actions .btn--ghost {
  color: #123b59;
  background: #f2f7fa;
  border: 1px solid rgba(18, 59, 89, .14);
}
@media (max-width: 680px) {
  .site-popup { padding: 14px; }
  .site-popup__panel { border-radius: 18px; max-height: 82svh; }
  .site-popup__media img,
  .site-popup__media video { max-height: 300px; }
  .site-popup__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-popup__close { transition: none; }
}
