.jtoz-hero {
  --jtoz-hero-accent: #ffba12;
  --jtoz-hero-fade-duration: 1100ms;
  position: relative;
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  min-height: 520px;
  margin: 0 0 200px;
  overflow: hidden;
  color: #fff;
  background: #242424;
  isolation: isolate;
  opacity: 1;
}

.jtoz-hero__slides,
.jtoz-hero__slide,
.jtoz-hero__media-wrap,
.jtoz-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.jtoz-hero__slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--jtoz-hero-fade-duration) ease, visibility 0s linear var(--jtoz-hero-fade-duration);
}

.jtoz-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--jtoz-hero-fade-duration) ease;
}

.jtoz-hero__media {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.jtoz-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.48) 0%, rgba(20, 20, 20, 0.16) 50%, rgba(20, 20, 20, 0.08) 100%);
  pointer-events: none;
}

.jtoz-hero__content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 8vw, 130px);
  bottom: clamp(105px, 16vh, 155px);
  max-width: min(720px, 75vw);
}

.jtoz-hero__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.jtoz-hero__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 9px 0;
  color: #fff;
  border-bottom: 1px solid var(--jtoz-hero-accent);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.jtoz-hero__cta:hover,
.jtoz-hero__cta:focus-visible {
  color: var(--jtoz-hero-accent);
  border-color: #fff;
  text-decoration: none;
}

.jtoz-hero__navigation {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(620px, calc(100% - 160px));
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(50%);
}

.jtoz-hero__number {
  flex: 0 0 auto;
  min-width: 22px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-align: center;
}

.jtoz-hero__indicators {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
}

.jtoz-hero__indicator {
  position: relative;
  flex: 1 1 0;
  height: 18px;
  margin: 0;
  padding: 8px 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.jtoz-hero__indicator::before {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.48);
  content: "";
}

.jtoz-hero__indicator-progress {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--jtoz-hero-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.jtoz-hero__indicator.is-active .jtoz-hero__indicator-progress {
  animation: jtoz-hero-progress var(--jtoz-hero-display-duration, 7000ms) linear forwards;
}

.jtoz-hero.is-paused .jtoz-hero__indicator-progress {
  animation-play-state: paused;
}

.jtoz-hero--fallback .jtoz-hero__media--fallback {
  object-fit: contain;
  background: #fff;
}

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

@media (max-width: 767px) {
  .jtoz-hero {
    height: clamp(480px, 66vh, 660px);
    min-height: 480px;
  }

  .jtoz-hero__overlay {
    background: linear-gradient(0deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.08) 68%);
  }

  .jtoz-hero__content {
    right: 28px;
    bottom: 96px;
    left: 28px;
    max-width: none;
  }

  .jtoz-hero__title {
    font-size: clamp(30px, 10vw, 48px);
  }

  .jtoz-hero__cta {
    margin-top: 18px;
  }

  .jtoz-hero__navigation {
    bottom: 25px;
    gap: 8px;
    width: calc(100% - 40px);
  }

  .jtoz-hero__indicators {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtoz-hero__slide {
    transition-duration: 0.01ms;
  }

  .jtoz-hero__indicator.is-active .jtoz-hero__indicator-progress {
    animation: none;
    transform: scaleX(1);
  }

  .jtoz-hero__cta {
    transition: none;
  }
}
