.hero-bg--live {
  overflow: hidden;
  background: var(--primary-bg);
}

@media (max-width: 576px) {
  .hero-bg--live {
    background: var(--primary-bg);
  }
}

/* анимация строго под контентом */
.hero-bg--live .hero-bg__live {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 45%,
    rgba(0, 0, 0, 0.7) 68%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 45%,
    rgba(0, 0, 0, 0.7) 68%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  );
}

.hero-bg--live .hero-bg__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg--live .hero-bg__layer--color {
  z-index: 0;
}

.hero-bg--live .hero-bg__layer--dots {
  z-index: 1;
}

/* контент hero всегда выше фона */
.hero-bg--live > .container {
  position: relative;
  z-index: 2;
}
