.promo-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

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

.promo-modal__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .76);
}

.promo-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  background: #171717;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: promo-in .3s ease;
}

.promo-modal__box:focus { outline: none; }

.promo-modal__stage {
  position: relative;
  height: 795px;
  max-height: calc(100vh - 132px);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  touch-action: pan-y;
}

.promo-modal__slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.promo-modal__slide.is-active {
  display: flex;
  animation: promo-fade .25s ease;
}

.promo-modal__slide picture,
.promo-modal__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-modal__slide img { object-fit: contain; }

.promo-modal__close,
.promo-modal__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.promo-modal__close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.promo-modal__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.promo-modal__controls > * + * { margin-left: 8px; }
.promo-modal__dots { display: flex; align-items: center; }
.promo-modal__dots > * + * { margin-left: 4px; }

.promo-modal__dots .promo-modal__dot {
  width: 24px;
  height: 32px;
  background: transparent;
}

.promo-modal__dot::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.promo-modal__dot.is-active::before { background: #fff; }
.promo-modal__controls .promo-modal__pause { font-size: 18px; }

.promo-modal button:focus,
.promo-modal__slide:focus { outline: 3px solid #ff9800; outline-offset: 3px; }

.promo-modal__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 592px) {
  .promo-modal__stage { height: calc((100vw - 32px) * 1.4188); }
}

@supports (height: 100dvh) {
  .promo-modal__stage { max-height: calc(100dvh - 132px); }
}

@keyframes promo-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes promo-fade {
  from { opacity: .4; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal__box,
  .promo-modal__slide.is-active { animation: none; }
}
