body.modal-open {
  overflow: hidden;
}

.home-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 12000;
}

.home-popup.is-open {
  display: flex;
}

.home-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.home-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 520px, calc((100vh - 64px) * 1122 / 1402));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-popup__close:hover {
  background: rgba(17, 17, 17, 0.92);
  transform: scale(1.04);
}

.home-popup__carousel {
  width: 100%;
}

.home-popup__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.home-popup__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-popup__slide.is-active {
  opacity: 1;
}

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

.home-popup__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.home-popup__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-popup__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .home-popup {
    padding: 20px 14px;
  }

  .home-popup__dialog {
    width: min(90vw, 430px, calc((100vh - 88px) * 1122 / 1402));
  }

  .home-popup__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .home-popup__dots {
    margin-top: 14px;
  }

  .home-popup__viewport {
    border-radius: 20px;
  }
}
