/* ZMIENNE KOLORYSTYCZNE */
:root {
    --primary-blue: #1C8ACF; 
    --primary-orange: #EF6F23; 
    --dark-bg: #0A1118; 
    --text-dark: #333333;
    --text-light: #F4F4F4;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.4s ease-in-out;
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-family); }
body { color: var(--text-dark); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 30px; }

/* UTILITIES */
.text-orange { color: var(--primary-orange); }
.bg-blue { background-color: var(--primary-blue); }
.bg-light { background-color: var(--light-bg); }
.text-white { color: var(--white); }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 38px; margin-bottom: 25px; position: relative; display: inline-block; }
.subtitle { display: block; font-weight: 400; font-size: 16px; color: #666; margin-top: 5px; letter-spacing: 0; }

/* PRZYCISKI */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary { background-color: var(--primary-orange); color: var(--white); box-shadow: 0 4px 15px rgba(239, 111, 35, 0.4); }
.btn-primary:hover { background-color: transparent; border-color: var(--primary-orange); color: var(--primary-orange); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 111, 35, 0.5); }
.btn-secondary { background-color: var(--primary-blue); color: var(--white); box-shadow: 0 4px 15px rgba(28, 138, 207, 0.4); }
.btn-secondary:hover { background-color: transparent; border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary-blue); color: var(--primary-blue); background-color: transparent; }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white); }
.btn-large { font-size: 18px; padding: 16px 45px; }

