
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero__video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-gray-light);
  color: var(--color-red);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}

.hero__slider {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 5;
  width: min(85%, 300px);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--border-width) solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.hero__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__track {
  position: relative;
  display: grid;
  min-height: 140px;
}

.hero__slide {
  display: flex;
  grid-area: 1 / 1;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  min-height: 140px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero__slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__slide-title {
  font-size: var(--fs-lg);
  color: var(--color-red);
  margin-bottom: var(--space-2);
}

.hero__slide-text {
  font-size: var(--fs-sm);
  color: rgba(0, 0, 0, 0.75);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: var(--border-width) solid var(--color-black);
  border-radius: 50%;
  background-color: var(--color-white);
  cursor: pointer;
  font-weight: var(--fw-bold);
  user-select: none;
}

.hero__arrow--prev {
  left: var(--space-1);
}

.hero__arrow--next {
  right: var(--space-1);
}

@media (min-width: 768px) {
  .hero__video-placeholder {
    font-size: var(--fs-3xl);
  }

  .hero__slider {
    bottom: var(--space-6);
    left: var(--space-6);
    width: 320px;
  }
}

@media (min-width: 1024px) {
  .hero__slider {
    bottom: var(--space-7);
    left: var(--space-7);
    width: 360px;
  }

  .hero__track,
  .hero__slide {
    min-height: 170px;
  }
}
