/* Hi-def.ru IPB 2 mobile layout 1.0.0. Classes are added without replacing posts. */
.hd-author-toggle { display:none; }
@media screen and (max-width:1000px) {
  html,body { width:100%;height:auto;min-width:0; }
  body { font:15px/1.45 Arial,Verdana,sans-serif;text-align:left; }
  *,*::before,*::after { box-sizing:border-box; }
  img { max-width:100%;height:auto; }
  a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #3287b5;outline-offset:2px; }
  #logostrip { height:auto;min-height:64px;padding:8px;background:#253f51; }
  #logostrip table { max-width:100%; }
  #logostrip td { padding:0 8px 0 0; }
  #logostrip h1 { margin:0;font-size:19px;line-height:1.2;color:#fff; }
  #logostrip img { width:100px;max-width:none; }
  #submenu { display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;height:auto;padding:5px 8px;line-height:1.35;background:#edf2f5; }
  #submenu_left,#submenu_right,.ipb-top-right-link { display:contents; }
  #submenu a { display:inline-flex;align-items:center;float:none;min-height:36px;padding:4px 6px;font-size:13px;color:#285574; }
  #submenu_left a,#submenu_right a { float:none; }
  #userlinks,#userlinksguest { padding:0 8px;line-height:1.8;background:#f8fafb; }
  #userlinks a,#userlinksguest a { display:inline-block;min-height:32px;padding:3px; }
  #ipbwrapper { width:auto;min-width:0;margin:10px 8px 20px; }
  #navstrip { line-height:1.6;overflow-wrap:anywhere; }
  #navstrip a { display:inline-block;padding:5px 0; }
  .borderwrap,.borderwrapm { width:100%;min-width:0;max-width:100%;margin-top:10px; }
  table.ipbtable { width:100%;font-size:14px;line-height:1.45; }
  .ipbtable td { overflow-wrap:anywhere;white-space:normal; }
  .maintitle,.maintitlecollapse { padding:10px;font-size:15px;line-height:1.4; }
  .maintitle>table,.maintitle>table>tbody,.maintitle>table>tbody>tr,.maintitle>table>tbody>tr>td { display:block;width:auto;max-width:100%;white-space:normal; }
  .maintitle .popmenubutton,.maintitle .popmenubutton-new { float:none;display:inline-block;margin:6px 0 0;font-size:13px; }
  .maintitle .expand { float:right; }
  .maintitle .expand a { display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:28px;margin:-4px; }
  .newslink,.newslink tbody,.newslink tr,.newslink td { display:block;width:100%;max-width:100%;text-align:left; }
  .newslink { padding:8px;font-size:12px; }
  .hd-guest .newslink { display:none; }
  .hd-guest .newslink+br { display:none; }
  .newslink td { padding:4px 0; }
  .newslink form { display:flex;flex-wrap:wrap;gap:6px;align-items:center; }
  .newslink input[type=text],.newslink input[type=password] { flex:1 1 110px;width:110px;min-width:0; }
  .newslink input[type=image] { width:44px;height:40px;object-fit:contain;padding:5px;background:#e8edf1;border:1px solid #becbd4;border-radius:4px; }
  .hd-card-table,.hd-card-table>tbody { display:block;width:100%;max-width:100%; }
  .hd-card-table>colgroup,.hd-card-header,.hd-card-tail { display:none; }
  .hd-card-row { display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 8px;width:100%;padding:11px 10px;border-bottom:1px solid #d9e0e6;background:#f5f7f9; }
  .hd-card-row:nth-child(odd) { background:#fff; }
  .hd-card-row>td { display:block;width:auto !important;min-width:0;padding:0;background:none;white-space:normal;text-align:left;border:0; }
  .hd-card-state { flex:0 0 24px; }
  .hd-card-state a { display:flex;align-items:flex-start;justify-content:center;min-height:32px; }
  .hd-card-state img { max-width:24px; }
  .hd-card-decoration { display:none !important; }
  .hd-card-title { flex:1 1 calc(100% - 32px);min-height:32px; }
  .hd-card-title a[id^=tid-link],.hd-card-title>b>a { display:inline-block;padding:2px 0 5px;font-size:16px;line-height:1.3; }
  .forumdesc,.topicdesc { font-size:13px;line-height:1.4;color:#56646d; }
  .hd-card-meta { flex:0 1 auto;margin-top:6px;font-size:12px;line-height:1.5;color:#52616c; }
  .hd-card-meta::before { content:attr(data-hd-label);font-weight:400; }
  .hd-card-meta-first { margin-left:32px; }
  .hd-card-last { flex:0 0 calc(100% - 32px);max-width:calc(100% - 32px);margin:6px 0 0 32px;font-size:12px;line-height:1.45;color:#586670; }
  .hd-card-last .lastaction { font-size:12px;line-height:1.45; }
  .hd-card-last a { color:#245d7b; }
  .hd-card-extra { flex-basis:100%;padding:6px 0 !important; }
  .hd-card-table .hd-card-extra,.hd-card-table .hd-card-extra>td { display:block;width:100%;max-width:100%; }
  .hd-card-extra .ipbtable,.hd-card-extra .ipbtable>tbody,.hd-card-extra .ipbtable>tbody>tr,.hd-card-extra .ipbtable>tbody>tr>td { display:block;width:100%;max-width:100%; }
  .hd-card-extra form { display:flex;flex-wrap:wrap;gap:6px; }
  .hd-card-extra input[type=text] { flex:1 1 120px;width:120px;min-width:0; }
  .hd-post-table,.hd-post-table>tbody,.hd-post-table>tbody>tr { display:block;width:100%;max-width:100%; }
  .hd-post-head-row { display:flex !important;flex-wrap:wrap;background:#e3eaf0;border-top:1px solid #bac9d4; }
  .hd-post-head-row>.post_head { display:block;flex:1 1 auto;width:auto;padding:9px 10px;background:none;white-space:normal; }
  .hd-post-head-row>.post_head:last-child { flex-basis:100%;padding-top:0; }
  .normalname,.normalname a { font-size:15px !important;line-height:1.4; }
  .postdetails { font-size:12px;line-height:1.5; }
  .hd-author-toggle { display:inline-flex;align-items:center;min-height:32px;margin:4px 0 0 8px;padding:4px 9px;border:1px solid #acbdca;border-radius:4px;background:#f7fafc;color:#365b73;font:12px/1.4 Arial,sans-serif;cursor:pointer; }
  .hd-post-body-row>.post_left { display:none;width:100%;padding:10px;border-bottom:1px solid #d6e1e8;background:#f1f5f8; }
  .hd-post-body-row>.post_left.hd-profile-open { display:block; }
  .hd-post-body-row>td[id^=post-main] { display:block;width:100%;min-width:0;padding:12px 10px; }
  .postcolor { width:100%;max-width:100%;font-size:16px;line-height:1.6;overflow-wrap:anywhere; }
  .postcolor img { max-width:100%;height:auto !important; }
  .postcolor pre,.postcolor .code { max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere; }
  .postcolor iframe,.postcolor object,.postcolor embed,.postcolor video { max-width:100%; }
  .signature { max-width:100%;font-size:12px;line-height:1.45;overflow-wrap:anywhere; }
  .hd-post-table .formbuttonrow { display:block;width:100%;padding:7px 10px;white-space:normal; }
  .hd-post-table .formbuttonrow a { display:inline-flex;align-items:center;min-height:36px;margin-right:6px; }
  .hd-post-table .catend { display:block;width:100%; }
  .hd-action-table,.hd-action-table>tbody,.hd-action-table>tbody>tr { display:block;width:100%; }
  .hd-action-table>tbody>tr { display:flex;flex-wrap:wrap;gap:6px;align-items:center; }
  .hd-action-table>tbody>tr>td { display:block;flex:1 1 180px;width:auto;max-width:100%;white-space:normal; }
  .hd-action-table>tbody>tr>.hd-action-empty { display:none; }
  .hd-action-table .nopad { text-align:left; }
  .hd-action-table .nopad a { display:inline-flex;align-items:center;min-height:44px;margin:0 2px; }
  .pagelink,.pagelinklast,.pagecurrent { display:inline-block;min-width:36px;min-height:36px;margin:3px 0;padding:7px 8px;text-align:center;line-height:1.4; }
  .pagelink a,.pagelinklast a { display:inline-block; }
  #page-jump,#page-jump-1,#page-jump-2 { width:auto; }
  input[type=text],input[type=password],input[type=email],textarea,select { max-width:100%;min-height:40px;padding:8px;border:1px solid #9cabb7;border-radius:4px;font:16px/1.4 Arial,sans-serif; }
  textarea { width:100%; }
  select { margin:4px 0; }
  input[type=submit],input[type=button],button.button { max-width:100%;min-height:40px;padding:7px 12px;font-size:14px; }
  input[type=checkbox],input[type=radio] { width:20px;height:20px;vertical-align:middle; }
  .hd-form-table,.hd-form-table>tbody,.hd-form-table>tbody>tr,.hd-form-table>tbody>tr>td { display:block;width:100%;max-width:100%; }
  .hd-form-table .hd-option-row { display:flex;gap:8px; }
  .hd-option-row>td:first-child { flex:0 0 24px;width:24px; }
  .hd-option-row>td:last-child { flex:1;min-width:0; }
  .hd-form-table input[type=text],.hd-form-table input[type=password] { width:100%; }
  .desc { font-size:13px;line-height:1.45; }
  .hd-controls-table,.hd-controls-table>tbody,.hd-controls-table>tbody>tr,.hd-controls-table>tbody>tr>td { display:block;width:100%;max-width:100%;white-space:normal; }
  #fo_stat table { table-layout:fixed; }
  #fo_stat td { white-space:normal;overflow-wrap:anywhere; }
  #fo_stat .formsubtitle { font-size:13px;line-height:1.5; }
  #gfooter,#gfooter tbody,#gfooter tr,#gfooter td { display:block;width:100%;max-width:100%;white-space:normal;text-align:left; }
  #gfooter { margin-top:14px; }
  #gfooter td { padding:4px 0;font-size:12px; }
  .hd-table-scroll { width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch; }
  .hd-table-scroll>table { min-width:360px; }
}
