.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-video.loaded {
  opacity: 1;
}

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 40vw;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.hero-content h2 {
  font-size: 3em;
}
.hero-content svg {
  stroke: #e4dad8;
  width: 42px;
  height: 32px;
}

/* loader */
.hero-loader {
  position: absolute;
  top: 20px;
  left: 60px;
  z-index: 2;
}

/* LOADER */
.loader {
  animation: rotate 1s infinite;
  height: 50px;
  width: 50px;
}

.loader:before,
.loader:after {
  border-radius: 50%;
  content: "";
  display: block;
  height: 20px;
  width: 20px;
}
.loader:before {
  animation: ball1 1s infinite;
  background-color: #733449;
  margin-bottom: 10px;
}
.loader:after {
  animation: ball2 1s infinite;
  background-color: #8f405a;
}
/* ARROW SVG */
/* Delikatne bujanie strzałki */
.hero-content a.hero-scroll svg {
  animation: jarcewo-bounce 1.6s ease-in-out infinite;
  will-change: transform;
}

@keyframes jarcewo-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  } /* delikatnie w dół */
}

/* Szanuj prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content a.hero-scroll svg {
    animation: none;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  .hero-content {
    width: auto;
    transform: translateY(30px);
  }
}
@keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg) scale(0.8);
    -moz-transform: rotate(0deg) scale(0.8);
  }
  50% {
    -webkit-transform: rotate(360deg) scale(1.2);
    -moz-transform: rotate(360deg) scale(1.2);
  }
  100% {
    -webkit-transform: rotate(720deg) scale(0.8);
    -moz-transform: rotate(720deg) scale(0.8);
  }
}

@keyframes ball1 {
  0% {
    box-shadow: 30px 0 0 #a37689;
  }
  50% {
    box-shadow: 0 0 0 #a37689;
    margin-bottom: 0;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #a37689;
    margin-bottom: 10px;
  }
}

@keyframes ball2 {
  0% {
    box-shadow: 30px 0 0 #9d687e;
  }
  50% {
    box-shadow: 0 0 0 #9d687e;
    margin-top: -20px;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #9d687e;
    margin-top: 0;
  }
}
