.offer-popup-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  width: min(100% - 32px, 590px);
  max-width: 590px;
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(106, 69, 227, .16);
  border-radius: 22px;
  background: #fff;
  color: var(--ink, #0b1530);
  box-shadow: 0 26px 90px rgba(11, 21, 48, .28);
  font-family: var(--font, system-ui, sans-serif);
}

.offer-popup-dialog:not([open]) {
  display: none;
}

.offer-popup-dialog[open] {
  animation: offer-popup-enter .22s ease-out both;
}

.offer-popup-dialog::backdrop {
  background: rgba(11, 21, 48, .64);
  backdrop-filter: blur(4px);
}

.offer-popup {
  position: relative;
  padding: clamp(25px, 5vw, 42px);
}

.offer-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e7eaf3;
  border-radius: 50%;
  background: #fff;
  color: #263248;
  font: 400 26px/1 var(--font, system-ui, sans-serif);
  cursor: pointer;
}

.offer-popup__close:hover {
  border-color: var(--purple, #6a45e3);
  color: var(--purple, #6a45e3);
}

.offer-popup__eyebrow {
  margin: 0 48px 8px 0;
  color: var(--purple, #6a45e3);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.offer-popup h2 {
  margin: 0 32px 10px 0;
  color: var(--ink, #0b1530);
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.offer-popup__description {
  margin: 0;
  color: #526078;
  font-size: .92rem;
  line-height: 1.65;
}

.offer-popup__discount {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 16px;
  padding: 14px 18px;
  border: 1px solid #e4dcff;
  border-radius: 15px;
  background: linear-gradient(115deg, #f4f0ff, #fff8ec);
}

.offer-popup__discount strong {
  color: var(--purple, #6a45e3);
  font-size: clamp(2.15rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1;
  white-space: nowrap;
}

.offer-popup__discount strong span {
  font-size: .46em;
  letter-spacing: .02em;
}

.offer-popup__discount > span {
  color: #526078;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
}

.offer-popup__services {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  color: #364258;
  font-size: .85rem;
  list-style: none;
}

.offer-popup__services li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.offer-popup__services li::before {
  position: absolute;
  left: 1px;
  color: var(--purple, #6a45e3);
  font-weight: 800;
  content: "✓";
}

.offer-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-popup__actions .btn {
  min-height: 46px;
}

@keyframes offer-popup-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

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

@media (max-width: 480px) {
  .offer-popup__actions {
    display: grid;
  }

  .offer-popup__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-popup-dialog[open] {
    animation: none;
  }
}
