/* Мобильная адаптация avtoutil.com. Добавлено 02.10.2026.
   Весь файл — внутри @media (max-width:1000px): на десктопе НИЧЕГО не меняется.
   Исходный макет жёстко 1000px (style.css), медиа-запросов там нет. */

@media (max-width: 1000px) {

  /* --- Каркас --- */
  body { min-width: 0; font-size: 16px; line-height: 1.5; background-size: auto; -webkit-text-size-adjust: 100%; }
  .wrapper { width: auto; max-width: 100%; padding: 0 12px; box-sizing: border-box; }
  img { max-width: 100%; height: auto; }

  /* --- Шапка: абсолютное позиционирование -> обычный поток --- */
  .header { height: auto; overflow: visible; position: static; padding: 12px 0 8px; text-align: center; }
  .logo { position: static; margin: 0 auto 12px; background-size: contain; max-width: 100%; }
  .contacts { position: static; font-size: 16px; line-height: 1.4; margin: 0 0 10px; }
  .contacts .phone { float: none; display: inline-block; font-size: 30px; line-height: 1.2; padding-left: 26px;
                     background-position: 0 50%; background-size: 16px auto; margin: 0; }
  .contacts .phoneInfo { float: none; display: block; padding: 2px 0 0; font-size: 14px; }
  .address { position: static; width: auto; font-size: 15px; }
  .address p { margin: 0 0 6px; }

  /* Телефон — крупная кнопка «позвонить» на телефоне */
  .contacts .phone a, .footerPhone .phone a { text-decoration: none; }

  /* --- Слайдер на главной: на телефоне скрываем картинки, навигацию оставляем --- */
  .intro { height: auto; position: static; margin: 0 0 16px; }
  .intro .slides { display: none; }
  .introNav { position: static; width: auto; background-image: none; background: #eceef5; }
  .introNav a { width: auto; height: auto; min-height: 0; padding: 12px 16px; background-image: none;
                border-bottom: 1px solid #d7d7e1; }
  .introNav a .caption { padding: 0; margin: 0 0 2px; font-size: 18px; line-height: 1.3; }
  .introNav a.activeSlide, .introNav a.activeSlide:hover { background: #0059ba; padding-right: 16px; }

  /* --- Контент и колонка: снимаем float, контент выше меню --- */
  .container { display: flex; flex-direction: column; }
  .content { float: none; width: auto; padding: 0 0 24px; order: 1; }
  .inside .content { padding-top: 12px; }
  .sidebar { float: none; width: auto; padding: 0 0 24px; order: 2; }

  /* Хлебные крошки: у .bx-breadcrumb-item жёсткие height:22px и nowrap — длинный
     путь не помещался и наезжал на заголовок */
  .bx-breadcrumb { height: auto !important; overflow: visible; margin: 0 0 10px; }
  .bx-breadcrumb-item { height: auto !important; white-space: normal !important; display: inline; line-height: 1.5; }
  .bx-breadcrumb-item-text { white-space: normal; }

  .content h1 { font-size: 26px; line-height: 1.25; }
  .content h2 { font-size: 19px; line-height: 1.3; }
  .content ul, .content ol { margin-left: 20px; }

  /* Широкие таблицы — прокрутка вместо «разъезжания» страницы */
  .tbl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  ul.gallery { margin-right: 0; }
  ul.gallery li { width: 100%; margin: 0 0 12px; }

  /* Меню в колонке */
  .mainMenu { width: auto; background-image: none; background: #eceef5; }
  .mainMenu a { width: auto; height: auto; min-height: 0; padding: 12px 16px; background-image: none;
                border-bottom: 1px solid #d7d7e1; }
  .mainMenu a .caption { padding: 0; margin: 0 0 2px; font-size: 18px; line-height: 1.3; }
  .mainMenu a.current, .mainMenu a.current:hover { background: #0059ba; padding-right: 16px; }
  .leftNav { margin: 0 0 20px; }
  .leftNav a { padding: 14px 56px 14px 6px; min-height: 0; background-size: 40px auto; font-size: 15px; }
  .leftNav a .caption { font-size: 18px; line-height: 1.3; }
  .about { padding: 16px; font-size: 15px; }

  /* --- Подвал --- */
  .footerIn { width: auto; min-width: 0; background-image: none; padding: 20px 12px; box-sizing: border-box; }
  .column1, .column2, .column3 { float: none; width: auto; padding: 0 0 18px; }
  .footerLogo { margin: 0 0 12px; }
  .footerPhone .phone { font-size: 22px; }
  .footer { font-size: 14px; }

  /* Удобные ссылки: не слипаются под палец */
  .content a, .sidebar a, .footer a { word-break: break-word; }
}

/* Очень узкие экраны */
@media (max-width: 420px) {
  .contacts .phone { font-size: 25px; }
  .content h1 { font-size: 22px; }
}
