/* --- INTRO OVERLAY --- */
.intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background: #ffffff; z-index: 999999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-in-out;
}
.intro-overlay.hidden {
    opacity: 0; pointer-events: none;
}
#intro-video {
    width: 100%; max-width: 800px; height: auto;
    object-fit: contain;
}

/* GLOBAL STYLES & SCROLL SNAP */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background-color: #ffffff; font-family: 'Inter', sans-serif; color: #1a1a1a; overflow-x: hidden; }
section { height: 100vh; position: relative; overflow: hidden; }

.dropdown-arrow { margin-left: 8px; font-weight: bold; font-size: 1.1em; display: inline-block; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 99999; background: #ffffff; border-bottom: 1px solid #eeeeee;
    transform: translate3d(0,0,0); backface-visibility: hidden;
}
.logo img { max-width: 160px; }
.main-ul { display: flex; list-style: none; align-items: center; height: 80px; }
.main-ul > li { margin-left: 20px; height: 100%; display: flex; align-items: center; }
.main-ul > li > a { text-decoration: none; color: #1a1a1a; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; transition: 0.3s;}
.main-ul > li > a:hover { color: #ff9500; }

.btn-cta { background: #ff9500; border: 2px solid #ff9500; color: #fff; padding: 10px 20px; transition: 0.3s; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-cta:hover { background: #e68600; border-color: #e68600; color: #fff; }

/* MEGA MENU DESKTOP */
.mega-menu-container { display: none; position: absolute; top: 80px; left: 5%; width: 90%; background: #fff; padding: 40px; border-top: 3px solid #ff9500; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 90000;}
.mega-menu-container.show-desktop { display: block !important; }
.mega-content { display: flex; gap: 40px; }
.mega-col { flex: 1; }
.left-col { border-right: 1px solid #eee; display: flex; flex-direction: column; }
.left-col a { padding: 10px; color: #1a1a1a; text-decoration: none; font-weight: 600; transition: 0.2s; }
.left-col a:hover { background: #f9f9f9; }
.left-col a.active { background: #ff9500; color: #fff; border-radius: 4px; }
.mid-col h4 { margin-bottom: 15px; color: #ff9500; }
.mid-col ul { list-style: none; }
.mid-col li { margin-bottom: 8px; }
.mid-col a { color: #555; text-decoration: none; transition: 0.2s; }
.mid-col a:hover { color: #ff9500; }
.right-col img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }


/* MEGA MENU DESKTOP - DYNAMIC TABS */
.menu-tabs-wrapper { display: flex; gap: 40px; width: 100%; }
.tab-panels { flex: 2; }
.menu-panel { display: none; gap: 40px; width: 100%; animation: fadeIn 0.3s ease-in-out;}
.menu-panel.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ANIMACJA POJAWIANIA SIĘ SEKCJI SLIDERA */
.slider-section { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.slider-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- SEKCJA SLIDER --- */
.slider-section { background: #fff; }
.main-slider { width: 100%; height: 100%; position: relative; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { max-width: 800px; padding: 20px; transform: translateY(30px); transition: 1s 0.5s; opacity: 0; }
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-caption { text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; color: #ff9500; margin-bottom: 15px; display: block; font-weight: 700; }
.slide h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; text-transform: uppercase; }
.slide p { font-size: 1.2rem; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; }

.prev, .next {
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
    width: auto; padding: 20px 25px; color: white; font-weight: bold; font-size: 24px;
    transition: 0.3s ease; border-radius: 8px; user-select: none; z-index: 10;
    background-color: rgba(0,0,0,0.3); text-decoration: none;
}
.prev { left: 80px; } 
.next { right: 80px; } 
.prev:hover, .next:hover { background-color: #ff9500; color: white; }

.slider-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 15px; }
.dot { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: #ff9500; border-color: #ff9500; transform: scale(1.3); }

/* --- SEKCJA PRODUKTÓW (NAJPOPULARNIEJSZE) --- */
.products-section { background: #fff; padding: 60px 5%; display: flex; justify-content: center; height: auto; min-height: unset; } /* Zmniejszony odstęp */
.section-container { max-width: 1400px; width: 100%; margin: 0 auto; }
.products-header { margin-bottom: 30px; text-align: left; }
.products-header h2 { font-size: 1.6rem; font-weight: 700; color: #003d2b; } /* Ciemna zieleń */

.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.product-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s; }
.product-item:hover { transform: translateY(-5px); }
.product-item:hover .product-img { box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-color: #ff9500; }

.product-img { 
    width: 100%; aspect-ratio: 4/5; background-size: cover; background-position: center; 
    border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border: 1px solid #eee; transition: 0.3s;
}
.product-item h3 { font-size: 0.9rem; color: #003d2b; font-weight: 600; text-align: center; margin: 0; line-height: 1.4; }

/* --- SEKCJE PRODUKTOWE (FEATURE) --- */
.feature-section { display: flex; height: 100vh; background: #fcfcfc; align-items: stretch; overflow: hidden;}
.feature-media { flex: 1; position: relative; opacity: 0; transform: translateX(-100px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.feature-text { flex: 1; padding: 0 8%; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(100px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s; }

/* REVERSE LAYOUT ANIMATION STATES */
.feature-section.reverse .feature-text { transform: translateX(-100px); transition-delay: 0s; }
.feature-section.reverse .feature-media { transform: translateX(100px); transition-delay: 0.2s; }

/* ANIMATION ACTIVE STATE */
.feature-section.is-visible .feature-media,
.feature-section.is-visible .feature-text { opacity: 1; transform: translateX(0); }

.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;}
.desktop-video { display: block; }
.mobile-img { display: none; }
.feature-text h2 { font-size: clamp(2rem, 4vw, 3rem); font-family: 'Inter', sans-serif; font-weight: 700; color: #1a1a1a; margin-bottom: 25px; line-height: 1.2;}
.highlight-green { color: #009b4d; } /* FAKRO Green */
.highlight-red { color: #e60000; } /* VELUX Red */
.feature-text p { font-size: 1.05rem; color: #555; line-height: 1.7; }

.feature-buttons { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }
.btn-feature { padding: 10px 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: 0.3s; letter-spacing: 0.5px; }
.btn-green { border: 2px solid #009b4d; color: #009b4d; background: transparent; }
.btn-green:hover { background: #009b4d; color: #fff; box-shadow: 0 4px 15px rgba(0, 155, 77, 0.3); }

.btn-red { border: 2px solid #e60000; color: #e60000; background: transparent; }
.btn-red:hover { background: #e60000; color: #fff; box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3); }



/* --- SEKCJE OGÓLNE --- */
.hero { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%); z-index: -1; }
/* Kontrola wyświetlania multimediów w Hero Section */
.mobile-hero-media { display: none; }
.desktop-hero-media { display: block; }


@keyframes materialize {
    0% { opacity: 0; filter: blur(20px); transform: scale(0.95); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: clamp(3rem, 8vw, 6rem); 
    margin-bottom: 20px; 
    opacity: 0;
    animation: materialize 2.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0;
    animation: slideUpFade 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 1.5s;
}

.link-highlight { color: #fff; text-decoration: none; padding-bottom: 5px; border-bottom: 2px solid #ff9500; font-weight: 700; transition: 0.3s; }
.link-highlight:hover { background: #ff9500; }

/* --- SEKCJA O NAS (Z TŁEM I ANIMACJĄ) --- */
.split-section { position: relative; display: flex; align-items: center; justify-content: flex-start; height: 100vh; overflow: hidden; padding: 0 10%; background: #fff; }
.split-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; opacity: 0; filter: blur(20px); transform: scale(1.05); transition: opacity 1.5s ease-out, filter 1.5s ease-out, transform 1.5s ease-out; }
.split-section.is-visible .split-bg { opacity: 1; filter: blur(0); transform: scale(1); } /* Przyciemnione tło dla czytelności białego tekstu */

.split-text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 50px; border-radius: 12px; max-width: 700px; color: #fff; opacity: 0; transform: translateY(40px); transition: all 1.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s; }
.split-section.is-visible .split-text { opacity: 1; transform: translateY(0); }

.split-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 30px; color: #fff; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 15px rgba(0,0,0,0.6); }
.split-text p { font-size: 1.1rem; color: #f0f0f0; line-height: 1.7; margin-bottom: 35px; text-shadow: 0 2px 15px rgba(0,0,0,0.6); }















.parallax-scroll-section { display: flex; align-items: center; justify-content: center; }
.parallax-bg { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; background-size: cover; background-position: center; z-index: 1; }
.parallax-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.6); z-index: 2; }
.parallax-content { position: relative; z-index: 3; text-align: center; max-width: 600px; padding: 50px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-top: 4px solid #ff9500; }



/* KONTAKT */
.contact-section { background: #f9f9f9; padding: 80px 5%; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.contact-header-text { text-align: center; margin-bottom: 40px; }
.contact-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1200px; width: 100%; margin: 0 auto; height: 65vh; }
.contact-info-column { display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-right: 10px; }
.contact-card { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); border-left: 5px solid #ff9500; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: #1a1a1a; }
.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.card-details ul { list-style: none; }
.card-details li { margin-bottom: 8px; color: #444; }
.qr-box { display: flex; flex-direction: column; align-items: center; background: #fcfcfc; padding: 10px; border: 1px dashed #ccc; border-radius: 8px;}
.parking-steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: flex-start; gap: 15px; }
.step-num { background: #ff9500; color: #fff; font-weight: 900; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.9rem; flex-shrink: 0; }
.contact-map-column { border-radius: 12px; overflow: hidden; background: #eaeaea; }

/* SOCIAL SIDEBAR */
.social-sidebar { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 10002; display: flex; flex-direction: column; }
.social-link { width: 50px; height: 50px; background: #fff; display: flex; justify-content: center; align-items: center; border: 1px solid #eee; transition: 0.3s; }
.social-link svg { width: 22px; stroke: #1a1a1a; fill: none; stroke-width: 2; }
.social-link:hover { background: #ff9500; width: 60px; padding-left: 10px; }




/* =========================================
   MODAL ZAMÓW POMIAR
   ========================================= */
.measurement-modal-overlay {
    display: none; position: fixed; z-index: 100005; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
}
.measurement-modal-overlay.active { display: flex; animation: fadeInModal 0.3s forwards; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.measurement-modal-content {
    background: #fff; width: 95%; max-width: 1000px; position: relative;
    border-radius: 4px; overflow: hidden; transform: scale(0.9);
    animation: scaleInModal 0.3s forwards;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}
@keyframes scaleInModal { from { transform: scale(0.95); } to { transform: scale(1); } }

.close-measurement {
    position: absolute; top: 10px; right: 20px; font-size: 28px;
    font-weight: normal; color: #1a1a1a; cursor: pointer; z-index: 10;
    background: #fff; border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.close-measurement:hover { background: #eee; }

.measurement-grid { display: flex; min-height: 500px; }
.measurement-form-section { flex: 1.3; padding: 40px 50px; background: #fafafa; }
.measurement-image-section { 
    flex: 0.7; 
    background-image: url('pliki/index/pomiar.webp'); 
    background-size: cover; background-position: center; 
}

.measurement-form-section h2 { font-size: 1.4rem; margin-bottom: 15px; color: #1a1a1a; font-weight: 900;}
.form-desc { font-size: 0.85rem; color: #444; line-height: 1.5; margin-bottom: 15px; }
.form-rodo { font-size: 0.7rem; color: #888; margin-bottom: 25px; line-height: 1.4; }

.pomiar-form .form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.pomiar-form .form-group { flex: 1; display: flex; flex-direction: column; }
.pomiar-form label { font-size: 0.7rem; font-weight: 700; color: #333; margin-bottom: 5px; }
.pomiar-form input { padding: 12px; border: 1px solid #ddd; border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 0.9rem; background: #fff;}

.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px;}
.captcha-placeholder { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; background: #fff; padding: 10px 15px; border: 1px solid #ddd; border-radius: 2px; }
.submit-btn { background: #fff; color: #cc0000; border: 1px solid #cc0000; padding: 10px 40px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; border-radius: 2px; letter-spacing: 1px;}
.submit-btn:hover { background: #cc0000; color: #fff; }


/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; max-width: 480px;
    background: #fff; padding: 25px; border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-left: 5px solid #ff9500;
    z-index: 100010; display: none; 
    font-family: 'Inter', sans-serif;
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.show { display: block; opacity: 1; transform: translateY(0); }
.cookie-content h3 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 12px; font-weight: 900; }
.cookie-content p { font-size: 0.85rem; color: #555; line-height: 1.5; margin-bottom: 20px; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
    padding: 10px 15px; font-size: 0.85rem; font-weight: 700;
    border-radius: 4px; cursor: pointer; transition: 0.3s;
    flex: 1; text-align: center; white-space: nowrap;
}
.cookie-btn.primary { background: #ff9500; color: #fff; border: 1px solid #ff9500; }
.cookie-btn.primary:hover { background: #e68600; }
.cookie-btn.secondary { background: transparent; color: #1a1a1a; border: 1px solid #ddd; }
.cookie-btn.secondary:hover { border-color: #ff9500; color: #ff9500; }

/* --- MOBILE MENU --- */
@media (min-width: 991px) {
    .mobile-menu-header, .mobile-back, .mobile-arrow, .mobile-only-header, .mobile-only-list, .menu-toggle { display: none !important; }
}



/* ANIMACJA POJAWIANIA SIĘ SEKCJI VELUX */
.velux-roller-section { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.velux-roller-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- SEKCJA VELUX ROLETY (DZIEŃ/NOC) - ZAMIANA STRON --- */
.velux-roller-section { display: flex; height: 85vh; background: #fff; align-items: stretch; overflow: hidden; } /* Usunięto mocne tło sekcji */
.vr-image-side { flex: 1; position: relative; } /* Prawa strona (obraz) jest teraz lewa, ale nazwa desktryptwna */
.vr-text-side { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 5%; text-align: center; background: #f9f9f9; } /* Tło w stylu VENA (clean grey z mobilnego formy) dla tekstu */

.vr-title { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 300; color: #333; margin-bottom: 60px; font-family: 'Inter', sans-serif; line-height: 1.4; letter-spacing: -0.5px;}

.vr-toggle-container { margin-bottom: 60px; display: flex; flex-direction: column; align-items: center;}
.vr-toggle { display: flex; background: #2a2725; border-radius: 8px; position: relative; width: 130px; height: 50px; margin-bottom: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.vr-slider { position: absolute; top: 4px; left: 4px; width: calc(50% - 6px); height: calc(100% - 8px); background: #ececec; border-radius: 6px; z-index: 1; transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.vr-btn { flex: 1; background: transparent; border: none; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; z-index: 2; transition: color 0.4s; font-family: 'Inter', sans-serif; }
.vr-btn.active { color: #1a1a1a; }
.vr-status { font-size: 1.05rem; color: #444; font-weight: 300;}

.vr-action-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn-outline-green { border: 2px solid #009b4d; color: #009b4d; padding: 12px 25px; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; border-radius: 4px; transition: 0.3s; background: transparent; letter-spacing: 1px; text-decoration: none; }
.btn-outline-green:hover { background: #009b4d; color: #fff; box-shadow: 0 4px 15px rgba(0, 155, 77, 0.3); }
.btn-outline-red { border: 2px solid #e60000; color: #e60000; padding: 12px 25px; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; border-radius: 4px; transition: 0.3s; background: transparent; letter-spacing: 1px; text-decoration: none; }
.btn-outline-red:hover { background: #e60000; color: #fff; box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3); }

.vr-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; }
.vr-img.active { opacity: 1; z-index: 2; }
@media (max-width: 990px) {
/* Zamiana wideo na zdjęcie w sekcji Hero na smartfonach */
    .mobile-hero-media { display: block !important; }
    .desktop-hero-media { display: none !important; }
    .velux-roller-section { flex-direction: column-reverse; height: auto; } /* Odwrócona kolejność mobilna, tekst na górze */
    .vr-text-side { padding: 60px 20px; }
    .vr-image-side { height: 50vh; min-height: 400px; width: 100%; }
    .vr-title { font-size: 1.4rem; }
    .vr-title br { display: none; }

    body { padding-bottom: 60px; }
    .menu-toggle { display: flex; flex-direction: column; cursor: pointer; }
    .menu-toggle .bar { width: 25px; height: 3px; background: #1a1a1a; margin: 3px 0; }
    .desktop-cta-li { display: none; }
    
    #nav-links { position: fixed; top: 0; left: 100%; width: 100%; height: 100dvh; background: #fff; transition: left 0.4s ease-in-out; z-index: 900001; overflow-y: auto !important; display: block; padding-bottom: 80px; }
    #nav-links.active { left: 0; }
    
/* --- POPRAWKI LOGO MOBILE --- */
.mobile-menu-header {
    padding: 10px 20px; /* Zmniejszony padding góra/dół */
}

.mobile-logo {
    height: 40px; /* Zmniejszona wysokość logo */
    width: auto;  /* Automatyczna szerokość, zachowuje proporcje */
    object-fit: contain; /* Zabezpieczenie przed zniekształceniem */
}
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
    .close-btn { background: #f5f5f5; border: none; border-radius: 8px; padding: 10px 18px; font-size: 0.95rem; color: #1a1a1a; cursor: pointer; font-weight: 700; }

    .nav-menu .main-ul { flex-direction: column; padding: 0; }
    .nav-menu .main-ul > li { width: 100%; margin: 0; border-bottom: 1px solid #eee; }
    .nav-menu .main-ul > li > a { display: flex; justify-content: flex-start; padding: 20px; font-size: 1.1rem; }

    .mega-menu-container { position: fixed; top: 0; left: 100%; width: 100%; height: 100dvh; padding: 0; border: none; box-shadow: none; transition: left 0.4s ease-in-out; z-index: 900002; display: block !important; overflow-y: auto !important; padding-bottom: 80px !important; }
    .mega-menu-container.show-mobile { left: 0 !important; }
    
    .mobile-back { display: block; padding: 20px; background: #fdfdfd; border-bottom: 1px solid #eee; }
    .back-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 15px; font-family: 'Inter', sans-serif; text-align: left; padding: 5px 0;}
    .back-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #f5f5f5; border-radius: 50%; font-size: 1.2rem; color: #ff9500; font-weight: bold; border: 1px solid #eee; }
    .back-text { display: flex; flex-direction: column; }
    .back-text strong { font-size: 1.15rem; font-weight: 800; color: #1a1a1a; }
    .back-text small { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 2px; }
    
    .mega-content { flex-direction: column; }
    .menu-tabs-wrapper { flex-direction: column; gap: 0; }
    .tab-panels { display: flex; flex-direction: column; width: 100%; }
    .menu-panel { display: block !important; gap: 0; animation: none;} /* Pokaż wszystko w pionie na telefonie */

    .left-col, .right-col { display: none; }
    
    .mobile-only-header, .mid-col h4 { 
        display: flex !important; justify-content: space-between; align-items: center; 
        background: #eee; color: #ff9500; padding: 15px 20px; font-size: 0.95rem; 
        border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; cursor: pointer; 
    }
    .mobile-only-header::after, .mid-col h4::after { 
        content: '▼'; font-size: 0.8rem; transition: transform 0.3s; 
    }
    .mobile-only-header.active::after, .mid-col h4.active::after { 
        transform: rotate(180deg); 
    }
    .mid-col ul { display: none !important; }
    .mid-col ul.open { display: block !important; }
    .mid-col ul li a { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee; color: #1a1a1a; font-size: 1.1rem; text-decoration: none;}

    .social-sidebar { display: flex !important; flex-direction: row !important; bottom: 0 !important; top: auto !important; left: 0 !important; width: 100% !important; transform: translateY(0) !important; transition: transform 0.3s ease-in-out !important; background: #ffffff; border-top: 1px solid #eeeeee; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
    .social-link { width: 33.33% !important; height: 60px !important; border: none !important; border-right: 1px solid #eeeeee !important; }

    section { height: auto; padding: 40px 5%; }
    .gallery-section, .contact-section { padding: 30px 5% !important; }
    .products-section { padding: 30px 5% !important; height: auto !important; min-height: unset !important; }

    .hero, .slider-section, .parallax-scroll-section { height: 100vh; height: 100dvh; padding: 0; }

    /* --- PRZYWRÓCONE BRAKUJĄCE REGUŁY MOBILNE --- */
    .prev, .next { padding: 15px 18px; font-size: 18px; border-radius: 0 8px 8px 0; }
    .prev { left: 0; }
    .next { right: 0; border-radius: 8px 0 0 8px; }


    
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .products-header h2 { font-size: 1.3rem; text-align: center; margin-bottom: 25px; }
    .product-img { aspect-ratio: 1/1; border-radius: 8px; margin-bottom: 10px;}
    .product-item h3 { font-size: 0.85rem; }

    /* FEATURE SECTIONS MOBILE */
    .feature-section { height: auto; flex-direction: column !important; display: flex; padding: 0; }
    .feature-media { width: 100%; height: 400px; min-height: 40vh; order: 1; position: relative; display: block; transform: translateY(50px) !important; transition-delay: 0s !important;}
    .feature-text { width: 100%; padding: 50px 5%; order: 2; transform: translateY(50px) !important; transition-delay: 0.2s !important;}
    
    .feature-section.is-visible .feature-media,
    .feature-section.is-visible .feature-text { transform: translateY(0) !important; }

    .desktop-video { display: none !important; }

    .mobile-img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }

    .split-section { height: auto; min-height: 100vh; padding: 80px 5%; justify-content: center; }
    .split-text { padding: 40px 25px; margin: 0 auto; width: 100%; border-radius: 8px; }
    
    
    .contact-section { height: auto; padding: 40px 5%; }
    .contact-grid-container { grid-template-columns: 1fr; height: auto; gap: 20px; }
    .contact-info-column { padding-right: 0; overflow-y: visible; }
    .card-top-row { flex-direction: column; gap: 20px; text-align: center; }
    .qr-box { width: 100%; max-width: 200px; }
    .contact-map-column { height: 400px; margin-top: 10px; }


    /* MODAL MOBILE */
    .measurement-modal-content { 
        width: 100%; height: 100%; border-radius: 0; 
        max-width: 100%; margin: 0; transform: scale(1);
        overflow-y: auto; background: #f9f9f9;
    }
    .measurement-grid { flex-direction: column; min-height: auto;}
    .measurement-image-section { display: none; }
    .measurement-form-section { padding: 40px 20px; background: #f9f9f9; }
    .measurement-form-section h2 { display: none; }
    
    .form-desc { font-size: 0.95rem; line-height: 1.5; color: #444; margin-bottom: 15px; }
    .form-rodo { font-size: 0.8rem; color: #888; margin-bottom: 25px; line-height: 1.4; }
    
    .pomiar-form .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .pomiar-form .form-group { margin-bottom: 15px; }
    .pomiar-form label { font-size: 0.8rem; color: #1a1a1a; font-weight: 700; margin-bottom: 8px; }
    .pomiar-form input { padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; width: 100%; background: #fff;}
    
    .form-footer { flex-direction: column; gap: 20px; align-items: flex-start; margin-top: 10px; border-top: none; padding-top: 0;}
    .captcha-placeholder { width: 100%; border: 1px solid #ddd; padding: 15px; background: #fff; border-radius: 4px; display: flex; align-items: center; gap: 10px; }
    .captcha-placeholder input[type="checkbox"] { width: 20px; height: 20px; margin: 0;}
    .submit-btn { width: 100%; padding: 15px; background: #ff9500; color: #fff; border: none; font-size: 1.1rem; border-radius: 4px; margin-top: 10px;}
    .close-measurement { top: 10px; right: 10px; background: transparent; box-shadow: none; font-size: 35px;}


    /* COOKIE MOBILE */
    .cookie-banner {
        bottom: 0; left: 0; max-width: 100%; border-radius: 12px 12px 0 0;
        border-left: none; border-top: 5px solid #ff9500;
        padding: 20px 20px 30px 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    }
    .cookie-buttons { flex-direction: column; }
    .cookie-btn { width: 100%; }

}


/* --- WCAG 2.1 ACCESSIBILITY STYLES --- */
:focus-visible {
    outline: 3px solid #ff9500 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.3) !important;
    transition: outline-offset 0.1s ease-in-out;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    border-radius: 4px; /* Żeby focus ładnie wyglądał na zaokrąglonych elementach */
}

/* Ukrycie domyślnego focusa myszką, by nie psuł estetyki, zachowanie dla klawiatury */
:focus:not(:focus-visible) {
    outline: none;
}


/* --- NOWA TYPOGRAFIA DLA NAGŁÓWKA KONTAKTU --- */
.contact-header-text {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.contact-header-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.contact-header-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff9500;
    border-radius: 2px;
}

.contact-header-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* --- STOPKA --- */
.site-footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 30px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-top: 3px solid #ff9500;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff9500;
}

.footer-separator {
    color: #555;
}

.footer-copyright {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}


/* --- FIX FORMULARZA NA SMARTFONY (IPHONE) --- */
@media (max-width: 768px) {
    .pomiar-form {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Równy odstęp między wszystkimi polami */
    }
    .pomiar-form .form-row {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Odstęp między polami w rzędzie */
        margin-bottom: 0;
    }
    .pomiar-form .form-group {
        margin-bottom: 0; /* Zerujemy, bo używamy gap */
        width: 100%;
    }
    .pomiar-form label {
        display: block;
        margin-bottom: 8px !important;
        font-size: 0.85rem !important;
        color: #333;
    }
    .pomiar-form input[type="text"],
    .pomiar-form input[type="tel"],
    .pomiar-form input[type="email"] {
        padding: 16px 15px !important; /* Większy padding, łatwiejsze klikanie na ekranie dotykowym */
        font-size: 16px !important; /* 16px zapobiega automatycznemu przybliżaniu ekranu (zoom) na iOS! */
        width: 100%;
        border-radius: 8px !important;
        box-sizing: border-box;
    }
    .form-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        gap: 20px;
        margin-top: 10px;
    }
    .captcha-placeholder {
        margin-bottom: 10px;
    }
    .submit-btn {
        width: 100% !important;
        padding: 18px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
}


/* --- HIDE ON SCROLL CLASSES --- */
.navbar {
    transition: transform 0.3s ease-in-out;
}
.navbar.hidden-scroll {
    transform: translateY(-100%) !important;
}

@media (max-width: 990px) {
    .social-sidebar.hidden-scroll {
        transform: translateY(100%) !important;
    }
}


/* --- TRIGGER AREA FOR NAVBAR --- */
.navbar-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 90000;
    pointer-events: none; /* Pozwala klikać przez to pole */
}
.navbar:hover, .navbar-trigger:hover + .navbar {
    transform: translateY(0) !important;
}

/* =========================================
   WYŁĄCZENIE ANIMACJI DEKORACYJNYCH NA SMARTFONACH
   ========================================= */
@media (max-width: 990px) {
    /* Wyłączenie animacji startowych w głównej sekcji (Hero) */
    .hero-content h1,
    .hero-content p {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    /* Wyłączenie efektów najeżdżania i przenikania dla pozostałych sekcji */
    .split-bg,
    .split-text,
    .feature-media,
    .feature-text,
    .slider-section,
    .velux-roller-section,
    #blog-reveal-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        filter: none !important;
    }
}

@media (max-width: 990px) {
    .animate-on-scroll,
    .animate-block,
    .article-card,
    .reels-wrapper,
    .contact-split-container,
    .contact-card,
    .section-title {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        filter: none !important;
    }
}

/* =========================================
   STYLE WYSZUKIWARKI W MENU - POPRAWIONE
   ========================================= */
.search-icon-li {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.search-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-trigger-btn:hover {
    transform: scale(1.1);
}

.search-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1000000; /* NAPRAWA MOBILNA: Panel jest teraz nad menu mobilnym */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.search-side-panel.active {
    transform: translateX(0);
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    flex-shrink: 0;
}

.search-panel-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
}

.search-panel-body {
    padding: 0 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* NAPRAWA SCROLLA 1: Zamyka kontener w sztywnych granicach wysokości */
    overflow: hidden; /* NAPRAWA SCROLLA 2: Zapobiega rozlewaniu się obiektów poza 100vh */
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.search-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ff9500;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.search-results {
    flex-grow: 1;
    overflow-y: auto; /* NAPRAWA SCROLLA 3: Aktywuje upragniony pionowy suwak */
    margin-right: -15px;
    padding-right: 15px;
}

.empty-search-state {
    text-align: center;
    color: #888;
    font-family: 'Inter', sans-serif;
    margin-top: 50px;
}

.search-result-item {
    display: block;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    color: #172a5a;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.search-result-item p {
    margin: 0;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}
/* =========================================
   POPRAWKA ODSTĘPÓW LUPY NA TELEFONACH
   ========================================= */
@media (max-width: 990px) {
    .search-icon-li {
        margin: 15px 20px !important; /* Dodaje solidny odstęp z góry, z dołu i po bokach */
        justify-content: flex-start !important; /* Wyrównuje do lewej, jak resztę menu */
    }
    
    .search-trigger-btn {
        padding: 10px !important; /* Powiększa klikalny obszar, żeby łatwiej było trafić palcem */
    }
    
    .search-trigger-btn svg {
        width: 26px; /* Odrobinę powiększa samą ikonę na telefonie dla lepszej widoczności */
        height: 26px;
    }
}
/* =========================================
   PROSTE ROZWIJANE MENU (KONTAKT / WHATSAPP)
   ========================================= */
.simple-dropdown {
    position: relative;
}

.simple-drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin: 0;
}

/* Pojawianie się menu na komputerach */
@media (min-width: 991px) {
    .simple-dropdown.open .simple-drop-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.simple-drop-menu li {
    margin: 0;
    padding: 0;
}

.simple-drop-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px !important;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.simple-drop-menu a:hover {
    background-color: #f5f5f5;
    color: #ff9500;
}

/* Wyróżnienie opcji WhatsApp */
.wa-link {
    color: #128C7E !important;
    font-weight: 600 !important;
}
.wa-link:hover {
    background-color: #f0fbf4 !important;
}

/* Układ na telefonach (Mobile) */
@media (max-width: 990px) {
    .simple-drop-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        background-color: #f9f9f9;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Domyślnie ukryte na telefonie */
        padding: 5px 0;
        margin-top: 10px;
    }
    
    .simple-dropdown.active .simple-drop-menu {
        display: block; /* Pokazane po kliknięciu na telefonie */
    }
    
    .simple-drop-menu a {
        padding: 12px 15px !important;
        font-size: 0.9rem;
    }
}
/* =========================================
   PŁYWAJĄCY PRZYCISK TELEFONU (LEWY DOLNY RÓG)
   ========================================= */
.phone-nav-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 80; /* Bardzo wysoki priorytet, aby zawsze był na wierzchu */
    display: flex;
    align-items: center;
}

.phone-nav-trigger {
    width: 60px;
    height: 60px;
    background-color: #ff9500; /* POMARAŃCZOWE KÓŁKO */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Subtelne powiększenie i zmiana odcienia po najechaniu myszką */
.phone-nav-trigger:hover {
    transform: scale(1.05);
    background-color: #e08400;
}

/* Dymek z komunikatem - domyślnie ukryty i przesunięty w lewo */
.phone-nav-menu {
    position: absolute;
    top: 50%;
    left: 75px; 
    transform: translateY(-50%) translateX(-20px);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Pokazywanie dymku po kliknięciu (gdy kontener ma klasę 'active') */
.phone-nav-container.active .phone-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.phone-nav-menu p {
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.phone-nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px; /* Dodaje odstęp między linkami */
}

.phone-nav-link:hover {
    color: #ff9500;
}

/* Optymalizacja wyglądu na smartfonach */
@media (max-width: 990px) {
    .phone-nav-container {
        bottom: 85px !important; /* Podniesiono wyżej, aby uniknąć kolizji z paskiem przeglądarki w telefonie */
        left: 20px !important;
        display: flex !important;
    }
    .phone-nav-trigger {
        width: 55px !important;
        height: 55px !important;
    }
    .phone-nav-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
    .phone-nav-menu {
        left: 70px !important;
        padding: 10px 15px !important;
        min-width: 170px !important;
    }
    .phone-nav-link {
        font-size: 1rem !important;
    }
}
/* =========================================
   PŁYNNE ZNIKANIE SŁUCHAWKI
   ========================================= */
.phone-nav-container {
    transition: opacity 0.5s ease !important;
}
/* Wyróżnienie opcji Messenger */
.fb-link {
    color: #0084FF !important;
    font-weight: 600 !important;
}
.fb-link:hover {
    background-color: #f0f7ff !important;
}
/* Płynna zmiana koloru ikonki e-mail przy hoverze */
.mail-link:hover svg {
    stroke: #ff9500 !important;
}
/* =========================================
   TRYB CZYTANIA (SEPIA MODE) 
   ========================================= */

/* Domyślne przejście dla płynności */
html {
    transition: filter 0.5s ease;
}

/* Ta klasa zostanie dodana przez JavaScript do tagu HTML */
html.sepia-mode {
    /* Ustawia kolor tła zbliżony do papieru */
    background-color: #f4ecd8 !important; 
    
    /* Globalny filtr:
       1. sepia(0.6) - nadaje 60% żółto-brązowego odcienia
       2. contrast(0.9) - zmniejsza jaskrawość ekranu
       3. brightness(0.9) - lekko przygasza całą stronę */
    filter: sepia(0.6) contrast(0.9) brightness(0.9);
}

/* Ponieważ cała strona dostaje filtr, obrazki i wideo wyglądałyby jak ze starych lat.
   Aby tego uniknąć, nakładamy na nie FILTR ODWROTNY, który anuluje sepię i przywraca naturalne kolory zdjęć! */
html.sepia-mode img, 
html.sepia-mode video, 
html.sepia-mode .hero-banner-bg,
html.sepia-mode .bg-image {
    filter: sepia(0) contrast(1.1) brightness(1.1); /* Kontruje przyciemnienie z góry */
}

/* Drobna poprawka koloru tła dla body, by zgrywało się z HTML */
html.sepia-mode body,
html.sepia-mode #main-content,
html.sepia-mode .info-split-section-wrapper {
    background-color: #f4ecd8 !important;
}
/* =========================================
   WYRÓWNANIE IKON (LUPA I SEPIA) W MENU MOBILNYM
   ========================================= */
@media (max-width: 990px) {
    .sepia-icon-li,
    .search-icon-li {
        padding-left: 20px !important; /* Odsunięcie od lewej krawędzi - równe z tekstem */
        padding-top: 15px;
        padding-bottom: 15px;
        display: flex;
        align-items: center;
    }
    
    .sepia-icon-li {
        margin-right: 0 !important; /* Kasuje margines potrzebny tylko na komputerze */
    }
    
    /* Powiększenie strefy kliknięcia dla wygody na ekranach dotykowych */
    #toggle-sepia-mode,
    .search-trigger-btn {
        padding: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
}
/* =========================================
           STYLIZACJA "MINI MEGA MENU" (KOMPUTERY I BAZA)
           ========================================= */
           
        /* 1. Reset i wygląd samych linków (usuwamy niebieski kolor i podkreślenie) */
        .simple-drop-menu {
            list-style: none; /* Usuwamy ewentualne kropki z listy */
            padding: 0;
            margin: 0;
        }

        .simple-drop-menu a {
            text-decoration: none !important;
            color: #1a1a1a !important; /* Ciemnoszary/czarny zamiast niebieskiego */
            display: flex;
            align-items: center;
            padding: 12px 24px !important;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            border-bottom: 1px solid #f2f2f2; /* Bardzo subtelna linia oddzielająca */
        }

        /* Brak kreski pod ostatnim elementem */
        .simple-drop-menu li:last-child a {
            border-bottom: none !important;
        }

        /* 2. Kinowy efekt najechania myszką (Hover) */
        .simple-drop-menu a:hover {
            background-color: #fafafa !important;
            color: #ff9500 !important; /* Zmiana na firmowy pomarańcz */
            padding-left: 30px !important; /* Lekkie wcięcie do środka po najechaniu */
        }

        /* 3. Pływająca karta (Mini Mega Menu) - TYLKO NA KOMPUTERY */
        @media (min-width: 991px) {
            .simple-dropdown {
                position: relative; /* Trzyma rozwijane menu podpięte pod główny przycisk */
            }
            
            .simple-drop-menu {
                position: absolute;
                top: 100%; /* Pojawia się idealnie pod spodem */
                left: 0;
                background: #ffffff;
                min-width: 250px; /* Odpowiednia szerokość karty */
                box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Elegancki, rozmyty cień */
                border-radius: 8px; /* Lekko zaokrąglone rogi (styl Apple) */
                padding: 10px 0;
                
                /* Ukrycie przed najechaniem + efekt płynnego wjazdu */
                opacity: 0;
                visibility: hidden;
                transform: translateY(15px); /* Menu startuje odrobinę niżej... */
                transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                z-index: 100;
            }

            /* Pokazanie karty po najechaniu myszką */
            .simple-dropdown.open .simple-drop-menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0); /* ...i płynnie wjeżdża na swoje miejsce */
            }
            
            /* Subtelny obrót strzałki w dół przy otwartym menu */
            .simple-dropdown.open .dropdown-arrow {
                transform: rotate(90deg);
                display: inline-block;
            }
        }
		/* =========================================
   PŁYWAJĄCY PRZYCISK E-MAIL (LEWY DOLNY RÓG - NAD TELEFONEM)
   ========================================= */
.email-nav-container {
    position: fixed;
    bottom: 105px; /* Wyżej niż telefon, żeby się nie nakładały */
    left: 30px;
    z-index: 80;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease !important;
}

.email-nav-trigger {
    width: 60px;
    height: 60px;
    background-color: #ffffff; /* Białe tło w przeciwieństwie do pomarańczowego */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.email-nav-trigger:hover {
    transform: scale(1.05);
    background-color: #fafafa;
}

.email-nav-menu {
    position: absolute;
    top: 50%;
    left: 75px; 
    transform: translateY(-50%) translateX(-20px);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    min-width: 260px; /* Szersze menu, żeby zmieściły się e-maile */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.email-nav-container.active .email-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.email-nav-menu p {
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.email-nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem; /* Odrobinę mniejszy font na maila */
    white-space: nowrap;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.email-nav-link:hover {
    color: #ff9500;
}

/* Responsywność dla smartfonów */
@media (max-width: 990px) {
    .email-nav-container {
        bottom: 155px !important; /* Wyżej od telefonu na urządzeniach mobilnych */
        left: 20px !important;
    }
    .email-nav-trigger {
        width: 55px !important;
        height: 55px !important;
    }
    .email-nav-trigger svg {
        width: 24px !important;
        height: 24px !important;
    }
    .email-nav-menu {
        left: 70px !important;
        padding: 10px 15px !important;
        min-width: 230px !important;
    }
    .email-nav-link {
        font-size: 0.85rem !important; /* Jeszcze mniejsze adresy e-mail na małym ekranie telefonu */
    }
}

/* =========================================
   NAPRAWA PODWÓJNEGO KLIKNIĘCIA W MENU NA SMARTFONACH
   ========================================= */
@media (max-width: 990px) {
    /* 1. Neutralizujemy efekty "hover", które zmuszają system (np. iOS) do zatrzymania kliknięcia */
    .simple-drop-menu a:hover {
        background-color: transparent !important;
        color: #1a1a1a !important;
        padding: 12px 15px !important; /* Blokuje efekt wcięcia tekstu na telefonie */
    }
    
    .mid-col ul li a:hover {
        background-color: transparent !important;
        color: #1a1a1a !important;
        padding: 18px 20px !important; 
    }

    .main-ul > li > a:hover,
    .phone-nav-link:hover,
    .email-nav-link:hover {
        color: inherit !important;
    }

    /* 2. Zmieniamy "hover" na "active" - przycisk podświetli się tylko i wyłącznie 
       w ułamku sekundy, gdy fizycznie dociskasz go palcem (lepszy efekt, zero blokad) */
    .simple-drop-menu a:active,
    .mid-col ul li a:active {
        background-color: #f5f5f5 !important;
        color: #ff9500 !important;
    }
}
/* =========================================
   PODMIANA TEKSTU "Napisz e-mail" -> adres po najechaniu
   ========================================= */
.mail-link { white-space: nowrap; }
.mail-txt-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
    .mail-link:hover .mail-txt-default { display: none; }
    .mail-link:hover .mail-txt-hover { display: inline; }
}
