.hero-slider {
  position: relative;
  z-index: 1;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: clamp(-56px, calc(2px - 2.856vw), -27px);
  background: #070707;
  overflow: hidden;
}

.hero-swiper {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1996 / 788;
  background: #050505;
  cursor: grab;
  touch-action: pan-y;
}

.hero-swiper:focus-visible {
  outline: 2px solid #f0d412;
  outline-offset: -2px;
}

.hero-swiper.is-dragging {
  cursor: grabbing;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #080808;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--hero-drag-x, 0px));
  transition: opacity 850ms ease, transform 180ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-swiper.is-dragging .hero-slide.is-active {
  transition: none;
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-slide--lightning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 46%, rgba(255, 255, 255, 0.42), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  filter: brightness(3.2) contrast(1.2) saturate(1.08);
  opacity: 0;
  mix-blend-mode: screen;
  animation: banner-flash 7s ease-out infinite;
  animation-delay: 1.5s;
}

.lightning-strike {
  position: absolute;
  z-index: 4;
  top: 0;
  width: clamp(70px, 8vw, 160px);
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0 8%, rgba(255, 255, 255, 0.96) 8% 21%, transparent 21% 100%),
    linear-gradient(146deg, transparent 0 34%, rgba(255, 255, 255, 0.95) 34% 40%, rgba(214, 235, 255, 0.78) 40% 44%, transparent 44% 100%);
  clip-path: polygon(45% 0, 62% 0, 50% 29%, 72% 29%, 39% 73%, 51% 43%, 30% 43%);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 22px rgba(235, 21, 31, 0.45));
  mix-blend-mode: screen;
  transform-origin: top center;
  animation: lightning-strike 7s ease-out infinite;
  animation-delay: 1.5s;
}

.lightning-strike--one {
  left: 16%;
  transform: rotate(10deg) scaleY(0.88);
}

.lightning-strike--two {
  right: 18%;
  transform: rotate(-8deg) scaleY(0.72);
  animation-delay: 1.56s;
}

.hero-slider__controls {
  position: absolute;
  z-index: 5;
  right: clamp(10px, 1.5vw, 30px);
  bottom: clamp(10px, 1.4vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.55vw, 11px);
  color: #ffffff;
}

.hero-slider__button {
  width: clamp(24px, 1.7vw, 34px);
  height: clamp(24px, 1.7vw, 34px);
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.hero-slider__button:hover,
.hero-slider__button:focus-visible {
  color: #f0d412;
  background: rgba(0, 0, 0, 0.42);
  outline: none;
}

.hero-slider__button .fa-solid {
  font-size: clamp(9px, 0.75vw, 14px);
  line-height: 1;
}

.hero-slider__pagination {
  min-width: clamp(48px, 4.4vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.42vw, 8px);
}

.hero-slider__bullet {
  width: clamp(14px, 1.25vw, 25px);
  height: 2px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1;
  cursor: pointer;
}

.hero-slider__bullet.is-active {
  background: linear-gradient(90deg, #e6131d, #f0d412);
}

.hero-slider__bullet:focus-visible {
  outline: 2px solid #f0d412;
  outline-offset: 4px;
}

.hero-slider__progress {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e6131d, #f0d412);
  transform-origin: left center;
  animation: hero-progress 4500ms linear infinite;
}

@keyframes hero-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes banner-flash {
  0%,
  88%,
  100% {
    opacity: 0;
  }

  90% {
    opacity: 0.55;
  }

  91.5% {
    opacity: 0.16;
  }

  93.4% {
    opacity: 0.9;
  }

  95% {
    opacity: 0.22;
  }

  97% {
    opacity: 0;
  }
}

@keyframes lightning-strike {
  0%,
  88.8%,
  100% {
    opacity: 0;
  }

  90% {
    opacity: 0.9;
  }

  91.3% {
    opacity: 0.12;
  }

  93.2% {
    opacity: 1;
  }

  94.5% {
    opacity: 0.24;
  }

  96.2% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero-swiper {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide--lightning::before,
  .lightning-strike {
    animation: none;
  }

  .hero-slider__progress span {
    animation: none;
  }

  .hero-slider__button {
    transition: none;
  }
}
