.custom-hero-slider {
  position: relative;
  width: 100%;
  min-height: 640px;
  overflow: hidden;
  background: #111;
}

.custom-hero-slider__wrapper,
.custom-hero-slider__slide {
  min-height: 640px;
}

.custom-hero-slider__slide {
  position: relative;
  overflow: hidden;
}

.custom-hero-slider__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.custom-hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.custom-hero-slider__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 90px 24px;
}

.custom-hero-slider__container {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #fff;
}

.custom-hero-slider__title {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.custom-hero-slider__body {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.custom-hero-slider__body p {
  margin: 0 0 24px;
}

.custom-hero-slider__body p:last-child {
  margin-bottom: 0;
}

.custom-hero-slider__body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 8px 12px 0 0;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.custom-hero-slider__body a:first-child {
  background: #fff;
  border-color: #fff;
  color: #1f1f1f;
}

.custom-hero-slider__body a:hover,
.custom-hero-slider__body a:focus {
  background: #fff;
  border-color: #fff;
  color: #1f1f1f;
  text-decoration: none;
  transform: translateY(-1px);
}

.custom-hero-slider__pagination {
  position: absolute;
  z-index: 6;
  bottom: 30px !important;
  left: 50% !important;
  width: auto !important;
  transform: translateX(-50%);
}

.custom-hero-slider__pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  background: #fff;
  opacity: 0.45;
}

.custom-hero-slider__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.custom-hero-slider__button {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.custom-hero-slider__button:hover,
.custom-hero-slider__button:focus {
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.9);
}

.custom-hero-slider__button--prev {
  left: 30px;
}

.custom-hero-slider__button--next {
  right: 30px;
}

@media (max-width: 900px) {
  .custom-hero-slider,
  .custom-hero-slider__wrapper,
  .custom-hero-slider__slide,
  .custom-hero-slider__content {
    min-height: 560px;
  }

  .custom-hero-slider__content {
    padding: 70px 20px;
  }

  .custom-hero-slider__button {
    display: none;
  }
}

@media (max-width: 600px) {
  .custom-hero-slider,
  .custom-hero-slider__wrapper,
  .custom-hero-slider__slide,
  .custom-hero-slider__content {
    min-height: 520px;
  }

  .custom-hero-slider__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.76) 100%);
  }

  .custom-hero-slider__body a {
    width: 100%;
    margin-right: 0;
  }
}