/* Swiper wymaga stałej wysokości dla efektu fade */
.hero-slider__swiper {
  height: 780px;
}

@media (max-width: 1279px) {
  .hero-slider__swiper {
    height: clamp(480px, 140vw, 700px);
  }
}

/* Ukrycie przed załadowaniem — bez transition na starcie, żeby nie było animacji load */
.hero-slider {
  opacity: 0;
}

.hero-slider.is-ready {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Mobile/tablet: pełna szerokość, przyklejone do dołu, płaskie tło pod tekstem
   (czytelność ważniejsza niż przenikanie zdjęcia — gradient do przezroczystego
   gasił tytuł, który stoi na samej górze panelu). Desktop: wąski pasek z boku. */
.hero-slide__overlay {
  inset: auto 0 0 0;
  height: auto;
}

.hero-slide__overlay-bg {
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 90%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 90%, transparent 100%);
}

.hero-slide__content {
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.hero-slide__cta {
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .hero-slide__content {
    padding: 2rem;
  }
}

@media (min-width: 1280px) {
  .hero-slide__overlay {
    inset: 0 auto 0 0;
    height: 100%;
    width: 31.9%;
  }

  .hero-slide__overlay-bg {
    background-color: transparent;
    background-image: linear-gradient(to left, transparent, black);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
  }

  .hero-slide__content {
    justify-content: space-between;
    gap: 0;
    padding: 4rem 3rem 2.5rem;
  }

  .hero-slide__cta {
    width: auto;
  }

  .hero-slide__cta a {
    width: auto;
  }

  .hero-indicators {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 36.3%;
    max-width: 674px;
    padding: 0;
  }
}

/* Strzałka bullet — ::before niemożliwa w Tailwind bez @apply */
.hero-benefits-list li::before {
  content: "";
  display: block;
  width: 16px;
  min-width: 16px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("../img/hero-arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
