/* ===================== HEADER ===================== */
.naglowek {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 0px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 4rem;
    height: 7vh;
    position: absolute;
    justify-self: center;
    isolation: isolate; /* dodane, usuwa poświatę wokół tekstu */
}

.logo img {
    height: 28px;
}
.header .menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Satoshi';
}

.logo, nav.menu {
    padding: 10px 15px;
    background-color: #002445cc;
}

.stuck .logo, .stuck nav.menu {
    background-color: #002445;
    transition: all .3s;
}

nav.menu {
    width: 100%;
    justify-items: center;
    height: 4.8rem;
    display: flex;
    align-items: center;
    border-radius: 30px;
    padding: 10px 32px;
}

ul.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
}

header.header {
    margin-top: 1rem;
    height: 30vh;
    position: absolute;
    justify-self: center;
}

div.logo {
    border-radius: 30px;
}

/* dropdown menu */
.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 500px;
    z-index: 1000;
}

.naglowek {
    position: fixed;
}
.naglowek {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
}

.dropdown-menu-global a {
    display: block;
}

.menu-page-title {
    display: block;
    font-weight: 700;
}

.menu-page-zajawka {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}
.naglowek .dropdown-menu-global li:hover {
    height: auto;
    background: #083A67;
    transition: 0.3s;
}


/* ===================== DROPDOWN GLOBAL ===================== */
.naglowek .dropdown-menu-global {
    display: grid; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 4% 3% 9% 3%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2% 3%;
    border-radius: 20px;
    -webkit-font-smoothing: antialiased; /* dodane */
    -moz-osx-font-smoothing: grayscale;  /* dodane */
}

/* warstwa blur */
.naglowek .dropdown-menu-global::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #002445cc;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
    border-radius: 20px;
    border: 1px solid white;
}

/* treść dropdownu */
.naglowek .dropdown-menu-global * {
    position: relative;
    z-index: 1;
}

.naglowek .dropdown-menu-global li {
    list-style: none;
}

.naglowek .dropdown-menu-global a {
    display: block;
    text-decoration: none;
    color: #fff;
}

