.hero {
  padding: 0;
  position: relative;
}

.hero__slider {
  position: relative;
}

.hero__swiper .swiper-slide {
  height: auto;
}

.hero__content {
  padding: 0 0 24px;
}

.hero__title {
  font-size: 45px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__title-top {
  display: block;
}

.hero__title-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  white-space: nowrap;
  vertical-align: top;
}

.hero__title-line > span {
  white-space: nowrap;
}

.hero__arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 48px;
  background: var(--bg-blue);
  border-radius: 25px;
  flex-shrink: 0;
}

.hero__arrow-badge img {
  width: 40px;
  height: auto;
}

.hero__subtitle {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero__media picture {
  display: block;
}

.hero__media .hero__img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: var(--hero-img-position, center center);
  background: var(--dark); /* fallback */
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    181.62deg,
    rgba(0, 0, 0, 0.01) 74.81%,
    rgba(11, 11, 11, 0.241) 84.33%,
    rgba(25, 25, 25, 0.53) 98.63%
  );
  pointer-events: none;
}

.hero__pagination {
  position: absolute !important;
  bottom: 20px !important;
  z-index: 10;
  text-align: center;
}

.hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 1;
  border-radius: 50%;
  margin: 0 5px;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.hero__pagination .swiper-pagination-bullet-active {
  background: var(--yellow);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.2);
}

.hero__nav {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero__nav--prev {
  left: max(5px, calc((100% - var(--container)) / 2 - 30px));
}

.hero__nav--next {
  right: max(5px, calc((100% - var(--container)) / 2 - 30px));
}

.hero__nav img {
  width: 32px;
  height: 32px;
  display: block;
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 38px;
    line-height: 1.25;
  }

  .hero__title-line {
    gap: 16px;
  }

  .hero__arrow-badge {
    width: 76px;
    height: 38px;
    border-radius: 20px;
  }

  .hero__arrow-badge img {
    width: 32px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 0;
  }

  .hero__content {
    padding-bottom: 16px;
  }

  .hero__title {
    font-size: 34px;
    line-height: 1.22;
    margin-bottom: 10px;
    overflow-wrap: normal;
  }

  .hero__title-line {
    gap: 16px;
  }

  .hero__arrow-badge {
    width: 68px;
    height: 34px;
    border-radius: 18px;
  }

  .hero__arrow-badge img {
    width: 30px;
  }

  .hero__subtitle {
    font-size: 18px;
    line-height: 1.35;
  }

  .hero__media {
    border-radius: 30px;
  }

  .hero__media .hero__img {
    height: 500px;
    object-position: var(--hero-img-position-mobile, center top);
  }

  .hero__pagination {
    bottom: 24px !important;
  }

  .hero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-top: 40px;
    padding-bottom: 22px;
  }

  .hero__title {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero__title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .hero__arrow-badge {
    width: 54px;
    height: 28px;
    border-radius: 16px;
  }

  .hero__arrow-badge img {
    width: 24px;
  }

  .hero__subtitle {
    font-size: 18px;
    line-height: 1.34;
    margin-bottom: 0;
  }

  .hero__media {
    border-radius: 30px;
  }

  .hero__media .hero__img {
    object-position: var(--hero-img-position-mobile, center center);
  }

  .hero__pagination {
    bottom: 22px !important;
  }

  .hero__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 5px;
    box-shadow: none;
  }

  .hero__nav {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 21px;
    line-height: 1.16;
  }

  .hero__arrow-badge {
    width: 50px;
    height: 26px;
  }

  .hero__arrow-badge img {
    width: 22px;
  }
}

@media (max-width: 1024px) {
  .hero__slide {
    min-height: 300px;
  }

  .hero__content {
    padding: 0 0 22px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-top: 40px;
  }
}
