.showcase-slider {
  direction: rtl;
  position: relative;
  background: #060b15;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-slider.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slider__stage {
  position: relative;
  min-height: min(72vh, 700px);
  border-radius: 0 30px 0 0;
  overflow: hidden;
}

.showcase-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 100%;
  object-fit: cover;
  border-radius: 0 30px 0 0;
}

.showcase-slider__img--current {
  z-index: 0;
}

.showcase-slider__img--next {
  z-index: -1;
}

.showcase-slider__halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(85% 75% at 8% 28%, rgba(8, 16, 34, 0.66) 0%, rgba(8, 16, 34, 0.2) 52%, rgba(8, 16, 34, 0) 82%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.26) 38%, rgba(4, 7, 16, 0.34) 100%);
}

.showcase-slider__curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.showcase-slider__curtain-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, rgba(8, 16, 34, 0.94) 0%, rgba(8, 16, 34, 0.88) 100%);
  box-shadow: 0 0 28px rgba(25, 58, 126, 0.28);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-slider__curtain-half--left {
  left: 0;
  border-left: 1px solid rgba(93, 142, 255, 0.28);
  transform: translateX(-100%);
}

.showcase-slider__curtain-half--right {
  right: 0;
  border-right: 1px solid rgba(93, 142, 255, 0.28);
  transform: translateX(100%);
}

.showcase-slider.is-closing .showcase-slider__curtain-half--left,
.showcase-slider.is-opening .showcase-slider__curtain-half--left {
  transform: translateX(0);
}

.showcase-slider.is-closing .showcase-slider__curtain-half--right,
.showcase-slider.is-opening .showcase-slider__curtain-half--right {
  transform: translateX(0);
}

.showcase-slider.is-opening .showcase-slider__curtain-half--left {
  transform: translateX(-100%);
}

.showcase-slider.is-opening .showcase-slider__curtain-half--right {
  transform: translateX(100%);
}

.showcase-slider__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  max-width: 500px;
  margin-inline-end: auto;
  padding: 0 var(--header-pad-x, 1.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  color: #f7f9ff;
  pointer-events: none;
}

.showcase-slider__content a,
.showcase-slider__content button {
  pointer-events: auto;
}

.showcase-slider__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2.35vw, 2.25rem);
  line-height: 1.22;
  font-weight: 700;
  width: 100%;
  direction: rtl;
  text-align: right;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 0 rgba(15, 27, 56, 0.65),
    0 12px 26px rgba(3, 7, 17, 0.62);
}

.showcase-slider__sub {
  margin: 0 0 1.45rem;
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  line-height: 1.9;
  width: 100%;
  direction: rtl;
  text-align: right;
  color: rgba(242, 246, 255, 0.9);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(2, 6, 15, 0.62);
}

.showcase-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.35rem 1.2rem;
  font-size: 0.92rem;
  border-radius: 0 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 26px rgba(3, 8, 20, 0.52);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
  direction: rtl;
  text-align: right;
}

.showcase-slider__btn:hover,
.showcase-slider__btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
  outline: none;
}

.showcase-slider__dots {
  position: absolute;
  z-index: 3;
  right: var(--header-pad-x, 1.25rem);
  bottom: 1.2rem;
  display: flex;
  gap: 0.42rem;
}

.showcase-slider__dot {
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.showcase-slider__dot.is-active {
  background: #45a0ff;
}

@media (max-width: 900px) {
  .showcase-slider__stage {
    min-height: min(62vh, 560px);
  }

  .showcase-slider__content {
    max-width: 100%;
  }

  .showcase-slider__title {
    font-size: clamp(1.2rem, 5.1vw, 1.6rem);
  }

  .showcase-slider__sub {
    font-size: 0.84rem;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slider {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms !important;
  }

  .showcase-slider__curtain-half {
    transition-duration: 0.01ms !important;
  }
}
