/* === 1. ZMIENNE GŁÓWNE (KOLORY, EFEKTY) === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --frame-color: #cbfb24; /* Neonowy zielony */
    --text-main: #333333;
    --border-width: 15px;
    --bg-color-dark: #f8fafc; /* Przerobione na jasne tło */
}

/* === 2. RESET I BAZA === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color-dark);
    overflow-x: hidden;
    
    /* Optymalizacja renderowania typografii premium */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === 3. KLASY POMOCNICZE (UTILITIES) === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* === 4. RAMKA STRONY === */
#top-frame-solid {
    position: fixed;
    top: 0; left: 0; right: 0; height: var(--border-width);
    background: var(--frame-color);
    z-index: 10001; /* Zawsze na wierzchu */
}

/* === ZAAWANSOWANA GEOMETRIA RAMEK PEŁNOEKRANOWYCH === */
.frame-left,
.frame-right,
.frame-bottom {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed; /* Zawsze przylegają do krawędzi okna przeglądarki */
    background: var(--frame-color);
    z-index: 10001;
    pointer-events: none;
}

.frame-left { top: 0; left: 0; bottom: 0; width: var(--border-width); }
.frame-right { top: 0; right: 0; bottom: 0; width: var(--border-width); }
.frame-bottom { bottom: 0; left: 0; right: 0; height: var(--border-width); }

/* Mechanika ukrywania po scrollu */
#side-frames.scrolled .frame-left { transform: translateX(calc(-1 * var(--border-width))); }
#side-frames.scrolled .frame-right { transform: translateX(var(--border-width)); }
#side-frames.scrolled .frame-bottom { transform: translateY(var(--border-width)); }

/* === 5. MODUŁ 2: DOLNY TRAPEZ (TELEFON) === */
#bottom-phone-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--frame-color);
    padding: 20px 70px 10px 70px;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    z-index: 10002;
    text-decoration: none;
    
    /* Flexbox do wyrównania ikony i tekstu */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    transition:
        background 0.3s ease,
        padding-bottom 0.3s ease,
        transform 0.35s ease;
}

.phone-icon {
    color: #000;
    width: 32px;
    height: 32px;
    stroke-width: 2.5px;
}

/* Delikatne zsunięcie w dół */
#bottom-phone-tab.scrolled {
    transform: translateX(-50%) translateY(6px);
}
#bottom-phone-tab:hover {
    background: #ffffff; /* Reakcja na najechanie */
    padding-bottom: 15px; /* Delikatne wysunięcie do góry */
}

.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #000;
    line-height: 1;
}

/* === 6. MODUŁ 1: ZAAWANSOWANA NAWIGACJA TRAPEZOWA === */
#master-header {
    position: fixed;
    top: var(--border-width);
    left: 0;
    right: 0;
    padding: 0 var(--border-width);
    height: 60px;
    display: flex;
    justify-content: center;
    z-index: 10000;
    pointer-events: none; /* Pozwala klikać pod spodem, jeśli puste */
}

.nav-group { pointer-events: auto; }
.logo-center { pointer-events: auto; }
.nav-group {
    display: flex;
    /* Matematyka precyzyjna: szerokości grup idealnie bilansują się z logotypem */
    width: calc(50% - 130px); 
    height: 100%;
}

.left-group { justify-content: flex-end; }
.right-group { justify-content: flex-start; }

/* BAZOWY WYGLĄD: Ciemne, półprzezroczyste szkło CSS */
.trap-link-left, .trap-link-right {
    flex: 1;
    background: rgba(18, 38, 58, 0.7); /* Głęboki, elegancki odcień */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    margin: 0;
    clip-path: none;
}

/* Wypchnięcie skrajnych zakładek do samych krawędzi */
.left-group a:first-child { 
    border-bottom-left-radius: 0; 
    margin-left: calc(-1 * var(--border-width)); 
}
.right-group a:last-child { 
    border-bottom-right-radius: 0; 
    margin-right: calc(-1 * var(--border-width)); 
}

/* Cienkie separatorki między prostokątami, by nie zlały się w jedną plamę (zamiast dziur) */
.left-group a:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.right-group a:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, 0.08); }

/* KAFELEK "REKUPERACJA" - przylega do lewej krawędzi logotypu */
.left-group a:last-child {
    /* Prawy bok ścięty równolegle do logotypu, lewy zostaje prosty */
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
    padding-right: 20px; /* Wizualne wyśrodkowanie napisu wobec ścięcia */
}

/* KAFELEK "DOTACJE" - przylega do prawej krawędzi logotypu */
.right-group a:first-child {
    /* Lewy bok ścięty równolegle do logotypu, prawy zostaje prosty */
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
    padding-left: 20px;
}

/* CENTRALNY LOGOTYP */
.logo-center {
    width: 320px;
    height: 75px; 
    background: var(--frame-color);
    /* GŁÓWNY TRAPEZ: góra 100%, dół ścięty o 30px z obu stron */
    clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 30px 100%);
    
    /* GŁÓWNY TRIK: Ujemne marginesy nasuwają logotyp DOKŁADNIE na ścięte kafelki, eliminując puste piksele */
    margin: 0 -30px; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; 
    
    transform: translateY(-100%);
    animation: slideDownLogo 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    text-decoration: none; /* Blokuje natywne podkreślenia linku */
}
.logo-center h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #000;
    letter-spacing: 2px;
    margin-top: -10px;
}

/* EFEKT HOVER: Cały kafelek na neonowy zielony z czarnym tekstem */
.trap-link-left:hover, .trap-link-right:hover {
    background: var(--frame-color);
    color: #000;
}

@keyframes slideDownLogo {
    to { transform: translateY(0); }
}
/* === 7. TŁO I STRUKTURA GŁÓWNA (MODUŁ 3 SKELETON) === */
/* WebGL Canvas pełni rolę tła i warstwy refrakcyjnej */
#gl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* Kliknięcia przechodzą do HTML */
}

/* Czysty, biały blok oddzielający (Social Proof) */
.placeholder-section {
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.4);
    padding: 6rem;
    color: #111;
}

#smooth-scroll-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: calc(var(--border-width) + 80px);
}

.scroll-section {
    min-height: 100vh;
    width: 100%;
    padding: 4rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stylizacja tekstów bohatera (Hero) */
.hero-text { max-width: 650px; }
.hero-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.8);
}
.hero-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.9);
}

/* Prawdziwe Liquid Glass - WebGL rysuje szkło pod spodem */
.survey-panel {
    width: 420px;
    padding: 35px 30px;
    background: transparent; /* Zdejmujemy tło, aby uwidocznić shader z Canvas */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Delikatny szklany obrys */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-radius: 30px; /* Kształtuje obrys dla WebGL */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-top: -10rem; /* ZMIANA: PRZESUNIĘCIE ANKIETY DO GÓRY */
}

.survey-panel h3 { 
    font-family: 'Montserrat', sans-serif; 
    margin-bottom: 30px; 
    font-size: 1.5rem; 
    text-align: center; 
    font-weight: 700;
}

.slider-group { margin-bottom: 24px; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 600; font-size: 1.05rem; }
.emoji-display { font-size: 1.2rem; background: rgba(255,255,255,0.1); padding: 6px 10px; border-radius: 10px; }

/* Stylizacja suwaków na neonowy zielony */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 20px; 
    width: 20px; 
    border-radius: 50%; 
    background: var(--frame-color); 
    cursor: pointer; 
    margin-top: -8px; 
    box-shadow: 0 0 12px var(--frame-color); /* Poświata kropki */
}
input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    height: 4px; 
    cursor: pointer; 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 2px; 
}

.slider-desc { display: block; margin-top: 10px; font-size: 0.85rem; text-align: center; color: rgba(255, 255, 255, 0.8); }

.submit-btn { 
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%; 
    padding: 16px; 
    background: transparent; 
    border: 1px solid var(--frame-color); 
    color: #fff; 
    border-radius: 12px; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-top: 10px; 
}
.submit-btn:hover { background: var(--frame-color); color: #000; }
/* === 8. SOCIAL PROOF & BENTO GRID === */
.placeholder-section {
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.4);
    padding: 8rem 2rem;
    color: #111;
    overflow: hidden; 
}

