/* скрыть компактный вариант хедера */
.minimal-hero {
  display: none;
}

.hero {
  display: flex;
  background: #121214;
  position: relative;
  min-height: 100vh;
}

.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 120px 40px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.6) 60%,
    transparent
  );
  transition: 0.3s;
}

.slides-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 2;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 3;
}

.hero__parallax {
  position: relative;
  height: 100vh;
}

.hero__parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.07)
  );
  z-index: 2;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: continuousScale 25s ease-in-out infinite;
  filter: brightness(0.9) contrast(1.1);
}

@keyframes continuousScale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.slide-content {
  position: relative;
  z-index: 10;
  padding: 0 3em;
}

.hero__block {
  color: #fff;
  max-width: 800px;
  padding-top: 35vh;
  padding-bottom: 60px;
  position: relative;
}

.hero__title {
  position: relative;
  font-size: clamp(24px, 5vw, 48px);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.8em;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
  line-height: 1.2;
  color: #fff;
}

.slide.active .hero__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero__title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d7b696, #e5ceaf);
  transition: width 0.8s ease 1s;
  box-shadow: 0 0 8px rgba(215, 182, 150, 0.6);
}

.slide.active .hero__title::after {
  width: 150px;
}

.hero__subtitle {
  max-width: 600px;
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2em;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.slide.active .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* --- заменённый блок преимуществ --- */
.hero__features {
  display: flex;
  gap: 40px;
  margin-bottom: 3em;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  flex-wrap: wrap;
}

.slide.active .hero__features {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}

.hero .benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  min-width: 140px;
}

.hero .benefit-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  color: #337603;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .benefit-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

.text-color {
  color: #337603;
  font-weight: 500;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #d7b696, #e5ceaf);
  border: none;
  color: #2a2a2a;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 8px 25px rgba(215, 182, 150, 0.3);
}

.slide.active .explore-button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.5s;
}

.explore-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(215, 182, 150, 0.4);
  background: linear-gradient(135deg, #e5ceaf, #f0e6d8);
}

.button-icon {
  transition: transform 0.3s;
}

.explore-button:hover .button-icon {
  transform: translateX(5px);
}

.hero__discr {
  text-transform: uppercase;
  font-weight: 400;
  color: #fff;
  position: absolute;
  right: 100px;
  top: 20vh;
  font-size: clamp(18px, 3vw, 32px);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  line-height: 1.2;
}

.slide.active .hero__discr {
  opacity: 1;
  transition-delay: 1.8s;
}

/* управление слайдером */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 30px;
}

.slider-dots {
  display: flex;
  gap: 15px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: #d7b696;
  border-color: #d7b696;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(215, 182, 150, 0.5);
}

.slider-dot:hover {
  background: rgba(215, 182, 150, 0.5);
  border-color: #d7b696;
}

.prev-slide,
.next-slide {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.prev-slide:hover,
.next-slide:hover {
  opacity: 1;
  border-color: #d7b696;
  color: #d7b696;
  transform: scale(1.1);
  background: rgba(215, 182, 150, 0.1);
}

.hero-navigation button {
  margin: 0;
}

.hero-navigation .hero-dots__dot {
  min-height: unset;
  min-width: unset;
}

.video-presentation__overlay.playing {
  opacity: 0;
  pointer-events: none;
}

/* адаптивные стили */
@media (max-width: 1200px) {
  .hero__discr {
    right: 60px;
    font-size: clamp(16px, 2.5vw, 28px);
  }
  .hero__block {
    max-width: 700px;
  }
}

@media (max-width: 992px) {
  .hero__features {
    gap: 25px;
  }
  .hero .benefit-item {
    min-width: 120px;
  }
  .slide-content {
    padding: 0 2em;
  }
}

@media (max-width: 768px) {
  .hero__discr {
    right: 20px;
    font-size: clamp(14px, 4vw, 24px);
    top: 10vh;
  }
  .hero__block {
    padding-top: 25vh;
    padding-bottom: 40px;
    padding-left: 1em;
    padding-right: 1em;
    max-width: 100%;
  }
  .hero__features {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 2em;
  }
  .hero .benefit-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    min-width: auto;
    width: 100%;
  }
  .hero .benefit-icon {
    margin-bottom: 0;
    width: 35px;
    height: 35px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .hero .benefit-text {
    font-size: 13px;
  }
  .slider-controls {
    bottom: 15px;
    gap: 20px;
  }
  .slider-dots {
    gap: 8px;
  }
  .prev-slide,
  .next-slide {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  .slide-content {
    padding: 0 1em;
  }
  .hero__overlay {
    padding: 60px 15px;
  }
  .explore-button {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 1em;
  }
  .hero__subtitle {
    font-size: clamp(14px, 4vw, 18px);
    margin-bottom: 1.5em;
  }
  .hero__features {
    margin-bottom: 2em;
  }
  .explore-button {
    padding: 16px 28px;
    font-size: 14px;
  }
  .hero__discr {
    right: 15px;
    top: 12vh;
  }
  .slider-controls {
    bottom: 15px;
    gap: 15px;
  }
}

/* оптимизация производительности */
.hero__img {
  will-change: transform;
}
.slide {
  will-change: opacity, transform;
}
