/* Karuzela banerów na stronie głównej (pages/pl/index.html).
   Banery mają proporcje 3840x1200 (= wysokość #hero.hero-home: 31.25vw). */

#hero .hero-carousel {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Zanim slick się zainicjuje — pokazuj tylko pierwszy slajd. */
#hero .hero-carousel:not(.slick-initialized) .hero-slide + .hero-slide {
  display: none;
}

#hero .hero-carousel .slick-list,
#hero .hero-carousel .slick-track {
  height: 100%;
}

#hero .hero-slide {
  position: relative;
  display: block;
  height: 100%;
  outline: none;
}

#hero .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Przycisk na slajdzie — skaluje się razem z banerem. */
#hero .hero-slide-btn {
  position: absolute;
  left: var(--btn-x, 46%);
  top: var(--btn-y, 84%);
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  overflow: hidden;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: clamp(9px, 1.15vw, 22px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: #cc0b28;
  box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.35s ease-in-out, transform 0.35s ease-in-out;
}

/* Wypełnienie czarnym jak .btn-pill-fill w reszcie witryny. */
#hero .hero-slide-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  transform: translateX(-101%);
  transition: transform 0.35s ease-in-out;
}

#hero .hero-slide-btn i {
  transition: transform 0.35s ease-in-out;
}

#hero .hero-slide:hover .hero-slide-btn,
#hero .hero-slide:focus-visible .hero-slide-btn {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.4);
}

#hero .hero-slide:hover .hero-slide-btn::before,
#hero .hero-slide:focus-visible .hero-slide-btn::before {
  transform: translateX(0);
}

#hero .hero-slide:hover .hero-slide-btn i,
#hero .hero-slide:focus-visible .hero-slide-btn i {
  transform: translateX(0.3em);
}

#hero .hero-slide:focus-visible .hero-slide-btn {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Strzałki (nadpisują globalny styl .slick-arrow ze styles.css). */
#hero .hero-carousel .slick-arrow.slick-prev,
#hero .hero-carousel .slick-arrow.slick-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: clamp(32px, 2.6vw, 50px);
  height: clamp(32px, 2.6vw, 50px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.35s ease-in-out, background 0.35s ease-in-out;
  cursor: pointer;
}

#hero .hero-carousel .slick-arrow.slick-prev { left: 1.2%; }
#hero .hero-carousel .slick-arrow.slick-next { right: 1.2%; }

#hero .hero-carousel:hover .slick-arrow,
#hero .hero-carousel .slick-arrow:focus-visible {
  opacity: 1;
}

#hero .hero-carousel .slick-arrow:hover {
  background: #cc0b28;
}

#hero .hero-carousel .slick-arrow::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: clamp(14px, 1.1vw, 20px);
  color: #fff;
}

#hero .hero-carousel .slick-prev::before { content: "\f053"; }
#hero .hero-carousel .slick-next::before { content: "\f054"; }

/* Kropki — na dole banera (nadpisują globalne ul.slick-dots). */
#hero .hero-carousel ul.slick-dots {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
}

#hero .hero-carousel ul.slick-dots > li button {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

#hero .hero-carousel ul.slick-dots > li.slick-active button {
  width: 12px;
  height: 12px;
  background-color: #cc0b28;
}

@media screen and (max-width: 767px) {
  #hero .hero-carousel .slick-arrow.slick-prev,
  #hero .hero-carousel .slick-arrow.slick-next {
    display: none !important;
  }

  /* Na wąskim ekranie przycisk jest relatywnie większy — kropki w prawy dolny róg. */
  #hero .hero-carousel ul.slick-dots {
    left: auto;
    right: 3%;
    bottom: 4%;
    transform: none;
  }

  #hero .hero-carousel ul.slick-dots > li {
    margin: 0 4px;
  }

  #hero .hero-carousel ul.slick-dots > li button {
    width: 6px;
    height: 6px;
  }

  #hero .hero-carousel ul.slick-dots > li.slick-active button {
    width: 8px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-slide-btn,
  #hero .hero-slide-btn::before,
  #hero .hero-slide-btn i {
    transition: none;
  }
}
