.pt-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
	box-shadow: 0 12px 35px rgba(27, 45, 66, .08);
}

.pt-header__inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.pt-header__left a {
    margin-right: 12px;
    font-size: 22px;
    color: #1b2d42;
    transition: opacity .2s ease;
}
.pt-search-open i {
    pointer-events: none;
}
.pt-header__left a:hover {
    opacity: .6;
}

.pt-header__logo a {
    display: block;
}

.pt-header__logo img {
    width: 300px;
    height: auto;
}

.pt-header__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Styl dla przełącznika języka WPML w prawym panelu na desktopie */
.pt-header__lang--desktop .custom-language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-header__lang--desktop .custom-language-switcher li a {
    display: flex;
    align-items: center;
    transition: opacity .2s ease;
}

.pt-header__lang--desktop .custom-language-switcher li a:hover {
    opacity: .7;
}

.pt-header__lang--desktop .custom-language-switcher img {
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pt-header__cta {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 8px 20px;
    background: #1b2d42;
    color: #ffffff;
    border-radius: 22px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.16, 1, .3, 1);
}
.pt-mobile-cta {
font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  padding: 12px 20px;
  background: #1b2d42;
  color: #ffffff;
  border-radius: 22px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(.16, 1, .3, 1);
  margin: 0 auto 20px auto;
}

.pt-header__cta:hover {
    background: #101d2a;
    color: #ffffff;
    transform: translateY(-2px);
}

