/* ===================================================
   ГЛАВНЫЙ ЭКРАН: ШЕЙДЕРНОЕ ПЛАМЯ, 3D И ИНТЕРФЕЙС
   =================================================== */

.hero-gas-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  background-color: #000000;
  overflow: hidden;
}

/* ===== ВИДЕО-ФОН ГЛАВНОГО ЭКРАНА ===== */
.hero-bg-video {
  position: absolute;   
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  display: block;
}


/* Оболочка контента поверх графики */
.hero-gas-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Контейнер: центрирует контент по вертикали в рабочей зоне между шапкой и зеркалом */
.hero-container {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 60px) 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* ===== ЗАГОЛОВКИ: СЛЕВА ПО ВЕРТИКАЛИ ЦЕНТР ===== */
.hero-text-block {
  max-width: 680px;
  width: 100%;
  margin: 0;
  text-align: left;
  pointer-events: auto;
}

.hero-title {
  margin: 0 0 16px 0;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-text-white, #ffffff);
  letter-spacing: -0.5px;
  text-align: left;
}

.hero-title .title-line {
  display: block;
}

.hero-title .title-line:nth-child(2) {
  color: var(--color-accent-teal, #2edba5);
  text-shadow: 0 0 25px rgb(46 219 165 / 0%);
  margin-top: 6px;
}

.hero-btn-wrap {
  padding-top: clamp(16px, 4vh, 48px);
}

.hero-consult-btn {
   display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(5, 60, 60, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 219, 165, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-consult-btn:hover {
    background: rgba(5, 60, 60, 0.95);
    border-color: #2edba5;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(46, 219, 165, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    color: #2edba5;
}

.hero-consult-btn i {
    color: #2edba5;
    transition: transform 0.3s ease;
}

.hero-consult-btn:hover i {
    transform: translateX(4px);
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 28px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-top: clamp(24px, 8vh, 80px); 
  text-align: left;
}

/* ===== БЛОК КОНСУЛЬТАЦИИ (ПО УМОЛЧАНИЮ ДЛЯ ПК И ПЛАНШЕТОВ — КАК БЫЛО) ===== */
.hero-consult-card {
  position: absolute;
  right: 20px;
  bottom: calc(11% + 15px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  background: var(--color-glass-bg, rgba(5, 60, 60, 0.45));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-glass-border, rgba(46, 219, 165, 0.25));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-align: right;
  align-items: flex-end;
}

.consult-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-accent-teal, #2edba5);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-direction: row-reverse;
}

.consult-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  width: 100%;
}

.hero-phone-link {
  color: var(--color-text-white, #ffffff);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.hero-phone-link i {
  /* color: var(--color-accent-teal, #2edba5); */
  font-size: 13px;
}

.hero-phone-link:hover {
  color: var(--color-accent-teal, #2edba5);
  transform: translateX(-3px);
}

.consult-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-white, #ffffff);
  text-decoration: none;
  font-weight: 500;
  flex-direction: row-reverse;
  transition: color 0.25s ease;
}

.max-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url('/img/Max_logo.svg') no-repeat center / contain;
  mask: url('/img/Max_logo.svg') no-repeat center / contain;
  transition: background-color 0.25s ease;
}

.consult-social-link:hover {
  color: var(--color-accent-teal, #2edba5);
}

.consult-social-link:hover .max-icon {
  background-color: var(--color-accent-teal, #2edba5);
}

/* ===== ЗЕРКАЛО ФОНА: КНОПКИ ПЕРЕХОДА ===== */
.hero-mirror-actions {
  position: absolute;
  bottom: 5px;
  left: 46%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 20;
  pointer-events: auto;
}

.mirror-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 32px;
  min-width: 400px;
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(5, 60, 60, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 219, 165, 0.3);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mirror-btn i {
  color: #2edba5;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mirror-btn:hover {
  background: rgba(5, 60, 60, 0.95);
  border-color: #2edba5;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46, 219, 165, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  color: #2edba5;
}

.mirror-btn:hover i {
  transform: translateX(4px);
}

.hero-mirror-actions .mirror-btn.active {
  background: rgba(5, 60, 60, 0.95) !important;
  border-color: #2edba5 !important;
  color: #2edba5 !important;
}

/* ===================================================
   АДАПТИВНОСТЬ
   =================================================== */

@media (max-width: 1024px) {
  .hero-container {
    padding: 60px 20px 11%;
  }
  .hero-text-block {
    max-width: 580px;
  }
}

@media (max-width: 768px) {
  .hero-gas-section {
    min-height: 520px;
  }
  .hero-container {
    padding: 56px 16px 10%;
  }

  .hero-consult-card {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: calc(11% + 12px);
    padding: 10px 14px;
    text-align: center;
    align-items: center;
  }
  .consult-badge {
    justify-content: center;
    flex-direction: row;
    font-size: 11px;
  }
  .consult-phones {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .hero-phone-link {
    font-size: 13px;
    flex-direction: row;
  }
  .consult-social-link {
    flex: 0 0 100%;
    justify-content: center;
    flex-direction: row;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
  }

  .hero-mirror-actions {
    bottom: 16px;
    gap: 10px;
    width: calc(100% - 32px);
    left: 16px;
    transform: none;
    justify-content: center;
  }

  .mirror-btn {
    padding: 12px 20px;
    min-width: 0;
    flex: 1;
    max-width: 220px;
    font-size: 13px;
    letter-spacing: 0.5px;
    gap: 8px;
  }

  .mirror-btn i {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .hero-gas-section {
    min-height: 480px;
  }
  .hero-container {
    padding: 52px 4vw 58px;
  }
  .hero-consult-card {
    right: 12px;
    left: 12px;
    bottom: calc(11% + 10px);
    padding: 8px 10px;
  }
  .hero-phone-link {
    font-size: 12px;
  }
  .hero-phone-link i {
    font-size: 11px;
  }
  .consult-badge {
    font-size: 10px;
  }

  .hero-mirror-actions {
    bottom: 12px;
    width: calc(100% - 24px);
    left: 12px;
    gap: 8px;
  }

  .mirror-btn {
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.3px;
    gap: 6px;
  }

  .mirror-btn i {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .hero-subtitle {
    font-size: 13px;
  }
  .hero-consult-card {
    right: 8px;
    left: 8px;
    bottom: calc(11% + 8px);
    padding: 6px 8px;
  }
  .hero-phone-link,
  .consult-social-link {
    font-size: 11px;
  }

  .hero-mirror-actions {
    bottom: 10px;
    width: calc(100% - 16px);
    left: 8px;
    gap: 6px;
  }

  .mirror-btn {
    padding: 9px 10px;
    font-size: 11px;
    gap: 5px;
  }

  .mirror-btn i {
    font-size: 10px;
  }
}