/* NAWIGACJA */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 60px; width: auto; }
.nav-menu ul { display: flex; gap: 28px; }
.nav-menu a { font-weight: 600; font-size: 14px; text-transform: uppercase; color: #444; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-blue); }
.menu-cta-btn { padding: 10px 22px; font-size: 13px; border-radius: 4px; }

/* Dropdown na Desktop */
.dropdown { position: relative; }
.submenu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-top: 3px solid var(--primary-orange);
    border-radius: 6px;
    z-index: 100;
}
@media(min-width: 769px) {
    .dropdown:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.submenu li a { display: block; padding: 12px 25px; font-weight: 500; border-bottom: 1px solid #eee; font-size: 13px; letter-spacing: 1px; }
.submenu li:last-child a { border-bottom: none; }
.submenu li a:hover { background: var(--light-bg); color: var(--primary-orange); padding-left: 30px; }

.mobile-toggle { display: none; font-size: 26px; cursor: pointer; color: var(--primary-blue); }

/* HERO SLIDER */
.slider-section { height: calc(100vh - 100px); min-height: 600px; position: relative; overflow: hidden; }
.slider-container { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; z-index: 1; transition: opacity 1.2s ease-in-out;
}
.slide.active { opacity: 1; z-index: 2; }
.overlay { background: rgba(10, 17, 24, 0.65); height: 100%; width: 100%; display: flex; align-items: center; }
.hero-content { color: var(--white); max-width: 900px; position: relative; z-index: 3; }
.hero-content h1 { font-size: 56px; line-height: 1.2; margin-bottom: 25px; }
.hero-content h1 span { color: var(--primary-orange); }
.hero-content p { font-size: 19px; margin-bottom: 45px; }

/* O NAS */
.split-layout { display: flex; flex-direction: row; align-items: center; gap: 60px; }
.about-visual { flex: 1; width: 100%; }
.about-text { flex: 1; }
.about-image { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.about-text h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 4px; background: var(--primary-orange); }
.about-content { margin-bottom: 35px; }
.about-content p { margin-bottom: 15px; color: #555;}
.hidden-text { display: none; }
.hidden-text.visible { display: block; }
.about-pillars { display: flex; gap: 30px; margin-bottom: 35px; }
.pillar { display: flex; align-items: center; gap: 12px; }
.pillar i { font-size: 24px; color: var(--primary-blue); }
.pillar h4 { font-size: 15px; font-weight: 500;}
.about-actions { display: flex; gap: 20px;}

/* STATYSTYKI */
#statystyki { padding: 80px 0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-box i { font-size: 44px; color: var(--white); opacity: 0.9; margin-bottom: 20px; }
.counter { font-size: 54px; font-weight: 700; margin-bottom: 8px; }

/* KORZYŚCI - Dlaczego my? */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.benefit-box { background: var(--white); padding: 40px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); }
.benefit-box:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.benefit-icon { font-size: 36px; color: var(--primary-blue); margin-bottom: 20px; }
.benefit-box h3 { font-size: 20px; margin-bottom: 15px; }
.benefit-box p { color: #666; font-size: 14px; }

/* JAK DZIAŁAMY */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.process-step { background: var(--white); padding: 50px 25px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); border-bottom: 5px solid var(--primary-blue); transition: var(--transition); }
.process-step:hover { transform: translateY(-8px); border-color: var(--primary-orange); }
.step-icon { width: 90px; height: 90px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; font-size: 34px; color: var(--primary-blue); }
.process-step h3 { margin-bottom: 20px; font-size: 22px;}
.process-step p { color: #555; font-size: 15px;}

/* PARALLAX CTA */
.parallax-section { position: relative; padding: 140px 0; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
.parallax-section .overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 17, 24, 0.85); z-index: 1; }
.parallax-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.parallax-content h2 { font-size: 42px; line-height: 1.2; margin-bottom: 25px; color: #fff;}
.parallax-content p { font-size: 20px; margin-bottom: 45px; color: #e0e0e0;}

/* STOPKA */
.site-footer { background-color: var(--dark-bg); color: #a0a0a0; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { height: 60px; margin-bottom: 25px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 15px; line-height: 1.8;}
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 17px; margin-bottom: 28px; text-transform: uppercase; font-weight: 600; }
.footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a { color: #a0a0a0; font-size: 15px; text-transform: uppercase; }
.footer-links ul li a:hover { color: var(--primary-orange); }
.footer-contact ul li { display: flex; gap: 18px; margin-bottom: 18px; font-size: 15px; align-items: flex-start; }
.footer-contact i { color: var(--primary-orange); margin-top: 5px; font-size: 17px;}
.footer-bottom { border-top: 1px solid #1f2730; padding: 25px 0; text-align: center; font-size: 14px; }
.dev-link { color: #a0a0a0; font-weight: normal; text-decoration: none; transition: var(--transition); }
.dev-link:hover { color: var(--primary-orange); }

/* SCROLL TO TOP & ANIMOWANA SŁUCHAWKA */
.phone-widget { position: fixed; bottom: 40px; right: 40px; background: var(--primary-orange); color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 9999; box-shadow: 0 4px 20px rgba(239, 111, 35, 0.5); animation: pulse-ring 2s infinite; transition: var(--transition);}
.phone-widget:hover { background: var(--primary-blue); animation: none; transform: scale(1.1); }
@keyframes pulse-ring { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 111, 35, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 18px rgba(239, 111, 35, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 111, 35, 0); } }

.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: var(--primary-blue);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--primary-orange); transform: translateY(-5px); }

/* SCROLL ANIMATIONS */
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.animate-active { opacity: 1; }
.slide-in-left { transform: translateX(-50px); transition: var(--transition);}
.slide-in-right { transform: translateX(50px); transition: var(--transition);}
.scale-up { transform: scale(0.8); transition: var(--transition);}
.fade-in { transition: var(--transition); }
.fade-in-down { transform: translateY(-20px); transition: var(--transition); }
.slide-in-up { transform: translateY(30px); transition: var(--transition);}
.animate-active.slide-in-left, .animate-active.slide-in-right { transform: translateX(0); }
.animate-active.scale-up { transform: scale(1); }
.animate-active.fade-in-down, .animate-active.fade-in { transform: translateY(0); }
.animate-active.slide-in-up { transform: translateY(0); }

/* RWD - RESPONSIVE DESIGN */
@media(max-width: 1200px) {
    .hero-content h1 { font-size: 48px; }
    .nav-menu ul { gap: 20px; }
    .container { padding: 0 20px;}
    .counter-grid, .process-grid, .benefit-grid, .footer-grid { gap: 20px;}
}

@media(max-width: 992px) {
    .header { height: 90px; }
    .split-layout { flex-direction: column; text-align: center; }
    .about-text h2::after { left: 50%; transform: translateX(-50%); }
    .about-pillars { flex-direction: column; align-items: center;}
    .about-actions { justify-content: center;}
    .counter-grid, .process-grid, .benefit-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 38px; }
    .parallax-content h2 { font-size: 34px;}
}

@media(max-width: 768px) {
    .header { height: 80px; }
    .nav-container { justify-content: flex-start; gap: 15px;}
    
    /* Główne menu mobilne */
    .nav-menu {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background: var(--white); flex-direction: column; padding: 30px;
        box-shadow: 0 15px 15px rgba(0,0,0,0.1); z-index: 1001;
    }
    .nav-menu.active { display: flex; }
    .nav-menu ul { flex-direction: column; gap: 15px; text-align: left;}
    
    .mobile-toggle { display: block; order: 2; margin-left: auto;}
    .logo img { height: 50px;}
    .menu-cta-btn { display: none; }
    .hero-content h1 { font-size: 32px; }
    
    /* POPRAWKA: Płynne menu rozwijane na mobile (Akordeon) */
    .nav-menu ul.submenu { 
        display: flex;
        flex-direction: column;
        position: relative; 
        box-shadow: none; 
        border: none; 
        padding: 0 0 0 15px; /* domyślnie schowany padding góra/dół */
        top: 0; 
        transform: none; 
        opacity: 0; 
        visibility: hidden;
        border-left: 2px solid var(--primary-orange); 
        border-radius: 0;
        
        /* Animacja wysokości */
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-menu .dropdown.open ul.submenu { 
        opacity: 1; 
        visibility: visible;
        max-height: 500px; /* Rozwija się do tej wysokości */
        padding: 10px 0 10px 15px;
        margin-top: 10px;
    }
    
    /* Dostosowanie przycisków dolnych na małych ekranach */
    .scroll-top-btn { left: 20px; bottom: 20px; width: 45px; height: 45px; font-size: 18px;}
    .phone-widget { right: 20px; bottom: 20px; width: 55px; height: 55px; font-size: 24px;}
}

@media(max-width: 576px) {
    .counter-grid, .process-grid, .benefit-grid, .footer-grid { grid-template-columns: 1fr; text-align: center;}
    .counter { font-size: 42px;}
    .parallax-content h2 { font-size: 28px;}
    .footer-contact ul li { justify-content: center;}
}
/* BANER W MENU MOBILNYM */
.mobile-menu-banner {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

@media(max-width: 768px) {
    .mobile-menu-banner {
        display: block;
    }
}
/* --- SEKCJA KLIENCI (KARUZELA) --- */
.client-carousel-wrapper {
    margin-top: 40px;
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: #fdfdfd;
}

.client-track {
    display: flex;
    width: calc(250px * 22); /* Szerokość elementu * ilość (2x lista) */
    animation: scroll-carousel 40s linear infinite;
}

.client-item {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.client-item span {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: color 0.3s;
    border: 1px solid #eee;
    padding: 15px 25px;
    border-radius: 4px;
    width: 100%;
}

.client-track:hover {
    animation-play-state: paused; /* Zatrzymanie po najechaniu myszką */
}

.client-item:hover span {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 11)); } /* Przesunięcie o połowę szerokości tracka */
}

/* BANER W MENU MOBILNYM */
.mobile-menu-banner {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

@media(max-width: 768px) {
    .mobile-menu-banner {
        display: block;
    }
}
/* --- SEKCJA KLIENCI (KARUZELA) --- */
.client-carousel-wrapper {
    margin-top: 40px;
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: #fdfdfd;
}

.client-track {
    display: flex;
    width: calc(250px * 22); /* Szerokość elementu * ilość (2x lista) */
    animation: scroll-carousel 40s linear infinite;
}

.client-item {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.client-track:hover {
    animation-play-state: paused; /* Zatrzymanie karuzeli po najechaniu myszką */
}

/* NOWE STYLE DLA LOGOTYPÓW (EFEKT SZAROŚCI) */
.client-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%); /* Zmienia obraz na całkowicie szary */
    opacity: 0.6; /* Lekko wygasza obrazek, żeby nie "krzyczał" z ekranu */
    transition: all 0.4s ease-in-out; /* Płynne przejście animacji */
    cursor: pointer;
}

/* EFEKT PO NAJECHANIU MYSZKĄ */
.client-item:hover img {
    filter: grayscale(0%); /* Przywraca oryginalne kolory */
    opacity: 1; /* Przywraca pełną widoczność */
    transform: scale(1.08); /* Delikatnie powiększa logo */
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 11)); } 
}