/* HEADER-STABLE-LAYOUT-2026-06-06-v10
   Адаптивное меню: полное название категории переносится красиво, без горизонтальной прокрутки. */

@media (min-width: 992px) {
  #header {
    position: relative !important;
    z-index: 100000 !important;
    background: #fff !important;
    overflow: visible !important;
  }
/* Скрыть бейдж "Новое" на товарах */
.product-flags li.product-flag.new,
.product-miniature .product-flags li.product-flag.new,
.product-cover .product-flags li.product-flag.new {
  display: none !important;
}
  #wrapper,
  main,
  .page-wrapper {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Верхняя строка: телефоны слева/по центру, корзина справа. */
  #header .header-nav {
    position: relative !important;
    z-index: 100020 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    overflow: visible !important;
  }

  #header .header-nav .container,
  #header .header-nav .container > .row,
  #header .header-nav .hidden-sm-down {
    position: relative !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  #header .header-nav .hidden-sm-down {
    display: block !important;
    width: 100% !important;
  }

  #header .header-nav .col-md-5 {
    position: absolute !important;
    left: 0 !important;
    right: 190px !important;
    top: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: visible !important;
  }

  #header .header-nav .right-nav {
    position: absolute !important;
    right: 0 !important;
    top: 26px !important;
    width: 170px !important;
    max-width: 170px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
    overflow: visible !important;
    z-index: 100080 !important;
    text-align: right !important;
  }

  #header .header-nav #_desktop_user_info,
  #header .header-top #_desktop_user_info {
    display: none !important;
  }

  /* Корзина. Важно: она находится в displayNav2, то есть в header-nav, а не в header-top. */
  #header #_desktop_cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    float: none !important;
    clear: none !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    overflow: visible !important;
    z-index: 100090 !important;
  }

  #header #_desktop_cart .blockcart,
  #header #_desktop_cart .cart-preview {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #24b9d7 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  #header #_desktop_cart .blockcart .header,
  #header #_desktop_cart .cart-preview .header,
  #header #_desktop_cart .blockcart a,
  #header #_desktop_cart .cart-preview a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  #header #_desktop_cart .material-icons {
    display: inline-block !important;
    margin: 0 5px 0 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 36px !important;
    vertical-align: middle !important;
  }

  #header #_desktop_cart .cart-products-count,
  #header #_desktop_cart .hidden-sm-down {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    line-height: 36px !important;
  }

  #header #_desktop_cart .body,
  #header #_desktop_cart .cart-summary,
  #header #_desktop_cart .dropdown-menu {
    display: none !important;
  }

  #header .header-nav #_desktop_contact_link,
  #header .header-nav #contact-link,
  #header .header-nav .contact-link,
  #header .header-nav .contact-link a,
  #header .header-nav .contact-link span,
  #header .header-nav #contact-link a,
  #header .header-nav #contact-link span {
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  /* Блок логотипа, поиска и основного меню. */
  #header .header-top {
    position: relative !important;
    z-index: 100010 !important;
    padding: 10px 0 14px !important;
    margin: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eeeeee !important;
    overflow: visible !important;
  }

  #header .header-top .container,
  #header .header-top .container > .row,
  #header .header-top .header-top-right {
    overflow: visible !important;
  }

  #header .header-top .container > .row {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo search"
      "menu menu" !important;
    align-items: center !important;
    column-gap: 26px !important;
    row-gap: 8px !important;
    margin: 0 !important;
  }

  #header .header-top #_desktop_logo {
    grid-area: logo !important;
    width: 300px !important;
    max-width: 300px !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  #header .header-top .top-logo,
  #header .header-top .custom-logo-link,
  #header .header-top #_desktop_logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 300px !important;
    max-width: 300px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #header .header-top .custom-logo-img,
  #header .header-top #_desktop_logo img {
    display: block !important;
    width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 58px !important;
  }

  #header .header-top .header-top-right {
    display: contents !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    position: static !important;
  }

  #header .header-top .header-top-right > .clearfix {
    display: none !important;
  }

  #search_widget {
    grid-area: search !important;
    justify-self: center !important;
    align-self: center !important;
    width: 360px !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    z-index: 100020 !important;
  }

  #search_widget form {
    margin: 0 !important;
  }

  #_desktop_top_menu {
    grid-area: menu !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 100030 !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    column-gap: 16px !important;
    row-gap: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 2px 0 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 32px !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    display: block !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a:hover,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item:hover {
    color: #24b9d7 !important;
  }

  /* Выпадающие подкатегории: обычный столбик, без внутренней прокрутки. */
  #header .top-menu[data-depth="0"] > li > .sub-menu,
  #header .top-menu[data-depth="0"] > li > .popover.sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .popover.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    display: none !important;
    width: 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08) !important;
    overflow: visible !important;
    z-index: 100200 !important;
  }

  #header .top-menu[data-depth="0"] > li:last-child > .sub-menu,
  #header .top-menu[data-depth="0"] > li:last-child > .popover.sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li:last-child > .sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li:last-child > .popover.sub-menu {
    left: auto !important;
    right: 0 !important;
  }

  #header .top-menu[data-depth="0"] > li:hover > .sub-menu,
  #header .top-menu[data-depth="0"] > li:hover > .popover.sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > .sub-menu,
  #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > .popover.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #header .sub-menu ul,
  #header .sub-menu li,
  #header .sub-menu .top-menu[data-depth="1"],
  #header .sub-menu .top-menu[data-depth="2"],
  #header .top-menu .sub-menu ul[data-depth="1"],
  #header .top-menu .sub-menu ul[data-depth="2"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #header .sub-menu a,
  #header .sub-menu .dropdown-item,
  #header .top-menu .sub-menu a[data-depth="1"],
  #header .top-menu .sub-menu a[data-depth="2"] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 16px !important;
    margin: 0 !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  #header .top-menu .sub-menu a[data-depth="2"] {
    padding-left: 28px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  #header .sub-menu a:hover,
  #header .sub-menu .dropdown-item:hover,
  #header .top-menu .sub-menu a[data-depth="1"]:hover,
  #header .top-menu .sub-menu a[data-depth="2"]:hover {
    color: #24b9d7 !important;
    background: #f7f7f7 !important;
  }

  #header .sub-menu .collapse-icons {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #header .header-top .container > .row {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    column-gap: 16px !important;
  }

  #header .header-top #_desktop_logo,
  #header .header-top .top-logo,
  #header .header-top .custom-logo-link,
  #header .header-top #_desktop_logo a,
  #header .header-top .custom-logo-img,
  #header .header-top #_desktop_logo img {
    width: 260px !important;
    max-width: 260px !important;
  }

  #search_widget {
    width: 330px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] {
    column-gap: 12px !important;
    row-gap: 0 !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    font-size: 11px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #header,
  #header .header-nav,
  #header .header-top {
    background: #fff !important;
    overflow: visible !important;
  }

  #header .header-top .container > .row {
    display: block !important;
    margin: 0 !important;
  }

  #header .header-top #_desktop_logo,
  #header .header-top .top-logo,
  #header .header-top .custom-logo-link,
  #header .header-top #_desktop_logo a {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 auto 10px !important;
  }

  #header .header-top .custom-logo-img,
  #header .header-top #_desktop_logo img {
    width: 280px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #header .header-top .header-top-right,
  #header .header-top .header-top-right .search-widget,
  #header .header-top #search_widget {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 auto !important;
  }

  #search_widget {
    max-width: 360px !important;
    margin: 0 auto 8px !important;
  }

  #_desktop_top_menu {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    clear: both !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    display: block !important;
    padding: 7px 0 !important;
    color: #111 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #header,
  #header .header-nav,
  #header .header-top {
    max-width: 100% !important;
    background: #fff !important;
    overflow-x: hidden !important;
  }

  #header .header-nav .container,
  #header .header-top .container,
  #mobile_top_menu_wrapper,
  #_mobile_top_menu,
  #_mobile_top_menu .top-menu {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .header-nav .container .row,
  .header-top .container > .row {
    display: block !important;
  }

  .header-top #_desktop_logo {
    justify-content: center !important;
    min-height: auto !important;
    margin-bottom: 12px !important;
  }

  .header-top .custom-logo-link {
    justify-content: center !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }

  .header-top .header-top-right,
  .header-top .header-top-right .search-widget,
  .header-top #search_widget {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
  }

  #mobile_top_menu_wrapper .top-menu,
  #mobile_top_menu_wrapper .top-menu li {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    list-style: none !important;
  }

  #mobile_top_menu_wrapper a,
  #mobile_top_menu_wrapper .dropdown-item {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.25 !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }
}

