/* transav.ru — мобильная адаптация без изменения десктопа (15.09.2026).
   Два шаблона в архиве: Bitrix «ta» (20 страниц: #header 998×445 с абсолютным лого/меню, 3 колонки left3x/text3x/right3x)
   и старые табличные страницы (29, body[topmargin]: боковые фоны 50%, колонки 246 | 534).
   Все правила только внутри @media (max-width:768px); десктоп (>768px) этот файл не читает. */
@media screen and (max-width:768px){
  /* ===== Bitrix «ta» ===== */
  #header,#content{width:100%;box-sizing:border-box}
  div[style*="width: 998px"],div[style*="width:998px"]{width:auto!important}
  /* таблицы тарифов/форм внутри контента (border=1, 430-460px) — по ширине экрана, при нехватке прокрутка внутри */
  #content table{display:block;overflow-x:auto;max-width:100%;width:auto!important}
  /* таблица нижнего меню услуг (9 ячеек, прямой потомок body) → столбик */
  body>table,body>table>tbody,body>table>tbody>tr,body>table>tbody>tr>td,
  #wrapper>table,#wrapper>table>tbody,#wrapper>table>tbody>tr,#wrapper>table>tbody>tr>td{display:block;width:auto!important;text-align:center}
  #header{height:auto;padding:0 8px}
  #top{height:auto;overflow:hidden}
  #logo{position:static;display:block;margin:10px auto 0;max-width:100%;background-size:contain;background-position:50% 0}
  #billboard{float:none;width:auto;height:auto;margin:0 auto}
  #billboard div[style*="width: 300px"]{width:auto!important;left:0!important}
  #billboard img[align="right"]{float:none;display:block;margin:6px auto}
  .phone{width:auto}
  #ico{float:none;position:static;overflow:hidden;margin:6px 0}
  #menu{position:static;float:none!important;margin:10px 0;overflow:visible}
  #menu li{margin-bottom:12px}
  .wrapper3x{min-width:0}
  .content3x{float:none;width:100%}
  .text3x{margin-left:0;margin-right:0}
  .left3x,.right3x{float:none;width:auto;margin-left:0;margin-top:15px}
  .text3x,.left3x,.right3x{overflow:hidden;clear:both}
  #content-wrapper{overflow:hidden}
  #content div[style*="width: 400px"],#content form[style*="width: 400px"]{width:auto!important;margin-left:0!important;box-sizing:border-box}
  #content div[style*="width: 90%"]{width:auto!important;float:none!important}
  #content div[style*="margin-right: 130px"]{margin-right:0!important}
  #footer{height:auto;margin-top:0;padding:10px 0}
  #menu-bottom{width:auto;left:0;line-height:2.2}
  #footer a{padding-right:10px}
  /* ===== старые табличные страницы ===== */
  body[topmargin] table,body[topmargin] tbody,body[topmargin] tr,body[topmargin] td{display:block;width:auto!important;height:auto!important;max-width:100%;box-sizing:border-box}
  body[topmargin] tr{display:flex;flex-direction:column}
  body[topmargin] td[width="534"]{order:-1}
  body[topmargin] td[width="50%"],body[topmargin] td[width="1"]{display:none}
  body[topmargin] td[background]{background-size:cover}
  body[topmargin] div[style*="padding-right:50px"]{padding-right:10px!important}
  /* ===== общее ===== */
  img{max-width:100%;height:auto}
  table{max-width:100%}
  input,select,textarea{max-width:100%;box-sizing:border-box}
  p,td,li,div.text3x{overflow-wrap:anywhere;word-wrap:break-word}
}
