/* Стили для мобильного меню */
.mobile-nav {
  display: none; /* Скрыто по умолчанию */
  background: #3a2b26;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.mobile-nav.active {
  display: block; /* Показываем при активации */
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav ul li {
  margin-bottom: 20px;
}

.mobile-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-family: "Gotham", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* Анимация гамбургера в крестик */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 1. Базовые стили для смартфонов (по умолчанию) */
@media screen and (max-width: 1200px) {
  .container {
    min-width: 320px;
    padding: 10px;
  }

  /* Тексты */
  h1 {
    font-size: 1.8rem !important; /* Уменьшаем до комфортного размера */
  }
  h2 {
    font-size: 1.6rem !important; /* Уменьшаем до комфортного размера */
  }

  /* ШАПКА
  -------------------------------------*/
  /* Скрываем десктопную шапку */
  .header-flex {
    display: none;
  }

  /* Показываем мобильную шапку */
  .mobile-header {
    display: block;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .mobile-top {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-top .logo a {
    font-family: "Gotham", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    position: sticky; /* Чтобы шапка прилипала при скролле */
  }

  .mobile-phone {
    color: #fff;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .mobile-phone {
    text-decoration: none !important;
  }

  .btn-mobile-order {
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  /* Гамбургер */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }
}

/* География проектов
------------------------------------------ */
.geography {
  padding: 50px 0;
}

/* Делаем обертку для карты со скроллом */
.map {
  width: 100%;
  overflow-x: auto; /* Появится скролл, если карта шире экрана */
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  border: 1px solid rgba(58, 43, 38, 0.1); /* Легкая рамка */
  border-radius: 8px;
}

/* Сама SVG карта */
.mapsvg {
  min-width: 600px; /* Фиксируем ширину, чтобы области были читаемы */
  height: auto;
}

/* Преимущества 
-------------------------------------*/
/* Перестраиваем сетку преимуществ в колонку */
.benefits-grid {
  flex-direction: column; /* Элементы встанут друг под другом */
  gap: 40px; /* Расстояние между карточками */
  padding: 0 20px; /* Отступы по бокам */
}

.benefit-item {
  width: 100%; /* Занимаем всю ширину */
  max-width: none;
  text-align: center; /* Центрируем иконку и текст */
}

/* Футер 
--------------------------------------------*/
.footer-row {
  flex-direction: column;
  gap: 30px;
}
.footer-item {
  min-width: 100%;
}

@media screen and (min-width: 1200px) {
  /* Скрываем мобильный хедер по умолчанию */
  .mobile-header {
    display: none;
  }
}

/* Адаптивность */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    flex-direction: column;
    gap: 30px;
  }

  /* Секция Лицензия
---------------------------------------------- */
  /* Адаптация просмотра лицензии для мобильных */

  .pdf-wrapper embed {
    height: 450px; /* Уменьшаем высоту на смартфонах */
  }
}
