.hero-section {
  position: relative;
  width: 100%;
  min-height: 110vh; /* Висота між 100 та 120 для ідеального балансу */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  overflow: hidden;
  padding: 0;
  margin-top: -85px;
}

/* Фонове слайд-шоу */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.hero-background img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition:
    opacity 2s ease-in-out,
    transform 8s ease-out;
}

.hero-background img.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Контент */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  padding: 0 4%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 85px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600; /* Більш насичений */
  text-transform: uppercase;
  letter-spacing: 6px; /* Збільшений інтервал */
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.3s;
}

.hero-title {
  font-family: var(--font-heading); /* Повернено Playfair Display */
  font-size: 5.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 4px; /* Трохи зменшив для Playfair Display, щоб виглядало гармонійніше */
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.5s;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  max-width: 650px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 25px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.9s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 20px 45px;
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  backdrop-filter: blur(10px); /* Блюр ефект */
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(-2px);
}

/* Індикатор скролу - вирівнювання по центру */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%); /* Гарантує центр */
  z-index: 3;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 1.2s;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  animation: scrollDown 2.5s infinite ease-in-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  } /* Виправлено для скролл-індикатора */
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Окремий анімейшн для тексту, де не треба translate(-50%) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Окремий анімейшн для скролл-індикатора */
@keyframes fadeUpScroll {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.scroll-indicator {
  animation: fadeUpScroll 1.2s ease forwards 1.2s;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }
  30% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

.hero-subtitle .mobile-br {
  display: none;
}

/* Адаптивність */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
    letter-spacing: 5px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 110vh;
    height: calc(var(--vh, 1vh) * 110);
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 4px;
    margin-bottom: 25px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 45px;
    padding: 0 10px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 20px;
  }

  .hero-btn {
    width: 100%;
    min-width: auto;
  }
}

.hero-subtitle .mobile-br {
  display: block;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
}
