/* ==========================================================================
   1. FUNDAMENTY: GŁĘBOKI SZARY GRAFIT (Prawdziwy Graphite & Miedź)
   ========================================================================== */
:root {
    /* NOWE TŁA: Prawdziwy, głęboki szary grafit */
    --bg-dark: #1c1d1f; 
    --bg-card: #282a2d; 
    
    --text-heading: #ffffff; 
    --text-body: #b5b5ba;   
    
    /* GADŻET WOW: PRAWDZIWA MIEDŹ */
    --text-copper: #b87333; 
    --text-shimmer: linear-gradient(
        60deg, 
        #8a4a1c 0%,   
        #b87333 30%,  
        #e8ba8c 50%,  
        #b87333 70%,  
        #8a4a1c 100%  
    );

    /* RAMKI: Konkretny, wyraźny szary grafit */
    --border-color: #3e4045; 
    
    --whatsapp: #25D366;

    /* FONTNY */
    --font-heading: 'Cinzel', serif; 
    --font-body: 'Montserrat', sans-serif;
    
    --container-width: 1400px; 
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

/* POPRAWKA RWD: Twarda blokada przewijania na boki */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; background-color: var(--bg-dark); }
body { background-color: var(--bg-dark); color: var(--text-body); font-family: var(--font-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }

/* Custom Cursor */
.custom-cursor { position: fixed; width: 10px; height: 10px; background-color: var(--text-copper); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; mix-blend-mode: difference; }
.cursor-grow { width: 40px; height: 40px; background-color: var(--text-heading); opacity: 0.5; }

/* ==========================================================================
   2. TYPOGRAFIA & EFEKTY METALICZNE
   ========================================================================== */
.text-copper { color: var(--text-copper); }
.text-light { color: #f0e6db; font-weight: 300; }
.font-bold { font-weight: 700; letter-spacing: 1px; }

.section-label { font-family: var(--font-body); color: var(--text-copper); font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 15px; font-weight: 500; }

.section-heading { 
    font-family: var(--font-heading); 
    color: var(--text-heading); 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 500; 
    line-height: 1.1; 
    margin-bottom: 40px; 
}

/* EFEKT WOW: Płynąca Miedź */
.text-metallic {
    background: linear-gradient(to right, #8a4a1c 0%, #c37f44 25%, #ffe4a0 50%, #c37f44 75%, #8a4a1c 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine-metallic 6s linear infinite;
    display: inline-block;
}

@keyframes shine-metallic { to { background-position: 200% center; } }

.brand-name, .text-copper, .main-footer h4 {
    background: var(--text-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-effect 7s linear infinite; 
}
@keyframes shimmer-effect { to { background-position: 200% center; } }

.body-text { font-size: 1.1rem; color: var(--text-body); margin-bottom: 25px; max-width: 650px; font-weight: 300; }

/* ==========================================================================
   3. NAWIGACJA & JĘZYKI
   ========================================================================== */
.main-header { position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 100; transition: var(--transition); border-bottom: 1px solid transparent; }
.main-header.scrolled { background-color: rgba(22, 22, 26, 0.95); padding: 15px 0; backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.brand-container { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 50px; width: auto; display: block; }
.brand-name { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; letter-spacing: 2px; }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { color: var(--text-heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text-copper); }
.btn-nav-contact { border: 1px solid var(--text-copper); padding: 10px 20px; border-radius: 2px; }
.btn-nav-contact:hover { background-color: var(--text-copper); color: var(--bg-dark); }
.hamburger { display: none; cursor: none; z-index: 101; }
.hamburger span { display: block; width: 30px; height: 1px; background-color: var(--text-heading); margin: 6px 0; transition: var(--transition); }

/* Przełącznik języków */
.lang-switcher { display: flex; gap: 10px; margin-left: 10px; align-items: center; }
.lang-btn { background: none; border: none; color: var(--text-body); cursor: none; font-family: var(--font-body); opacity: 0.6; transition: var(--transition); font-size: 14px; padding: 0; font-weight: 400; }
.lang-btn.active, .lang-btn:hover { opacity: 1; color: var(--text-copper); font-weight: 600; }
.lang-separator { color: var(--text-body); opacity: 0.3; font-size: 12px; }

/* ==========================================================================
   4. HERO ORAZ HERO VIDEO (POPRAWIONE KADROWANIE - ROZWIĄZANIE 1)
   ========================================================================== */
.hero-section { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; overflow: hidden; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

/* Czysty kod wideo, bez spłaszczania */
#hero-video { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center;
    filter: brightness(0.6) contrast(1.1); 
}

.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(22,22,26,0.98) 0%, rgba(22,22,26,0.6) 60%, rgba(22,22,26,0.3) 100%); z-index: 1; }

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; }
.hero-title { font-weight: 500; margin-bottom: 30px; }
.hero-bottom-row { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 30px;}

.hero-subtitle-container { border-left: 2px solid rgba(195, 127, 68, 0.4); padding-left: 20px; margin-bottom: 40px; }
.hero-subtitle { font-size: 1.15rem; color: #c4c4cc; font-weight: 300; line-height: 1.8; margin: 0; }

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* Przyciski klasyczne */
.btn-solid { display: inline-block; padding: 18px 45px; background-color: var(--text-copper); color: var(--bg-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-family: var(--font-body); transition: var(--transition); border: none; }
.btn-solid:hover { background-color: var(--text-heading); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(184, 115, 51, 0.2); }
.btn-small { padding: 12px 30px; }
.btn-full { width: 100%; margin-top: 10px; }

/* Przycisk Glassmorphism */
.btn-premium {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: rgba(22, 22, 26, 0.5); 
    border: 1px solid rgba(195, 127, 68, 0.5); 
    color: #c37f44;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}
.btn-premium::before { 
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #c37f44 0%, #8a4a1c 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}
.btn-premium:hover {
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(195, 127, 68, 0.3);
    transform: translateY(-3px);
}
.btn-premium:hover::before { opacity: 1; }

.btn-outline {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #f0e6db;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}
.btn-outline:hover { border-color: #c37f44; color: #c37f44; background: rgba(255, 255, 255, 0.05); }

/* ==========================================================================
   5. PARTNERZY
   ========================================================================== */
.partners-section { padding: 50px 0; background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; margin-top: 30px; }
.partner-logo { height: 80px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.partner-logo img { max-height: 100%; max-width: 220px; width: auto; object-fit: contain; transition: var(--transition); }
.partner-logo:hover { transform: scale(1.1); }

/* ==========================================================================
   6. SEKCJE: DIENSTEN, OPINIE, O NAS, KONTAKT
   ========================================================================== */
section { padding: 120px 0; border-bottom: 1px solid var(--border-color); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.bg-surface { background-color: var(--bg-card); }

.credentials-box { background-color: var(--bg-card); padding: 50px; border: 1px solid var(--border-color); border-left: 4px solid var(--text-copper); }
.credentials-box h3 { margin-bottom: 25px; font-weight: 500; font-size: 1.8rem; font-family: var(--font-heading); }
.credentials-list li { margin-bottom: 15px; font-size: 1.1rem; padding-left: 25px; position: relative; font-weight: 300; }
.credentials-list li::before { content: '✦'; position: absolute; left: 0; color: var(--text-copper); }
.credentials-list strong { color: var(--text-heading); font-weight: 500; }

.services-section { background-color: var(--bg-card); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.service-box { background-color: var(--bg-dark); padding: 50px 40px 80px 40px; border: 1px solid var(--border-color); transition: var(--transition); position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.service-box:hover { transform: translateY(-8px); border-color: rgba(184, 115, 51, 0.6); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.service-number { font-family: var(--font-heading); color: rgba(184, 115, 51, 0.1); font-size: 4.5rem; position: absolute; top: 15px; right: 25px; line-height: 1; font-weight: 700; }
.service-box h3 { font-size: 1.5rem; font-family: var(--font-heading); margin-bottom: 15px; margin-top: 10px; font-weight: 500; }
.service-bulletpoints li { margin-bottom: 10px; padding-left: 15px; position: relative; font-size: 0.95rem; font-weight: 300; }
.service-bulletpoints li::before { content: '→'; position: absolute; left: 0; color: var(--text-copper); font-weight: bold; }
.read-more-link { position: absolute; bottom: 35px; left: 40px; color: var(--text-copper); font-size: 0.85rem; font-weight: 600; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.service-box:hover .read-more-link { padding-left: 8px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.review-card { background-color: var(--bg-dark); padding: 40px; border: 1px solid var(--border-color); }
.stars { color: var(--text-copper); font-size: 1.5rem; margin-bottom: 20px; letter-spacing: 5px;}
.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; color: var(--text-heading); font-weight: 300; line-height: 1.8; }
.review-author { font-weight: 500; color: var(--text-copper); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; }

.review-form-container { display: none; max-width: 550px; margin: 40px auto 0; background-color: var(--bg-dark); padding: 40px; border-radius: 4px; border: 1px solid var(--border-color); }
.review-form-container input, .review-form-container select, .review-form-container textarea { width: 100%; margin-bottom: 20px; padding: 15px; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--text-heading); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); }
.review-form-container input:focus, .review-form-container select:focus, .review-form-container textarea:focus { outline: none; border-color: var(--text-copper); }
.review-form-container option { color: #000; }

.contact-section { background-color: var(--bg-card); }
.contact-details p { font-size: 1.2rem; margin-bottom: 15px; font-family: var(--font-body); font-weight: 400; }
.company-details { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.company-details p { font-size: 0.95rem; color: var(--text-body); margin-bottom: 5px; font-weight: 300; }

.contact-form { background-color: var(--bg-dark); padding: 50px; border: 1px solid var(--border-color); }
.contact-form input, .contact-form textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border-color); color: var(--text-heading); padding: 15px 0; margin-bottom: 30px; font-family: var(--font-body); font-size: 1rem; transition: var(--transition); cursor: none; font-weight: 300; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--text-copper); }

.btn-wa-premium {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s ease;
    border-radius: 4px;
    margin-top: 20px;
}
.btn-wa-premium svg { width: 22px; height: 22px; fill: currentColor; transition: all 0.4s ease; }
.btn-wa-premium:hover {
    background: rgba(37, 211, 102, 0.1); 
    border-color: #25D366; 
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15); 
    transform: translateY(-3px);
}
.btn-wa-premium:hover svg { fill: #25D366; }

/* ==========================================================================
   7. STOPKA I COOKIES
   ========================================================================== */
.main-footer { padding: 80px 0 30px 0; background-color: #121215; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-color); }
.footer-logo { max-height: 45px; margin-bottom: 20px; }
.footer-tagline { color: var(--text-body); font-size: 0.95rem; font-weight: 300; }
.main-footer h4 { font-size: 1.2rem; margin-bottom: 25px; font-weight: 500; font-family: var(--font-heading); }
.main-footer ul li { margin-bottom: 15px; font-size: 0.95rem; font-weight: 300; }
.main-footer ul li a:hover { color: var(--text-heading); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: 0.85rem; color: var(--text-body); font-weight: 300; }

.footer-dropdown .dropdown-toggle {
    cursor: pointer;
    color: var(--text-body);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.footer-dropdown .dropdown-toggle:hover { color: var(--text-copper); }
.footer-dropdown .arrow { font-size: 0.6rem; transition: transform 0.3s ease; }
.footer-dropdown.open .arrow { transform: rotate(180deg); }
.dropdown-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-left: 15px; }
.footer-dropdown.open .dropdown-menu { max-height: 250px; padding-top: 10px; }
.dropdown-menu li { margin-bottom: 8px !important; }
.dropdown-menu li a { font-size: 0.85rem; color: var(--text-body); opacity: 0.8; }
.dropdown-menu li a:hover { opacity: 1; color: var(--text-copper); }

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: var(--bg-card);
    border: 1px solid var(--text-copper);
    padding: 20px 30px;
    display: none; 
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border-radius: 4px;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-body); font-weight: 300; }
.cookie-banner a { color: var(--text-copper); text-decoration: underline; }

/* ==========================================================================
   8. RESPONSIVITEIT I POPRAWKI NA TELEFONY
   ========================================================================== */
@media (max-width: 1024px) {
    .custom-cursor { display: none; } 
    * { cursor: auto; }
    
    .hamburger { display: block; cursor: pointer; z-index: 1001; position: relative; }
    
    .nav-links { 
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 100%; 
        height: 100vh; 
        background-color: rgba(22, 22, 26, 0.98); 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1); 
        
        z-index: 1000; 
        padding: 40px 20px; 
        overflow-y: auto; 
    }
    .nav-links.active { transform: translateX(0); }
    
    .nav-links li { 
        margin: 12px 0; 
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }
    .nav-links.active li {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; } 
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; } 

    .nav-links a { 
        font-family: var(--font-heading);
        font-size: 1.4rem; 
        letter-spacing: 3px; 
        color: #a8a8b3 !important; 
        transition: color 0.3s;
    }
    .nav-links a:hover, .nav-links a:active { color: var(--text-copper) !important; }
    
    .btn-nav-contact { 
        display: inline-block;
        border: none !important;
        background: linear-gradient(135deg, #c37f44 0%, #8a4a1c 100%) !important;
        color: #ffffff !important;
        padding: 12px 35px !important; 
        font-family: var(--font-body) !important;
        font-size: 0.9rem !important; 
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        border-radius: 4px !important; 
        box-shadow: 0 5px 15px rgba(184, 115, 51, 0.2);
        margin-top: 10px;
    }

    .lang-switcher { 
        margin-left: 0; 
        margin-top: 20px; 
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        width: 50%;
        justify-content: center;
    }
    .lang-btn { font-size: 1rem; cursor: pointer; letter-spacing: 2px; color: #a8a8b3; }
    .lang-btn.active { color: var(--text-copper); font-weight: 600; }

    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--text-copper); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--text-copper); }

    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .partners-grid { gap: 40px; } 
    .brand-name { font-size: 1.2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

    .btn-wa-premium {
        background: rgba(37, 211, 102, 0.08);
        border-color: rgba(37, 211, 102, 0.5); 
        color: #ffffff; 
    }
    .btn-wa-premium svg { fill: #25D366; }

    /* --- POPRAWKI KADROWANIA WIDEO NA TELEFONY --- */
    .page-header { padding: 120px 0 40px 0; } 
    .header-video-bg { object-position: center center; }
}

@media (max-width: 768px) {
    .hero-section { 
        height: auto; 
        min-height: 100vh; 
        padding-bottom: 60px; 
    }
    .hero-content { 
        padding-top: 120px; 
        padding-bottom: 40px; 
    }
    .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
    .hero-actions .btn-premium, .hero-actions .btn-outline { width: 100%; text-align: center; padding: 18px 20px; }
    
    /* Centralny punkt na małym ekranie */
    #hero-video { object-position: center center; }
    
    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        bottom: 10px;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        grid-template-areas:
            "brand brand"
            "nav contact";
        gap: 30px 15px; 
    }
    .footer-brand {
        grid-area: brand;
        text-align: center; 
        border-bottom: 1px solid var(--border-color); 
        padding-bottom: 20px;
    }
    .footer-brand .footer-logo {
        margin: 0 auto 15px auto !important; 
        display: block;
    }
    .footer-links { grid-area: nav; }
    .footer-contact { grid-area: contact; }
    
    .footer-contact ul li {
        font-size: 0.85rem;
        word-break: break-word; 
    }
}

/* --- 1. SKALOWANIE TYLKO GŁÓWNYCH TYTUŁÓW (Naprawa wielkich liter na PC) --- */
h1, h2, .section-heading, .hero-title, .tytul-sekcji {
    font-size: clamp(28px, 6vw, 65px) !important;
    line-height: 1.2 !important;
}

/* --- 2. ZABEZPIECZENIE PRZED UCIĘCIEM NA TELEFONIE (Dla wszystkich elementów) --- */
h1, h2, h3, h4, p, a, span, .section-heading, .hero-title, .contact-link {
    white-space: normal !important;
    word-wrap: break-word !important; 
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

/* --- 3. NAPRAWA CZCIONKI DLA DANYCH KONTAKTOWYCH (Czytelny e-mail i telefon) --- */
.contact-link, .contact-details a {
    font-family: var(--font-body) !important; /* Zamienia ozdobny font na klasyczny Montserrat */
    font-weight: 500 !important;
    font-size: 1.1rem !important;
}

/* ==========================================================================
   9. NAPRAWA PRZYCISKÓW KATEGORII W DIENSTEN/PORTFOLIO (TELEFONY)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Celujemy uniwersalnie w przyciski filtrujące, niezależnie jak się nazywają */
    .portfolio-filters, 
    .filter-buttons, 
    .filter-menu,
    .project-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .portfolio-filters button, .portfolio-filters a,
    .filter-buttons button, .filter-buttons a,
    .filter-menu button, .filter-menu a,
    .project-filters button, .project-filters a {
        flex: 1 1 calc(50% - 10px) !important;
        margin: 0 !important;
        padding: 12px 10px !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   10. OSTATECZNA NAPRAWA BŁĘDÓW NA TELEFONIE (OVERFLOW + PRZYCISKI)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* --- 1. NAPRAWA UCIĘTEGO TEKSTU W "OVER ONS" --- */
    .about-section, .split-layout, .hero-section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .body-text, p, .content-left, .content-right {
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* --- 2. NAPRAWA PRZYCISKÓW W PORTFOLIO / DIENSTEN --- */
    .portfolio-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 10px !important;
        margin: 30px 0 !important;
    }

    .portfolio-filters .filter-btn {
        flex: 1 1 calc(50% - 8px) !important; 
        margin: 0 !important;
        padding: 12px 5px !important;
        font-size: 0.75rem !important;
        white-space: normal !important; 
        text-align: center !important;
        height: auto !important;
    }
}

/* ==========================================================================
   11. NAPRAWA KATEGORII W ZAKŁADCE DIENSTEN (01. SPUITWERK itd.)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .NAZWA-MENU-DIENSTEN {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .NAZWA-MENU-DIENSTEN a,
    .NAZWA-MENU-DIENSTEN span,
    .NAZWA-MENU-DIENSTEN li {
        flex: 1 1 calc(50% - 15px) !important; 
        text-align: center !important;
        font-size: 0.85rem !important; 
        white-space: nowrap !important;
    }
}

/* --- NAPRAWA UCINANEGO TEKSTU W AKAPITACH --- */
p {
    width: 100% !important;
    max-width: 100vw !important; 
    box-sizing: border-box !important; 
    white-space: normal !important; 
    padding-left: 15px !important; 
    padding-right: 15px !important; 
    margin-right: 0 !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

/* --- FILM W TLE (HERO SEKCJA ORAZ PORTFOLIO) --- */
.page-header {
    position: relative;
    overflow: hidden;
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CZYSTE I PROSTE POZYCJONOWANIE WIDEO (Rozwiązanie 1) */
.header-video-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center;
    z-index: 0;
}

/* Przyciemnienie */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.65); 
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* --- UNIWERSALNE SEKCJE ZE ZDJĘCIEM/FILMEM W TLE --- */
.bg-image-section, .bg-video-section {
    position: relative;
    padding: 140px 0; 
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CZYSTE I PROSTE POZYCJONOWANIE WIDEO (Rozwiązanie 1) */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.75); 
    z-index: 1;
}

.relative-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   12. OSTATECZNA NAPRAWA WIDEO NA TELEFONACH (KULOODPORNA)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* --- NAPRAWA STRONY GŁÓWNEJ (INDEX) --- */
    .hero-section { 
        height: auto !important; 
        min-height: 45vh !important; 
        padding-top: 100px !important;
        padding-bottom: 60px !important; 
    }
    
    .hero-section #hero-video { 
        object-fit: cover !important; 
        object-position: center center !important; 
    }
    
    /* --- NAPRAWA STRONY PROJEKTÓW (PORTFOLIO) --- */
    .page-header {
        padding: 120px 0 40px 0 !important;
        height: auto !important;
        min-height: 35vh !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .page-header .header-video-bg {
        object-fit: cover !important;
        object-position: center center !important; 
    }
    
    /* Skalowanie tytułu */
    .page-header-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 10px !important;
    }
}

/* ==========================================================================
   13. OSTATECZNA NAPRAWA TEKSTU I CZCIONKI NA TELEFONACH
   ========================================================================== */

/* --- 1. NAPRAWA ZNACZKA @ W E-MAILU I CZYTELNOŚĆ KONTAKTU --- */
.contact-link, .contact-details a {
    font-family: var(--font-body) !important; /* Zmienia na czytelny Montserrat */
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0 !important;
}

/* --- 2. GŁÓWNE SKALOWANIE DLA KOMPUTERÓW (Bez zmian) --- */
h1, h2, .section-heading, .hero-title, .tytul-sekcji {
    font-size: clamp(28px, 6vw, 65px) !important;
    line-height: 1.2 !important;
}

@media screen and (max-width: 768px) {
    /* --- 3. DYNAMICZNE SKALOWANIE NA TELEFONY (BEZ ŁAMANIA W POŁOWIE SŁOWA) --- */
    h1, h2, h3, h4, .section-heading, .hero-title, .tytul-sekcji {
        /* Automatycznie zmniejsza czcionkę na małych ekranach, by zmieścić długie słowa */
        font-size: clamp(20px, 6.5vw, 36px) !important; 
        line-height: 1.3 !important;
        
        /* BEZWZGLĘDNY ZAKAZ ŁAMANIA SŁÓW W POŁOWIE */
        white-space: normal !important;
        word-break: normal !important; 
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important; 
        
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Jeśli wyraz jest np. w tagu <span> (jak kolorowe "Spuitwerk"), przerzuć całe słowo niżej */
    h1 span, h2 span, h3 span, h4 span, .section-heading span, .hero-title span {
        display: inline-block !important; /* Wymusza traktowanie słowa jako jednego klocka */
        white-space: normal !important;
        word-break: normal !important;
    }

    /* Zabezpieczenie dla numerków (np. złote "01" obok tytułu), żeby nie zgniatały tekstu */
    .service-box h3, .diensten-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}