.sp-container { max-width: 1200px; margin: 0 auto; }
.sp-header { text-align: center; margin-bottom: 4rem; }
.sp-subtitle { font-family: 'Inter', sans-serif; color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.sp-title { font-family: 'Montserrat', sans-serif; font-size: 3rem; font-weight: 900; color: #111; }

/* Statystyki */
.sp-stats { display: flex; justify-content: center; gap: 4rem; margin-bottom: 6rem; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-number { display: block; font-family: 'Montserrat', sans-serif; font-size: 4.5rem; font-weight: 900; color: #fff; -webkit-text-stroke: 2px var(--frame-color); text-shadow: 4px 4px 0 var(--frame-color); line-height: 1; margin-bottom: 10px; }
.stat-label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.1rem; color: #444; }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 6rem; }
.bento-item { background: #f8fafc; border-radius: 24px; padding: 40px; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e2e8f0; }
.bento-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.col-span-2 { grid-column: span 2; }

.bento-item h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: #111; }
.bento-item p { color: #555; line-height: 1.6; font-size: 1.05rem; }

.bento-item.bg-dark { background: #111; color: #fff; border: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bento-item.bg-dark h3 { color: #fff; }
.bento-item.bg-dark p { color: #cbd5e1; }

.bento-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; background: var(--frame-color); color: #000; padding: 12px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: background 0.3s ease; }
.bento-btn:hover { background: #fff; }

/* Mapka */
.map-container { display: flex; background: #f8fafc; border-radius: 24px; overflow: hidden; border: 1px solid #e2e8f0; min-height: 400px; height: auto; }
.map-info { flex: 1; padding: 50px; display: flex; flex-direction: column; justify-content: flex-start; }
.map-info h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; margin-bottom: 15px; }
.map-info p { color: #555; line-height: 1.6; margin-bottom: 30px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; color: #111; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--frame-color); padding-bottom: 4px; align-self: flex-start; }
.map-placeholder { flex: 1; background: #e2e8f0; position: relative; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-weight: 600; font-family: 'Inter', sans-serif; }
/* === 9. SEKCJA USŁUG (CZYM SIĘ ZAJMUJEMY) === */
.sp-section { margin-bottom: 9rem; }
.sp-section:last-child { margin-bottom: 0; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 40px 30px; text-decoration: none; color: #111; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--frame-color); }
.service-icon { width: 60px; height: 60px; background: #f8fafc; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: #000; transition: background 0.3s ease; }
.service-card:hover .service-icon { background: var(--frame-color); }

.service-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.service-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: #000; transition: color 0.3s ease; }
.service-card:hover .service-link { color: #4a5568; }
.service-link i { width: 18px; height: 18px; transition: transform 0.3s ease; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* === 10. OPINIE KLIENTÓW === */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 24px; padding: 40px 30px; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.review-card:hover { transform: translateY(-4px); }

.review-stars { display: flex; gap: 4px; margin-bottom: 20px; color: #eab308; }
/* Zapewnia pełne wypełnienie ikonek gwiazdek z biblioteki Lucide */
.review-stars i, .review-stars svg { width: 20px; height: 20px; fill: currentColor; }

.review-text { font-size: 1.05rem; color: #334155; line-height: 1.7; font-style: italic; margin-bottom: 30px; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.author-avatar { width: 45px; height: 45px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.author-source { font-size: 0.8rem; color: #10b981; display: flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 600; }
.author-source i { width: 14px; height: 14px; }

/* === 11. REALIZACJE GALLERY === */
.sp-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Powrót do standardowego skalowania tła dla płynnego scrollowania */
.gallery-item { height: 350px; border-radius: 24px; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; border: 1px solid #e2e8f0;}
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: #fff; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-overlay h4 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.gallery-overlay span { font-size: 0.9rem; color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
/* === 12. DYNAMICZNY KALKULATOR (W ANKIECIE) === */
.calc-result-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.calc-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 1px; }
.calc-value { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 900; color: #fff; text-shadow: 0 0 20px rgba(203, 251, 36, 0.2); display: inline-block; }

/* === 13. PREMIUM FOOTER === */
.premium-footer { background: #0a0a0a; color: #f8fafc; padding: 6rem 2rem 2rem; margin-top: 0; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }

.footer-brand h2 { font-family: 'Montserrat', sans-serif; color: var(--frame-color); font-size: 2rem; font-weight: 900; margin-bottom: 20px; letter-spacing: 1px; }
.footer-brand p { color: #94a3b8; line-height: 1.7; font-size: 0.95rem; }

.footer-links h4, .footer-contact h4 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; color: #fff; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 12px; transition: color 0.3s ease; font-size: 0.95rem; }
.footer-links a:hover { color: var(--frame-color); }

.contact-link { display: flex; align-items: center; gap: 10px; color: #94a3b8; text-decoration: none; margin-bottom: 16px; transition: color 0.3s ease; font-size: 0.95rem; }
.contact-link i { width: 18px; height: 18px; color: var(--frame-color); }
.contact-link:hover { color: #fff; }

.social-icons { display: flex; gap: 16px; margin-top: 24px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; transition: all 0.3s ease; }
.social-icons a:hover { background: var(--frame-color); color: #000; transform: translateY(-3px); }
.social-icons i { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; text-align: center; color: #64748b; font-size: 0.85rem; }
/* === 14. ARCHITEKTURA PODSTRON (USŁUGI / BLOG) === */
.subpage-wrapper { background: #ffffff; min-height: 100vh; padding-top: 120px; color: #111; }

.subpage-hero { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.subpage-category { color: var(--frame-color); background: #111; padding: 6px 14px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; }
.subpage-title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: #111; }
.subpage-lead { font-size: 1.25rem; color: #555; line-height: 1.7; max-width: 800px; margin: 0 auto; }

.subpage-content { max-width: 800px; margin: 0 auto; padding: 2rem; font-size: 1.15rem; line-height: 1.8; color: #334155; }
.subpage-content h2 { font-family: 'Montserrat', sans-serif; font-size: 2rem; color: #111; margin: 3rem 0 1.5rem; }
.subpage-content p { margin-bottom: 1.5rem; }
.subpage-content ul { margin-bottom: 2rem; padding-left: 20px; }
.subpage-content li { margin-bottom: 10px; }

/* Komponent: Ekspert Doradza */
.expert-box { background: #f8fafc; border-left: 4px solid var(--frame-color); padding: 3rem; border-radius: 0 24px 24px 0; margin: 4rem 0; display: flex; gap: 2rem; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.expert-avatar { width: 100px; height: 100px; border-radius: 50%; background: #111; color: var(--frame-color); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; flex-shrink: 0; }
.expert-text h4 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; margin-bottom: 10px; color: #111; }
.expert-text p { font-size: 1.05rem; font-style: italic; color: #475569; margin: 0; }

/* Grid Bloga Pod spodem */
.blog-section { background: #f1f5f9; padding: 6rem 2rem; margin-top: 4rem; }
.blog-container { max-width: 1200px; margin: 0 auto; }
.blog-container h2 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; text-align: center; margin-bottom: 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border-radius: 20px; overflow: hidden; transition: transform 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.blog-card:hover { transform: translateY(-10px); }
.blog-img { height: 200px; background-color: #ddd; background-size: cover; background-position: center; }
.blog-info { padding: 30px; }
.blog-date { font-size: 0.85rem; color: #94a3b8; font-weight: 600; margin-bottom: 10px; display: block; }
.blog-info h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; margin-bottom: 15px; color: #111; }
.blog-info p { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

/* === 14b. UJEDNOLICONY JASNY MOTYW PODSTRON === */

/* Hero z przyciskami CTA — wersja jasna, rozszerzona */
.subpage-hero-ext { max-width: 900px; margin: 0 auto; padding: 5rem 2rem 4rem; text-align: center; }
.subpage-hero-ext .subpage-title { font-size: 3.8rem; }
.subpage-hero-ext .subpage-lead { color: #64748b; }
.subpage-hero-ext .hero-cta { margin-top: 3rem; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Przyciski CTA — wersja jasna */
.btn-primary-light { display: inline-flex; align-items: center; gap: 10px; background: var(--frame-color); color: #000; padding: 18px 36px; border-radius: 16px; font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.btn-primary-light:hover { background: #111; color: var(--frame-color); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.btn-secondary-light { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #111; padding: 18px 36px; border-radius: 16px; border: 2px solid #e2e8f0; font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.btn-secondary-light:hover { border-color: var(--frame-color); color: #111; transform: translateY(-3px); }

/* Sekcja jasna z content-section */
.section-light { background: #ffffff; padding: 6rem 2rem; }
.section-offwhite { background: #f8fafc; padding: 6rem 2rem; }
.section-light-alt { background: #f1f5f9; padding: 6rem 2rem; }
.content-section-inner { max-width: 1200px; margin: 0 auto; }

/* Nagłówki sekcji — jasna wersja */
.section-header-light { text-align: center; margin-bottom: 1rem; }
.section-header-light .sp-subtitle { font-family: 'Inter', sans-serif; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.section-header-light h2 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 900; color: #111; }

/* Panel specyfikacji — wersja jasna */
.tech-visual-light { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.tech-visual-light .spec-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid #e2e8f0; }
.tech-visual-light .spec-row:last-child { border-bottom: none; }
.tech-visual-light .spec-label { color: #94a3b8; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.tech-visual-light .spec-value { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: #111; }
.tech-visual-light .spec-title { text-align: center; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 2px; }

/* Lista technologii — jasna wersja */
.tech-list-light { list-style: none; padding: 0; margin: 2rem 0; }
.tech-list-light li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; font-size: 1rem; color: #334155; }
.tech-list-light li::before { content: ''; display: inline-block; width: 20px; height: 20px; min-width: 20px; background: var(--frame-color); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: center; margin-top: 2px; }

/* Sekcja CTA — wersja jasna */
.cta-section-light { background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%); padding: 7rem 2rem; text-align: center; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.cta-section-light .cta-inner h2 { font-family: 'Montserrat', sans-serif; font-size: 3rem; font-weight: 900; color: #111; margin-bottom: 1.5rem; }
.cta-section-light .cta-inner p { color: #64748b; font-size: 1.15rem; line-height: 1.7; margin-bottom: 3rem; }

/* Schemat rekuperatora — wersja jasna */
.rekup-diagram-light { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 28px; padding: 50px; margin-top: 4rem; display: grid; grid-template-columns: 1fr 100px 1fr; gap: 0; align-items: center; }
.rekup-diagram-light .diagram-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: #94a3b8; font-weight: 700; margin-bottom: 12px; }
.rekup-diagram-light .diagram-desc { font-size: 0.9rem; color: #94a3b8; }
.rekup-diagram-light .temp-cold { color: #2563eb; }
.rekup-diagram-light .temp-warm { color: #16a34a; }
.rekup-diagram-light .rekup-box { background: var(--frame-color); color: #000; border-radius: 16px; padding: 16px 20px; text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 0.85rem; letter-spacing: 1px; }
.rekup-diagram-light .eff-badge { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 14px; font-size: 0.8rem; color: #64748b; text-align: center; }

/* Battery showcase — wersja jasna */
.battery-showcase-light { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 28px; padding: 60px; margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.battery-showcase-light .battery-body { border-color: #cbd5e1; background: #fff; }
.battery-showcase-light .battery-tip { background: #e2e8f0; }
.battery-showcase-light .cell.active { background: var(--frame-color); box-shadow: 0 0 12px rgba(203,251,36,0.35); }
.battery-showcase-light .cell.half { background: rgba(203,251,36,0.4); }
.battery-showcase-light .cell.empty { background: #e2e8f0; }
.battery-showcase-light .battery-label { color: #111; }
.battery-showcase-light .battery-sublabel { color: #94a3b8; }
.battery-showcase-light .battery-info h2 { color: #111; }
.battery-showcase-light .battery-info p { color: #64748b; }
.battery-showcase-light .bat-spec { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; }
.battery-showcase-light .bat-spec .bsv { color: #111; }
.battery-showcase-light .bat-spec .bsl { color: #94a3b8; }

/* Info banner — wersja jasna */
.info-banner-light { background: #f0fdf4; border: 1px solid rgba(203,251,36,0.4); border-radius: 20px; padding: 28px 35px; display: flex; align-items: flex-start; gap: 20px; margin-top: 4rem; }
.info-banner-light i { width: 32px; height: 32px; min-width: 32px; color: #16a34a; margin-top: 2px; }
.info-banner-light h4 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.info-banner-light p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* Cost comparison boxes — jasna wersja */
.cost-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3rem; }
.cost-box { border-radius: 20px; padding: 30px; }
.cost-box-before { background: #f8fafc; border: 1px solid #e2e8f0; }
.cost-box-after { background: #f0fdf4; border: 1px solid rgba(203,251,36,0.4); }
.cost-box .cost-value { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 900; color: #111; }
.cost-box-after .cost-value { color: #16a34a; }
.cost-box .cost-label { color: #94a3b8; font-size: 0.85rem; margin-top: 4px; }

/* Integration flow — jasna wersja */
.flow-node-light { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 30px 24px; text-align: center; width: 160px; transition: all 0.3s; }
.flow-node-light:hover { border-color: var(--frame-color); background: #f0fdf4; }
.flow-node-light i { width: 36px; height: 36px; color: #111; margin: 0 auto 14px; display: block; }
.flow-node-light .flow-node-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: #111; }
.flow-node-light.flow-active { border-color: var(--frame-color); background: #f0fdf4; }
.flow-node-light.flow-active i { color: var(--frame-color); }
.flow-arrow-light i { width: 24px; height: 24px; color: #cbd5e1; }

/* Product header — jasna wersja */
.product-header-light { background: #f1f5f9; padding: 35px 30px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.product-header-light .product-name { color: #111; }
.product-header-light .product-sub { color: #94a3b8; }

/* === 14c. BLOG SLIDER — STRONA GŁÓWNA === */
.blog-slider-section { background: #f1f5f9; padding: 6rem 2rem 5rem; }
.blog-slider-container { max-width: 1200px; margin: 0 auto; }
.blog-slider-header { text-align: center; margin-bottom: 3rem; }
.blog-slider-header .sp-subtitle { font-family: 'Inter', sans-serif; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.blog-slider-header h2 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 900; color: #111; }
.blog-slider-wrapper { position: relative; overflow: hidden; border-radius: 20px; }
.blog-slider-track { display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); cursor: grab; user-select: none; padding: 8px 0; }
.blog-slider-track:active { cursor: grabbing; }
.blog-slider-card { min-width: 360px; max-width: 360px; background: #fff; border-radius: 20px; overflow: hidden; flex-shrink: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; }
.blog-slider-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--frame-color); }
.blog-slider-card .blog-img { height: 200px; background-size: cover; background-position: center; background-color: #e2e8f0; }
.blog-slider-card .blog-info { padding: 28px; }
.blog-slider-card .blog-info h3 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: #111; line-height: 1.4; }
.blog-slider-card .blog-info p { color: #64748b; font-size: 0.9rem; line-height: 1.6; margin: 0; }
.blog-slider-card .blog-date { font-size: 0.8rem; color: #94a3b8; font-weight: 600; margin-bottom: 8px; display: block; }

.blog-slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 2.5rem; }
.blog-slider-btn { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; color: #111; }
.blog-slider-btn:hover { background: var(--frame-color); border-color: var(--frame-color); color: #000; transform: scale(1.1); }
.blog-slider-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.blog-slider-btn i { width: 22px; height: 22px; }
.blog-slider-dots { display: flex; gap: 8px; }
.blog-slider-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.blog-slider-dot.active { background: var(--frame-color); width: 28px; border-radius: 5px; }

.blog-slider-cta { text-align: center; margin-top: 3rem; }
.blog-slider-cta .btn-primary-light { font-size: 1rem; padding: 16px 32px; }

@media (max-width: 768px) {
    .blog-slider-card { min-width: 300px; max-width: 300px; }
    .blog-slider-header h2 { font-size: 2rem; }
    .subpage-hero-ext .subpage-title { font-size: 2.2rem; }
    .cta-section-light .cta-inner h2 { font-size: 2rem; }
    .rekup-diagram-light { display: flex; flex-direction: column; gap: 24px; }
    .battery-showcase-light { grid-template-columns: 1fr; gap: 3rem; }
    .cost-boxes { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .interactive-split-grid { grid-template-columns: 1fr; gap: 3rem; }
    .interactive-image-container { height: 400px; order: -1; /* Zdjęcie przeskakuje na górę na mobile */ }
    .blog-slider-card { min-width: 320px; max-width: 320px; }
    .battery-showcase-light { grid-template-columns: 1fr; gap: 3rem; }
    .rekup-diagram-light { display: flex; flex-direction: column; gap: 24px; }
}

/* === 15. PREMIUM UX: PAGE TRANSITION === */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000; /* Ekstremalnie głęboka czerń */
    z-index: 999999; /* Musi przykryć absolutnie wszystko, łącznie z ramkami */
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.transition-logo {
    max-width: 500px; /* Reguluj tę wartość, aby zmniejszyć/zwiększyć logo */
    height: auto;
    opacity: 0;
}

/* === 16. MAGNETIC UI OVERRIDES === */
/* Aby efekt magnetyczny działał poprawnie, elementy nie mogą mieć transition transform z CSS, 
   bo będzie się to gryzło z GSAP. Ograniczamy CSS transition tylko do kolorów. */
.trap-link-left, .trap-link-right, .submit-btn {
    transition: background 0.3s ease, color 0.3s ease !important;
    will-change: transform;
}
.survey-panel h3 { font-family: 'Montserrat', sans-serif; margin-bottom: 2rem; font-size: 1.5rem; text-align: center; color: #ffffff; }
.slider-group { margin-bottom: 1.5rem; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: #ffffff; }
.emoji-display { font-size: 1.5rem; background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 10px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: var(--frame-color); cursor: pointer; margin-top: -8px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: rgba(255, 255, 255, 0.2); border-radius: 5px; }
.slider-desc { display: block; margin-top: 8px; font-size: 0.9rem; text-align: center; }
.submit-btn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; width: 100%; padding: 15px; background: rgba(255,255,255,0.1); border: 1px solid var(--frame-color); color: #ffffff; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s; margin-top: 1rem; }
.submit-btn:hover { background: var(--frame-color); color: #000; }
/* === 17. RYGORYSTYCZNA RESPONSOWNOŚĆ PREMIUM (TABLET & MOBILE) === */

/* --- TABLETY I MAŁE MONITORY (MAX 1024px) --- */
@media (max-width: 1024px) {
    .scroll-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4rem;
        padding: 6rem 2rem;
    }

    .hero-section {
        padding-top: 160px; /* Zapewnia miejsce dla górnej nawigacji */
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny zamiast 4 */
        gap: 20px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* --- SMARTFONY (MAX 768px) --- */
@media (max-width: 768px) {
    :root {
        --border-width: 8px; /* Cieńsze, bardziej eleganckie ramki na małym ekranie */
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    /* Dopasowanie szerokości ankiety Liquid Glass do ekranu telefonu */
    .survey-panel {
        width: 100%;
        max-width: 440px;
        padding: 25px 20px;
        margin-top: 0; /* ZMIANA: Reset na mobile */
    }

    .placeholder-section {
        padding: 4rem 1.5rem;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .sp-title {
        font-size: 2rem;
    }

    .sp-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Pełne przejście wszystkich siatek w układ jednokolumnowy */
    .services-grid, 
    .bento-grid, 
    .reviews-grid, 
    .gallery-grid, 
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .col-span-2 {
        grid-column: span 1; /* Kasowanie rozciągnięcia bento */
    }

    .bento-item {
        padding: 30px 20px;
    }

    /* Przebudowa kontenera mapy */
    .map-container {
        flex-direction: column;
        height: auto;
    }

    .map-info {
        padding: 30px 20px;
    }

    .map-placeholder {
        height: 250px;
    }

    /* Optymalizacja dolnego paska z telefonem pod kciuk */
    #bottom-phone-tab {
        padding: 15px 40px 8px 40px;
        width: 100%;
        max-width: 320px;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    .phone-icon {
        width: 24px;
        height: 24px;
    }

    /* Typografia podstron merytorycznych */
    .subpage-title {
        font-size: 2.2rem;
    }

    .subpage-lead {
        font-size: 1.1rem;
    }

    .subpage-content {
        padding: 1rem;
        font-size: 1.05rem;
    }

    .expert-box {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }
}
/* === 18. MOBILE KINETIC MENU === */

/* Ukrycie przycisku i nakładki na desktopie */
#mobile-menu-btn { display: none; }
.mobile-nav-overlay { display: none; }

/* Logika widoczności dla mobile/tablet */
@media (max-width: 1024px) {
    /* Modyfikacja górnej belki: ukrycie trapezów i uproszczenie logotypu */
    .nav-group { display: none !important; }
    #master-header { justify-content: flex-start; padding: 20px; align-items: center; top: 0; pointer-events: none; }
    
    .logo-center { 
        background: transparent; 
        clip-path: none; 
        margin: 0; 
        animation: none; 
        transform: none !important; 
        height: auto; 
        width: auto;
        pointer-events: auto;
    }
    .logo-center h1 { color: #fff; font-size: 2rem; margin-top: 0; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }

    /* Pływający Przycisk Menu */
    #mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10005;
        background: var(--frame-color);
        border: none;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        cursor: pointer;
        color: #000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    #mobile-menu-btn i { width: 26px; height: 26px; }

    /* Kurtyna Menu */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: #050505;
        z-index: 10006; /* Nad wszystkim */
        opacity: 0; /* Sterowane przez GSAP */
        pointer-events: none; /* Blokuje kliknięcia gdy ukryte */
    }

    .mobile-nav-inner {
        width: 100%; height: 100%;
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        position: relative;
    }

    #mobile-close-btn {
        position: absolute;
        top: 15px; right: 15px;
        background: transparent; border: none; color: #fff;
        width: 55px; height: 55px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    #mobile-close-btn i { width: 32px; height: 32px; }

    /* Linki w kurtynie */
    .mobile-links { display: flex; flex-direction: column; align-items: center; gap: 16px; }
    .mobile-links a {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.6rem;
        font-weight: 900;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0; /* Sterowane przez GSAP */
        transform: translateY(40px); /* Sterowane przez GSAP */
        transition: color 0.3s;
    }
    .mobile-links a:hover, .mobile-links a:active { color: var(--frame-color); }
    
    .mobile-contact { margin-top: 50px; opacity: 0; transform: translateY(20px); }
    .mobile-contact a { color: var(--frame-color); font-weight: 700; font-size: 1.4rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
} /* <--- KLUCZOWE: ZAMKNIĘCIE REGUŁY @media */

/* === 19. PREMIUM SUCCESS STATE (ANKIETA) === */
.success-checkmark { width: 80px; height: 80px; margin: 0 auto; display: block; }
.success-circle { 
    stroke: var(--frame-color); 
    stroke-width: 3; 
    stroke-miterlimit: 10; 
    stroke-dasharray: 166; 
    stroke-dashoffset: 166; /* Domyślnie schowane do animacji GSAP */
}
.success-check { 
    stroke: var(--frame-color); 
    stroke-dasharray: 48; 
    stroke-dashoffset: 48; /* Domyślnie schowane */
    stroke-width: 4; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}
/* === 21. MAGNETIC GLOW EFFECT (EFEKT LATARKI NA KARTACH) === */
.bento-item, .service-card {
    position: relative;
    overflow: hidden; /* Utrzymuje glow wewnątrz karty */
}
/* === 22. KOMPONENTY PREMIUM === */
.premium-hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}
.hardware-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hardware-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--frame-color);
}
.hardware-icon {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #111;
}
.hardware-icon i { width: 32px; height: 32px; }
.hardware-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; margin-bottom: 15px; color: #111; }
.hardware-card p { color: #555; line-height: 1.6; font-size: 0.95rem; }

/* === 23. INTERAKTYWNE FAQ === */
.faq-container { margin-top: 3rem; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 25px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-icon { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); color: var(--frame-color); min-width: 24px; }
.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s ease;
}
.faq-answer p { color: #475569; line-height: 1.7; font-size: 1.05rem; padding-bottom: 25px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 300px; /* Rozwija kontener */ }
/* === 24. SPLIT HERO (FOTOWOLTAIKA) === */
.hero-split-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Równy podział na tekst i zdjęcie */
    gap: 5rem;
    align-items: center;
}

.hero-split-text {
    text-align: left;
}

.hero-split-text .subpage-category { margin-bottom: 25px; }

.hero-split-text .subpage-title {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: left;
}

.hero-split-text .subpage-lead {
    margin: 0 0 2.5rem 0;
    font-size: 1.15rem;
    text-align: left;
}

.hero-split-text .hero-cta {
    justify-content: flex-start; /* Przyciski do lewej */
    margin-top: 0;
}

.hero-split-image {
    position: relative;
    height: 500px;
    border-radius: 30px;
    background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}
/* === 25. INTERAKTYWNY PRZEPŁYW ENERGII (IMAGE SWITCHER) === */
.interactive-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.interactive-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inter-step {
    display: flex;
    gap: 24px;
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inter-step:hover {
    background: #f1f5f9;
}

.inter-step.active {
    background: #ffffff;
    border-color: var(--frame-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.inter-step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #cbd5e1;
    transition: color 0.4s ease;
    line-height: 1;
    margin-top: 2px;
}

.inter-step.active .inter-step-num {
    color: var(--frame-color);
}

.inter-step-txt h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.inter-step-txt p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.interactive-image-container {
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #e2e8f0; /* Kolor zastępczy podczas ładowania */
}

.inter-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.interactive-image-container:hover .inter-img {
    transform: scale(1.04);
}
/* === 26. UNIKALNY DIAGRAM REKUPERACJI === */
.rekup-diagram-light {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 50px;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.rekup-box {
    background: #111;
    color: var(--frame-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.eff-badge {
    background: var(--frame-color);
    color: #111;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin-top: -20px;
    z-index: 2;
    position: relative;
    border: 3px solid #fff;
}

.diagram-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 10px;
}

.diagram-desc {
    font-size: 0.95rem;
    color: #475569;
}
/* === LUZEM WKLEJONE @MEDIA Z POPRZEDNIEGO KROKU ORAZ DO NOWEGO HERO === */
@media (max-width: 1024px) {
    .premium-hardware-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* --- MOBILE HERO: Robust Edge-to-Edge Layout --- */
    .hero-split-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* -32px offsets the 16px padding from .section-light and 16px from .subpage-wrapper */
        margin-left: -32px !important;
        margin-right: -32px !important;
        /* Pull up to counteract .subpage-wrapper (90px) and .section-light (3rem) top paddings */
        margin-top: calc(-90px - 3rem) !important;
        width: auto !important;
        position: relative !important;
        z-index: 1 !important;
        overflow: hidden !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .hero-split-text {
        width: 100% !important;
        /* Add safe padding for the text since the container is now at the screen edge */
        /* Push the text back down by exactly the same amount it was pulled up */
        padding-top: calc(2rem + 90px + 3rem) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-bottom: 0 !important;
        position: relative !important;
        z-index: 2 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }
    
    .hero-split-text .subpage-title, .hero-split-text .subpage-lead {
        text-align: center !important;
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }
    .hero-split-text .subpage-lead {
        margin-bottom: 2rem;
    }
    .hero-split-text .subpage-category {
        background: rgba(255,255,255,0.15);
        color: #fff;
        text-shadow: none;
        border: 1px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(5px);
    }
    .hero-split-text .hero-experience-badge {
        background: rgba(203, 251, 36, 0.9) !important;
    }
    .hero-split-text .hero-experience-badge i,
    .hero-split-text .hero-experience-badge span {
        color: #000 !important;
    }
    .hero-split-text .hero-cta {
        background: #ffffff !important;
        /* Expand the white background by exactly the 20px text padding to reach the container edge (screen edge) */
        margin-left: -20px !important;
        margin-right: -20px !important;
        /* Push the buttons back to the safe zone */
        padding: 2rem 20px 1.5rem 20px !important;
        margin-top: 2rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        width: auto !important;
    }
    .hero-split-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    .hero-split-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }
    .hero-split-image .floating-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .rekup-diagram-light { flex-direction: column; gap: 40px; padding: 30px 20px; }
    .premium-hardware-grid { grid-template-columns: 1fr; }
    .hero-split-text .subpage-title { font-size: 2.2rem; }
}
/* Pseudoelement generujący poświatę śledzącą kursor */
.bento-item::before, .service-card::before, .review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Zoptymalizowana, kompatybilna składnia gradientu. Środek precyzyjnie śledzi mysz. */
    background: radial-gradient(circle 350px at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(203, 251, 36, 0.4), transparent);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover::before, .service-card:hover::before, .review-card:hover::before {
    opacity: 1; /* Zapala latarkę przy najechaniu */
}

/* Wymuszenie, aby treść karty była ZAWSZE nad poświatą */
.bento-item > *, .service-card > *, .review-card > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   NOWY SYSTEM ANIMACJI – PREMIUM SUBPAGE UPGRADE
   ============================================================ */

/* === REVEAL ENTRANCE ANIMATIONS === */
/* Elementy domyślnie WIDOCZNE. Ukrywanie (opacity:0) działa TYLKO
   gdy JavaScript poprawnie załaduje się i doda klasę .reveal-active
   do <html>. Dzięki temu nigdy nie będzie pustych bloków. */

[data-reveal] {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-active [data-reveal] { opacity: 0; }
.reveal-active [data-reveal="fade-up"] { transform: translateY(50px); }
.reveal-active [data-reveal="fade-left"] { transform: translateX(-50px); }
.reveal-active [data-reveal="fade-right"] { transform: translateX(50px); }
.reveal-active [data-reveal="fade-scale"] { transform: scale(0.9); }
.reveal-active [data-reveal="fade-down"] { transform: translateY(-30px); }

.reveal-active [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays – działają tylko z reveal-active */
.reveal-active [data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal-active [data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal-active [data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal-active [data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal-active [data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal-active [data-reveal-delay="6"] { transition-delay: 0.6s; }


/* === FLOATING BADGE === */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
}

.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: float 5s ease-in-out infinite;
    position: absolute;
    z-index: 5;
}

.floating-badge i { width: 18px; height: 18px; color: var(--frame-color); }

.floating-badge.badge-accent {
    background: var(--frame-color);
    color: #000;
    border-color: transparent;
}

.floating-badge.badge-accent i { color: #000; }

/* === ANIMATED STAT COUNTERS === */
.stats-strip-section {
    padding: 5rem 2rem;
}

.stats-strip {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-counter {
    padding: 2rem 1rem;
    position: relative;
}

.stat-counter::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

.stat-counter:last-child::after { display: none; }

.counter-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #111;
    line-height: 1;
    display: block;
}

.counter-suffix {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--frame-color);
}

.counter-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-top: 10px;
    display: block;
}

/* === GRADIENT ORB BACKGROUND === */
@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.22; }
}

.section-with-orb {
    position: relative;
    overflow: hidden;
}

.section-with-orb > * { position: relative; z-index: 1; }

.section-with-orb::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(203,251,36,0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbPulse 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* === VERTICAL TIMELINE === */
.timeline-vertical {
    position: relative;
    padding-left: 70px;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--frame-color), #e2e8f0 80%);
}

.timeline-step {
    position: relative;
    padding: 25px 0 40px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--frame-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(203,251,36,0.4);
    z-index: 2;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(203,251,36,0.4), 0 0 0 6px rgba(203,251,36,0); }
    50% { box-shadow: 0 0 0 3px rgba(203,251,36,0.4), 0 0 0 14px rgba(203,251,36,0.15); }
}

.timeline-dot.pulse {
    animation: dotPulse 2.5s ease-in-out infinite;
}

.timeline-step-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--frame-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 10px;
}

.timeline-step p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === GLOW BORDER CARDS === */
@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glow-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--frame-color), #e2e8f0, var(--frame-color), #e2e8f0);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 5s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card > * { position: relative; z-index: 1; }

.glow-card .card-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.glow-card:hover .card-icon {
    background: rgba(203,251,36,0.15);
}

.glow-card .card-icon i { width: 28px; height: 28px; color: #111; }

.glow-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 12px;
}

.glow-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === COMPARISON BARS (ANIMATED) === */
.comparison-bar-container {
    max-width: 700px;
    margin: 3rem auto 0;
}

.comparison-bar-item {
    margin-bottom: 2.5rem;
}

.comparison-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.comparison-bar-name {
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.comparison-bar-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #111;
}

.comparison-bar-track {
    background: #f1f5f9;
    border-radius: 12px;
    height: 44px;
    overflow: hidden;
    position: relative;
}

.comparison-bar-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    width: 0;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-bar-fill.bar-old {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.comparison-bar-fill.bar-new {
    background: linear-gradient(90deg, #4ade80, #16a34a);
}

[data-reveal].is-visible .comparison-bar-fill,
.comparison-bar-fill {
    width: var(--bar-width);
}

/* === PULSE RING (EXPERT AVATAR) === */
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.expert-avatar-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.expert-avatar-wrapper::before,
.expert-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--frame-color);
    animation: pulseRing 3s ease-out infinite;
    pointer-events: none;
}

.expert-avatar-wrapper::after {
    animation-delay: 1.5s;
}

/* === HOVER TILT 3D === */
.tilt-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-3deg) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

/* === MARQUEE (BRANDS SCROLL) === */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #d1d5db;
    letter-spacing: 3px;
    white-space: nowrap;
    transition: color 0.3s;
    cursor: default;
}

.marquee-tag:hover { color: #111; }

/* === TRUST BADGES === */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.trust-badge {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-badge:hover {
    border-color: var(--frame-color);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.trust-badge-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: background 0.3s;
}

.trust-badge:hover .trust-badge-icon {
    background: rgba(203,251,36,0.15);
}

.trust-badge-icon i { width: 28px; height: 28px; color: #111; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.trust-badge:hover .trust-badge-icon i {
    animation: iconFloat 1s ease-in-out infinite;
}

.trust-badge h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    margin-bottom: 10px;
}

.trust-badge p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === FLOATING FORM LABELS === */
.float-label-group {
    position: relative;
}

.float-label-group input,
.float-label-group textarea {
    width: 100%;
    padding: 20px 16px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: #111;
}

.float-label-group textarea {
    resize: none;
    min-height: 120px;
}

.float-label-group input:focus,
.float-label-group textarea:focus {
    border-color: var(--frame-color);
    box-shadow: 0 0 0 3px rgba(203,251,36,0.12);
}

.float-label-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    background: transparent;
}

.float-label-group textarea ~ label {
    top: 20px;
    transform: none;
}

.float-label-group input:focus ~ label,
.float-label-group input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
    font-size: 0.7rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.float-label-group textarea:focus ~ label,
.float-label-group textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    transform: none;
    font-size: 0.7rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* === FILTER BUTTONS (GALLERY) === */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--frame-color);
    color: #000;
    border-color: var(--frame-color);
    transform: translateY(-2px);
}

/* === FEATURE ICON ROW === */
.feature-icons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-icon-item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
}

.feature-icon-item:hover {
    border-color: var(--frame-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: background 0.3s;
}

.feature-icon-item:hover .feature-icon-circle {
    background: rgba(203,251,36,0.15);
}

.feature-icon-circle i { width: 30px; height: 30px; color: #111; }

.feature-icon-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    margin-bottom: 6px;
}

.feature-icon-item p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* === CTA SECTION ENHANCED === */
.cta-section-premium {
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section-premium::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(203,251,36,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
    pointer-events: none;
}

.cta-section-premium > * { position: relative; z-index: 1; }

/* === RESPONSIVE FOR NEW COMPONENTS === */
@media (max-width: 1024px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-badges { grid-template-columns: repeat(2, 1fr); }
    .feature-icons-row { grid-template-columns: repeat(2, 1fr); }
    .glow-card { padding: 30px; }
}

@media (max-width: 768px) {
    .stats-strip { grid-template-columns: 1fr; }
    .trust-badges { grid-template-columns: 1fr; }
    .feature-icons-row { grid-template-columns: 1fr 1fr; }
    .counter-value { font-size: 2.5rem; }
    .timeline-vertical { padding-left: 50px; }
    .timeline-dot { left: -30px; }
    .floating-badge { display: none; }
    .stat-counter::after { display: none; }
    .comparison-bar-value { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .feature-icons-row { grid-template-columns: 1fr; }
}

/* === EXPERT BOX - NEW CLASSES === */
.expert-box {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
}

.expert-content {
    flex: 1;
}

.expert-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    margin: 0 0 16px 0;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--frame-color);
}

.expert-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === REKUP DIAGRAM - NEW LAYOUT CLASSES === */
.rekup-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.rekup-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.rekup-temp-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rekup-temp-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 160px;
}

.rekup-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.rekup-arrow i { width: 28px; height: 28px; }

.rekup-exchanger {
    background: #111;
    color: var(--frame-color);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    margin: 0 auto;
    width: 180px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.rekup-exchanger-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.rekup-efficiency-badge {
    background: var(--frame-color);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    padding: 16px 28px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(203,251,36,0.3);
}

/* === SECTION-WITH-ORB CHILDREN FIX === */
.section-with-orb .content-section-inner,
.section-with-orb .stats-strip,
.section-with-orb .hero-split-container,
.section-with-orb .subpage-hero-ext > * {
    position: relative;
    z-index: 1;
}

/* === REKUP DIAGRAM RESPONSIVE === */
@media (max-width: 768px) {
    .rekup-diagram-light {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    .rekup-col { align-items: center; text-align: center; }
    .rekup-temp-desc { max-width: 100%; }
    .expert-box { flex-direction: column; gap: 1.5rem; }
    .expert-quote { padding-left: 14px; font-size: 0.95rem; }
}

/* ============================================================
   HOMEPAGE PREMIUM REDESIGN 2.0
   All classes prefixed with hp- to avoid conflicts with subpages
   ============================================================ */

/* --- NEW CUSTOM PROPERTIES --- */
:root {
    --hp-gradient-accent: linear-gradient(135deg, #cbfb24, #34d399);
    --hp-dark-bg: #060b16;
    --hp-card-border: rgba(203, 251, 36, 0.15);
    --hp-card-glow: 0 0 30px rgba(203, 251, 36, 0.08);
    --hp-text-secondary: #8896ab;
}

/* --- KEYFRAMES --- */
@keyframes hp-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(203, 251, 36, 0.6); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(203, 251, 36, 0); }
}

@keyframes hp-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes hp-float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes hp-glow-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes hp-scale-in {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes hp-slide-up {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes hp-counter-line {
    0% { width: 0; }
    100% { width: 60px; }
}

/* --- HERO ENHANCEMENTS --- */
.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(203, 251, 36, 0.08);
    border: 1px solid rgba(203, 251, 36, 0.25);
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hp-slide-up 0.8s ease-out 0.2s both;
}

.hp-dot {
    width: 10px;
    height: 10px;
    background: var(--frame-color);
    border-radius: 50%;
    animation: hp-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hp-hero-badge span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Usunięto problematyczny gradient tekstu nagłówka hero powodujący przezroczystość */

/* Trust strip below hero description */
.hp-trust-strip {
    display: flex;
    gap: 24px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: hp-slide-up 0.8s ease-out 0.6s both;
}

.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
}

.hp-trust-item i {
    width: 20px;
    height: 20px;
    color: var(--frame-color);
    flex-shrink: 0;
}

/* --- WAVE SEPARATOR --- */
.hp-wave-separator {
    position: relative;
    z-index: 10;
    margin-top: -2px;
    line-height: 0;
}

.hp-wave-separator svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ENHANCED SECTION STYLING --- */
.hp-section-enhanced {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Subtle gradient mesh overlay for depth */
.hp-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(203, 251, 36, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(52, 211, 153, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 90%, rgba(203, 251, 36, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hp-section-enhanced > * {
    position: relative;
    z-index: 1;
}

/* --- SECTION HEADER PREMIUM --- */
.hp-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hp-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(203, 251, 36, 0.08);
    border: 1px solid rgba(203, 251, 36, 0.2);
    color: #4a5c24;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hp-section-tag i {
    width: 16px;
    height: 16px;
    color: #4a5c24;
}

.hp-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    max-width: 700px;
    margin: 0 auto;
}

.hp-section-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* --- SERVICE CARDS ENHANCED --- */
.hp-services-grid .service-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 28px;
    padding: 44px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated gradient border on hover */
.hp-services-grid .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, var(--frame-color), #34d399, var(--frame-color), #34d399);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hp-glow-rotate 4s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.hp-services-grid .service-card:hover::after {
    opacity: 1;
}

.hp-services-grid .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06), var(--hp-card-glow);
    border-color: transparent;
}

.hp-services-grid .service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-radius: 18px;
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-services-grid .service-card:hover .service-icon {
    background: var(--hp-gradient-accent);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(203, 251, 36, 0.3);
}

.hp-services-grid .service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.hp-services-grid .service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
}

.hp-services-grid .service-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    transition: all 0.3s;
}

.hp-services-grid .service-card:hover .service-link {
    color: #3d6b1e;
}

/* --- STATS ENHANCED --- */
.hp-stats .stat-box {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.hp-stats .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    background: var(--hp-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    -webkit-text-stroke: 0;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.hp-stats .stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hp-stats .stat-box::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--hp-gradient-accent);
    border-radius: 2px;
    margin: 1rem auto 0;
    animation: hp-counter-line 1s ease-out 0.5s both;
}

/* --- BENTO GRID ENHANCED --- */
.hp-bento .bento-item {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 28px;
    padding: 44px 36px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hp-bento .bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), var(--hp-card-glow);
    border-color: rgba(203, 251, 36, 0.3);
}

.hp-bento .bento-item h3 {
    font-size: 1.55rem;
    margin-bottom: 16px;
    color: #0f172a;
}

.hp-bento .bento-item p {
    font-size: 1.08rem;
    color: #64748b;
    line-height: 1.75;
}

/* Dark bento card enhanced */
.hp-bento .bento-item.bg-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(203, 251, 36, 0.15);
}

.hp-bento .bento-item.bg-dark:hover {
    border-color: rgba(203, 251, 36, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(203, 251, 36, 0.05);
}

.hp-bento .bento-item.bg-dark h3 {
    color: #ffffff;
}

.hp-bento .bento-item.bg-dark p {
    color: #94a3b8;
}

/* Shimmer CTA button */
.hp-shimmer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 28px;
    background: var(--frame-color);
    color: #000;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hp-shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: hp-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.hp-shimmer-btn:hover {
    background: #111;
    color: var(--frame-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.hp-shimmer-btn:hover::before {
    animation: none;
    opacity: 0;
}

/* --- REVIEW CARDS ENHANCED --- */
.hp-reviews .review-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 28px;
    padding: 40px 34px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient left border accent */
.hp-reviews .review-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: var(--hp-gradient-accent);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hp-reviews .review-card:hover::before {
    opacity: 1;
}

.hp-reviews .review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(203, 251, 36, 0.2);
}

/* Floating quote mark */
.hp-quote-mark {
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(203, 251, 36, 0.15);
    position: absolute;
    top: 16px;
    right: 24px;
    pointer-events: none;
}

.hp-reviews .review-text {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #334155;
    font-style: normal;
}

.hp-reviews .review-stars {
    margin-bottom: 20px;
}

.hp-reviews .author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    font-size: 0.9rem;
}

/* Google rating badge */
.hp-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.hp-google-badge .hp-google-icon {
    width: 24px;
    height: 24px;
}

.hp-google-badge .hp-rating-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #111;
}

.hp-google-badge .hp-rating-stars {
    display: flex;
    gap: 2px;
    color: #eab308;
}

.hp-google-badge .hp-rating-stars i,
.hp-google-badge .hp-rating-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hp-google-badge .hp-rating-count {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- GALLERY ENHANCED --- */
.hp-gallery .gallery-item {
    border-radius: 28px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.hp-gallery .gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hp-gallery .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.hp-gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- MAP SECTION ENHANCED --- */
.hp-map .map-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #0f172a;
    border: 1px solid rgba(203, 251, 36, 0.2);
    border-radius: 28px;
    overflow: hidden;
    height: auto !important;
    min-height: auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hp-map .map-info {
    flex: 1.15;
    background: #0f172a;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    box-sizing: border-box;
}

.hp-map .map-info h3 {
    color: #ffffff !important;
    font-size: 1.35rem;
    font-weight: 800;
}

.hp-map .map-info p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hp-map .map-placeholder {
    flex: 0.85;
    position: relative;
    min-height: 480px;
    height: auto;
    background: #0b1120;
    overflow: hidden;
    border-radius: 0;
}

.hp-map .map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hp-map .map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--frame-color);
    color: #000000;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--frame-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hp-map .map-link:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.hp-map .map-link i {
    width: 18px;
    height: 18px;
    animation: hp-float-soft 3s ease-in-out infinite;
}

/* --- CTA BANNER --- */
.hp-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 251, 36, 0.1);
}

.hp-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(203, 251, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hp-cta-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
}

.hp-cta-content p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hp-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.hp-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--frame-color);
    color: #000;
    padding: 18px 36px;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hp-cta-btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hp-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hp-cta-btn-secondary:hover {
    border-color: var(--frame-color);
    color: var(--frame-color);
    transform: translateY(-3px);
}

/* --- BLOG SLIDER ENHANCED --- */
.hp-blog .blog-slider-card {
    border-radius: 24px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-blog .blog-slider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(203, 251, 36, 0.3);
}

.hp-blog .blog-slider-card .blog-img {
    position: relative;
    overflow: hidden;
}

.hp-blog .blog-slider-card .blog-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hp-blog .blog-slider-card .blog-info h3 {
    font-size: 1.15rem;
    line-height: 1.45;
    transition: color 0.3s;
}

.hp-blog .blog-slider-card:hover .blog-info h3 {
    color: #3d6b1e;
}

/* --- SECTION DIVIDER --- */
.hp-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
}

/* --- FLOATING DECORATIVE ELEMENTS --- */
.hp-float-element {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hp-float-element--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(203, 251, 36, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -5%;
    animation: hp-float-soft 8s ease-in-out infinite;
}

.hp-float-element--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -8%;
    animation: hp-float-soft 10s ease-in-out infinite 2s;
}

.hp-float-element--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(203, 251, 36, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: hp-float-soft 7s ease-in-out infinite 1s;
}

/* --- ENHANCED BLOG SECTION BG --- */
.hp-blog-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.hp-blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .hp-section-title { font-size: 2.5rem; }
    .hp-stats .stat-number { font-size: 4rem; }
    .hp-cta-banner { flex-direction: column; text-align: center; padding: 48px 36px; }
    .hp-cta-content { text-align: center; }
    .hp-cta-actions { justify-content: center; flex-wrap: wrap; }
    .hp-trust-strip { justify-content: center; }
    
    .hp-map .map-container {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 24px !important;
    }
    .hp-map .map-info {
        padding: 36px 30px !important;
        width: 100% !important;
        flex: none !important;
    }
    .hp-map .map-placeholder {
        width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        flex: none !important;
        border-radius: 0 0 24px 24px !important;
    }
}

@media (max-width: 768px) {
    .hp-section-title { font-size: 2rem; }
    .hp-section-header { margin-bottom: 3rem; }
    .hp-stats .stat-number { font-size: 3.2rem; }
    .hp-trust-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hp-cta-banner { padding: 36px 24px; margin-top: 4rem; }
    .hp-cta-content h3 { font-size: 1.7rem; }
    .hp-cta-actions { flex-direction: column; width: 100%; }
    .hp-cta-btn-primary, .hp-cta-btn-secondary { width: 100%; justify-content: center; }
    .hp-hero-badge { margin-bottom: 1.5rem; }
    .hp-google-badge { margin-bottom: 2rem; }
    .hp-map .map-container {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 20px !important;
    }
    .hp-map .map-info {
        padding: 28px 20px !important;
        width: 100% !important;
        flex: none !important;
    }
    .hp-map .map-info h3 {
        font-size: 1.25rem !important;
        margin-bottom: 10px !important;
    }
    .hp-map .map-placeholder {
        width: 100% !important;
        height: 320px !important;
        min-height: 320px !important;
        flex: none !important;
        border-radius: 0 0 20px 20px !important;
    }
    .hp-quote-mark { font-size: 3.5rem; }
}

@media (max-width: 480px) {
    .hp-trust-strip { align-items: center; }
    .hero-text h2 { -webkit-text-fill-color: #fff; background: none; }
    .hp-map .map-container {
        border-radius: 16px !important;
    }
    .hp-map .map-info {
        padding: 20px 14px !important;
    }
    .hp-map .map-info h3 {
        font-size: 1.15rem !important;
    }
    .district-pills-wrap {
        gap: 6px !important;
        margin: 8px 0 16px !important;
    }
    .district-pill {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
    }
    .hp-map .map-placeholder {
        height: 280px !important;
        min-height: 280px !important;
        border-radius: 0 0 16px 16px !important;
    }
    .hp-map-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
    }
    .hp-map .map-link {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* === PEŁNA OPTYMALIZACJA MOBILNA (ZAPOBIEGANIE UCINANIU TEKSTU I WYCHODZENIU ZA EKRAN) === */
@media (max-width: 768px) {

    /* ============================================================
       A. GLOBALNE ZABEZPIECZENIA
       ============================================================ */

    /* A1. Blokada poziomego scrolla na najwyższym poziomie */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
        position: relative;
    }

    /* A2. Uniwersalna reguła: KAŻDY element musi się mieścić */
    *, *::before, *::after {
        max-width: 100%;
        box-sizing: border-box !important;
    }

    /* A3. Globalne łamanie wyrazów — żadne polskie słowo nie rozsadzi layoutu */
    h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, label, button {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* ============================================================
       B. STRONA GŁÓWNA (INDEX.HTML) — HERO I SEKCJE
       ============================================================ */

    /* B1. Tło sekcji Hero (naprawa niewidocznego białego tekstu na białym tle) */
    .hero-section {
        background-image: linear-gradient(rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0.95)), url('tlo1.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        margin-top: -88px !important;
        padding-top: 248px !important;
    }

    /* B2. Hero tekst */
    .hero-text h2 {
        font-size: 2.2rem !important;
    }

    /* B3. Logo na kurtynie przejścia */
    .transition-logo {
        width: 80% !important;
        max-width: 280px !important;
    }

    /* B4. Kontenery strony głównej — redukcja paddingów */
    .sp-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
    }

    .scroll-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
    }

    /* B5. Nagłówki HP */
    .hp-section-subtitle, .hp-section-title {
        width: 100% !important;
        max-width: 100% !important;
        hyphens: auto;
    }

    /* ============================================================
       C. PODSTRONY — KONTENERY, HERO, TREŚĆ
       ============================================================ */

    /* C1. Główny wrapper podstron */
    .subpage-wrapper, .blog-post-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 90px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    /* C2. Hero podstron */
    .subpage-hero, .subpage-hero-ext, .blog-post-hero {
        padding: 2rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .subpage-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .subpage-lead {
        font-size: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* C3. Treść podstron — zero marginesów w prawo */
    .subpage-content, .blog-post-content {
        padding: 1rem 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1rem !important;
    }

    .subpage-content h2 {
        font-size: 1.6rem !important;
        margin: 2rem 0 1rem !important;
    }

    .subpage-content ul {
        padding-left: 18px !important;
    }

    /* ============================================================
       D. SEKCJE JASNE (.section-light, .section-offwhite, etc.)
       ============================================================ */

    .section-light, .section-offwhite, .section-light-alt {
        padding: 3rem 16px !important;
    }

    .content-section-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* D1. Nagłówki sekcji */
    .section-header-light {
        margin-bottom: 1.5rem !important;
    }

    .section-header-light h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    .section-header-light .sp-subtitle {
        font-size: 0.8rem !important;
    }

    /* ============================================================
       E. FAQ — NAPRAWA UCINANIA ODPOWIEDZI
       ============================================================ */

    /* E1. Kontener FAQ */
    .faq-container {
        margin-top: 2rem !important;
        gap: 10px !important;
    }

    /* E2. Pytanie — mniejszy padding i czcionka */
    .faq-question {
        padding: 18px 16px !important;
        font-size: 1rem !important;
        gap: 12px !important;
    }

    /* E3. Odpowiedź — KLUCZOWE: max-height musi być wystarczająco duży */
    .faq-answer {
        padding: 0 16px !important;
    }

    .faq-item.active .faq-answer {
        max-height: 2000px !important; /* Gwarancja, że ŻADNA odpowiedź nie zostanie ucięta */
        padding-bottom: 16px !important;
    }

    .faq-answer p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        padding-bottom: 12px !important;
    }

    /* ============================================================
       F. GRIDY I LAYOUTY — WSZYSTKO W JEDNĄ KOLUMNĘ
       ============================================================ */

    /* F1. Blog grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* F2. Hero split — style mobilne przeniesione do bloku @media(max-width:1024px) wyżej */

    /* F3. Interactive split grid (Jak Działa) */
    .interactive-split-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .interactive-image-container {
        height: 280px !important;
        order: -1 !important;
    }

    .inter-step {
        padding: 18px 16px !important;
        gap: 16px !important;
    }

    .inter-step-num {
        font-size: 1.5rem !important;
    }

    .inter-step-txt h3 {
        font-size: 1.1rem !important;
    }

    .inter-step-txt p {
        font-size: 0.9rem !important;
    }

    /* F4. Premium hardware grid */
    .premium-hardware-grid {
        grid-template-columns: 1fr !important;
    }

    /* F5. Stats strip, trust badges, feature icons */
    .stats-strip, .trust-badges {
        grid-template-columns: 1fr !important;
    }

    .feature-icons-row {
        grid-template-columns: 1fr 1fr !important;
    }

    /* F6. Rekuperacja diagram */
    .rekup-diagram-light {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 24px 16px !important;
    }

    .rekup-exchanger {
        width: 140px !important;
    }

    /* F7. Battery showcase i cost boxes */
    .battery-showcase-light {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .cost-boxes {
        grid-template-columns: 1fr !important;
    }

    /* ============================================================
       G. KARTY, BOKSY, ELEMENTY UI
       ============================================================ */

    /* G1. Karty usług */
    .hp-services-grid .service-card, .bento-item {
        padding: 24px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* G2. Expert box */
    .expert-box {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 24px 16px !important;
        border-radius: 16px !important;
        width: 100% !important;
    }

    .expert-box .expert-avatar,
    .expert-avatar {
        margin: 0 auto !important;
    }

    /* G3. Tech visual panel */
    .tech-visual-light {
        padding: 24px 16px !important;
    }

    .tech-visual-light .spec-value {
        font-size: 1.1rem !important;
    }

    /* G4. Hardware cards */
    .hardware-card {
        padding: 24px 16px !important;
    }

    /* G5. Glow cards (dotacje) */
    .glow-card {
        padding: 24px 16px !important;
    }

    /* ============================================================
       H. CTA I PRZYCISKI
       ============================================================ */

    /* H1. CTA section */
    .cta-section-light {
        padding: 4rem 16px !important;
    }

    .cta-section-light .cta-inner h2 {
        font-size: 1.8rem !important;
    }

    .cta-section-light .cta-inner p {
        font-size: 1rem !important;
    }

    /* H2. Hero CTA przyciski — stackowanie */
    .hero-cta, .subpage-hero-ext .hero-cta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .btn-primary-light, .btn-secondary-light {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
        padding: 16px 24px !important;
        font-size: 1rem !important;
    }

    /* ============================================================
       I. TABELE RESPONSYWNE
       ============================================================ */

    .blog-post-content div[style*="overflow-x: auto"] {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    table {
        min-width: 100% !important;
    }

    th, td {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.4rem !important;
    }

    /* ============================================================
       J. BLOG SLIDER
       ============================================================ */

    .blog-slider-card {
        min-width: 280px !important;
        max-width: 280px !important;
    }

    .blog-slider-header h2 {
        font-size: 1.8rem !important;
    }

    /* ============================================================
       K. MAPA I KONTAKT
       ============================================================ */

    .map-container {
        flex-direction: column !important;
        height: auto !important;
    }

    .map-info {
        padding: 24px 16px !important;
        height: auto !important;
    }

    .map-placeholder {
        width: 100% !important;
        min-height: 300px !important;
        height: 320px !important;
    }

    /* ============================================================
       L. FOOTER
       ============================================================ */

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* ============================================================
       M. SURVEY PANEL (ANKIETA LIQUID GLASS)
       ============================================================ */

    .survey-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        margin-top: 0 !important;
    }

    .survey-panel h3 {
        font-size: 1.2rem !important;
    }

    /* ============================================================
       N. TIMELINE I SPECJALNE KOMPONENTY DOTACJI
       ============================================================ */

    .timeline-vertical {
        padding-left: 40px !important;
    }

    .timeline-dot {
        left: -25px !important;
    }

    .floating-badge {
        display: none !important;
    }

    .stat-counter::after {
        display: none !important;
    }

    .counter-value {
        font-size: 2.5rem !important;
    }

    .comparison-bar-value {
        font-size: 1rem !important;
    }

    /* ============================================================
       O. SEKCJA BLOG NA PODSTRONACH
       ============================================================ */

    .blog-section {
        padding: 3rem 16px !important;
    }

    .blog-container h2 {
        font-size: 1.8rem !important;
    }

    /* ============================================================
       P. DOLNY PASEK Z TELEFONEM
       ============================================================ */

    #bottom-phone-tab {
        padding: 14px 32px 8px 32px !important;
        width: 100% !important;
        max-width: 300px !important;
    }

    .phone-number {
        font-size: 1.4rem !important;
    }

    /* ============================================================
       Q. DODATKOWE BEZPIECZNIKI
       ============================================================ */

    /* Q1. Obrazy i media nie mogą wychodzić za kontener */
    img, video, iframe, canvas, svg {
        max-width: 100% !important;
        height: auto;
    }

    /* Q2. Ukrycie dekoracyjnych float-elementów wylewających się za krawędź */
    .hp-float-element, .hp-float-element--1, .hp-float-element--2, .hp-float-element--3 {
        display: none !important;
    }

    /* Q3. Orby dekoracyjne CTA */
    .cta-section-premium .orb {
        display: none !important;
    }

    /* Q4. Sekcja z orbem */
    .section-with-orb::before, .section-with-orb::after {
        display: none !important;
    }
}
/* === GALERIA REALIZACJI === */
.realizacja-gallery-section {
    padding: 2rem 0 4rem;
}
.realizacja-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.realizacja-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.realizacja-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* === LIGHTBOX GALERII === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* === BREADCRUMBS === */
.breadcrumbs-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 105px 24px 10px;
    position: relative;
    z-index: 10;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}
.breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}
.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    color: #94a3b8;
    font-weight: 400;
}
.breadcrumbs-list a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs-list a:hover {
    color: #16a34a;
    text-decoration: underline;
}
.breadcrumbs-list li[aria-current="page"] span,
.breadcrumbs-list li:last-child span {
    color: #0f172a;
    font-weight: 700;
}
/* Breadcrumbs on dark hero sections (np. realizacje) */
.realizacja-hero-breadcrumbs {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.realizacja-hero-breadcrumbs .breadcrumbs-list li,
.realizacja-hero-breadcrumbs .breadcrumbs-list a {
    color: rgba(255,255,255,0.75);
}
.realizacja-hero-breadcrumbs .breadcrumbs-list a:hover {
    color: #ffffff;
}
.realizacja-hero-breadcrumbs .breadcrumbs-list li:not(:last-child)::after {
    color: rgba(255,255,255,0.4);
}
.realizacja-hero-breadcrumbs .breadcrumbs-list li:last-child span {
    color: #ffffff;
    font-weight: 700;
}
