.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9998;
}
.popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(947px, 96vw);
  background: #fff;
  overflow: hidden;
  z-index: 9999;
  animation: popIn 0.35s ease forwards;
}
.popup-inner {
  display: flex;
  height: 463px;
}

.popup-left {
  flex: 0 0 411px;
  overflow: hidden;
}
.popup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-modal .popup-right {
  flex: 1;
  padding: 48px 44px 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.popup-modal .popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Title */
.popup-modal .main-title {
  color: #4b2e83;
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(36px, 7.5vw, 72px);
}

/* Paragraphs */
.popup-modal .popup-right p:first-of-type {
  color: #222;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
  margin-top: 0;
  margin-bottom: 16px;
}
.popup-modal .popup-right p:first-of-type strong {
  font-weight: 700;
}
.popup-modal .popup-right p:last-of-type {
  color: #222;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 28px;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.popup-btn-secondary {
  align-content: center;
  display: inline-block;
  padding: 14px 24px;
  background: transparent;
  color: #4b2e83;
  border: 1px solid #472769;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.popup-btn-secondary:hover {
  background: #4b2e83;
  color: #fff;
}

@media (max-width: 600px) {
  .popup-inner {
    flex-direction: column;
    height: auto;
  }
  .popup-left {
    flex: 0 0 180px;
  }
  .popup-modal .popup-right {
    padding: 28px 24px 28px !important;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
