@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ==========================================================================
   2. HEADER - UKŁAD I TŁO
   ========================================================================== */
.s1300 {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 10px; 
    width: 100%;
}
@media (max-width: 768px) {
    .s1300 { padding: 0 20px !important; }
}

#header {
    top: 0;
    z-index: 1000;
    background-color: #fffafa; 
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06); 
    transition: all 0.3s ease;
}

/* --- Top Bar --- */
.header__top-bar {
    background-color: #f2efe9; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px 0;
    font-size: 12px; /* Lekko zmniejszone dla większej elegancji */
}
.header__top-bar .s1300 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-contact a {
    color: #555555;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.top-bar-contact a:hover { color: #dfc585; }
.top-bar-social a {
    display: inline-block;
    margin-left: 15px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.top-bar-social a:hover { opacity: 1; }
.top-bar-social img {
    filter: grayscale(100%) opacity(70%); 
    width: 16px;
    height: auto;
    vertical-align: middle;
    transition: all 0.3s ease;
}
.top-bar-social a:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* ==========================================================================
   3. GŁÓWNA NAWIGACJA
   ========================================================================== */
.header-flex-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px; 
}

/* Logo i Divider */
#logo {
    display: flex;
    align-items: left;
}
#title-img {
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid rgba(223, 197, 133, 0.5); 
}
#logo img {
    max-height: 65px;
    width: auto;
    display: block;
}
#title a {
    font-size: 26px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Kontener trzymający menu i przycisk */
#box-right {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Pozwala kontenerowi zająć resztę miejsca po prawej od logo */
}

/* Wyśrodkowanie menu */
.header__menu {
    margin: 0 auto; /* Wypycha element menu idealnie na środek dostępnej przestrzeni */
}

/* --- Główne Menu --- */
.level-0-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.level-0-el {
    position: relative;
}
.menu__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 0;
    letter-spacing: 1.2px; /* Zwiększony rozstaw liter */
    transition: color 0.3s ease;
}

.level-0-el::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 25px;
}

/* --- Dropdown (Podmenu) --- */
.level-1-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 15px 0;
    border-radius: 2px;
    border-top: 3px solid #dfc585;
}
.level-0-el:hover .level-1-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}
.level-1-el .menu__link {
    display: block;
    padding: 12px 25px;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.level-1-el .menu__link:hover {
    color: #dfc585;
    background-color: #faf9f7;
    padding-left: 30px;
}

/* --- Przycisk Rezerwacji (Nowoczesny Outline) --- */
.btn-book {
    background-color: #ffffff; 
    color: #1a1a1a !important;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px; 
    border: 2px solid #dfc585; /* Dodany mocny złoty border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 20px;
}
.btn-book:hover {
    background-color: #dfc585; /* Odwrócenie kolorów po najechaniu */
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(223, 197, 133, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. HAMBURGER MENU (Struktura i animacja)
   ========================================================================== */
.hamburger {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 0 10px 15px;
    align-items: center;
    gap: 10px;
    outline: none;
    z-index: 1001; 
}
.hamburger-box {
    width: 28px;
    height: 20px;
    display: inline-block;
    position: relative;
}
.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    width: 28px;
    height: 2px;
    background-color: #1a1a1a; 
    position: absolute;
    border-radius: 4px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; left: 0; }
.hamburger-inner::after { content: ""; bottom: -8px; left: 0; }

.hamburger.is-active .hamburger-inner { background-color: transparent; }
.hamburger.is-active .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

.hamburger-label {
    display: none;
}


@media (max-width: 1320px) {
    .hamburger { display: flex; }
    .header__top-bar { display: none; } 
    
    #box-right { 
        flex-grow: 0; /* Reset dla urządzeń mobilnych */
        gap: 15px; 
    }
    
    .level-0-menu {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
    }
    
    .level-0-menu.mm-spn--open,
    .level-0-menu.is-active {
        display: flex;
    }
    
    .menu__link { padding: 15px 20px; border-bottom: 1px solid #eee; }
    .level-0-el::after { display: none; }
    
    .level-1-menu {
        position: static;
        transform: none;
        background-color: #faf9f7;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none; 
        width: 100%;
        padding: 0;
    }
    .level-1-el .menu__link { padding: 12px 30px; font-size: 13px; }
    
    /* Ukrycie dodatkowego marginesu przycisku na małych ekranach */
    .btn-book { margin-left: 0; }
}

/* ==========================================================================
   5. DOSTĘPNOŚĆ (Skiplinks)
   ========================================================================== */
#skiplinks { position: absolute; }
#skiplinks ul { list-style: none; margin: 0; padding: 0; }
#skiplinks a {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 12px 20px;
    background-color: #dfc585;
    color: #111;
    text-decoration: none;
    font-weight: bold;
}
#skiplinks a:focus { left: 0; top: 0; }

/* --- Główne Menu (Zakładki) --- */
.level-0-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* Nieco mniejszy odstęp, bo ramki zajmują miejsce */
}
.level-0-el {
    position: relative;
}
.menu__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555555; /* Domyślny, spokojny kolor tekstu */
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 18px; /* Odpowiedni padding, by zmieścić ramkę */
    letter-spacing: 1.2px;
    border: 2px solid transparent; /* Niewidoczna ramka, aby tekst nie "skakał" przy najechaniu */
    transition: all 0.3s ease;
}