.pt-search-open {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.pt-search-open i {
    font-size: 22px;
    color: #1b2d42;
    transition: opacity .2s ease, transform .2s ease;
}

.pt-search-open:hover i {
    opacity: .7;
    transform: translateY(-1px);
}

.pt-search-open:focus-visible {
    outline: 2px solid rgba(27, 45, 66, 0.3);
    outline-offset: 4px;
}

.pt-header__nav {
    margin: 20px 0;
}

.pt-menu {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

.pt-menu > li > a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.01em !important;
    font-weight: 500 !important;
    color: #1b2d42;
    text-decoration: none;
    padding: 8px 0;
    transition: opacity .2s ease;
}

.pt-menu > li > a:hover {
    opacity: .65;
}

.pt-mobile-menu {
    display: none;
}

.pt-mobile-menu.is-active {
    display: block;
}

.pt-menu a[aria-current="page"],
.pt-mobile-menu a[aria-current="page"] {
    font-weight: 700 !important;
}

.pt-search-form {
    margin-bottom: 20px;    
}

/* ==========================================================================
   POPRAWIONE OKIENKO WYSZUKIWANIA (BIAŁE, ZWARTE, ESTETYCZNE ODSTĘPY, WYŚRODKOWANE)
   ========================================================================== */

.pt-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 35, 68, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.pt-search-overlay *, 
.pt-search-overlay *::before, 
.pt-search-overlay *::after {
    box-sizing: border-box;
}

.pt-search-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pt-search-inner {
    max-width: 900px;
    width: 100%;
    margin: auto;
    padding: 36px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(13, 35, 68, 0.25);
    position: relative;
    transform: translateY(15px);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.pt-search-overlay.is-active .pt-search-inner {
    transform: translateY(0);
}

.pt-search-close,
.pt-mobile-menu__close {
    position: absolute;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    color: #1b2d42;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.pt-search-close {
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid rgba(27, 45, 66, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all .2s ease;
    z-index: 10;
}

.pt-mobile-menu__close {
    top: 0;
    right: 0;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.pt-search-close:hover {
    background: #1b2d42;
    color: #ffffff;
    transform: scale(0.95);
}

.pt-mobile-menu__close:hover {
    opacity: .6;
    transform: scale(.95);
}

.pt-search-close:focus-visible,
.pt-mobile-menu__close:focus-visible {
    outline: 2px solid rgba(27, 45, 66, 0.3);
    outline-offset: 4px;
}

.pt-mobile-menu .pt-mm-view {
    z-index: 1000;
}

.pt-search-title {
    font-family: 'Lora', serif !important;
    font-weight: 600 !important;
    font-size: 32px;
    margin-bottom: 16px;
    color: #1b2d42;
    padding-right: 50px;
}

.pt-search-input {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    border: 2px solid rgba(27, 45, 66, 0.15);
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px 18px;
    color: #1b2d42;
    outline: none;
    transition: all .2s ease;
}

.pt-search-input:focus {
    border-color: #1b2d42;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(27, 45, 66, 0.08);
}

/* Zmniejszone odstępy między sekcjami */
.pt-search-section {
    margin-bottom: 20px;
}

.pt-search-section:last-child {
    margin-bottom: 0;
}

.pt-search-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ==========================================================================
   NOWY WYGLĄD: SIATKA KAFLI DLA WYSZUKIWAŃ I POLECANYCH (ZAMIAST PASÓW)
   ========================================================================== */

.pt-search-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Układ 3 kafelków w rzędzie */
    gap: 10px;
}

.pt-search-links a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #1b2d42;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(27, 45, 66, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: all .2s ease;
}

.pt-search-links a::after {
    content: "→";
    font-size: 12px;
    color: #64748b;
    opacity: 0;
    transform: translateX(-4px);
    transition: all .2s ease;
}

.pt-search-links a:hover {
    background: #ffffff;
    border-color: #1b2d42;
    color: #101d2a;
    box-shadow: 0 4px 12px rgba(27, 45, 66, 0.06);
    transform: translateY(-2px);
}

.pt-search-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 993px) {
    .pt-header__burger,
    .pt-mobile-menu {
        display: none;
    }

    .pt-menu > li.menu-item-has-children > a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .pt-menu > li.menu-item-has-children > a::after {
        content: "▾";
        font-size: 16px;
        line-height: 1;
        opacity: .6;
        transform-origin: center;
        transition: transform .2s ease, opacity .2s ease;
    }

    .pt-menu > li.menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
        opacity: .85;
    }

    .pt-menu > li.pt-mega {
        position: relative;
    }

    .pt-menu > li.pt-mega > ul.sub-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(16px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        min-width: 960px;
        padding: 36px 44px;
        background: #ffffff;
        border: 1px solid #eef0f3;
        border-radius: 12px;
        box-shadow: 0 18px 40px rgba(27, 45, 66, 0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
        z-index: 1000;
    }

    .pt-menu > li.pt-mega:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: 35%;
        background-image: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.7)), url('https://piotrturkowski.pl/wp-content/uploads/2024/05/piotr-turkowski-top.webp');
    }

    .pt-menu > li.pt-mega > ul.sub-menu > li.pt-col-left {
        grid-column: 1;
    }

    .pt-menu > li.pt-mega > ul.sub-menu > li.pt-col-right {
        grid-column: 2;
    }

    .pt-menu > li.pt-mega > ul.sub-menu > li.pt-col-left > a,
    .pt-menu > li.pt-mega > ul.sub-menu > li.pt-col-right > a {
        display: none;
    }

    .pt-menu > li.pt-mega ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu-separator {
        margin-bottom: 28px;
    }

    .menu-separator > span.pt-menu-separator {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(27, 45, 66, 0.55);
        margin-bottom: 14px;
        position: relative;
    }

    .menu-separator > span.pt-menu-separator::after {
        content: "";
        display: block;
        height: 1px;
        background: rgba(27, 45, 66, 0.12);
        margin-top: 10px;
    }

    .menu-separator > ul.sub-menu > li a {
        display: block;
        padding: 6px 0;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        letter-spacing: 0.01em !important;
        font-weight: 400 !important;
        color: #1b2d42;
        text-decoration: none;
        transition: opacity .2s ease;
    }

    .menu-separator > ul.sub-menu > li a:hover {
        opacity: .65;
    }
}

