.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ebebeb;
}

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

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slider__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hero-slider__slide-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.hero-slider__slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding-top: 70px;
}

.hero-slider__slide-content p {
  width: 80%;
  max-width: 412px;
  margin: 1rem 0 0;
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 2.5vw + 4px, 24px);
  line-height: 1.45;
  color: var(--color-text);
}

.hero-slider__slide-content em {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-slider__slide-visual {
  flex: 1;
}

@media (max-width: 500px) {
  .hero-slider__slide-inner {
    flex-direction: column;
    align-items: center;
  }

  .hero-slider__slide-content {
    align-items: flex-start;
    padding-top: 0;
  }

  .hero-slider__slide-content p {
    text-align: justify;
    padding-left: 20px;
  }

  .hero-slider__slide-title,
  .hero-slider__slide-k {
    margin-inline: auto;
  }
}

.hero-slider__slide:nth-child(1) {
  background: #181A4D;
  background: linear-gradient(180deg,rgba(24, 26, 77, 1) 0%, rgba(24, 26, 77, 1) 90%, rgba(24, 26, 77, 0) 90%);
  padding-top: 60px;
}

.hero-slider__slide:nth-child(2) {
  background: #ff6634;
  background: linear-gradient(
    180deg,
    rgba(255, 102, 52, 1) 0%,
    rgba(255, 102, 52, 1) 90%,
    rgba(255, 102, 52, 0) 90%
  );
  padding-top: 60px;
}

.hero-slider__slide:nth-child(3) {
  background: #181a4d;
  background: linear-gradient(
    180deg,
    rgba(24, 26, 77, 1) 0%,
    rgba(24, 26, 77, 1) 90%,
    rgba(24, 26, 77, 0) 90%
  );
  padding-top: 60px;
}

.hero-slider__slide:nth-child(4) {
  background: #ff6634;
  background: linear-gradient(
    180deg,
    rgba(255, 102, 52, 1) 0%,
    rgba(255, 102, 52, 1) 90%,
    rgba(255, 102, 52, 0) 90%
  );
  padding-top: 60px;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg-header);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
  opacity: 0.9;
  outline: 2px solid var(--color-bg-header);
  outline-offset: 3px;
}

.hero-slider__btn--prev {
  left: 1rem;
}

.hero-slider__btn--next {
  right: 1rem;
}

.hero-slider__btn .bi {
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-slider__btn {
    width: 44px;
    height: 44px;
  }

  .hero-slider__btn--prev {
    left: 0.5rem;
  }

  .hero-slider__btn--next {
    right: 0.5rem;
  }
}