/* EFEKT ACTIVE (aktywna zakładka) i HOVER (najechanie) */
.menu__link:hover, 
.level-0-el.selected > .menu__link {
    color: #dfc585; /* Złoty tekst z Twojego wyboru */
    background-color: #fffafa;
    border-bottom: 2px solid #cdae68; /* Mocniejszy złoty border dla wyraźnego odcięcia */
    box-shadow: 0 4px 10px rgba(223, 197, 133, 0.15); /* Delikatna złota poświata */
}

/* Niewidzialny most do submenu */
.level-0-el::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 25px;
}

/* --- Dropdown (Podmenu) - Dopasowane do nowego zaokrąglenia --- */
.level-1-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    border-radius: 12px; /* Zaokrąglone całe podmenu, żeby pasowało do zakładek */
    border: 2px solid #cdae68; /* Mocna złota ramka wokół rozwiniętego menu */
}
.level-0-el:hover .level-1-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}
.level-1-el .menu__link {
    display: block;
    padding: 12px 25px;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    letter-spacing: 0.5px;
    border: none; /* W podmenu wyłączamy ramki z głównego paska */
    border-radius: 0;
    transition: all 0.2s ease;
}
.level-1-el .menu__link:hover {
    color: #dfc585;
    background-color: #faf9f7;
    border: none;
    box-shadow: none;
    padding-left: 30px;
}

