/* Штатная шапка Aspro в границах .wrap новой главной: 1120 / 22 px. */
@media (min-width: 992px) {
  #header .maxwidth-theme,
  #headerfixed > .maxwidth-theme {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 22px;
    padding-left: 22px;
    box-sizing: border-box;
  }
  #header .header__top-inner > .flex1 { min-width: 0; }
  #header .header__top-inner { gap: 20px; }
  #header .header__top-inner,
  #headerfixed .header__top-inner { width: 100%; margin-left: 0; margin-right: 0; }
  #header .header__top-inner > .header__top-item { margin-left: 0; margin-right: 0; }
  #header .header__top-inner .line-block--40,
  #headerfixed .header__top-inner .line-block--40 { gap: 12px; margin-left: 0; margin-right: 0; }
  #header .header__top-inner .line-block--40 > .line-block__item,
  #headerfixed .header__top-inner .line-block--40 > .line-block__item { padding-left: 0; padding-right: 0; }
  #header .right-icons .basket-link { padding-left: 10px; padding-right: 10px; }
  #header .logo { max-width: 180px; }
}
#header .am-header-nav,
#headerfixed .am-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.am-header-layout li { position: relative; margin: 0; padding: 0; list-style: none; }
.am-header-layout li::before { display: none; }
.am-header-nav > .am-header-link > a,
.am-header-more-toggle {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-family: inherit;
  /* Те же параметры, что у штатного меню Aspro до сужения шапки. */
  font-size: .867em;
  font-weight: 700;
  line-height: 1.33em;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.am-header-more-toggle { gap: 8px; }
.am-header-more-toggle > span {
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.am-header-nav a:hover,
.am-header-nav .is-active > a,
.am-header-more-toggle:hover { color: #9b7900; }
.am-header-layout a:focus-visible,
.am-header-more-toggle:focus-visible { outline: 2px solid #9b7900; outline-offset: 4px; }
.am-header-layout .am-header-extra,
.am-header-layout .am-header-children {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 100%;
  right: 0;
  min-width: 230px;
  max-width: min(320px, calc(100vw - 44px));
  margin: 0;
  padding: 8px 0;
  border: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  list-style: none;
}
.am-header-more-toggle[aria-expanded="true"] + .am-header-extra,
.am-header-link:hover > .am-header-children,
.am-header-link:focus-within > .am-header-children { display: block; }
.am-header-extra a,
.am-header-children a { display: block; padding: 12px 20px; color: #333; font-size: 14px; line-height: 1.4; white-space: normal; }
.am-header-extra a:hover,
.am-header-children a:hover { background: #fff9da; }
.am-header-extra .am-header-children,
.am-header-children .am-header-children { position: static; display: block; min-width: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 0 12px; }
@media (min-width: 992px) and (max-width: 1099px) {
  #header .header__top-inner { gap: 14px; }
  #header .logo { max-width: 160px; }
  #header .am-header-nav { gap: 10px; }
}
