.mobile-submenu-toggle { display: none; }
.document-table { max-width: 100%; }
@media (min-width: 681px) and (max-width: 1199px) {
  .content article .document-table table:has(img[src*="otk/gost/"]) { min-width: 660px; table-layout: auto; }
  .content article .document-table table:has(img[src*="otk/gost/"]) td:first-child { width: auto !important; }
}
@media (max-width: 680px) {
  .content article .document-table table:has(img[src*="otk/gost/"]) { min-width: 0; width: 100%; }
  .document-table table:has(img[src*="otk/gost/"]) :is(tbody,tr,td) { display: block; box-sizing: border-box; }
  .document-table table:has(img[src*="otk/gost/"]) tr { margin-bottom: 16px; border: 1px solid #ded2c8; }
  .document-table table:has(img[src*="otk/gost/"]) tr:first-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .content article .document-table table:has(img[src*="otk/gost/"]) td:nth-child(n) {
    width: 100% !important; height: auto; padding: 8px !important; border: 0; overflow-wrap: anywhere;
  }
  .document-table table:has(img[src*="otk/gost/"]) td:first-child { font-weight: bold; }
  .document-table table:has(img[src*="9142-90/"]) td:nth-child(2)::before { content: 'Исполнение '; }
  .document-table table:has(img[src*="otk/gost/"]) img { max-width: 100%; height: auto; }
}
@media (max-width: 1199px) {
  .content-aside .content, .content-aside .aside { float: none; width: auto; min-width: 0; }
  .content-aside .aside { margin: 24px 0; max-width: 540px; }
  .content article .page-header { line-height: 1.2; text-transform: none; font-size: clamp(26px, 4vw, 38px); }
  .document-table { width: 100%; overflow-x: auto; margin-block: 14px; }
  .content article .document-table table {
    float: none; table-layout: auto; max-width: none; min-width: min(100%, 360px); margin: 0;
  }
  .content article .document-table table td { overflow-wrap: normal; }
  .document-table:focus-visible { outline: 2px solid #216fdb; }
  .content article .company-intro, .company-intro tbody, .company-intro tr, .content article .company-intro td {
    display: block; width: auto !important; max-width: 100%; box-sizing: border-box;
  }
  .content article .company-intro img { float: none !important; height: auto; }
  .company-intro td:first-child span { margin: 0 auto 16px !important; }
  .content article iframe, .content .flexslider, .aside form, .aside textarea, .aside input {
    box-sizing: border-box; max-width: 100%;
  }
  .content article .contact-map-link { display: inline-flex !important; align-items: center; min-height: 44px; }
  .content article p, .content article li { overflow-wrap: anywhere; }
  .parent-map div { padding-left: clamp(5px, 2vw, 20px); }
  .wrap-404 img { max-width: 100%; height: auto; }
  .wrap-404 .line1 { font-size: clamp(76px, 16vw, 150px); }
  .wrap-404 .line2 { line-height: 1.3; }
  .reviews-wrap, .reviews-wrap * { box-sizing: border-box; }
  .reviews-wrap input, .reviews-wrap textarea, .reviews-wrap img, .reviews-wrap .comment-list { max-width: 100%; }
  .reviews-wrap { overflow-wrap: anywhere; }
  .calc-page-wrap input, .calc-page-wrap select, .calc-page-wrap textarea { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 1023px) {
  header nav.menu:not(.show) { visibility: hidden; }
  header nav.menu.show { visibility: visible; }
  header .menu .item:has(> .mobile-submenu-toggle) { position: relative; }
  header .menu .item > a.sub_link { padding-right: 48px; }
  header .menu .sub_link .arr { display: none; }
  header .menu .mobile-submenu-toggle {
    display: grid; place-items: center; position: absolute; top: 0; right: 0;
    width: 44px; height: 44px; border: 0; background: white; color: #275ca9; font-size: 22px;
    cursor: pointer;
  }
  header .menu .mobile-submenu-toggle[aria-expanded=true] { transform: rotate(180deg); }
  header .menu .item > .sub_menu:not(.mobile-submenu-open) { display: none !important; }
  header .menu .item > .sub_menu.mobile-submenu-open {
    position: static; display: block !important; visibility: visible !important; opacity: 1 !important;
  }
  header .menu .item > a { display: flex; align-items: center; min-height: 44px; }
  header .menu .scroll { max-height: 100dvh; overscroll-behavior: contain; }
  .wrap .form input, .wrap .form textarea, .calc-page-wrap select { font-size: 16px; }
}
@media (max-width: 767px) {
  .wrap header .info .cont { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; align-items: center; }
  .wrap header .info .col_right { display: contents; }
  .wrap header .logo { grid-area: 1 / 1; justify-self: start; }
  .wrap header .mob_menu_link { grid-area: 1 / 2; position: static; justify-self: end; margin: 0; width: 48px; }
  .wrap header .phone { grid-area: 2 / 1 / 3 / -1; width: auto; margin: 0; padding: 0; text-align: left; background: none; }
  .wrap header .phone a { white-space: nowrap; }
  .wrap header .email { grid-column: 1 / -1; }
  .wrap header .calc_link, .wrap header .callback_link {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: auto;
    width: auto; min-width: 0; margin: 0; padding: 6px 10px; font-size: 13px; line-height: 1.25;
  }
  .wrap header .calc_link { grid-area: 3 / 1; }
  .wrap header .callback_link { grid-area: 3 / 2; }
  .main_slider .owl-carousel .owl-dots { bottom: 4px; display: flex; justify-content: center; }
  .main_slider .owl-carousel .owl-dots .owl-dot {
    display: grid; place-items: center; width: 38px; height: 40px; padding: 0; margin: 0;
    background: transparent; border: 0;
  }
  .main_slider .owl-dots .owl-dot span { display: none; }
  .main_slider .owl-dots .owl-dot::after {
    content: ''; width: 9px; height: 9px; border: 1px solid #245799; border-radius: 50%; background: white;
  }
  .main_slider .owl-dots .owl-dot.active::after { background: #245799; border-color: white; }
  .cats_wall .sub a[href]:not([href=""]) { display: inline-flex; align-items: center; min-height: 44px; }
  .wrap .text_block img { max-width: 100%; height: auto; }
  .wrap .calc-page-wrap form { max-width: 100%; }
  .calc-page-wrap .calc-form .input-group {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 10px 12px; margin: 0 0 14px;
  }
  .calc-page-wrap .input-group > div { width: auto; min-width: 0; margin: 0; }
  .calc-page-wrap .input-group:has(.short) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .calc-page-wrap .input-group > label { grid-column: 1/-1; }
  .calc-page-wrap .input-group :is(input.inputbox,select,textarea) {
    box-sizing: border-box; min-width: 0; width: 100%; margin: 0; min-height: 44px; padding-inline: 8px;
  }
  .content article > div:has(> figure) { float: none !important; max-width: 100%; margin: 12px auto !important; }
  .reviews-wrap #comment-form .flex > div:nth-child(-n+2) { width: 100%; }
  .wrap .form .submit_btn { max-width: 100%; }
  .calc-page-wrap label { white-space: normal; }
}
