/* адаптив bstm.cc 2026-11-11 */
img { max-width: 100%; height: auto; }
.adwrap { margin: 0 0 12px; overflow: hidden; }
.adwrap ins { max-width: 100%; }
#content table { max-width: 100%; }
@media (max-width: 1020px) {
  body { background-size: auto; }
  #wrapper, #footer-in { width: auto; max-width: 1000px; padding: 0 12px; box-sizing: border-box; }
  #header table, #header tbody, #header tr, #header td { display: block; width: auto; }
  #header td.r { display: none; }
  #mainmenu ul li { float: none; display: inline-block; }
  .phone { position: static; }
  #contentwrapper > table, #contentwrapper > table > tbody { display: block; width: 100%; }
  #contentwrapper > table > tbody > tr { display: flex; flex-direction: column; }
  #contentwrapper > table > tbody > tr > td { display: block; width: auto !important; padding: 0 !important; }
  #contentwrapper td.sidebar-left { order: 2; }
  #contentwrapper td.sidebar-right { order: 3; }
  #content { padding: 0; overflow-wrap: anywhere; }
  #content table { display: block; overflow-x: auto; }
  #content h1 { font-size: 1.4em; line-height: 1.25; }
  .fright { float: none; width: auto; }
  .fleft { margin-right: 0; padding-left: 0; }
  #footer table, #footer tbody, #footer tr, #footer td { display: block; }
}