.menu-page-title {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.menu-page-zajawka {
    display: block;
    font-size: 1.45rem;
    opacity: 0.8;
        line-height: 1.2;
        margin-bottom: 1rem;
}

span.menu-page-btn {
    font-family: 'Space Mono';
    text-transform: uppercase;
    color: var(--pink);
    font-size: 1.4rem;
    line-height: 3;
}
/* DOMYŚLNY STAN - przycisk niewidoczny i nie zabiera miejsca */
span.menu-page-btn {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Pokazanie przycisku po hover na li */
.naglowek .dropdown-menu-global li:hover span.menu-page-btn {
    display: inline-block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* domyślny stan li – mniejsza wysokość */
.naglowek .dropdown-menu-global li {
    list-style: none;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease; /* animacja zmian */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu.navbar {
            display: block;
        }
        .mobile-menu-toggle {
            display: none;
        }


/* hover – powiększenie */
.naglowek .dropdown-menu-global li:hover {
    height: auto; /* zwiększona wysokość przy hover */
    background: #083A67; /* opcjonalnie efekt tła */
}

/* przycisk – pojawia się dopiero przy hover li */
span.menu-page-btn {
    display: inline-block;
    font-family: 'Space Mono';
    text-transform: uppercase;
    color: var(--pink);
    font-size: 1.4rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px); /* start niżej */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* hover li – pokaż przycisk */
.naglowek .dropdown-menu-global li:hover span.menu-page-btn {
    opacity: 1;
    transform: translateY(0); /* wskakuje do pozycji */
}

/* Pokaż dropdown tylko gdy ma klasę .show (dodawaną przez JavaScript przy hover) */
.naglowek .dropdown-menu-global.show {
    display: grid;
}



.menu.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu.navbar-nav .submenu-arrow {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}





/* Dodajemy ikonę jako pseudoelement */
.menu.navbar-nav > li.menu-item-has-children > a.nav-link::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    background-image: url('https://misot.pl/wp-content/uploads/2025/12/arrow-menu.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

/* Obrót strzałki gdy dropdown jest otwarte */
.menu.navbar-nav > li.menu-item-has-children.show > a.nav-link::after {
    transform: rotate(180deg);
}




.lang {
    height: 48px;
    background-color: #002445cc;
    border: 0px;
    border-radius: 30px;
    width: 80px;
    color: white;
    font-size: 1.6rem;
    font-family: 'Satoshi';
    font-weight: 700;
}

.stuck .lang, .stuck .mobile-menu-toggle {
    background-color: #002445;
    transition: all .3s;
}
.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    z-index: 1000;
    background-color: #002445cc;
    font-size: 1.6rem;
    padding: 1.6rem;
    border-radius: 22px;
}
ul.dropdown-menu.show a {
    color: white;
    text-decoration: none;
    line-height: 1.5;
}
.pills {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.8rem;
}



.naglowek .dropdown-menu-global {
    display: none;
}
.naglowek .dropdown-menu-global.show {
    display: grid; /* lub block */
}





@media (max-width: 1199px) {

    .menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    nav.menu.navbar.navbar-expand-lg {
    display: none;
}
 .mobile-menu-toggle {
        display: flex;
        background-color: #002445cc;
        border-radius: 30px;
        padding-left: 2.4rem;
        padding-right: 2.4rem;
        gap: 0.6rem;
        height: 42px;
        align-items: center;
    }
    .lang {
        height: 42px;
    }
    span.menu-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Satoshi';
}
ul.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    font-family: 'Space Mono';
    font-size: 2.6rem;
}
.modal-body a {
        text-decoration: none;
        color: black;
    }
.modal-content {
    background-color: var(--ecru);
}
.modal-title {
    display: none;
}
.modal-header .btn-close {
    opacity: 1;
    transform: scale(1.5);
}


.modal-body .dropdown-menu-global {
        display: block !important;
        opacity: 1;
        visibility: visible;
        height: auto;
    }

.modal-body .navbar-nav > li.menu-item-has-children > a::after {
    content: url(https://misot.pl/wp-content/uploads/2025/12/arrow-blue.svg);
    font-size: 1.6rem;
    margin-left: 0.4rem;
}

 .mobile-submenu-panel {
     position: absolute;
     top: 24px;
     right: 20px;
     bottom: 24px;
     width: calc(100% - 64px);
     background: var(--ecru);
     box-shadow: none;
     transform: translateX(110%);
     transition: transform 0.35s ease;
     z-index: 2000;
     display: flex;
     flex-direction: column;
     padding: 64px 32px 40px;
     border-radius: 24px;
     overflow: hidden;
     box-sizing: border-box;
 }

.mobile-submenu-panel.active {
    transform: translateX(0);
}

.mobile-submenu-panel .mobile-submenu-back {
    border: none;
    background: none;
    color: #002445;
    font-weight: 700;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.2rem 0;
    margin-bottom: 1.6rem;
    width: 100%;
    cursor: pointer;
}

.mobile-submenu-panel .mobile-submenu-back-icon {
    font-size: 2rem;
}

.modal-content {
    position: relative;
    overflow: hidden;
}

.modal-body {
    position: relative;
    overflow: hidden;
}

.mobile-submenu-panel {
    background: var(--ecru);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: none;
}

.mobile-submenu-panel .mobile-submenu-panel-content {
    flex: 1;
}

.mobile-submenu-panel-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-submenu-panel .dropdown-menu-global {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.mobile-submenu-panel .dropdown-menu-global li {
    padding: 0;
}

.mobile-submenu-panel .menu-page-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.mobile-submenu-panel .menu-page-zajawka {
    display: none;
}

.mobile-submenu-panel .visible-submenu li {
    padding: 0.4rem 0;
}

.mobile-submenu-panel .visible-submenu li a {
    font-size: 2rem;
    font-weight: 700;
}











/* === MOBILE MENU MODAL === */
.mobile-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.mobile-menu-modal.active {
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-menu-modal.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 30px 25px;
    overflow-y: auto;
}

.mobile-menu-modal.active .mobile-menu-content {
    transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Menu styling */
.mobile-menu-list {
    list-style: none;
    padding: 60px 0 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 18px;
}

.mobile-menu-list a {
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

.mobile-submenu-widget {
    display: none;
    margin-top: 2rem;
    background: #fff;
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mobile-submenu-widget.visible {
    display: block;
}

.mobile-submenu-widget .dropdown-menu-global {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.mobile-submenu-widget .dropdown-menu-global li {
    padding: 0;
}

.mobile-submenu-widget .menu-page-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.mobile-submenu-widget .menu-page-zajawka {
    display: none;
}






.dropdown-toggle {
    margin-left: 8px;
    transition: transform 0.3s;
    display: inline-block;
}

.navbar-nav .sub-menu {
    display: none;
}
.navbar-nav .sub-menu.show {
    display: block;
}

.modal-body .navbar-nav .sub-menu {
    display: none;
}

.modal-body .navbar-nav .sub-menu.show {
    display: block;
}


.modal-fullscreen .modal-body {
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}
.naglowek {
    width: 100%;
            padding-left: 2rem;
        padding-right: 2rem;
}


.logo, nav.menu {
    padding: 7px 13px;
    height: 42px;
}


}



.header {
  min-height: 80px; /* dopasuj do rzeczywistej wysokości nagłówka */
  visibility: hidden;
}
.styles-loaded .header {
  visibility: visible;
}


@media (max-width: 1024px) {
.mobile-submenu-panel {
        max-width: 100%;
        text-align: center;
        padding: 0px;
    }
	.mobile-submenu-panel .mobile-submenu-back-icon {
		font-size: 2.4rem;
	}
    .mobile-submenu-panel .menu-page-title {
        font-size: 3.2rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
        font-family: 'Space Mono';
        font-weight: 200;
    }
	    .mobile-submenu-panel.active {
        transform: translateX(0);
        gap: 6rem;
    }
	    .mobile-submenu-panel .mobile-submenu-back {
        justify-content: center;
        font-size: 3.2rem;
        font-family: 'Space Mono';
    }
	button.mobile-submenu-back img {
    transform: rotate(180deg);
}
}

@media (max-width: 820px) {
	.mobile-submenu-panel .mobile-submenu-back-icon {
		font-size: 2.4rem;
	}
    .mobile-submenu-panel .menu-page-title {
        font-size: 2.4rem;
    }
	    .mobile-submenu-panel .mobile-submenu-back {
        font-size: 2.4rem;
    }
}


@media (max-width: 600px) {
    .naglowek {
    gap: 0rem;
}
	
	    .mobile-submenu-panel {
        background: var(--ecru);
        border-radius: 24px;
        width: 100%;
        max-width: 420px;
        box-shadow: none;
        padding: 8rem 3rem 0rem 3rem;
			right: 0;
    }
.mobile-submenu-panel .mobile-submenu-back-icon {
		font-size: 1.8rem;
	}
    .mobile-submenu-panel .menu-page-title {
        font-size: 1.8rem;
    }
	    .mobile-submenu-panel .mobile-submenu-back {
        font-size: 1.8rem;
    }	
	.mobile-submenu-panel.active {
        transform: translateX(0);
        gap: 2rem;
    }
		button.mobile-submenu-back img {
    transform: rotate(180deg) scale(0.6);
}
	
}