.side-toggle { display: none; }
.side-body { display: block; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  clear: both;
}
.founding-small {
  float: none;
  width: calc((100% - 42px) / 4);
  margin: 0;
  overflow: hidden;
}
.founding-small a { display: block; }
.founding-small a img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid #ccc;
}
.cms-text .founding-small p { margin: 0; padding: 0; }

.cms-text p { padding-bottom: 12px; }
.cms-text p:last-child { padding-bottom: 0; }
.cms-text ul,
.cms-text ol {
  margin: 4px 0 14px;
  padding-left: 1.4em;
}
.cms-text ul { list-style: disc outside; }
.cms-text ol { list-style: decimal outside; }
.cms-text li {
  margin: 0 0 4px;
  list-style-position: outside;
}

@media (max-width: 1040px) {
  #container, #footer { max-width: 100%; }

  .center_div {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  .shapka_cont {
    height: auto !important;
    overflow: hidden;
    padding: 8px 0 6px;
  }
  .poddomen_cont_001 { display: none !important; }
  .logo_cont {
    float: none !important;
    clear: both;
    width: 100% !important;
    height: auto !important;
    padding: 4px 0 0 !important;
    text-align: center;
  }
  .logo_cont img {
    width: min(300px, 88vw) !important;
    height: auto !important;
    max-width: 100%;
  }
  .shapka_right_cont {
    float: none !important;
    display: flex !important;
    clear: both;
    width: 100% !important;
    height: auto !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 0 2px !important;
  }
  .nasa_cont {
    float: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 0 !important;
  }
  .nasa_cont img {
    display: block;
    width: auto !important;
    height: 44px !important;
    max-width: 46vw;
  }
  .slogan {
    float: none !important;
    clear: both;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 8px 8px 2px !important;
  }

  .top_menu_cont,
  #cmTopMenu {
    height: auto !important;
    overflow: visible !important;
    background-image: none;
  }
  .nav-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 !important;
    padding: 12px 4px !important;
    background: transparent;
    color: #fff;
    border: 0;
    font: bold 17px Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .nav-toggle-icon { font-size: 20px; line-height: 1; }
  .tmn { display: none !important; }
  .tmn.open {
    display: block !important;
    float: none !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    background: #173512;
    background-image: none !important;
  }
  .tmn.open > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    background: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .tmn.open > li > a {
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 13px 12px !important;
    margin: 0 !important;
    color: #fff !important;
    background: none !important;
    font-size: 16px !important;
    text-shadow: none;
  }
  .tmn.open li,
  .tmn.open a {
    float: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
  }
  .tmn.open ul {
    display: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #10280c;
    overflow: hidden;
  }
  .tmn.open li.sub-open > ul { display: block !important; }
  .tmn.open li.sub-open > ul a {
    display: block !important;
    color: #fff !important;
    background: #10280c !important;
    padding: 11px 22px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
  }

  .content_cont {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
    padding-top: 12px !important;
  }
  .left_cont,
  .right_cont {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .left_cont { order: 1; }
  .right_cont { order: 2; }

  .search_cont {
    display: flex;
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    margin: 0 0 10px !important;
  }
  .search_input {
    float: none !important;
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 16px;
    box-sizing: border-box;
  }
  .search_bot {
    float: none !important;
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    background-size: 40px 80px;
    background-position: center top;
  }

  .side-fold { margin: 0 0 14px; }
  .side-toggle {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 0;
    background: #2b4e09;
    color: #fff;
    font: bold 16px Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .side-toggle::before { content: "▸  "; }
  .side-fold.is-open .side-toggle::before { content: "▾  "; }
  .side-body { display: none; }
  .side-fold.is-open .side-body { display: block; }

  #navMenu,
  .left_stolb_cont,
  .poddomen_cont_002,
  #navMenu ul,
  .qm,
  #my-menu,
  .qm li,
  .qm li.qmTop,
  .qm_li_cont {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    box-sizing: border-box !important;
    float: none !important;
  }
  #navMenu { background-image: none; padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .left_stolb_zag,
  .left_stolb_zag#first_zag {
    width: 100% !important;
    max-width: none !important;
    height: 34px !important;
    line-height: 34px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #1c6208 !important;
    border-radius: 6px 6px 0 0 !important;
    background-color: #4d9b16 !important;
    background-image: linear-gradient(180deg, #c6ee78 0%, #8bc63c 16%, #4f9c16 54%, #2d760e 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .2) !important;
    color: #fff !important;
    text-align: center !important;
    text-shadow: 0 1px 0 #163806 !important;
    font-weight: bold;
  }
  .left_stolb_zag:not(#first_zag) {
    border-radius: 0 !important;
    border-color: #2d6d9c !important;
    background-color: #65abdf !important;
    background-image: linear-gradient(180deg, #e7f6ff 0%, #9dcef3 18%, #65abdf 55%, #3b88c0 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(0, 0, 0, .16) !important;
    text-shadow: 0 1px 0 #1a4d73 !important;
  }
  .left_stolb_cont {
    border-left: 1px solid #c0c0c0 !important;
    border-right: 1px solid #c0c0c0 !important;
    background: #fff;
  }
  #navMenu li,
  .qm li,
  .qm li.qmTop {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  #navMenu li a:link,
  #navMenu li a:visited,
  .qm li.qmTop > a,
  .qm li ul li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    padding: 10px 12px !important;
  }
  .side-banner,
  .poddomen_cont_002 {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .poddomen_cont_002 {
    border-left: 1px solid #c0c0c0 !important;
    border-right: 1px solid #c0c0c0 !important;
    border-bottom: 1px solid #c0c0c0 !important;
    padding: 8px !important;
    background: #fff;
  }
  .poddomen_cont_002 img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #wrapper1,
  .home-slider {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    margin-bottom: 12px !important;
  }
  .home-slider img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    object-fit: contain;
    background: #e7f0dc;
  }

  h1 { font-size: 20px !important; line-height: 1.3 !important; }
  h2, h2.index_onestat_h2 { font-size: 17px !important; line-height: 1.35 !important; }
  .right_cont,
  .text_text_cont,
  .index_onestat_text_cont,
  .index_otzivi_text_cont,
  .spistovs_onetovanons_text_cont,
  .artik_anons_text,
  .twocolumn-r {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .index_tovs_cont,
  .rehesh_tovs_cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .index_one_tov_cont,
  .rehesh_one_tov_cont,
  .spistovs_onetovanons_cont {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    box-sizing: border-box;
  }
  .index_tovs_cont,
  .rehesh_tovs_cont,
  .spistovs_cont,
  .onetov_text_cont {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .index_tov_img_cont,
  .rehesh_tov_img_cont,
  .spistovs_onetovanons_img_cont,
  .onetov_img_cont {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #c2c2c2 !important;
    border-radius: 6px !important;
    overflow: hidden;
    background: #fff;
  }
  .index_tov_img_cont a,
  .rehesh_tov_img_cont a,
  .spistovs_onetovanons_img_cont a,
  .onetov_img_cont a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
    box-sizing: border-box !important;
  }
  .index_tov_img_cont img,
  .rehesh_tov_img_cont img,
  .rehesh_tov_img_cont a img,
  .spistovs_onetovanons_img_cont img,
  .onetov_img_cont img,
  .onetov_img_cont a img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 260px;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }
  .index_tov_name,
  .rehesh_tov_name { font-size: 15px; line-height: 1.35; }

  .index_otzivi_cont { background-image: none; }
  .index_otzivi_left,
  .index_otzivi_right {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .index_otzivi_img_cont,
  .onetov_one_otziv_img_cont,
  .onetov_smenel_img_cont {
    width: 84px !important;
  }
  .index_otzivi_img_cont img,
  .onetov_one_otziv_img_cont img,
  .onetov_smenel_img_cont img {
    width: 80px !important;
    height: auto !important;
  }
  .index_more_info { float: none; width: auto !important; margin-top: 8px; }

  .img_cont,
  .artik_img_cont,
  .onetov_imgbot_cont {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 0 10px !important;
    box-sizing: border-box !important;
  }
  .img_cont img,
  .artik_img_cont img,
  .onetov_bigbot,
  .onetov_bigbot a {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }
  .onetov_bigbot a {
    background-color: #2b4e09;
    background-size: 100% 64px;
    border-radius: 4px;
  }

  .product-tabs .tab-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
  .product-tabs .tab-buttons button { margin: 0; }

  .gallery { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .founding-small {
    float: none !important;
    width: calc((100% - 14px) / 2) !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .founding-small img,
  .onesert_img_cont,
  .onesert_img_cont span,
  .onesert_img_cont span img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
  .onesert_img_cont { float: none !important; margin: 0 auto 12px !important; max-width: 180px; }

  .right_cont img,
  .right_cont iframe,
  .right_cont video,
  .left_cont img,
  .videos_cont iframe {
    max-width: 100% !important;
    height: auto;
  }
  .videos_cont iframe,
  .right_cont iframe { width: 100% !important; aspect-ratio: 16 / 9; }
  .right_cont table { display: block; max-width: 100%; overflow-x: auto; }

  .crumbs_block { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

  .empty { display: none !important; }
  #footer {
    height: auto !important;
    margin: 0 !important;
    position: relative !important;
    padding-bottom: 12px;
  }
  .podval_menu_cont {
    height: auto !important;
    line-height: 1.4 !important;
    overflow: visible !important;
    padding: 8px 0;
  }
  ul.podval_menu { height: auto !important; margin: 0; padding: 4px 0; }
  .podval_menu li {
    display: inline-block;
    border: 0 !important;
    margin: 3px 0;
    line-height: 1.4 !important;
  }
  .podval_menu li a { font-size: 13px; }
  .podval_line { overflow: visible; }
  .logo_mini_cont,
  .cr,
  .seo_text_cont,
  .soc_likes,
  .soc_like_cont,
  .one_sch_cont,
  .artfish_cont,
  .artfish_cont2 {
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    margin: 6px 0 !important;
  }
  .logo_mini_cont img { width: 160px !important; height: auto !important; }

  .inform input,
  .inform textarea { font-size: 16px; }
}

@media (min-width: 700px) and (max-width: 1040px) {
  .index_one_tov_cont,
  .rehesh_one_tov_cont {
    width: calc(50% - 12px) !important;
    max-width: none;
  }
  .founding-small { width: calc((100% - 28px) / 3) !important; }
}
