/* Equal side tracks keep the logo centred independently of action counts. */
@media (max-width: 1024px) {
  #header.header .header_bot, #header.header .hb_content.fixed { height: 64px; }
  #header .hb_content-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 160px; align-items: center; min-height: 64px; margin: 0; }
  #header #open_menu { position: static; grid-column: 1; grid-row: 1; width: 56px; max-width: none; height: 64px; padding: 0; }
  #header #open_menu > .catalog_link { display: flex; align-items: center; justify-content: center; width: 56px; height: 64px; padding: 0; }
  #header .hb_content-row > .logo_box { position: static; grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; height: 64px; padding: 8px 0; margin: 0; text-align: center; }
  #header .hb_content-row > .logo_box .logo_link { display: flex; align-items: center; justify-content: center; max-width: 100%; }
  #header .hb_content-row > .logo_box img { display: block; width: auto; height: auto; max-width: 180px; max-height: 42px; margin: 0 auto; }
  #header .top_icon-box-mobile { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; float: none; gap: 4px; height: 64px; padding: 0 8px 0 0; }
  #header .top_icon-box-mobile .top_icon, #header .top_icon-box-mobile .basket_top { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; }
  #header .top_icon-box-mobile .top_icon a, #header .top_icon-box-mobile .basket_top .icon, #header .top_icon-box-mobile .top_icon span.icon { width: 44px; height: 44px; line-height: 42px; margin: 0; }
  #header .top_icon-box-mobile .top_icon .counter, #header .top_icon-box-mobile .basket_top .counter { top: -2px; left: auto; right: -2px; }
}
@media (max-width: 575.98px) {
  #header.header .header_bot, #header.header .hb_content.fixed { height: 116px; }
  #header .hb_content-row { grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: 64px 52px; }
  #header .top_icon-box-mobile { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 18px; height: 52px; padding: 0 8px; border-top: 1px solid #292929; }
  #header .hb_content-row > .logo_box img { max-width: min(180px, 100%); max-height: 42px; }
}
