/* ===================================================
   ГЛАВНЫЙ ЭКРАН: ШЕЙДЕРНОЕ ПЛАМЯ, 3D И ИНТЕРФЕЙС
   =================================================== */

.hero-gas-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  background-color: #000000;
  overflow: hidden;
}

/* Холсты WebGL и Three.js */
.gas-flame-canvas,
.gas-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  display: block;
}

.gas-flame-canvas {
  z-index: 1;
}

.gas-3d-canvas {
  z-index: 2;
}

/* Оболочка контента поверх графики */
.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: 60px 20px 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 var(--color-accent-glow, rgba(46, 219, 165, 0.35));
  margin-top: 6px;
}

.hero-btn-wrap {
  padding-top: 5%;
}

.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;
    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: 10%;
  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: 0;
  left: 0;
  width: 100%;
  height: 11%;
  min-height: 54px;
  display: flex;
  pointer-events: auto;
  transition: background 0.3s ease;
}

.mirror-btn {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-white, #ffffff);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--color-mirror-bg, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.25s ease, color 0.25s ease;
}

.mirror-btn i {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.mirror-btn-left {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mirror-btn-right {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mirror-btn:hover {
  background: var(--color-mirror-hover, rgba(0, 150, 106, 0.35));
  color: #ffffff;
}

.mirror-btn:hover i {
  transform: translateY(3px);
}

.hero-mirror-actions .mirror-btn.active {
  background: var(--color-primary-light, #00966a) !important;
  color: #ffffff !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%;
  }
  
  /* ИЗМЕНЕНИЯ ТОЛЬКО ДЛЯ СМАРТФОНОВ (до 768px): 
     Заголовок по центру, телефоны по краям в строку, Макс по центру на 3-й строке */
  .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;
  }
}

@media (max-width: 560px) {
  .hero-gas-section {
    min-height: 480px;
  }
  .hero-container {
    padding: 52px 12px 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 {
    height: 11%;
    min-height: 50px;
  }
  .mirror-btn {
    font-size: 12px;
    letter-spacing: 0.5px;
    gap: 6px;
  }
}

@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;
  }
}