/* Responsive layer. Loaded after the legacy 960px styles by modxMinify. */
.mobile-menu-toggle { display: none; }

@media (max-width: 1024px) {
  html, body { min-width: 0 !important; width: 100%; overflow-x: hidden; }
  img, iframe, video { max-width: 100%; }
  img { height: auto; }

  .container_12 {
    width: 100%; max-width: 960px; padding-right: 24px; padding-left: 24px;
    box-sizing: border-box;
  }
  .container_12 .grid_1, .container_12 .grid_2, .container_12 .grid_3,
  .container_12 .grid_4, .container_12 .grid_5, .container_12 .grid_6,
  .container_12 .grid_7, .container_12 .grid_8, .container_12 .grid_9,
  .container_12 .grid_10, .container_12 .grid_11, .container_12 .grid_12 {
    display: block; float: none; width: 100% !important; margin-right: 0; margin-left: 0;
  }

  .header_top { padding: 12px 0; }
  .header_top .grid_12 {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
  }
  .header_top-left, .header_top-right { display: block; width: auto; margin: 0; }
  .header_top-right { text-align: right; }
  .header_top-left li, .header_top-right li, .header_top-right li:first-child {
    padding-right: 0; padding-left: 20px; margin-right: 18px;
  }
  .header_top-left li:last-child, .header_top-right li:last-child { margin-right: 0; }
  .header__text { padding: 8px 24px; line-height: 1.4; }

  .header-img {
    height: 560px; min-height: 0; padding-bottom: 32px;
    background-position: top center; background-size: cover;
  }
  header.two .header-img { height: 500px; min-height: 0; }
  .header-img .grid_12 { position: relative; float: none; }
  .header_logo { padding: 32px 72px 0; margin-bottom: 44px; }
  .header_logo a { display: inline-block; font-size: 40px; line-height: 1.15; }

  .mobile-menu-toggle {
    position: absolute; z-index: 32; top: 35px; right: 0; display: flex;
    width: 48px; height: 44px; padding: 9px; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: space-around;
    border: 1px solid rgba(255,255,255,.75); border-radius: 3px;
    background: rgba(17,27,39,.82); cursor: pointer;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    border-color: #e9b947; outline: none;
  }
  .mobile-menu-toggle span {
    display: block; width: 100%; height: 2px; background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .header_menu {
    position: absolute; z-index: 31; top: 92px; right: 0; left: 0; display: none;
    height: auto; max-height: calc(100vh - 135px); padding: 8px 0; margin: 0;
    overflow-y: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 3px;
    background: rgba(17,27,39,.98); box-shadow: 0 10px 28px rgba(0,0,0,.35);
    text-align: left;
  }
  .header_menu.is-open { display: block; }
  .header_menu::before, .header_menu::after, .header_menu li::before,
  .header_menu__liauxleft, .header_menu__liauxright { display: none !important; }
  .header_menu > ul > li, .header_menu ul ul > li {
    display: block; width: 100%; padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .header_menu > ul > li:last-child, .header_menu ul ul > li:last-child { border-bottom: 0; }
  .header_menu a, .header_menu ul ul > li a {
    display: block; padding: 13px 20px; color: #fff; font-size: 15px;
    line-height: 1.35; white-space: normal;
  }
  .header_menu ul ul {
    position: static; display: block; width: 100%; padding: 0 0 0 18px;
    border-radius: 0; background: rgba(0,0,0,.2); text-align: left;
  }
  .header_menu ul ul > li a { padding: 10px 20px; color: #e5e5e5; font-size: 13px; }

  .header_slogon-head { font-size: 32px; }
  .header_slogon-text { font-size: 26px; }
  .conteiner-content, .conteiner-content.two {
    min-height: 0; padding: 34px 0 44px; margin-top: 0;
  }
  footer { padding: 42px 0; margin-top: 0; }

  .features {
    box-sizing: border-box; width: 100%; height: auto; min-height: 210px; padding: 42px 20px 26px;
    gap: 24px 34px;
  }
  .features-item { flex: 0 1 calc(25% - 26px); min-width: 135px; }
  .features li:first-child, .features li:last-child { margin-right: 0; margin-left: 0; }
  .list_category ul, .gallary_page ul {
    width: 100%; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 24px;
  }
  .list_category li, .list_category li:nth-child(3n+3),
  .gallary_page li, .gallary_page li:nth-child(4n+4) {
    display: block; width: auto; margin: 0;
  }
  .list_category-img img, .gallary_page img { display: block; width: 100%; }
  .list_news_head, .list_news_desc { width: calc(100% - 240px); }

  .main_carusel {
    height: auto; min-height: 310px; padding: 38px 0 28px; background-size: cover;
  }
  .main_carusel .owl-item { text-align: center; }
  .main_carusel .owl-item img { display: block; max-width: 100%; margin-right: auto; margin-left: auto; }
  .owl-prev { left: 8px; }
  .owl-next { right: 8px; }

  .collback_form-left, .collback_form-right { width: calc(50% - 10px); }
  .container_12 > .grid_4.bottom_m { float: left; width: calc(33.333% - 14px) !important; margin-right: 20px; }
  .container_12 > .grid_8.bottom_m { float: left; width: calc(66.667% - 6px) !important; }
  .b-contacts .grid_8 { float: left; width: calc(66.667% - 10px) !important; margin-right: 20px; }
  .b-contacts .grid_4 { float: left; width: calc(33.333% - 10px) !important; }
  .content_text, .b-contacts__text, .breadcrumb { overflow-wrap: anywhere; }
  .content_text table { display: block; max-width: 100%; overflow-x: auto; }
  .main_popup .popup, .thanks_block { width: calc(100% - 48px); max-width: 632px; }
  .floating_widget { right: 20px; bottom: 96px; }
}

@media (max-width: 767px) {
  .container_12 { padding-right: 16px; padding-left: 16px; }
  .header_top .grid_12 { display: block; }
  .header_top-left, .header_top-right { width: 100%; text-align: left; }
  .header_top-left ul, .header_top-right ul { display: flex; flex-wrap: wrap; gap: 7px 18px; }
  .header_top-left li, .header_top-right li, .header_top-right li:first-child {
    display: block; padding-left: 20px; margin: 0;
  }
  .header_top-right { margin-top: 7px; }
  .header__text { padding: 8px 16px; }
  .header__text span { font-size: 13px; }

  .header-img { height: 500px; padding-bottom: 24px; background-position: 45% top; }
  header.two .header-img { height: 440px; }
  .header_logo { padding: 28px 58px 0 0; margin-bottom: 62px; text-align: left; }
  .header_logo a { font-size: 32px; }
  .mobile-menu-toggle { top: 26px; right: 0; }
  .header_menu { top: 82px; max-height: calc(100vh - 280px); }
  .header_slogon-head { font-size: 28px; line-height: 1.15; }
  .header_slogon-text { font-size: 22px; line-height: 1.25; }

  .conteiner-content, .conteiner-content.two { padding-top: 28px; padding-bottom: 34px; }
  h1, .h1 { font-size: 25px; line-height: 1.25; }
  h2, .h2 { font-size: 22px; line-height: 1.3; }
  .name_block span, .name_block h1, .name_block .h1 { padding-right: 52px; }
  .name_block span::before, .name_block h1::before, .name_block .h1::before { right: 5px; }

  .features { min-height: 0; padding: 32px 16px 22px; gap: 26px 12px; }
  .features-item { flex-basis: calc(50% - 6px); min-width: 0; }
  .list_news li { overflow: visible; }
  .news_list_img, .list_news_head, .list_news_desc, .list_news_name, .list_news_date {
    float: none; width: 100%; max-width: none; text-align: left;
  }
  .news_list_img { margin: 0 0 12px; }
  .list_news_date { margin-top: 6px; }

  .container_12 > .grid_4.bottom_m, .container_12 > .grid_8.bottom_m,
  .b-contacts .grid_8, .b-contacts .grid_4 {
    float: none; width: 100% !important; margin-right: 0;
  }
  .collback_form-left, .collback_form-right { float: none; width: 100%; }
  .collback_form input, .collback_form textarea, .main_popup input, .main_popup textarea {
    font-size: 16px;
  }
  .collback_form-button button, .main_popup .popup_button, .thanks_close_button {
    width: 100%; min-height: 46px;
  }
  .maps_two { height: 280px; }

  footer { padding: 32px 0; text-align: center; }
  footer .grid_8, footer .grid_4 { float: none; width: 100%; }
  .footer_right { margin-top: 18px; text-align: center; }
  .pay_block { position: static; margin-top: 22px; text-align: center; }

  .main_popup .popup, .thanks_block {
    width: calc(100% - 32px); padding: 32px 16px 22px;
  }
  .popup_title, .thanks_title { font-size: 24px; }
  .warning { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .floating_widget { right: 14px; bottom: 154px; }
  .widget_soc_link { width: 58px; height: 58px; }
}

@media (max-width: 479px) {
  .header_logo a { font-size: 27px; }
  .header_slogon-head { font-size: 25px; }
  .header_slogon-text { font-size: 19px; }
  .order-button { min-width: 0; width: 100%; max-width: 230px; }
  .list_category ul { grid-template-columns: 1fr; }
  .gallary_page ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .features b { font-size: 13px; }
  .breadcrumb { margin-left: 0; }
  .breadcrumb li { margin-bottom: 5px; }
  .main_carusel { min-height: 290px; }
}
