/* ======================================================== */
/* 1_Hero: DYNAMIC VIDEO BACKDROP + RUNNING GREEN TICKERS     */
/* ======================================================== */

.ecoproject-hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding-top: 75px;
  padding-bottom: 75px;
  box-sizing: border-box;
}

/* Фирменные бегущие зеленые тикеры */
.ecoproject-hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  height: 56px;
  background: linear-gradient(90deg, #419b52 0%, #358343 50%, #419b52 100%);
  color: #ffffff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.ecoproject-hero-ticker-top {
  top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ecoproject-hero-ticker-bottom {
  bottom: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.ecoproject-ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ecoprojectTickerMarquee 25s linear infinite;
  will-change: transform;
}

.ecoproject-ticker-reverse {
  animation-direction: reverse;
}

.ecoproject-ticker-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ecoproject-ticker-content span {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 36px;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.ecoproject-ticker-content span::after {
  content: "•";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
}

@keyframes ecoprojectTickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ecoproject-hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.ecoproject-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ecoproject-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 2;
}

.ecoproject-hero-container {
  position: relative;
  z-index: 3;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.ecoproject-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.ecoproject-hero-content {
  max-width: 680px;
}

.ecoproject-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(65, 155, 82, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ecoproject-hero-title {
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.ecoproject-hero-title .highlight {
  color: #419b52;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.ecoproject-hero-desc {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.55;
  margin: 0 0 32px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.ecoproject-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-btn-primary {
  position: relative;
  background: linear-gradient(135deg, #419b52 0%, #358343 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 20px rgba(65, 155, 82, 0.35);
  transition: all 0.35s ease;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Белый стальной прозрачный блик (Shimmer Effect) */
.hero-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: ecoSteelShine 3.5s infinite ease-in-out; /* Синхронизировано с футером: 3.5s */
  pointer-events: none;
}

@keyframes ecoSteelShine {
  0% {
    left: -150%;
  }
  24% {
    left: 170%;
  }
  100% {
    left: 170%;
  }
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #358343 0%, #419b52 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 155, 82, 0.45);
}

.hero-btn-secondary {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  color: #ffffff;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.hero-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: #ffffff;
}

.ecoproject-hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.stat-label {
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* СТИЛИ ИНТЕРАКТИВНОГО СЛАЙДЕРА В ПРАВОМ БЛОКЕ */
.ecoproject-hero-media-card {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.ecoproject-hero-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 640px; /* Умеренно расширенный на пару сантиметров контейнер */
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #419b52;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #0f172a;
}

.ecoproject-hero-slides {
  position: relative;
  width: 100%;
  height: 435px;
  overflow: hidden;
}

.ecoproject-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.ecoproject-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* СТИЛИ ШАХМАТНОЙ ДОСКИ (Chessboard Grid) */
.ecoproject-hero-chessboard-grid {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.ecoproject-hero-chess-tile {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.85) rotate(4deg);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease;
  background-repeat: no-repeat;
}

.ecoproject-hero-chess-tile.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* РАЗНООБРАЗНЫЕ МЕТОДЫ ЭЛЕГАНТНОЙ СМЕНЫ СЛАЙДОВ: */

/* 1. Сдвиг справа (Slide-left) */
.ecoproject-hero-slide.active.slide-left {
  animation: ecoSlideLeft 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ecoSlideLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* 2. Мягкий наплыв с зумом (Zoom-in / Scale Fade) */
.ecoproject-hero-slide.active.zoom-in {
  animation: ecoZoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ecoZoomIn {
  0% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* 3. Вертикальный сдвиг снизу (Slide-up) */
.ecoproject-hero-slide.active.slide-up {
  animation: ecoSlideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ecoSlideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* 4. Бесшовное шахматное/диагональное проявление (Checker/Diagonal Fade) */
.ecoproject-hero-slide.active.checker-fade {
  animation: ecoCheckerFade 0.75s ease-out forwards;
}

@keyframes ecoCheckerFade {
  0% { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

.ecoproject-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Бейдж со слоганом преимуществ */
.ecoproject-hero-media-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 85%);
  padding: 30px 20px 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  z-index: 2;
}

.ecoproject-hero-media-badge svg {
  width: 22px;
  height: 22px;
  color: #419b52;
  flex-shrink: 0;
}

.ecoproject-hero-media-badge span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Кнопки Назад/Вперед (Более прозрачные и ненавязчивые) */
.ecoproject-hero-slider-prev,
.ecoproject-hero-slider-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35); /* Увеличена прозрачность */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45; /* Сниженная заметность по умолчанию */
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.ecoproject-hero-slider-prev:hover,
.ecoproject-hero-slider-next:hover {
  background: #419b52;
  border-color: #419b52;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.ecoproject-hero-slider-prev { left: 12px; }
.ecoproject-hero-slider-next { right: 12px; }

.ecoproject-hero-slider-prev svg,
.ecoproject-hero-slider-next svg {
  width: 18px;
  height: 18px;
}

/* Точки пагинации слайдера (Dots) */
.ecoproject-hero-slider-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.ecoproject-hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ecoproject-hero-slider-dot.active {
  background: #419b52;
  width: 18px;
  border-radius: 6px;
}

/* ПЛАНШЕТНАЯ И МОБИЛЬНАЯ АДАПТАЦИЯ (Responsive System) */

@media (max-width: 1200px) {
  .ecoproject-hero-container {
    max-width: 100%;
    padding: 0 20px;
  }
  .ecoproject-hero-grid {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .ecoproject-hero-title {
    font-size: 38px;
  }
  .ecoproject-hero-slider-wrap {
    max-width: 100%;
  }
  .ecoproject-hero-slides {
    height: 380px;
  }
}

@media (max-width: 991px) {
  .ecoproject-hero-section {
    height: auto;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .ecoproject-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ecoproject-hero-content {
    max-width: 100%;
  }
  .ecoproject-hero-media-card {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }
  .ecoproject-hero-slider-wrap {
    max-width: 580px;
    margin: 0 auto;
  }
  .ecoproject-hero-slides {
    height: 340px;
  }
}

/* Стили отображения мобильного и десктопного вариантов слайдера */
.mobile-only-slider {
  display: none !important;
}

.desktop-only-slider {
  display: flex !important;
}

@media (max-width: 768px) {
  .mobile-only-slider {
    display: flex !important;
    order: 3 !important;
    margin-bottom: 20px;
  }

  .desktop-only-slider {
    display: none !important;
  }

  .ecoproject-hero-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }
  .ecoproject-hero-ticker {
    height: 42px;
  }
  .ecoproject-hero-ticker-top { top: 0; }
  .ecoproject-hero-ticker-bottom { bottom: 0; }
  
  .ecoproject-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .ecoproject-hero-content {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100%;
  }

  .ecoproject-hero-badge {
    order: 1 !important;
    display: inline-block !important;
    align-self: flex-start !important;
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }

  .ecoproject-hero-title {
    order: 2 !important;
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .ecoproject-hero-desc {
    display: none !important;
  }

  .ecoproject-hero-slider-wrap {
    max-width: 100%;
  }

  .ecoproject-hero-slides {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  .ecoproject-hero-actions {
    order: 4 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 24px;
    margin-top: 0 !important;
  }

  .hero-btn-primary, .hero-btn-secondary {
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .ecoproject-hero-stats {
    order: 5 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding-top: 18px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .ecoproject-ticker-content span {
    font-size: 11px;
    padding: 0 18px;
  }

  .ecoproject-ticker-content span::after {
    font-size: 12px;
  }

  .ecoproject-hero-media-badge {
    padding: 14px 12px 10px 12px;
  }

  .ecoproject-hero-media-badge svg {
    width: 16px;
    height: 16px;
  }

  .ecoproject-hero-media-badge span {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .ecoproject-hero-title {
    font-size: 22px;
  }
  .ecoproject-hero-slides {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
  .ecoproject-hero-slider-dots {
    top: 8px;
    right: 8px;
  }
}
