@media (max-width: 760px) {
  header :is(.lighting-menu-panel, .aj-products-menu__panel, .hm-categories,
             .site-mega-panel, .fishing-main-nav, .catalog-menu-panel,
             .catalog-nav-panel, .nav-drop .nav-panel, .category-dropdown,
             .catalog-menu .catalog-panel, #site-menu-panel) {
    --menu-divider: rgba(57, 57, 49, .18);
    --menu-row: rgba(115, 123, 108, .08);
    overscroll-behavior-y: contain;
  }

  header :is(.lighting-menu-panel, .aj-products-menu__panel, .hm-panel,
             .site-mega-panel, .catalog-menu-panel, .catalog-nav-panel,
             .nav-drop .nav-panel, .category-dropdown, .catalog-menu .catalog-panel) a {
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  header :is(.lighting-menu-panel, .aj-products-menu__panel, .hm-panel,
             .site-mega-panel, .fishing-main-nav, .catalog-menu-panel,
             .catalog-nav-panel, .nav-drop .nav-panel, .category-dropdown,
             .catalog-menu .catalog-panel, #site-menu-panel) a:focus-visible {
    outline-offset: -3px;
  }

  header .lighting-menu[open] .lighting-menu-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(34rem, calc(100vw - 2rem));
    gap: .55rem;
    padding: .65rem;
  }

  header .lighting-menu-panel .lighting-menu-group {
    min-width: 0;
    padding: 0;
  }

  header .lighting-menu-group > strong {
    display: block;
    padding: .36rem .55rem;
    border-radius: .4rem;
    background: var(--menu-row);
    line-height: 1.3;
  }

  header .lighting-menu-panel a {
    display: flex;
    align-items: center;
    padding: .35rem .55rem;
    line-height: 1.28;
  }

  header .lighting-menu-group > a + a { border-top: 1px solid var(--menu-divider); }

  header.home-review-compact-header:has(#homepage-navigation) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
  }

  header.home-review-compact-header #homepage-navigation.home-review-menu-open {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-height: 58vh;
    max-height: 58dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: .32rem;
    padding: .4rem .1rem;
  }

  header.home-review-compact-header #homepage-navigation > a,
  header.home-review-compact-header #homepage-navigation details > summary {
    min-height: 44px;
    padding: .45rem .7rem;
    border: 1px solid rgba(57, 57, 49, .18);
    border-radius: .48rem;
    text-align: start;
    justify-content: space-between;
  }

  header.home-review-compact-header .aj-products-menu[open] > .aj-products-menu__panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    gap: .18rem;
    margin: .25rem 0;
    transform: none;
  }

  header.home-review-compact-header #homepage-navigation .aj-products-menu__panel > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .3rem .6rem;
  }

  header.home-review-compact-header .aj-products-menu__panel a + a {
    border-top: 1px solid var(--menu-divider);
  }

  header.hm-header .hm-mobile-toggle { min-height: 44px; }

  header.hm-header #hm-categories.hm-mobile-open {
    max-height: 62vh;
    max-height: 62dvh;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  header.hm-header .hm-panel :is(.hm-subcategory, .hm-panel-heading > a, a.hm-family-title) {
    border-radius: .42rem;
    background: var(--menu-row);
    padding-block: .35rem;
  }

  header.hm-header .hm-panel-heading > a {
    display: flex;
    align-items: center;
    padding-inline: .5rem;
  }

  header.hm-header .hm-more > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  header.hm-header .hm-subcategory > span { min-width: 0; }

  header.site-menu-ready :is(.site-menu-toggle, .site-menu-group) { min-height: 44px; }

  header.site-menu-ready #podkategorie-menu:not([hidden]) {
    max-height: 62vh;
    max-height: 62dvh;
    overflow-y: auto;
  }

  header.site-menu-ready #podkategorie-menu a {
    align-content: center;
    line-height: 1.3;
  }

  header.fishing-header-v2 .fishing-menu-section-links a,
  header.fishing-header-v2 .fishing-portal-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }

  header.fishing-header-v2 .fishing-panel-actions :is(a, button) { min-height: 44px; }

  header .nav-drop:has(> .nav-panel .category-grid) .category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .32rem;
  }

  header .nav-drop .category-card {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: .5rem;
    min-height: 48px;
    padding: .3rem .45rem;
    align-items: center;
  }

  header .nav-drop .category-card img { width: 2.5rem; height: 2.5rem; object-fit: cover; }
  header .nav-drop .category-card small { display: none; }
  header .nav-drop .nav-panel > a.more { display: flex; align-items: center; }

  header #catalog-menu-panel .catalog-menu-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .38rem;
  }

  header #catalog-menu-panel .catalog-menu-grid > a {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    padding: .3rem .5rem;
    min-height: 48px;
    line-height: 1.25;
  }

  header #catalog-menu-panel .catalog-menu-grid img {
    width: 2.65rem;
    height: 2.4rem;
    object-fit: cover;
  }

  header #catalog-menu-panel > .catalog-menu-all { display: flex; align-items: center; }

  header #nav-panel-katalog .catalog-nav-group ul { gap: .2rem; }

  header #nav-panel-katalog .catalog-nav-group li > a {
    display: flex;
    align-items: center;
    line-height: 1.28;
    padding: .35rem .5rem;
    border: 1px solid var(--menu-divider);
    border-radius: .43rem;
    background: var(--menu-row);
  }

  header #nav-panel-katalog .catalog-nav-department {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: .5rem;
  }

  header #nav-panel-katalog .catalog-nav-department img {
    width: 3.2rem;
    height: 2.6rem;
    object-fit: cover;
  }

  header #site-menu-panel .menu-groups h2 { line-height: 1.3; }
  header #site-menu-panel .menu-groups a { overflow-wrap: anywhere; }
  header #site-menu-panel .menu-groups section { min-width: 0; }

  header .category-menu:has(> #category-dropdown),
  header .catalog-menu:has(> .catalog-panel) { position: static; }

  header:has(#category-dropdown, .catalog-menu > .catalog-panel) nav { position: relative; }

  header :is(#category-dropdown, .catalog-menu > .catalog-panel) {
    inset-inline: 0;
    width: 100%;
    min-width: 0;
    max-height: 56vh;
    max-height: 56dvh;
    overflow: auto;
    box-sizing: border-box;
  }

  header #category-dropdown .category-menu-grid,
  header .catalog-menu .catalog-panel :is(.catalog-menu-grid, .spirit-secondary-grid) {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  header #category-dropdown .category-menu-link {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: .45rem;
    align-items: center;
    min-height: 48px;
    padding: .32rem .45rem;
  }

  header #category-dropdown .category-menu-link img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
  }

  header #category-dropdown .category-menu-description { display: none; }
  header #category-dropdown .category-menu-all { display: flex; align-items: center; }

  header .catalog-menu .catalog-panel :is(.catalog-group-title, ul a) {
    display: flex;
    align-items: center;
    gap: .25rem;
    min-height: 44px;
    line-height: 1.28;
  }

  header .catalog-menu .catalog-close { min-width: 44px; min-height: 44px; }
}

@media (max-width: 360px) {
  header .lighting-menu[open] .lighting-menu-panel,
  header #nav-panel-katalog .catalog-nav-group ul {
    grid-template-columns: minmax(0, 1fr);
  }

  header #site-menu-panel :is(.menu-groups h2, .menu-groups li > a) {
    padding-block: .38rem;
  }
}
