/* Preserve the site's initial layout before JS and image downloads. */
header .logo img, footer .footer-logo img {height:auto;max-width:100%}
/* Dropdown controls share the menu link appearance, not the burger button's. */
#nav-container button.item-catalog {
 border:0;border-radius:0;background:transparent;color:#222;
 font:inherit;font-size:16px;font-weight:500;text-transform:none;text-align:left;
 cursor:pointer;padding:10px;margin-left:-10px;width:calc(100% + 10px);
 display:flex;align-items:center;justify-content:space-between;gap:16px;
 text-wrap:wrap;opacity:1;
}
#nav-container button.item-catalog.dropdown::after {content:">";flex-shrink:0}
#nav-container button.item-catalog:hover,
#nav-container button.item-catalog.active {background-color:rgba(42,171,238,.24)}
#nav-container button.item-catalog:focus-visible {outline:2px solid #075ba2;outline-offset:-2px}
.ps-subcategories-shell:not(.is-expanded) .ps-subcategory:nth-child(n+6) {display:none}
.ps-subcategories-toggle.ps-subcategories-toggle--few {display:none}
@media(max-width:820px){
 .ps-subcategories-shell:not(.is-expanded) .ps-subcategory:nth-child(n+4){display:none}
 .ps-subcategories-toggle.ps-subcategories-toggle--few{display:flex}
}

header .header .logo img{display:block;width:400px;aspect-ratio:400/75;object-fit:contain}
@media(max-width:1080px){header .header .logo img{width:220px;height:41.25px}}
.our-qualities-item img{aspect-ratio:1/1;object-fit:contain}
.ps-chat-launcher{position:fixed;right:20px;bottom:20px;z-index:9999;border:0;border-radius:24px;background:#075ba2;color:white;padding:13px 20px;font:600 14px Onest,sans-serif;box-shadow:0 3px 16px #0002;cursor:pointer;min-height:44px}
.ps-chat-launcher:focus-visible{outline:3px solid #ff9b53;outline-offset:3px}
.ps-chat-launcher[hidden]{display:none}
@media(max-width:600px){.ps-chat-launcher{right:12px;bottom:12px;padding:11px 16px}}

/* Desktop brand layout; the existing mobile/tablet scroller is unchanged. */
@media (min-width: 1081px) {
  #catalog-page .ps-brand-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding-left: 84px;
    overflow: visible;
  }

  #catalog-page .ps-brand-strip__label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  #catalog-page .ps-brand {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  #catalog-page .ps-brand img {
    max-width: min(88px, 100%);
  }

  /* HTML image dimensions must not stretch logos when their width shrinks. */
  #nav-container #step_tree .brands .brands-container {
    height: 80px;
  }

  #nav-container #step_tree .brands .brands-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  #nav-container #step_tree .brands .brands-container img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
  }
}