/* --- Przycisk Rezerwacji (Dopasowany stylem do zakładek) --- */
.btn-book {
    background-color: #ffffff; 
    color: #dfc585 !important; 
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px; /* Duży radius, tak samo jak zakładki */
    border: 2px solid #cdae68; /* Mocny border */
    box-shadow: 0 4px 15px rgba(223, 197, 133, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 20px;
}
.btn-book:hover {
    background-color: #dfc585; /* Po najechaniu wypełnia się na złoto */
    color: #ffffff !important; /* Tekst robi się biały */
    border-color: #dfc585;
    box-shadow: 0 6px 20px rgba(223, 197, 133, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   POPRAWKI NAGŁÓWKA NA URZĄDZENIACH MOBILNYCH (RWD)
   ========================================================================== */


/* --- REGUŁY TYLKO DLA TELEFONÓW I TABLETÓW --- */
@media (max-width: 992px) {
    
    /* 2. Ukrywamy duży przycisk "Rezerwuj pobyt" na mobile, aby nie rozpychał nagłówka */
    .header-action {
        display: none !important;
    }

    /* 3. Naprawa klikalności i widoczności Hamburgera */
    .header__menu {
        display: block !important;
    }

    #menu-main .hamburger {
        display: inline-block !important;
        position: relative !important;
        z-index: 9999 !important; /* Umieszcza hamburgera na samej górze, żeby nic go nie blokowało przed kliknięciem */
        padding: 10px 0 10px 15px !important; /* Łatwiejsze trafienie palcem */
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
    }
    
    /* Zapewnienie, by logo na telefonie nie było za duże i nie psuło układu */
    #title img {
        max-height: 45px !important;
        width: auto !important;
    }
}

/* ==========================================================================
   BUTIKOWE MENU MOBILNE (Nadpisanie Mmenu-Light)
   ========================================================================== */

/* 1. USTAWIENIA PANELU BOCZNEGO (OFFCANVAS) */
:root {
    --mm-ocd-width: 85%;
    --mm-ocd-min-width: 250px;
    --mm-ocd-max-width: 400px;
}

body.mm-ocd-opened {
    overflow-y: hidden;
    overscroll-behavior: none;
}

.mm-ocd {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 100%;
    left: 0;
    z-index: 100000 !important;
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0);
    transition-property: bottom, background-color;
    transition-duration: 0s, 0.4s;
    transition-timing-function: ease;
    transition-delay: 0.4s, 0s;
}

.mm-ocd--open {
    bottom: 0;
    background: rgba(26, 24, 21, 0.75) !important; /* Luksusowe ciemne tło (Overlay) */
    transition-delay: 0s;
}

