.category-mobile-nav, .category-mobile-catalogue, .category-models-link { display: none; }
.catalogue-mobile-title, .img-list li .catalogue-mobile-caption { display: none; }

@media (max-width: 1199px) {
  .wrapper { min-width: 0; }
  .container { box-sizing: border-box; width: 100%; padding-inline: clamp(14px, 4vw, 40px); }
  #header { height: auto; padding: 12px 0; margin-bottom: 18px; }
  #header .container { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  #header .container::after, #footer .container::after, .img-list::after { display: none; }
  #header .logo { float: none; margin: 0; }
  #header .logo img { display: block; width: 72px; height: auto; }
  #header .header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 16px; padding: 0; }
  #header .header-top .phones, #header .header-top .email { width: auto; float: none; padding: 0; background: none; line-height: 1.6; }
  #header .header-top .phones { order: -2; }
  #header .header-top .phones a { white-space: nowrap; }
  #header .header-top .phones span, #header .header-top .email span { display: none; }
  #header .header-top .button-calc, #header .header-top .button-callback {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: 44px; width: auto; padding: 4px 12px; margin: 0; text-indent: 0;
    background: #216fdb; color: white; border: 1px solid #216fdb; border-radius: 8px;
    font-size: 14px; line-height: 1.25; text-align: center; text-transform: none;
  }
  #header .header-top .button-callback { background: white; color: #1459b4; }
  #header .container:has(.category-mobile-nav) .mainmenu { display: none; }
  .category-mobile-nav, .category-mobile-catalogue { display: block; }
  .catalogue-mobile-title, .img-list li .catalogue-mobile-caption { display: block; }
  .content article { overflow-wrap: break-word; }
  .content article img { max-width: 100%; }
  .content article > p img, .content article > img { height: auto; }
  .content article img[src=""], .content .category-top-links-wrap:not(:has(a)),
  .content article .img-list:not(:has(li)) { display: none; }
  .content .category-top-links-wrap {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 4px;
  }
  .content .category-top-links-item { width: auto; padding: 0; }
  .content .category-top-links-item a, article .category-title a, article .subtitle a {
    box-sizing: border-box; display: flex; align-items: center; min-height: 44px;
    padding: 6px 10px; line-height: 1.35;
  }
  article .section-header { margin: 18px 0 8px; display: flex; align-items: center; padding: 5px 10px; gap: 8px; }
  article .section-header img { max-width: 60px; }
  article .section-header a { display: flex; align-items: center; min-height: 44px; text-align: left; line-height: 1.35; }
  article div.half-width, article div.half-width.alignright { display: block; width: 100%; margin: 0; }
  article div.half-width .img-list { overflow: visible; margin: 8px 0 20px; }
  article div.half-width .img-list li:nth-child(n) { width: auto; margin: 0; }
  article div.half-width .subtitle, article .category-title { margin: 8px 0; }
  article table:has(img) { width: 100% !important; max-width: 100%; table-layout: fixed; float: none; }
  article table:has(img) td { padding: 6px !important; width: auto !important; overflow-wrap: anywhere; }
  article table:has(img) td:first-child { width: 65% !important; }
  article table:has(img) img { object-fit: contain; height: auto !important; }
  .category-mobile-nav { grid-column: 1 / -1; }
  .category-mobile-nav summary, .category-mobile-catalogue > summary {
    cursor: pointer; box-sizing: border-box; min-height: 44px; padding: 12px 14px;
    background: #fff; border: 1px solid #ded2c8; border-radius: 6px;
    color: #234463; font-size: 16px; font-weight: 700; line-height: 1.25;
  }
  .category-mobile-nav ul { padding-inline-start: 10px; }
  .category-mobile-nav li { border-bottom: 1px solid #e5e5e5; }
  .category-mobile-nav li summary, .category-mobile-nav li a {
    display: list-item; padding: 12px 8px; border: 0; line-height: 1.35; font-size: 15px;
  }
  .category-mobile-nav li a { display: block; text-decoration: none; }
  .content-sidebar .content, .sidebar { width: 100%; float: none; min-width: 0; }
  .sidebar .widget-sidenav a { line-height: 1.5; }
  .sidebar { margin-bottom: 16px; }
  .B_crumbBox { line-height: 1.5; margin: 0 0 12px; }
  article h1, article h2 { text-transform: none; line-height: 1.15; margin: 16px 0; }
  article h1 { font-size: clamp(26px, 4.5vw, 38px); }
  article h2 { font-size: clamp(20px, 3vw, 28px); }
  .category-models-link { display: inline-block; padding: 10px 0; font-weight: 700; line-height: 24px; }
  article p, article li { font-size: 16px; line-height: 1.55; text-align: left; }
  .img-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: 18px 12px; margin: 22px 0; }
  .img-list li:nth-child(n) { display: flex; flex-direction: column; float: none; clear: none; width: auto; min-width: 0; margin: 0; }
  .img-list li img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; box-sizing: border-box; background: #fff; }
  .img-list li .img-caption { padding: 8px 0; line-height: 1.4; }
  .img-list .blue-zak { align-self: center; box-sizing: border-box; margin: auto 0 0; min-height: 44px; padding: 10px 18px; }
  #footer { padding: 24px 0; }
  #footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 20px; }
  #footer .container > div { float: none; width: auto; min-width: 0; }
  #footer .navs { columns: auto; }
  .fancybox-inner .modal-section, .calc-form { box-sizing: border-box; width: min(425px, calc(100vw - 76px)); max-width: 100%; }
  .calc-form label { display: block; width: auto; }
  .calc-form select, .calc-form .inputbox, .calc-form textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
  .calc-form .inputbox.short { width: 30%; }
  .modal-section form input, .modal-section form textarea, .modal-section form select { max-width: 100%; font-size: 16px; }
  .modal-section form .button { max-width: 100%; }
}

@media (max-width: 600px) {
  #header .container { grid-template-columns: 1fr auto; gap: 8px 12px; }
  #header .logo { grid-column: 1; grid-row: 1; }
  #header .logo img { width: 58px; }
  .category-mobile-nav { grid-column: 2; grid-row: 1; }
  .category-mobile-nav:has(> details[open]) { grid-column: 1 / -1; grid-row: 2; }
  #header .header-top { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #header .header-top .phones, #header .header-top .email { grid-column: 1 / -1; text-align: left; }
  #header .header-top .email { order: -1; }
}
