.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
    background: transparent; /* początkowo przezroczyste */
    backdrop-filter: blur(0px); /* początkowo bez efektu zamglenia */
    transition: all 0.3s ease-in-out;
}

.container-nav.scrolled {
    background: rgba(213, 197, 164, 0.6);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
}

.container-nav nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding: 8px 0;
    font-family: "Epilogue", sans-serif !important;
}

.container-nav .logo-img {
    width: 15%;
}

.container-nav nav .logo-img .link-logo {
    display: flex;
    align-items: center;
    justify-content: start;
    color: unset;
    text-decoration: none;
}

.container-nav nav .logo-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 20px;
    width: 80%;
}

.container-nav nav .tabs-nav #mega-menu-wrap-header-menu #mega-menu-header-menu {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item>a.mega-menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    margin: 0 6px !important;
    color: #fff!important;
    /*background: #D5C5A4!important;
    background-clip: text!important;
    -webkit-background-clip: text!important;
    -webkit-text-fill-color: transparent!important;*/
    transition: all 0.3s ease-in-out !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item>a.mega-menu-link:hover {
    border: 1px solid #bfa673 !important;
    color: #fff;
    text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current_page_item>a.mega-menu-link {
    color: #fff !important;
    /*background: #D5C5A4!important;
    background-clip: unset!important;
    -webkit-background-clip: unset!important;
    -webkit-text-fill-color: unset!important;*/
}

#mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator:after {
    /*background: #D5C5A4!important;
    background-clip: text!important;
    -webkit-background-clip: text!important;
    -webkit-text-fill-color: transparent!important;*/
}

.mega-sub-menu {
    margin-top: 6px !important;
}

.mega-sub-menu:hover .mega-menu-link {
    color: #D5C5A4 !important;
}

.mega-sub-menu li a:first-child,
.mega-sub-menu li,
.mega-sub-menu {
    border-radius: 8px !important;
    padding: 4px 2px!important;
    border: none;
}

