:root {
    --bg-dark: #0f172a;
    --bg-darker: #0b1120;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --brand-blue: #3b82f6;
    --brand-blue-hover: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --tradition-color: #94a3b8;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.highlight-blue { color: var(--brand-blue); }

/* Przyciski */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn-outline:hover {
    background-color: var(--brand-blue);
    color: white;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 35px; }

.nav-links {
    display: none; /* Mobile first hidden */
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--brand-blue); }

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.badge-hero {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Sekcje wspólne */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--card-bg); }

/* Technologia */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-image-wrapper {
    position: relative;
    border-radius: 12px;
}

.tech-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.eco-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--brand-blue);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.eco-badge strong { font-size: 1.8rem; line-height: 1; }

.tech-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.tech-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 8px;
}

/* Usługi */
#uslugi h2 { font-size: 2rem; margin-bottom: 10px; }
.subtitle { color: var(--text-muted); margin-bottom: 40px; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--border-color);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content { padding: 25px; }

.service-icon {
    font-size: 1.5rem;
    color: var(--brand-blue);
    background: #e0f2fe;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-content h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-content p { color: #64748b; font-size: 0.95rem; }

/* Porównanie */
.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.benefits-list {
    list-style: none;
    margin-top: 25px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-dark);
}

.benefits-list i { color: var(--brand-blue); font-size: 1.2rem; }

/* Wykres CSS */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.chart-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    height: 100%;
    width: 60px;
}

.bar {
    width: 25px;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar-laser { background-color: var(--brand-blue); }
.bar-tradition { background-color: var(--tradition-color); }

.chart-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: #64748b;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.color-box {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 2px;
    margin-right: 5px;
}
.bg-laser { background-color: var(--brand-blue); }
.bg-tradition { background-color: var(--tradition-color); }

/* Footer */
footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    padding: 60px 0 30px;
}

