
.promo-modal {
  --promo-accent: var(--tomato, #ff5438);
  --modal-bg: #171717;
  --modal-panel: #202020;
  --modal-text: #f7f7f4;
  --modal-muted: #b7b7b1;
  --modal-line: rgba(255, 255, 255, 0.12);
  color: var(--modal-text);
  font-family: "Inter", Arial, sans-serif;
}

.promo-modal,
.promo-modal * {
  box-sizing: border-box;
}

.promo-modal[hidden] {
  display: none;
}

.promo-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 42px);
}

body.is-modal-open {
  overflow: hidden;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.promo-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(500px, 1fr);
  width: min(1160px, 100%);
  max-height: min(780px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid var(--modal-line);
  border-radius: clamp(22px, 3vw, 36px);
  background: var(--modal-bg);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62);
}

.promo-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 70px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--modal-panel);
}

.promo-modal__eyebrow {
  margin: 0 0 22px;
  color: var(--promo-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.promo-modal__title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.promo-modal__title span {
  display: block;
  margin-top: 0.18em;
  color: var(--promo-accent);
}

.promo-modal__description {
  max-width: 43ch;
  margin: clamp(24px, 3vw, 36px) 0;
  color: var(--modal-muted);
  font-size: clamp(0.94rem, 1.35vw, 1.08rem);
  line-height: 1.55;
}

.promo-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: fit-content;
  min-height: 56px;
  padding: 0 18px 0 24px;
  border: 1px solid var(--promo-accent);
  border-radius: 999px;
  background: var(--promo-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.promo-modal__button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-modal__button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--promo-accent);
}

.promo-modal__button:focus-visible,
.promo-modal__close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--promo-accent), white 25%);
  outline-offset: 4px;
}

.promo-modal__visual {
  position: relative;
  align-self: center;
  aspect-ratio: 1;
  min-width: 0;
  background: #0d0d0d;
}

.promo-modal__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.28), transparent 22%);
}

.promo-modal__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.promo-modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.62);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(7px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.promo-modal__close::before,
.promo-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.promo-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.promo-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.promo-modal__close:hover {
  border-color: var(--promo-accent);
  background: var(--promo-accent);
  transform: rotate(5deg);
}

.promo-modal.is-closing .promo-modal__dialog {
  animation: modal-out 220ms ease both;
}

.promo-modal.is-closing .promo-modal__backdrop {
  animation: fade-out 220ms ease both;
}

@keyframes modal-out {
  to { opacity: 0; transform: translateY(12px) scale(0.985); }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@media (max-width: 820px) {
  .promo-modal {
    align-items: end;
    padding: 12px;
  }

  .promo-modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow-y: auto;
    border-radius: 26px;
  }

  .promo-modal__visual {
    grid-row: 1;
    width: 100%;
    min-height: 0;
  }

  .promo-modal__visual::after {
    background: linear-gradient(0deg, var(--modal-panel), transparent 28%);
  }

  .promo-modal__content {
    grid-row: 2;
    padding: 28px;
  }

  .promo-modal__eyebrow {
    margin-bottom: 14px;
  }

  .promo-modal__description {
    margin: 20px 0 24px;
  }
}

@media (max-width: 480px) {
  .promo-modal {
    padding: 8px;
  }

  .promo-modal__dialog {
    grid-template-rows: auto auto;
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .promo-modal__content {
    padding: 24px 20px 22px;
  }

  .promo-modal__title {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  }

  .promo-modal__description {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .promo-modal__button {
    width: 100%;
    min-height: 54px;
    padding-left: 20px;
  }

  .promo-modal__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (max-height: 620px) and (min-width: 821px) {
  .promo-modal__dialog {
    max-height: calc(100dvh - 24px);
  }

  .promo-modal__content {
    padding: 32px 40px;
  }

  .promo-modal__visual {
    aspect-ratio: auto;
    height: 100%;
  }

  .promo-modal__eyebrow {
    margin-bottom: 14px;
  }

  .promo-modal__description {
    margin: 18px 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal__dialog,
  .promo-modal.is-closing .promo-modal__dialog,
  .promo-modal.is-closing .promo-modal__backdrop {
    animation: none;
  }

  .promo-modal__button,
  .promo-modal__close {
    transition: none;
  }
}