.mega-menu-item.mega-toggle-on a {
    color: #D5C5A4 !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu {
    background: #fff !important;
    border: 1px solid #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    border: 1px solid #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover,
#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:focus {
    color: #D5C5A4 !important;
    background: #fff !important;

}
#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    border: 1px solid #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link:hover {
    background: #D5C5A4 !important;
    color: #fff !important;
    border: 1px solid #D5C5A4 !important;
    text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link:focus {
    color: #D5C5A4 !important;
    background: #fff !important;
    -webkit-text-fill-color: unset!important;
    text-shadow: unset!important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>ul.mega-sub-menu {
    margin-top: 8px;
    background: #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link {
    padding: 0 10px;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link:hover {
    background: #D5C5A4!important;
    color: #fff !important;
    text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-toggle-on.mega-current-menu-ancestor:hover,
#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-menu-item:hover {
    background: transparent;
    text-shadow: unset!important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-toggle-on.mega-current-menu-ancestor>a.mega-menu-link:hover,
#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-menu-item>a.mega-menu-link:hover {
    background: transparent;
    text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
}

#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-menu-ancestor>a.mega-menu-link,
#mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-page-ancestor>a.mega-menu-link {
    color: #fff !important;
    background: #D5C5A4!important;
    text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
    border: none !important;
}

/*BOOKSY*/
nav .logo-btns .btn-booksy {
    padding: 0;
    background: #fff;
}

.booksy-widget-container-dialog {
    width: auto !important;
    height: auto !important;
}

.booksy-widget-container-dialog .booksy-business-link {
    display: none !important;
}

.booksy-widget-container-default.booksy-widget-container-pl .booksy-widget-button {
    background: url("/wp-content/uploads/img_template/booksy_starogard.png") no-repeat center center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 130px;
    text-align: center;
    margin: 0 !important;
}

.booksy-widget-dialog {
    top: 15% !important;
    left: 35% !important;
    max-height: 800px !important;
    overflow: auto !important;
    transform: unset !important;
}

.booksy-widget-dialog .card-banner {
    overflow: auto !important;
    max-height: 750px !important;
}


/*BOOKSY*/

/*
@media only screen and (max-width: 1200px) {
    #mega-menu-wrap-header-menu .mega-menu-toggle.mega-menu-open + #mega-menu-header-menu {
        display: grid !important;
        gap: 1rem;
        grid-auto-flow: column;
        grid-template-columns: repeat(7, minmax(0, .5fr));
        background: white!important;
        top: 56px!important;
        padding: 10px 30px!important;
    }
    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link {
        font-size: 16px!important;
        color: #4f4f4f!important;
    }
    nav .logo-btns {
        flex-direction: row-reverse;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link:hover {
        text-shadow: 0 0 .7px #4F4F4F, 0 0 .7px #4F4F4F!important;
    }

	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link {
        padding: 0!important;
    }

	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu {
		position: absolute!important;
		left: -100px!important;
		display: flex!important;
		flex-direction: row!important;
		justify-content: start!important;
        align-items: start!important;
		gap: 10px!important;
        padding: 0 10px!important;
		width: 950px!important;
	}
	
	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > a.mega-menu-link {
		white-space: nowrap;
	}

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
        text-align: center!important;
    }

	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu {
		display: flex!important;
		flex-direction: column!important;
		gap: 10px!important;
	}
	
	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(1) {
		width: 170px;
	}
	
	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(2) {
		width: 200px;
	}
	
	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(3) {
		width: 245px;
	}
	
    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(4) {
		width: 120px;
	}

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(5) {
		width: 71px;
	}

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item:nth-child(4) > a.mega-menu-link {
		display: flex!important;
        justify-content: center!important;
        align-items: center!important;
        text-align: center!important;
        line-height: normal!important;
	}

    
	#mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu > a.mega-menu-link {
		padding-left: 10px!important;
	}

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu {
        background: transparent!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item {
        padding: 6px!important;
        background: #f1f1f1!important;
    }
    
    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
        background: #f1f1f1!important;
        border: 1px solid #ff9100!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link:hover {
        background: #ff9100!important;
        color: #fff!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link:focus {
        background: #f1f1f1!important;
        color: #ff9100!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu {
        margin-top: 8px;
        background: #f1f1f1!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
        padding: 0 10px!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-flyout.mega-toggle-on > ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link:hover {
        background: #fff!important;
        color: #fff!important;
        text-shadow: 0 0 1px #fff, 0 0 1px #fff!important;
    }
}
*/

@media only screen and (max-width: 1200px) {
    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item>a.mega-menu-link {
        margin: 0 4px !important;
    }
}

@media only screen and (max-width: 992px) {
    .container-nav .logo-img {
        width: 40%!important;
    }

    .container-nav nav .logo-btns {
        width: 60%;
        justify-content: end;
    }

    #mega-menu-wrap-header-menu .mega-menu-toggle.mega-menu-open+#mega-menu-header-menu {
        display: block !important;
    }

    #mega-menu-wrap-header-menu .mega-menu-toggle+#mega-menu-header-menu {
        background: white !important;
        padding: 0px 0px 0px 0px;
        position: absolute;
        width: 100%;
        z-index: 9999999;
        top: 56px;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu li.mega-menu-item {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item>a.mega-menu-link {
        color: #D5C5A4 !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item>a.mega-menu-link:hover {
        color: #D5C5A4 !important;
        text-shadow: 0 0 1px #D5C5A4, 0 0 1px #D5C5A4 !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-menu-ancestor>a.mega-menu-link:hover {
        color: #fff !important;
        text-shadow: 0 0 1px #fff, 0 0 1px #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-item.mega-current-menu-item>a.mega-menu-link {
        color: #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu {
        position: unset !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        background: #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item.mega-toggle-on>ul.mega-sub-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        background: #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item:nth-child(1),
    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item:nth-child(2),
    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item:nth-child(3) {
        width: auto !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item {
        padding: unset !important;
        background: transparent !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link {
        background: #D5C5A4!important;
        color: #fff !important;
        border: 1px solid #fff!important;
        font-size: 16px;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item.mega-toggle-on>a.mega-menu-link {
        background: #D5C5A4!important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link:hover {
        border: 1px solid #D5C5A4 !important;
        background: #D5C5A4!important;
        background-clip: text!important;
        -webkit-background-clip: text!important;
        -webkit-text-fill-color: transparent!important;
        text-shadow: none !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link:focus {
        background: #D5C5A4!important;
        color: #fff !important;
        border: none !important;
        webkit-text-fill-color: unset!important;
        text-shadow: unset!important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link {
        background: #fff !important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    #mega-menu-wrap-header-menu #mega-menu-header-menu>li.mega-menu-flyout.mega-toggle-on>ul.mega-sub-menu>li.mega-menu-item>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link:hover {
        background: #fff !important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    .booksy-widget-dialog {
        top: 2% !important;
        left: 2% !important;
        max-height: 800px !important;
        overflow: auto !important;
        transform: unset !important;
    }
}

@media only screen and (max-width: 450px) {
    .link-logo svg {
        width: 120px;
    }

    #mega-menu-wrap-header-menu .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner,
    #mega-menu-wrap-header-menu .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before,
    #mega-menu-wrap-header-menu .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after {
        width: 30px !important;
    }

    .booksy-widget-container-default.booksy-widget-container-pl .booksy-widget-button {
        background: url(/wp-content/uploads/img_template/booksy_starogard_mobile.png) no-repeat center center !important;
    }
}