.site-popup[hidden] {
  display: none !important;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 12, 0.78);
  backdrop-filter: blur(6px);
}

.site-popup__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: min(860px, 100%);
  max-height: min(90vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(226, 198, 155, 0.35);
  border-radius: 22px;
  background: #1b1a18;
  color: #f7f2e8;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 260ms ease, transform 260ms ease;
}

.site-popup.is-open .site-popup__panel {
  opacity: 1;
  transform: none;
}

.site-popup__media {
  min-height: 320px;
  background: #26241f;
}

.site-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.site-popup__content .kicker {
  color: #e3c89e;
  letter-spacing: 0.24em;
}

.site-popup__content h2 {
  margin: 0.7rem 0 1rem;
  color: #f7f2e8;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.site-popup__content p {
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.75;
  white-space: pre-line;
}

.site-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.site-popup__close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(247, 242, 232, 0.32);
  border-radius: 50%;
  background: rgba(18, 19, 18, 0.7);
  color: #f7f2e8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.site-popup__close:hover {
  background: rgba(18, 19, 18, 0.95);
  transform: rotate(90deg);
}

body.site-popup-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .site-popup__panel {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .site-popup__media {
    min-height: 180px;
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-popup__panel {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-popup__close:hover {
    transform: none;
  }
}
