.hero-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1em;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  aspect-ratio: 1536 / 848;
  max-height: 70vh;
}

.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

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

.hero-carousel__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.hero-carousel__arrow:hover {
  color: var(--color-secondary);
}

.hero-carousel__arrow .icon {
  width: 24px;
  height: 24px;
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: var(--space-md) 0;
}

.hero-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
}

.hero-carousel__dot .icon {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.hero-carousel__dot.is-active {
  color: var(--color-secondary);
}

@media (max-width: 960px) {
  .hero-carousel-wrapper {
    max-width: 100%;
    margin: 0;
    gap: 0;
    overflow: hidden;
  }

  .hero-carousel {
    width: 100%;
    overflow: hidden;
  }

  .hero-carousel__track {
    width: 100%;
  }

  .hero-carousel__arrow {
    display: none;
  }

  .hero-carousel__dot .icon {
    width: 5px;
    height: 5px;
  }

  .hero-carousel__dots {
    margin: var(--space-sm) 0;
  }
}