/* MENU-FULL-CATEGORY-NAME-WRAP-2026-06-06
   Полное название пункта «Комплекты измерительных приборов» остаётся в меню.
   Длинные пункты аккуратно переносятся на 2 строки, без горизонтальной прокрутки. */
@media (min-width: 768px) {
  #_desktop_top_menu,
  #_desktop_top_menu .top-menu[data-depth="0"] {
    max-width: 100% !important;
    overflow: visible !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    column-gap: 12px !important;
    row-gap: 5px !important;
    height: auto !important;
    min-height: 34px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li {
    display: flex !important;
    flex: 0 1 auto !important;
    max-width: 210px !important;
    height: auto !important;
    min-height: 34px !important;
    overflow: visible !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    max-width: 210px !important;
    min-height: 34px !important;
    padding: 6px 0 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: auto !important;
  }
}

@media (min-width: 1200px) {
  #_desktop_top_menu .top-menu[data-depth="0"] {
    column-gap: 13px !important;
    row-gap: 4px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    max-width: 195px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #_desktop_top_menu .top-menu[data-depth="0"] {
    column-gap: 9px !important;
    row-gap: 5px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    max-width: 170px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    font-size: 11px !important;
    line-height: 1.12 !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #_desktop_top_menu .top-menu[data-depth="0"] {
    column-gap: 8px !important;
    row-gap: 5px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    max-width: 165px !important;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .dropdown-item {
    font-size: 11px !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 767px) {
  html,
  body,
  #page,
  #wrapper,
  #header,
  #mobile_top_menu_wrapper {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #mobile_top_menu_wrapper a,
  #mobile_top_menu_wrapper .dropdown-item {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.25 !important;
  }
}

/* Убрать плашку "Новое" на товарах */
body .product-flags .product-flag.new,
body .product-flags li.product-flag.new,
body .product-flags li.new,
body .product-miniature .product-flags .product-flag.new,
body .product-miniature .product-flags li.product-flag.new,
body .product-miniature .product-flags li.new,
body .thumbnail-container .product-flags .product-flag.new,
body .thumbnail-container .product-flags li.product-flag.new,
body .thumbnail-container .product-flags li.new,
body .product-flag.new,
body .label-new,
body .new-box {
    display: none !important;
    visibility: hidden !important;
}