.hero-slider {
  position: relative;
  height: 900px;
  overflow: hidden;
  background: var(--color-prussian);
}

.hero-slider__media {
  position: absolute;
  inset: 0;
}
.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 600ms var(--ease-in-out);
  will-change: transform;
}
.hero-slider__slide {
  flex: 0 0 100%;
  height: 100%;
}
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__overlay {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.hero-slider__overlay--left {
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 20, 0.85) 7.2%,
    rgba(10, 15, 38, 0.55) 56.05%,
    rgba(10, 15, 38, 0) 76.72%
  );
}
.hero-slider__overlay--bottom {
  bottom: 0;
  height: 260px;
  background: linear-gradient(180deg, rgba(8, 13, 31, 0) 0%, rgba(8, 13, 31, 0.8) 100%);
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 175px;
}
.hero-slider__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 956px;
}
.hero-slider__title {
  font-size: 70px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-white);
}
.hero-slider__lead {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.56;
  color: var(--white-72);
}
.hero-slider__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-slider__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 135px;
  padding: 28px max(24px, calc((100% - var(--content-width)) / 2)) 35px;
  border-top: 1px solid var(--white-08);
  background: rgba(17, 26, 51, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-slider__stats {
  display: flex;
  align-items: center;
  margin: 0;
}
.hero-slider__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 28px;
}
.hero-slider__stat:first-child {
  padding-left: 0;
}
.hero-slider__stat:last-child {
  padding-right: 0;
}
.hero-slider__stat + .hero-slider__stat {
  border-left: 1px solid var(--white-10);
}
.hero-slider__stat-value {
  font-size: 36px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.hero-slider__stat-label {
  margin: 0;
  font-size: 17px;
  line-height: normal;
  color: rgba(255, 255, 255, 0.58);
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero-slider__counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}
.hero-slider__total {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.4;
}

.hero-slider__progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-slider__segment {
  position: relative;
  width: 24px;
  height: 24px;
  margin-block: -2px; /* 24px touch target, same visual line (4px bar) */
  transition: width 800ms var(--ease-in-out);
}
.hero-slider__segment::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 800ms var(--ease-in-out);
}
.hero-slider__segment.is-active {
  width: 56px;
}
.hero-slider__segment.is-active::after {
  background: var(--color-blue);
}

.hero-slider__arrows {
  display: flex;
  gap: 10px;
}
.hero-slider__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--white-28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0);
  transition: background-color var(--dur-hover) var(--ease-out);
}
.hero-slider__arrow--next {
  background: var(--white-10);
}
.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1179px) {
  .hero-slider {
    height: auto;
    min-height: 760px;
    display: flex;
    flex-direction: column;
  }
  .hero-slider__content {
    padding-top: 150px;
    padding-bottom: 48px;
    flex: 1;
  }
  .hero-slider__title {
    font-size: 52px;
  }
  .hero-slider__bar {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .hero-slider__content {
    padding-top: 120px;
  }
  .hero-slider__title {
    font-size: 38px;
  }
  .hero-slider__lead {
    font-size: 17px;
  }
  .hero-slider__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    width: 100%;
  }
  .hero-slider__stat {
    padding: 0 16px;
  }
  .hero-slider__stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .hero-slider__stat-value {
    font-size: 28px;
  }
  .hero-slider__stat-label {
    font-size: 15px;
  }
  .hero-slider__controls {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
}
.hero-slider__content[hidden] {
  display: none;
}
.hero-slider__track {
  transition: none;
}

/* Vertical page scroll stays native; horizontal swipes are handled by hero-slider.js. */
.hero-slider {
  touch-action: pan-y;
}
