@media (max-width: 767.98px) {
  #header.pc-category-menu-ready .header-top .container-logo {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    grid-template-rows: auto;
    gap: 0 10px;
    padding: 4px 12px !important;
  }
  #header.pc-category-menu-ready .container-logo > a {
    grid-area: 1 / 1;
    width: 60px;
    height: 60px;
  }
  #header.pc-category-menu-ready .container-logo .header-top__block--search {
    grid-area: 1 / 3;
    width: 44px;
    height: 44px;
  }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search {
    width: 44px; height: 44px; padding: 0; gap: 0;
    justify-content: center; border: 0; background: transparent;
  }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search .material-icons { font-size: 23px; }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search > span:not(.material-icons) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  #header .pc-category-opener {
    grid-area: 1 / 2; justify-self: start; display: inline-flex; align-items: center;
    gap: 7px; min-height: 44px; padding: 0 8px; border: 0; background: transparent;
    font: inherit; font-weight: 600; color: #48365f; cursor: pointer;
  }
  #header .pc-category-opener .material-icons { font-size: 21px; }
  #header.pc-category-menu-ready .container-logo .pc-phone-categories { display: none; }
  #header.pc-category-menu-open .container-logo .pc-phone-categories {
    display: grid; grid-area: 2 / 1 / 3 / -1; gap: 0 12px; padding: 3px 0 8px;
  }
  #header.pc-category-menu-open .container-logo .pc-phone-categories a { min-height: 44px; }
  #index .pc-category-gallery { margin: 16px 0 22px; text-align: start; }
  #index .pc-category-gallery h2 {
    margin: 0 0 10px; color: #392b48; font-size: 1.18rem; line-height: 1.3;
  }
  #index .pc-category-gallery ul {
    margin: 0; padding: 0; list-style: none; border: 1px solid #e2daeb;
    border-radius: 12px; background: #fff; overflow: hidden;
  }
  #index .pc-category-gallery li + li { border-top: 1px solid #eee9f2; }
  #index .pc-category-gallery a {
    display: flex; align-items: center; gap: 14px; min-height: 78px;
    padding: 7px 14px 7px 8px; color: #392b48; text-decoration: none;
    font-size: 1rem; line-height: 1.3; font-weight: 600;
  }
  #index .pc-category-gallery a:is(:hover,:focus-visible) { background: #f6f3fa; }
  #index .pc-category-gallery a:focus-visible { outline: 2px solid #624d91; outline-offset: -3px; }
  #index .pc-category-gallery img {
    display: block; width: 78px; height: 65px; flex: 0 0 78px; object-fit: cover; border-radius: 7px;
  }
  #index .pc-category-gallery a::after {
    content: ''; display: block; width: 8px; height: 8px; flex: 0 0 8px;
    margin-inline-start: auto; margin-inline-end: 3px; border: solid #77668c;
    border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
  }
}

@media (max-width: 767.98px) {
  #header.pc-category-menu-ready .header-top {
    background-color: #f5f1f9; /* Tło sekcji „Bądź na bieżąco”. */
  }

  #header.pc-category-menu-ready .header-top .container-logo {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    column-gap: 6px;
  }
  #header.pc-category-menu-ready .container-logo .header-top__block--search {
    width: auto;
  }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search {
    width: auto;
    min-width: 78px;
    height: 44px;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid #cabed8;
    border-radius: 24px;
    background: #fff;
    color: #4e396e;
  }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search .material-icons {
    font-size: 19px;
  }
  #header.pc-category-menu-ready .container-logo .puder-mobile-search > span:not(.material-icons) {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
  }

  #header .header-nav .row:has(> .puder-language-selector) {
    justify-content: flex-end;
  }
  #header .header-nav .row:has(> .puder-language-selector) > #_desktop_contact_link-no-hide {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
  }

  #header .header-nav .puder-language-menu > summary {
    --flag-shape: polygon(0 17%, 13% 8%, 25% 5%, 37% 7%, 60% 18%, 74% 20%, 87% 16%, 100% 8%, 100% 83%, 87% 92%, 74% 96%, 60% 94%, 37% 83%, 25% 81%, 13% 84%, 0 93%);
    display: grid;
    grid-template-columns: 26px auto;
    align-content: center;
    column-gap: 3px;
  }
  #header .header-nav .puder-language-menu > summary img,
  #header .header-nav .puder-language-menu > summary::before {
    grid-area: 1 / 1;
    width: 26px !important;
    height: 19px !important;
    clip-path: var(--flag-shape);
  }
  #header .header-nav .puder-language-menu > summary img {
    object-fit: fill;
    border-radius: 0;
    box-shadow: none;
  }
  #header .header-nav .puder-language-menu > summary::before {
    content: "";
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, #25143618, #fff3 25%, transparent 47%, #25143633 68%, #fff2);
  }
  #header .header-nav .puder-language-menu > summary::after {
    grid-area: 1 / 2;
  }
  #header .header-nav .puder-currency-menu summary :is(.puder-currency-sign, .puder-currency-code:only-child) {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 17px;
    padding: 0 4px;
    border: 1px solid #ffffffe0;
    border-radius: 2px;
    background: radial-gradient(circle at 0 0, transparent 2px, #fff9 2.3px, #fff9 3px, transparent 3.4px),
                radial-gradient(circle at 100% 100%, transparent 2px, #fff9 2.3px, #fff9 3px, transparent 3.4px);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
  }
}

@media (max-width: 359.98px) {
  #header.pc-category-menu-ready .header-top .container-logo {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    column-gap: 4px;
    padding-inline: 8px !important;
  }
  #header.pc-category-menu-ready .container-logo > a {
    width: 54px;
  }
  #header.pc-category-menu-ready .container-logo .pc-category-opener {
    padding-inline: 4px;
  }
}