.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-text { max-width: 500px; margin: 0 auto 30px; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icons a {
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover { background: var(--brand-blue); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content { transform: translateY(0); }

.dark-modal .modal-content {
    background: var(--bg-dark);
    color: var(--text-light);
    max-width: 450px;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

/* Formularz */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    background: var(--bg-light);
}

#form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.success-msg { color: #10b981; }
.error-msg { color: #ef4444; }

/* Lista kontaktowa modal */
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.contact-item:last-child { margin-bottom: 0; }

.icon-circle {
    width: 50px; height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- Media Queries (Desktop) --- */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    
    #hero h1 { font-size: 3.5rem; }
    
    .tech-container {
        flex-direction: row;
        align-items: center;
    }
    .tech-image-wrapper, .tech-text { flex: 1; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .comparison-container {
        flex-direction: row;
        align-items: center;
    }
    .comparison-text, .chart-container { flex: 1; }
    
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}















/* Zmień ścieżkę do tła hero */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* Duże przyciski dla widoczności w formularzach i hero */
.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Wyśrodkowanie kafelków usług (Desktop & Mobile) */
.service-content { 
    padding: 30px 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    font-size: 1.8rem;
    color: var(--brand-blue);
    background: #e0f2fe;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ----- ESTETYKA FORMULARZY (Modal i Osadzony) ----- */
.embedded-form-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-modal {
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-header {
    margin-bottom: 30px;
}

.form-header p { color: var(--text-muted); }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.05rem; /* Powiększony, bardziej czytelny font */
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px; /* Zwiększony padding */
    font-size: 1.05rem; /* Powiększony font w polach */
    border: 2px solid #e2e8f0;
    border-radius: 10px; /* Ładne zaokrąglenia */
    font-family: inherit;
    background: #f8fafc; /* Lekkie szare tło */
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); /* Delikatna poświata przy kliknięciu */
}

/* Komunikaty z formularza */
.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}


/* ----- MEDIA QUERIES TYLKO DLA MOBILE (Do 767px) ----- */
@media (max-width: 767px) {
    /* 1. Idealne wyśrodkowanie loga na mobile */
    .nav-container {
        justify-content: center !important;
    }
    
    /* 2. Zmiana etykiet na wykresie - ukrywamy pełne, pokazujemy krótkie */
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: inline;
        font-weight: 600;
    }

    .chart-label {
        font-size: 0.75rem; /* Delikatne zmniejszenie by się zmieściły */
        bottom: -25px;
    }

    /* Dopasowanie marginesów dla mobilnego formularza */
    .embedded-form-container, .form-modal {
        padding: 30px 20px;
    }
}

/* ----- MEDIA QUERIES DLA DESKTOPU (Od 768px w górę) ----- */
@media (min-width: 768px) {
    .nav-container {
        justify-content: space-between !important;
    }

    /* Na komputerze widać pełne nazwy na wykresie */
    .desktop-text {
        display: inline;
    }
    
    .mobile-text {
        display: none;
    }
}












/* --- ANIMACJE SCROLLOWANIA --- */

/* 1. Animacja Kafelków Usług */

/* Stan początkowy kafelka */
.service-card.animate-block {
    opacity: 0;
    /* Przesunięcie w dół i lekkie zmniejszenie */
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stan końcowy - klasa dodawana przez JS */
.service-card.animate-block.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Opóźnienia dla efektu kaskady (staggering effect)
   Sprawia, że kafelki pojawiają się jeden po drugim */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }


/* 2. Animacja Słupków Wykresu */

/* Stan początkowy słupka */
.bar {
    /* Upewniamy się, że startują od zera */
    height: 0;
    /* Zdefiniowanie przejścia - czas trwania i funkcja wygładzania */
    transition: height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Opcjonalnie: dodajemy lekkie opóźnienie, żeby animacja nie startowała natychmiastowo po pojawieniu się kontenera */
    transition-delay: 0.2s;
}
/* Klasa .visible nie jest tu potrzebna, JS ustawi wysokość bezpośrednio */





















/* --- HEADER / NAVBAR --- */
.navbar {
    height: 70px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Domyślnie na komputerach hamburger jest ukryty */
.hamburger {
    display: none; 
}

/* Wygląd linków na komputerze */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark, #1e293b);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue, #2563eb);
}


/* --- WERSJA TYLKO DLA TELEFONÓW (Mobile) --- */
@media (max-width: 767px) {
    /* 1. Header i Hamburger */
    .nav-container {
        justify-content: center !important; /* Wymusza wyśrodkowanie loga */
        position: relative;
    }
    
    .hamburger {
        display: block;
        position: absolute;
        left: 20px; /* Hamburger z lewej strony */
        font-size: 1.6rem;
        color: #1e293b;
        cursor: pointer;
        z-index: 1001; /* Zawsze na wierzchu */
    }

    /* 2. Menu rozwijane */
    .nav-links {
        position: absolute;
        top: 70px; /* Zaczyna się tuż pod paskiem nawigacji */
        left: -100%; /* Domyślnie schowane poza lewą krawędzią ekranu */
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease-in-out; /* Płynne wysuwanie */
        z-index: 999;
    }

    .nav-links.active {
        left: 0; /* Pokazuje menu */
    }

    .nav-links a, .nav-links button {
        margin: 10px 0; /* Odstępy między linkami w mobilnym menu */
        font-size: 1.1rem;
    }

    /* 3. Wykres na mobile (Skrócone nazwy) */
    .desktop-text { display: none; }
    .mobile-text { display: inline; font-weight: 600; }
    .chart-label { font-size: 0.75rem; bottom: -25px; }
    
    .embedded-form-container, .form-modal { padding: 30px 20px; }
}

/* ----- MEDIA QUERIES DLA DESKTOPU (Od 768px) ----- */
@media (min-width: 768px) {
    .desktop-text { display: inline; }
    .mobile-text { display: none; }
}

















/* --- HEADER / NAVBAR --- */
.navbar {
    /* Ustalamy sztywną wysokość, żeby menu mobilne wiedziało gdzie się zacząć */
    height: 80px; 
    /* Przywrócony ciemny, półprzezroczysty kolor tła */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px); /* Dodaje nowoczesny efekt rozmycia tła */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo { 
    height: 35px; 
    /* POPRAWKA: Przesunięcie loga o 10px w dół */
    margin-top: 10px;
}

/* Domyślnie na komputerach hamburger jest ukryty */
.hamburger {
    display: none;
    /* Kolor ikony hamburgera na białym tle musi być ciemny, 
       ale na ciemnym tle (które przywróciliśmy) musi być jasny */
    color: white; 
}

/* Wygląd linków na komputerze */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    /* Kolor linków na ciemnym pasku musi być biały */
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue, #2563eb);
}

/* Przycisk kontakt na ciemnym tle paska */
.navbar .btn-outline {
    color: white;
    border-color: white;
}
.navbar .btn-outline:hover {
    background-color: white;
    color: var(--bg-dark);
}


/* --- WERSJA TYLKO DLA TELEFONÓW (Mobile) --- */
@media (max-width: 767px) {
    /* 1. Header i Hamburger */
    .nav-container {
        justify-content: center !important; /* Wymusza wyśrodkowanie loga */
        position: relative;
    }
    
    .hamburger {
        display: block;
        position: absolute;
        left: 20px;
        /* Wyrównanie hamburgera w pionie, biorąc pod uwagę przesunięcie loga */
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.6rem;
        color: white; /* Biała ikona na ciemnym pasku */
        cursor: pointer;
        z-index: 1001;
    }
    
     .logo-link {
        /* Upewniamy się, że logo też jest wyśrodkowane w pionie */
         display: flex;
         align-items: center;
         height: 100%;
     }

    /* 2. Menu rozwijane (POPRAWKA PRZEŚWITU) */
    .nav-links {
        position: absolute;
        /* Menu zaczyna się dokładnie pod paskiem o wysokości 80px */
        top: 80px; 
        left: -100%;
        width: 100%;
        /* Ciemne tło rozwijanego menu, żeby pasowało do reszty i nie było prześwitu */
        background-color: #0f172a; 
        flex-direction: column;
        padding: 20px 0 30px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1); /* Delikatna linia oddzielająca */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a, .nav-links button {
        margin: 15px 0;
        font-size: 1.2rem;
        color: white; /* Białe linki w ciemnym menu mobilnym */
    }
    
    /* Przycisk w menu mobilnym */
    .nav-links .btn-outline {
        width: 80%;
        margin-top: 20px;
    }

    /* 3. Wykres na mobile (Skrócone nazwy) - bez zmian */
    .desktop-text { display: none; }
    .mobile-text { display: inline; font-weight: 600; }
    .chart-label { font-size: 0.75rem; bottom: -25px; }
    
    .embedded-form-container, .form-modal { padding: 30px 20px; }
}