.hero {
  padding: var(--sp-md) 0;
}

.hero-video {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--navy);
}

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

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(15, 19, 25, 0.82) 0%,
    rgba(15, 19, 25, 0.5) 45%,
    rgba(15, 19, 25, 0) 100%
  );
  pointer-events: none;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: 0 24px;
  color: var(--white);
}

.hero-video__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 360px;
  color: var(--white);
}

.hero-video__desc {
  font-size: 0.8rem;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-video__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-sm);
  padding: 10px 20px;
  background: var(--lime);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.2s var(--ease);
}

.hero-video__cta:hover {
  background: var(--lime-dark);
  color: var(--white);
}

.hero-video__cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: scaleX(-1);
}

.hero-carousel {
  margin-top: var(--sp-md);
  position: relative;
}

.hero-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.hero-carousel__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  position: relative;
  padding-inline-start: 12px;
}

.hero-carousel__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--lime);
}

.hero-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 4px 4px 12px;
  margin-inline: -4px;

  -webkit-mask-image: linear-gradient(
    to left,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to left,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.hero-carousel__slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  scroll-snap-stop: always;

  opacity: 0.7;
  transform: scale(0.94);

  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.hero-carousel__slide.is-active,
.hero-carousel__slide:hover,
.hero-carousel__slide:focus-within {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel__slide.is-active .hero-banner,
.hero-carousel__slide:hover .hero-banner,
.hero-carousel__slide:focus-within .hero-banner {
  border-color: var(--lime);
  box-shadow: 0 10px 28px -12px rgba(181, 196, 0, 0.5);
}

.hero-carousel__track:has(.hero-carousel__slide:hover)
  .hero-carousel__slide.is-active:not(:hover) {
  opacity: 0.7;
  transform: scale(0.94);
}

.hero-carousel__track:has(.hero-carousel__slide:hover)
  .hero-carousel__slide.is-active:not(:hover)
  .hero-banner {
  border-color: var(--border);
  box-shadow: none;
}

.hero-carousel__track:has(.hero-carousel__slide:focus-within)
  .hero-carousel__slide.is-active:not(:focus-within) {
  opacity: 0.7;
  transform: scale(0.94);
}

.hero-carousel__track:has(.hero-carousel__slide:focus-within)
  .hero-carousel__slide.is-active:not(:focus-within)
  .hero-banner {
  border-color: var(--border);
  box-shadow: none;
}

.hero-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition:
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

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