/* css/hero.css */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background-color: var(--c-black);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding-top: 60vh;
  text-align: left;
}

.hero__title {
  font-family: var(--f-hero);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.05;
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
  white-space: normal;
  margin: 0;
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding-top: var(--nav-h);
    text-align: center;
  }

  .hero__title {
    white-space: nowrap;
  }
}

/* Кнопка звука — автоплей возможен только без звука,
   включение требует жеста пользователя. */
.hero__sound {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vh, 40px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--c-white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur-ui) var(--ease-soft),
    border-color var(--dur-ui) var(--ease-soft);
}

.hero__sound:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__sound-icon { display: none; }
.hero__sound[aria-pressed="false"] .hero__sound-icon--off { display: block; }
.hero__sound[aria-pressed="true"] .hero__sound-icon--on { display: block; }
