.hero-slider-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  padding-left: 70px;
  padding-right: 70px;
}


.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1780 / 740;
  overflow: hidden;
}

.hero-slider .swiper-wrapper {
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #211c34;
}

.hero-slide::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.0625rem;
  bottom: 3.5625rem;
  background: #fff;
  opacity: 0.2;
}

.hero-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(0);
  transform: scale(1);
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Swiper automatycznie dodaje klasę .swiper-slide-active do aktywnego slajdu */
.swiper-slide-active .hero-slide-background {
  filter: blur(0);
  transform: scale(1);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 50px;
  max-width: 78.125rem;
  margin: 0 auto;
  color: #ffffff;
}

.hero-slide-title {
  display: block;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.25rem, 1.7935rem + 1.7391vw, 3.75rem);
  font-weight: 400;
  line-height: clamp(2.7rem, 2.1522rem + 2.087vw, 4.5rem);
  margin: 0;
  max-width: 60%;
  color: #ffffff;
}

.hero-slide-description {
  color: rgb(172, 169, 172);
  display: block;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35rem;
  margin: 1.6875rem 0 0;
  max-width: 29rem;
}

.hero-slide-button {
  margin: 2.125rem 0 0;
  background-color: #23c767;
  color: #FFF;
  border-color: #23c767;
  font-size: 16px;
  font-weight: 400;
  font-family: type-36, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  border: 2px solid transparent;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 13px 20px;
  text-decoration: none;
}

.hero-slide-button:hover {
  background-color: #10aa50;
  color: #ffffff;
  text-decoration: none;
}

/* Paginacja – w wrapperze, żeby nie była obcinana przez overflow:hidden na .hero-slider */
.hero-slider-wrapper .hero-slider-pagination {
  position: absolute !important;
  left: auto !important;
  right: 1.8125rem !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 10;
  display: flex;
  flex-direction: column !important;
  gap: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: auto;
  padding: 0;
  margin: 0 !important;
}

/* Wymuszenie pozycji po prawej na desktopie */
@media (min-width: 769px) {
  .hero-slider-wrapper .hero-slider-pagination {
    left: auto !important;
    right: 1.2125rem !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    flex-direction: column !important;
  }
}

/* Ukryj domyślną paginację Swiper */
.hero-slider .swiper-pagination {
  display: none;
}

.hero-slider-pagination-dot {
  position: relative;
  background: transparent;
  display: block;
  outline: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 35px;
  min-width: 44px;
  min-height: 35px;
  max-height: 35px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  text-indent: -9999px;
  transition: all 0.3s ease;
}

.hero-slider-pagination-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a7a9b0;
}

.hero-slider-pagination-dot:hover::after {
  background: #8a8c94;
}

.hero-slider-pagination-dot--active,
.hero-slider-pagination-dot[data-active="true"] {
  background: transparent;
  width: 44px;
  height: 35px;
  min-height: 35px;
  max-height: 35px;
  position: relative;
}

.hero-slider-pagination-dot--active::before,
.hero-slider-pagination-dot[data-active="true"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border: 3px solid #23c767;
  border-radius: 50%;
  background: transparent;
}

.hero-slider-pagination-dot--active::after,
.hero-slider-pagination-dot[data-active="true"]::after {
  background: transparent;
}

/* Przycisk scroll down */
.hero-slider-scroll-down {
  position: absolute;
  right: calc(70px + 5.625rem);
  bottom: -1.5625rem;
  width: 3.0625rem;
  height: 3.0625rem;
  box-shadow: 0 5px 14px 2px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background-color: #23c767;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-slider-scroll-down:hover {
  background-color: #1fb359;
  transform: translateY(5px);
}

.hero-slider-scroll-down .hero-slider-scroll-down-icon {
  display: block;
  width: 1.125rem;
  height: auto;
  transform: rotate(90deg);
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-slider-wrapper {
    width: 100%;
    padding: 0 15px;
  }

  .hero-slider {
    height: 70vh;
    min-height: 70vh;
    aspect-ratio: unset;
  }

  .hero-slider-scroll-down {
    right: calc(15px + 5.625rem);
  }
}

@media (max-width: 1024px) {
  .hero-slide-content {
    padding: 60px 15px;
  }


  .hero-slide-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #0e0620;
    opacity: 0.7;
  }

  .hero-slide-content {
    padding: 0px 15px;
    align-items: center;
    text-align: center;
  }

  .hero-slide-title {
    text-align: center;
    max-width: 100%;
  }

  .hero-slide-description {
    display: none;
  }

  .hero-slide-button {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slider-wrapper .hero-slider-pagination {
    right: 0 !important;
    left: 0 !important;
    top: auto !important;
    bottom: 1.1875rem !important;
    transform: none !important;
    flex-direction: row !important;
    width: auto;
    margin: 0;
    padding-right: 0;
    gap: 0;
    justify-content: center;
  }

  .hero-slider-pagination-dot {
    width: 30px;
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    min-width: 30px;
    max-width: 30px;
  }

  .hero-slider-scroll-down {
    display: none;
  }
}

