/* Compatibility layer for the existing RWA theme. Original desktop artwork is retained. */
@media screen {
  #header .nav_menu { width:800px; }
  .rwa-mobile-department-logo { display:none; }
  .page-id-11 .entry table { width:100%!important; height:auto!important; table-layout:fixed; }
  .page-id-11 .entry td { width:50%!important; height:auto!important; vertical-align:top; line-height:1.55!important; }
  .page-id-11 .entry .rwa-local-embed { width:100%!important; }
}
@media screen and (max-width:1060px) {
  #header_wrapper { background:none; border-bottom:3px solid #006595; }
  #header_inner_wrapper { background:none; }
  html body #header { width:calc(100% - 32px); height:auto!important; margin:0 auto 24px; padding-bottom:16px; }
  #header .nav_menu { width:100%; height:auto; margin-left:0; float:none; padding-top:4px; }
  #header .nav_menu table { height:auto; }
  #header .nav_menu ul { display:flex; flex-wrap:wrap; gap:3px; }
  #header .nav_menu li { float:none; }
  #header .nav_menu li a { display:block; padding:7px 8px; font-size:14px; }
  #qtranslate-chooser { float:none; display:flex; flex-wrap:wrap; margin:12px 0; }
  #qtranslate-chooser li a { font-size:13px; padding:4px 7px; }
  #header .logo_search { float:none; margin:0; width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
  html body #header .logo, html body #header .logo_post { margin:8px 0!important; }
  #header .logo_search .logo img { max-width:200px; height:auto; }
  #header .logo_search form#searchform { margin-top:0; }
  #header .slide { float:none; width:100%; height:auto; padding:0; margin-top:12px; background:none; display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
  #header .slide .content_slide { float:none; width:auto; height:240px; background-size:cover!important; background-position:center!important; }
  #header .slide .menu-top_jquery_menu-container { position:static; width:auto!important; }
  #header .slide ul { width:100%; box-sizing:border-box; height:auto; padding:0; float:none; background:none; }
  #header .slide ul li { width:auto; padding:0; }
  #header .slide ul li a span { width:auto; left:6px; right:6px; padding:0; height:auto; bottom:10px; }
  html body #header > .logo_post { float:none; display:block; width:180px; }
  html body #header > .menu-top_jquery_menu-container { float:none; width:100%; }
  html body #header > .menu-top_jquery_menu-container ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body #header > .menu-top_jquery_menu-container li { float:none; height:80px; }
  html body #header > .menu-top_jquery_menu-container li a { box-sizing:border-box; width:100%!important; height:80px; padding:0!important; background-image:url('images/bcg_jquery_menu.png'); }
  html body #header > .menu-top_jquery_menu-container li.menu-item-97 a { background-position:0 0; }
  html body #header > .menu-top_jquery_menu-container li.menu-item-98 a { background-position:0 -164px; }
  html body #header > .menu-top_jquery_menu-container li.menu-item-99 a { background-position:0 -328px; }
  html body #header > .menu-top_jquery_menu-container li a span { width:auto!important; left:6px; right:6px; bottom:6px; height:auto!important; font-size:12px; }
  #page-wrap { box-sizing:border-box; width:calc(100% - 32px); padding:0; }
  .description { font-size:26px; line-height:1.25; margin-bottom:28px; }
  table.areas, table.areas tbody { display:block; width:100%; padding:0; }
  table.areas > tbody > tr:first-child { display:none; }
  table.areas > tbody > tr:last-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
  table.areas td { display:block; width:auto; height:auto; min-width:0; padding:0; }
  .rwa-mobile-department-logo { display:block; width:110px; height:auto; margin:0 0 16px; }
  html body.home div#page-wrap div.article { float:none; width:100%; margin:0; }
  div#page-wrap div#news_etc.ui-tabs { float:none; width:100%; margin:28px 0; }
  div#page-wrap div.sidebar { float:none; width:100%; margin:0 0 20px; z-index:auto; }
  div#page-wrap div.sidebar ul.menu { margin-left:0; }
  div#page-wrap div.sidebar > div > ul.menu { display:flex; flex-wrap:wrap; gap:8px 18px; }
  div#page-wrap div#content, div#page-wrap #content_outer { float:none; width:100%; box-sizing:border-box; padding:0; background:none; }
  #content_inner { background:none; padding:0; }
  html body.page div#page-wrap div#content div#content_inner div.post,
  html body.category div#page-wrap div#content div#content_inner div#content_inner_post,
  html body.single div#page-wrap div#content div#content_inner div#content_inner_post,
  html body.search div#page-wrap div#content div#content_inner div#content_inner_post { background:none; padding:22px 0; }
  #bread { width:auto; margin:0; background:none; }
  #crumbs { margin:0; line-height:1.7; }
  #crumbs a, #crumbs span { margin:0 7px; }
  .entry { overflow-wrap:anywhere; }
  .entry img { max-width:100%; height:auto; box-sizing:border-box; }
  .entry table { max-width:100%; display:block; overflow-x:auto; }
  .entry iframe { max-width:100%; }
  .excerpt-short { width:calc(100% - 135px); }
  .archive_news { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-left:0; }
  .archive_news li { float:none; width:auto; height:auto; margin:0!important; }
  .archive_news li div.entry { width:100%; max-width:195px; height:auto; aspect-ratio:1; }
  .archive_news img { width:100%; height:100%; }
  .menu-podrazdeleniya-container { height:auto; margin:28px 0; }
  .menu-podrazdeleniya-container ul { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .menu-podrazdeleniya-container li { float:none; margin:0!important; background-size:contain!important; background-repeat:no-repeat; }
  .menu-podrazdeleniya-container a { width:100%; }
  #footer { height:auto; margin-top:30px; background-color:#696a6d; }
  .footer_content { box-sizing:border-box; width:calc(100% - 32px); height:auto; padding-bottom:18px; }
  div#footer div.footer_content div.nav_menu { height:auto; padding:14px 0; background:none; }
  div#footer div.footer_content div.nav_menu ul { display:flex; flex-wrap:wrap; gap:10px 0; width:auto; height:auto; }
  div#footer div.footer_content div.nav_menu ul li { float:none; }
  div#footer div.footer_content div.nav_menu ul li a { padding:0 10px; }
  #footer table, #footer tbody, #footer tr, #footer td { display:block; width:auto; }
  #footer td { padding:8px 0!important; text-align:left; }
  #footer .requsites ul { margin-bottom:8px; }
  #footer .requsites img { width:44px; height:44px; }
  #footer .footer_content p { float:none!important; padding:0!important; text-align:left!important; color:#fff; }
  div#footer div.footer_content p a { color:#fff; }
}
@media screen and (max-width:600px) {
  body { font-size:15px; line-height:1.55; }
  #header .logo_search { display:block; }
  #header .logo_search .logo img { max-width:180px; }
  #header .logo_search form#searchform { margin:10px 0 18px; }
  #header .slide { grid-template-columns:1fr; }
  #header .slide .content_slide { height:180px; }
  #header .slide ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  #header .slide ul li a { height:80px; }
  #header .slide ul li a span { font-size:12px; line-height:1.3; overflow-wrap:anywhere; }
  table.areas > tbody > tr:last-child { grid-template-columns:1fr; gap:32px; }
  .description { font-size:23px; }
  .preview, .excerpt-short { float:none; width:auto; height:auto; margin:0 0 14px; }
  .entry img.alignleft, .entry img.alignright { float:none; display:block; margin:0 auto 16px; padding:0; }
  .entry table td { min-width:180px; }
  .page-id-11 .entry table, .page-id-11 .entry tbody, .page-id-11 .entry tr,
  .page-id-11 .entry td { display:block; width:100%!important; height:auto!important; min-width:0; line-height:1.55!important; }
  .archive_news { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .menu-podrazdeleniya-container ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .read_more, .readmore, .back { font-size:13px!important; }
}
