[id ^= sandbox_theme_panel] {
  width: 120px !important;
  font-size: 12px !important;
  right: 0;
  top: auto !important;
  bottom: 0;
}
img, video, iframe, input, textarea, select, button {
  max-width: 100%;
}
.content table img {
  max-width: none;
}
.table-overflow {
  overflow: auto;
}
html, body {
  min-width: 0;
}
.top-panel {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 10;
  background: #333;
  display: none;
}
.top-panel-in {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}
.burger {
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-right: 15px;
  padding: 0;
}
.burger span {
  height: 20px;
  width: 100%;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: relative;
}
.burger span:before {
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  margin-top: -1px;
  height: 2px;
  background: #fff;
  display: block;
  content: "";
}
.s_f {
  float: none;
  margin: 0 0 20px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1440px) {
  .email {
    left: auto;
    right: 20px;
  }
  .site_name {
    left: 20px;
  }
  .tel {
    left: 250px;
  }
  .date {
    right: 20px;
  }
}
@media (max-width: 1280px) {
  .wrapper {
    background-position: 100% 0;
  }
}
@media (max-width: 1024px) {
  .top-panel {
    display: block;
  }
  .fixed-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
    z-index: 100;
    transition: all 0.3s;
    padding: 0;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    margin: 0;
    width: auto;
  }
  .fixed-panel:before {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: block;
    content: "";
    opacity: 0.5;
  }
  .fixed-panel.opened {
    opacity: 1;
    visibility: visible;
  }
  .fixed-panel.opened .fixed-panel-in {
    transform: none;
  }
  .fixed-panel .fixed-panel-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: url(close.svg) 50% no-repeat;
  }
  .fixed-panel .fixed-panel-in {
    padding: 50px 20px 20px;
    width: 284px;
    transform: translate3d(-320px, 0, 0);
    transition: all 0.3s;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    height: 100vh;
    overflow-y: auto;
  }
  .header {
    height: auto;
    background: #a60000;
    display: flex;
    padding: 20px;
    align-items: center;
    background: url(bg1.png) 50% no-repeat;
  }
  .tel, .email {
    color: #000;
  }
  .tel a, .email a {
    color: #000;
  }
  .header-in {
    display: flex;
    align-items: center;
    flex: 1 0 0;
  }
  .wrapper {
    background: none;
  }
  body {
    background: #fff;
  }
  .site_name {
    font-size: 0;
    position: static;
    margin: 0 20px 0 0;
  }
  .tel {
    position: static;
    margin: 0 20px 0 0;
    order: -1;
    max-width: 310px;
  }
  .tel p {
    margin: 0;
  }
  .tel table, .tel td {
    max-width: 100%;
  }
  .email {
    position: static;
  }
  .right-wrap {
    margin: 0 0 0 auto;
    text-align: right;
  }
  .date {
    position: static;
    margin: 0 0 10px;
    font-size: 14px;
    display: none;
  }
  * {
    box-sizing: border-box;
    word-break: break-word;
  }
  ul.menu2 {
    display: none;
  }
  .leftside {
    width: 0;
    padding: 0;
  }
  .main {
    display: block;
  }
  .main > tbody {
    display: block;
  }
  .main > tbody > tr {
    display: block;
  }
  .main .rightside {
    display: block;
  }
  .content {
    padding: 20px;
  }
  .wrapper {
    padding-top: 50px;
  }
  .s_f {
    margin: 0;
  }
  ul.menu, .news_block {
    width: auto;
  }
  .mobile-menu {
    display: block;
  }
  .social {
    margin: 15px 0 0;
  }
  ul.menu {
    flex-direction: column;
    display: flex;
    padding-bottom: 20px;
  }
  ul.menu3 {
    display: none;
  }
  .foot {
    /*display: flex;
		align-items: center;
		padding: 20px;*/
  }
  .cont_bot {
    left: 20px;
    right: 20px;
    width: auto;
  }
  .cont_bot table {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .header-in {
    flex-direction: column;
  }
  .tel {
    margin: 10px 0 0 auto;
    order: initial;
    text-align: right;
  }
}
@media (max-width: 570px) {
  .header {
    flex-direction: column;
  }
  .site_name {
    margin: 0 0 15px;
  }
  .tel {
    text-align: center;
  }
  .right-wrap {
    margin: 0;
    text-align: center;
  }
  .cont_bot {
    top: 33px;
  }
  .cont_bot table {
    display: block;
  }
  .cont_bot table tbody, .cont_bot table tr, .cont_bot table td {
    display: block;
  }
  .cont_bot table td {
    padding: 4px 0;
  }
  .counters {
    display: none;
  }
  .mega {
    right: auto;
    left: 20px;
  }
}
