#sp-header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body {
    padding-top: 0 !important;
}
#sp-header {
    background: transparent !important;
}

#sp-header.scrolled {
    background: #ffffff !important;
}

.sp-megamenu-parent>li.active>a, .sp-megamenu-parent>li.active:hover>a {
    color: #f3f3f3;
}
.sp-megamenu-parent>li.active>a {
    font-weight: 500;
}
.sp-megamenu-parent>li>a, .sp-megamenu-parent>li>span {
    font-size: 16px;
    text-transform: uppercase;
}

.sp-megamenu-parent>li:hover>a {
    color: #ffffff;
}

.sp-megamenu-parent>li>a {
    color: #fff;
}

/*LINIA*/
#sp-header .sp-megamenu-parent > li > a {
    position: relative;
}

#sp-header .sp-megamenu-parent > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; 
    background: #ff6600; 
    transition: width 0.3s ease;
}

#sp-header .sp-megamenu-parent > li > a:hover::after {
    width: 100%;
}

/* Link jako punkt odniesienia */
#sp-header .sp-megamenu-parent > li > a {
    position: relative;
    display: inline-block;
}

#sp-header .sp-megamenu-parent > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px; 
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.3s ease;
}

#sp-header .sp-megamenu-parent > li > a:hover::after {
    width: 100%;
}

#sp-header .sp-megamenu-parent > li > a {
    color: #ffffff !important;
}

#sp-header.scrolled .sp-megamenu-parent > li > a {
    color: #000000 !important; /* możesz dać #222 jeśli chcesz delikatniejszy */
}
#sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 90px; 
    line-height: 90px;*/
    background: transparent !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
}


@media (max-width: 991px) {
    #sp-header {
        height: 60px !important;
        line-height: 50px !important;
    }
}

a.icon_phone::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle; 

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/>\
</svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Pulsowanie */
a.icon_phone::before {
    animation: phonePulse 1.8s infinite ease-in-out;
}
*/
@keyframes phonePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

#sp-header.scrolled a.icon_phone::before {
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/>\
</svg>");
}

/* Header jako flex */
#sp-header .row.align-items-center {
    display: flex;
    align-items: center;
}

/* Menu normalnie */
#sp-header #sp-menu {
    margin-left: auto;
}

/* Telefon po prawej */
.header-phone {
    margin-left: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #fff;
    font-weight: 500;
}

/* Ikona */
.phone-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/>\
</svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Ustaw główny wiersz headera jako flex */
#sp-header .row.align-items-center {
    display: flex;
    align-items: center;
}

/* Menu zostaje przy logo */
#sp-header #sp-menu {
    margin-left: auto;
}

/* Telefon jako osobny element po prawej */
#sp-header #sp-module {
    margin-left: 40px;  /* odstęp od menu */
}

/* Styl telefonu */
.phone-icon {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 500;
	padding-left: 24px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #2b2f33;
}

.title-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
	margin-top: 6px;
}

.sppb-row-container{
    max-width: 1450px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}