/* mobile.css — Полная адаптация ALPINE PEAK */

@media (max-width: 768px) {
  /* 1. Навигация и Лого */
  .navbar {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
  }

  .logo {
    font-size: 1.2rem !important;
  }

  /* 2. Шапка (Hero) и Заголовок */
  header.hero {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 100px !important; /* Чтобы заголовок не залезал под меню */
    padding-bottom: 60px !important;
    text-align: center !important;
  }

  .main-title {
    font-size: clamp(2.5rem, 12vw, 4rem) !important; /* Уменьшаем для мобилок */
    letter-spacing: -1px !important;
    margin-bottom: 30px !important;
    padding: 0 10px !important;
  }

  /* 3. Сетка и Карточки (Service Cards) */
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
    padding: 0 20px !important;
  }

  .service-card {
    width: 100% !important;
    max-width: 340px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    
    /* Снимаем ограничения высоты, чтобы текст не обрезался */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .card-header {
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .card-header h3 {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  /* Скрытый контент карточки */
  .card-content {
    display: none; /* Скрыто по умолчанию */
    padding: 0 20px 25px 20px !important;
    text-align: left !important;
    
    /* Фикс высоты для длинного текста */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Когда карточка активна (через JS) */
  .service-card.active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #e31e3b !important; /* Подсветка при открытии */
  }

  .service-card.active .card-content {
    display: block !important; /* Показываем текст */
  }

  .service-card.active .arrow {
    transform: rotate(180deg) !important;
  }

  /* Стилизация списка внутри карточки */
  .card-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .card-content li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    color: #ddd !important;
  }

  .card-content strong {
    color: #fff !important;
    display: block !important;
    margin-bottom: 4px !important;
  }

  /* Фикс красной кнопки в карточке */
/* Полный сброс и принудительная отрисовка кнопки */
.btn-calculate {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e31e3b !important;
    
    /* ТЕКСТ: форсируем видимость */
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    
    /* ГЕОМЕТРИЯ */
    width: 100% !important;
    min-height: 50px !important;
    padding: 0 20px !important;
    margin-top: 25px !important;
    border-radius: 8px !important;
    
    /* ПЕРЕДНИЙ ПЛАН */
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Принудительный стиль для текста внутри ссылки, если браузер его прячет */
.btn-calculate, 
.btn-calculate * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Для Safari на iPhone */
}

/* Иконка (стрелочка) */
.btn-calculate i {
    display: inline-block !important;
    margin-left: 12px !important;
    font-size: 16px !important;
    color: #ffffff !important;
}

/* Контейнер для кнопки */
.cta-container {
    width: 100% !important;
    display: block !important;
    margin-top: 20px !important;
    text-align: center !important;      /* Центруем кнопку на мобилке */
}

  /* 5. Слоган внизу */
  .hero-bottom-info {
    width: 100% !important;
    margin-top: 40px !important;
  }

  .slogan-badge {
    background: #000 !important;
    padding: 15px !important;
    font-size: 0.8rem !important;
    border-bottom: 3px solid #e31e3b !important;
    width: 100% !important;
  }

  /* 6. Мобильное Меню (Бургер) */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    height: 100vh !important;
    background: #0a0a0a !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: 0.4s !important;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0 !important;
  }

  .nav-links li {
    margin: 20px 0 !important;
  }

  /* Анимация иконки бургера */
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}