/* Właściwy kontener z menu */
.mm-ocd__content {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: var(--mm-ocd-width);
    min-width: var(--mm-ocd-min-width);
    max-width: var(--mm-ocd-max-width);
    background: #faf9f7 !important; /* Jasne, butikowe tło panelu */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}

.mm-ocd--left .mm-ocd__content {
    left: 0;
    transform: translate3d(-100%, 0, 0);
}

.mm-ocd--open .mm-ocd__content {
    transform: translate3d(0, 0, 0);
}

.mm-ocd__backdrop {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: calc(100% - var(--mm-ocd-width));
    min-width: calc(100% - var(--mm-ocd-max-width));
    max-width: calc(100% - var(--mm-ocd-min-width));
    background: rgba(3, 2, 1, 0);
    cursor: pointer;
}

.mm-ocd--left .mm-ocd__backdrop {
    right: 0;
}

/* 2. USTAWIENIA WEWNĘTRZNEJ NAWIGACJI (SPN) */
.mm-spn, .mm-spn a, .mm-spn li, .mm-spn span, .mm-spn ul {
    display: block;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.mm-spn {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateX(0);
    background: transparent !important;
}

.mm-spn ul {
    position: fixed;
    top: 0;
    left: 100%;
    bottom: 0;
    z-index: 2;
    width: 130%;
    padding-right: 30%;
    overflow-y: auto;
    background: inherit;
    transition: left 0.3s ease 0s;
    cursor: default;
    padding-top: 20px !important; /* Odstęp od góry (od nagłówka menu) */
}

.mm-spn > ul {
    left: 0;
}

.mm-spn ul.mm-spn--open {
    left: 0;
}

.mm-spn ul.mm-spn--parent {
    left: -30%;
    overflow-y: hidden;
}

/* 3. STYLIZACJA ZAKŁADEK (BUTIKOWY WYGLĄD) */
.mm-spn li {
    position: relative;
    background: inherit;
    cursor: pointer;
    border-bottom: 1px solid rgba(223, 197, 133, 0.2) !important; /* Złota, subtelna linia oddzielająca */
    margin: 0 25px !important; /* Odstęp od krawędzi panelu */
}

/* Usuwamy domyślne strzałki od biblioteki */
.mm-spn li:before {
    content: none !important; 
    display: none !important;
}

.mm-spn li:after {
    content: none !important;
    display: none !important;
}

/* Właściwy wygląd zakładek (tekst) */
.mm-spn a, .mm-spn span {
    position: relative;
    z-index: 1;
    padding: 20px 5px !important;
    color: #1a1a1a !important; /* Głęboki grafit */
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: all 0.3s ease !important;
}

.mm-spn a:not(:last-child):after {
    content: none !important;
    display: none !important;
}

/* Efekt po najechaniu (Hover) */
.mm-spn a:hover {
    color: #dfc585 !important; /* Butikowe złoto */
    padding-left: 12px !important; /* Lekkie przesunięcie tekstu w prawo */
}

/* 4. NAGŁÓWEK MENU (Tytuł "Menu Ośrodka") */
.mm-spn.mm-spn--navbar:after {
    content: attr(data-mm-spn-title);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px !important;
    padding: 0 40px;
    line-height: 70px !important;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #dfc585 !important; /* Wyraźna złota linia pod tytułem */
    opacity: 1 !important; /* Usuwamy domyślne wyblaknięcie z biblioteki */
    background: #ffffff !important;
}

.mm-spn.mm-spn--navbar ul {
    top: 70px !important; /* Przesuwa listę pod nowy nagłówek */
}

.mm-spn.mm-spn--navbar ul:before {
    content: none !important;
    display: none !important;
}

/* Strzałka powrotu ("Cofnij") w nagłówku menu, jeśli masz podkategorie */
.mm-spn.mm-spn--navbar:before {
    content: '';
    display: block;
    position: absolute;
    top: 35px !important;
    left: 25px !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 2px solid #dfc585 !important;
    border-left: 2px solid #dfc585 !important;
    transform: rotate(-45deg) translate(50%, -50%);
    opacity: 1 !important;
    z-index: 10;
}

/* ==========================================================================
   POPRAWKI MENU (Prawa strona, naprawa nachodzących zakładek, X)
   ========================================================================== */

/* 1. Otwieranie od prawej strony */
.mm-ocd--right .mm-ocd__content {
    left: auto !important; /* Wymuszenie odpięcia od lewej krawędzi */
    right: 0 !important;
    transform: translate3d(100%, 0, 0);
}

.mm-ocd--open .mm-ocd__content {
    transform: translate3d(0, 0, 0);
}

/* 2. Naprawa przezroczystych list (rozjeżdżającego się tekstu) */
.mm-spn ul {
    background: #faf9f7 !important; /* Pełne tło maskujące poprzednią listę */
}

/* 3. Złote strzałeczki sugerujące podkategorie (przywrócenie) */
.mm-spn li:before {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: 50%;
    right: 25px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #dfc585 !important;
    border-right: 2px solid #dfc585 !important;
    transform: translateY(-50%) rotate(45deg);
    z-index: 0;
}

/* 4. Czarna, ostra strzałka "Cofnij" w nagłówku (zamiast złotej) */
.mm-spn.mm-spn--navbar:before {
    border-top: 2px solid #1a1a1a !important;
    border-left: 2px solid #1a1a1a !important;
    width: 12px !important;
    height: 12px !important;
    top: 35px !important;
    left: 25px !important;
}

/* 5. Nasz nowy, dedykowany przycisk zamykający "X" */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 35px;
    height: 35px;
    font-size: 26px;
    color: #1a1a1a; /* Czarny krzyżyk */
    font-family: sans-serif;
    font-weight: 300;
    z-index: 100000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   RESET STYLÓW DESKTOPOWYCH W MENU MOBILNYM (Naprawa RWD i Podkategorii)
   ========================================================================== */

/* 1. Naprawa głównego linku (Usuwa owalną ramkę z np. "Strona Główna") */
.mm-ocd__content ul li a, 
.mm-ocd__content ul li span {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 18px 5px !important; /* Czysty odstęp wewnątrz */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* 2. Czysta linia pod spodem każdego elementu (usuwamy dziwne boczne marginesy) */
.mm-ocd__content ul li {
    border: none !important;
    border-bottom: 1px solid rgba(223, 197, 133, 0.2) !important;
    background: transparent !important;
    margin: 0 25px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    width: auto !important;
}

/* 3. NAPRAWA ROZJEŻDŻAJĄCEGO SIĘ PODMENU (Reset Dropdownu) */
.mm-ocd__content ul ul {
    position: fixed !important; /* Wymuszenie pokrycia całego ekranu szuflady */
    top: 70px !important; /* Tyle co wysokość nagłówka "Menu Ośrodka" */
    bottom: 0 !important;
    left: 100% !important; /* Schowane po prawej przed wysunięciem */
    width: 130% !important; 
    padding: 0 !important;
    padding-right: 30% !important;
    margin: 0 !important;
    background: #faf9f7 !important; /* Gwarancja pełnego tła - tekst z tyłu nie będzie prześwitywał */
    border: none !important; /* Usuwa złotą boczną ramkę widoczną na screenie nr 2 */
    border-radius: 0 !important; /* Usuwa zaokrąglony lewy górny róg widoczny na screenie nr 2 */
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
}

/* Klasa, którą skrypt dodaje, aby wysunąć podkategorie na ekran */
.mm-ocd__content ul.mm-spn--open {
    left: 0 !important; 
}

/* 4. Precyzyjne ustawienie złotej strzałeczki sugerującej podkategorie */
.mm-spn li:before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: 5px !important; /* Przesunięta do krawędzi, by nie wchodziła na tekst */
    width: 8px !important;
    height: 8px !important;
    border-top: 2px solid #dfc585 !important;
    border-right: 2px solid #dfc585 !important;
    transform: translateY(-50%) rotate(45deg) !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* Ukrywamy domyślne hover'y i focus'y z pulpitu */
.mm-ocd__content ul li:hover,
.mm-ocd__content ul ul li {
    background: transparent !important;
    border-radius: 0 !important;
}

/* ==========================================================================
   OSTATECZNA NAPRAWA SUBMENU I STRZAŁEK (Rozdzielenie linku i rozwijania)
   ========================================================================== */

/* 1. Domyślnie całkowicie UKRYWAMY brzydkie strzałki ze wszystkich elementów */
.mm-spn li:before,
.mm-spn li:after {
    display: none !important;
}

/* 2. ZŁOTA STRZAŁKA pojawia się TYLKO tam, gdzie zakładka posiada zagnieżdżone podmenu (ul) */
.mm-spn li:has(> ul):before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    right: 25px !important;
    width: 9px !important;
    height: 9px !important;
    border-top: 2px solid #dfc585 !important;
    border-right: 2px solid #dfc585 !important;
    transform: translateY(-50%) rotate(45deg) !important;
    z-index: 0 !important;
    pointer-events: none !important; /* Kliknięcie przejdzie przez strzałkę prosto do elementu pod spodem */
    transition: transform 0.3s ease;
}

/* 3. ROZDZIELENIE STREFY KLIKNIĘCIA (Link do strony vs Rozwijanie podmenu) */
.mm-ocd__content ul li {
    position: relative !important;
    cursor: pointer !important;
}

/* Jeśli zakładka ma podmenu (link nie jest jej ostatnim dzieckiem, bo po nim jest jeszcze "ul"),
   zwężamy szerokość samego linku. Dzięki temu tekst z lewej przenosi na stronę,
   a ukryta, pusta strefa 70px z prawej strony (ze strzałką) ROZWIJA MENU. */
.mm-spn li a:not(:last-child) {
    width: calc(100% - 70px) !important;
    display: block !important;
    padding-right: 0 !important;
}

/* Zwykłe linki (bez podkategorii) pozostają na 100% szerokości, by wygodnie w nie klikać */
.mm-spn li a:last-child {
    width: 100% !important;
}