@media (max-width: 992px) {
    .pt-header__nav,
    .pt-header__left,
    .pt-header__cta,
    .pt-header__lang--desktop {
        display: none;
    }

    .menu-separator {
        margin-bottom: 4px;
    }

    .menu-separator > span.pt-menu-separator {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-size: 11px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(27, 45, 66, 0.55);
        position: relative;
        margin-top: 10px;
    }

    .menu-separator > span.pt-menu-separator::after {
        content: "";
        display: block;
        height: 1px;
        background: rgba(27, 45, 66, 0.12);
        margin-top: 6px;
    }

    .pt-header__logo img {
        width: 150px;
    }

    .pt-mobile-menu {
        display: block;
    }

    .pt-menu-separator {
        padding: 0;
    }

    .pt-menu-separator::after {
        margin-bottom: 0;
    }

    .pt-header__burger {
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        font-size: 22px;
        line-height: 1;
        font-weight: 300;
        color: #1b2d42;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity .2s ease, transform .2s ease;
    }

    .pt-header__burger:hover {
        opacity: .7;
        transform: translateY(-1px);
    }

    .pt-header__burger:focus-visible {
        outline: 2px solid rgba(27, 45, 66, 0.3);
        outline-offset: 4px;
    }

    .pt-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 998;
        padding: 10px 15px;
        transition: right .35s cubic-bezier(.4,0,.2,1);
    }

    .pt-mobile-menu__inner {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .pt-mobile-menu.open {
        right: 0;
    }

    .pt-mobile-menu__list {
        list-style: none;
        margin: 20px 0;
        padding: 0;
    }

    .pt-mobile-menu__list li {
        padding: 16px 0;
        border-bottom: 1px solid #f2f4f7;
    }

    .pt-mobile-menu__list > li > a {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 18px !important;
        line-height: 1.5 !important;
        letter-spacing: 0.01em !important;
        font-weight: 400 !important;
        color: #1b2d42;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .pt-mobile-menu__list > li > a::before {
        display: none !important;
    }

    .pt-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(13, 23, 34, 0.45);
        z-index: 997;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease;
    }

    .pt-mobile-overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .pt-mm-back {
        position: absolute;
        top: 5px;
        left: 20px;
        z-index: 2000;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 18px;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        line-height: 1;
        font-weight: 500;
        background: transparent;
        border: 1px solid rgba(27, 45, 66, 0.25);
        color: #1b2d42;
        cursor: pointer;
        transition: background .2s ease, opacity .2s ease, transform .2s ease;
    }

    .pt-mm-back:hover {
        background: rgba(27, 45, 66, 0.05);
        opacity: .85;
        transform: translateX(-1px);
    }

    .pt-mm-back:focus-visible {
        outline: 2px solid rgba(27, 45, 66, 0.3);
        outline-offset: 4px;
    }

    .pt-mm-view {
        position: absolute;
        inset: 0;
        padding: 50px 15px 0 15px;
        background: #ffffff;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
    }

    .pt-mm-view.is-active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .pt-mobile-menu__footer {
        position: absolute;
        bottom: 0;
        z-index: 99999;
        background: #ffffff;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .pt-mobile-menu__footer.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .pt-mm-submenu {
        padding-bottom: 60px;
    }

    .pt-mm-submenu ul {
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pt-mobile-menu__list > li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .pt-mobile-menu__list > li.menu-item-has-children > a::after {
        content: "→";
        font-size: 18px;
        opacity: .8;
    }

    .pt-mobile-menu .sub-menu {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .pt-mm-view[data-view="submenu"] .sub-menu {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .pt-mm-view[data-view="submenu"] .sub-menu li {
        padding: 4px 0;
        border-bottom: none;
    }

    .pt-mm-view[data-view="submenu"] .sub-menu a {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        letter-spacing: 0.01em !important;
        font-weight: 400 !important;
        color: #1b2d42;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 4px 0;
    }

    .pt-mm-view[data-view="submenu"] .sub-menu a::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 4px;
        background-color: #94a3b8;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .pt-mobile-lang {
        display: flex;
        justify-content: center;
    }

    .pt-mobile-lang ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 16px;
    }

    .pt-mobile-lang a {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        color: #1b2d42;
        text-decoration: none;
        opacity: .8;
        transition: opacity .2s ease;
    }

    .pt-mobile-lang a:hover,
    .pt-mobile-lang .wpml-ls-current-language a {
        opacity: 1;
    }

    .pt-mobile-socials {
        display: flex;
        justify-content: center;
        gap: 18px;
    }

    .pt-mobile-socials a {
        font-size: 22px;
        color: #1b2d42;
        opacity: .7;
        transition: opacity .2s ease, transform .2s ease;
    }

    .pt-mobile-socials a:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

    .pt-search-inner {
        width: 100%;
        margin: auto;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .pt-search-title {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .pt-search-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .pt-search-links {
        grid-template-columns: repeat(2, 1fr); /* Na tabletach 2 kolumny */
        gap: 8px;
    }
}

@media (max-width: 500px) {
    .pt-search-links {
        grid-template-columns: 1fr; /* Na telefonach pojedyncze kafelki pełnej szerokości */
    }
}