/* Ogólne style i reset */
:root {
    --primary-color: #007bff; /* Główny kolor akcentu (niebieski) */
    --secondary-color: #28a745; /* Drugi kolor akcentu (zielony dla ekologii/solarnych) */
    --dark-blue: #2c3e50; /* Ciemny niebieski/szary dla tekstu i tła */
    --light-grey: #f4f4f4; /* Jasny szary dla tła sekcji */
    --white: #ffffff;
    --text-color: #333;
    --glow-color: #00FFFF; /* Neonowy cyjan dla silniejszego efektu podświetlenia */
    --gold-color: #FFD700; /* Złoty kolor */
    --gold-dark-color: #DAA520; /* Ciemniejszy złoty */

    /* Zmienne dla responsywnego rozmiaru nazwy firmy w Hero */
    --hero-company-name-font-size-xl: 7em; /* Duże ekrany */
    --hero-company-name-font-size-lg: 5.5em; /* Laptopy/większe tablety */
    --hero-company-name-font-size-md: 4em;  /* Tablety */
    --hero-company-name-font-size-sm: 3.2em; /* Małe tablety/duże telefony */
    --hero-company-name-font-size-xs: 2.5em; /* Małe telefony */

    /* Zmienne dla responsywnego rozmiaru nagłówka H1 w Hero */
    --hero-h1-font-size-xl: 3.8em;
    --hero-h1-font-size-lg: 3em;
    --hero-h1-font-size-md: 2.5em;
    --hero-h1-font-size-sm: 2em;
    --hero-h1-font-size-xs: 1.8em;

    --border-radius: 12px;
    --transition-speed: 0.3s;
    --heading-color: var(--dark-blue);
    --section-bg-light: #fdfdff; /* Bardzo jasne tło dla sekcji */
    --section-bg-dark: #e9eff4; /* Ciemniejsze tło dla sekcji */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-grey); /* Podstawowe tło body */
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--dark-blue);
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Te nagłówki dotyczą reszty strony poza Hero */
h1 { font-size: 3.8em; }
h2 { font-size: 2.8em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 1.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Ważne dla responsywności przycisków */
}

.btn i {
    margin-right: 10px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.tertiary-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    box-shadow: none;
    font-size: 0.95em;
    padding: 10px 20px;
}

.tertiary-btn:hover {
    background-color: var(--gold-color); /* Złoty kolor tła dla całego przycisku */
    color: var(--dark-blue); /* Zmiana koloru tekstu na ciemny dla lepszego kontrastu ze złotym tłem */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); /* Złota poświata/cień dla całego przycisku */
}

.tertiary-btn:hover i {
    color: var(--gold-color); /* Złoty kolor dla samej ikony */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* Delikatna złota poświata dla ikony */
}

/* Header (tylko nawigacja) */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.main-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-header .logo {
    display: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 35px;
}

.main-nav ul li a {
    color: var(--dark-blue);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-speed);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Sekcja Hero - WIZUALNIE POWALAJĄCA */
.hero-section {
    background: url('images/hero-background.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    height: auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95)); /* Ciemniejszy overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-content {
    max-width: 1000px; /* Zwiększony max-width */
    margin: 0 auto;
}

.hero-company-name {
    font-size: var(--hero-company-name-font-size-xl); /* Używamy nowej zmiennej */
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 7px; /* Zwiększone odstępy między literami */
    text-shadow:
        0 0 20px var(--glow-color), /* Silniejszy glow */
        0 0 40px var(--glow-color),
        0 0 60px var(--glow-color),
        0 0 80px var(--glow-color),
        0 0 100px var(--glow-color),
        0 0 120px var(--glow-color);
    animation: pulseGlow 2s infinite alternate;
    position: relative; /* Potrzebne do pseudo-elementu */
    padding: 10px 0; /* Dodatkowy padding dla efektu tła */
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.1)); /* Delikatne tło */
    border-radius: 5px; /* Lekkie zaokrąglenie tła */
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5); /* Cień pasujący do glow */
}

.hero-section h1 {
    font-size: var(--hero-h1-font-size-xl); /* Używamy zmiennej dla nagłówka h1 */
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 700;
}

.hero-section p {
    font-size: 1.5em; /* Lekko większy tekst */
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.95); /* Jaśniejszy tekst */
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animacja pulsującej poświaty */
@keyframes pulseGlow {
    from {
        text-shadow:
            0 0 15px var(--glow-color),
            0 0 30px var(--glow-color),
            0 0 45px var(--glow-color);
    }
    to {
        text-shadow:
            0 0 25px var(--glow-color),
            0 0 50px var(--glow-color),
            0 0 75px var(--glow-color),
            0 0 100px var(--glow-color);
    }
}

/* Animowane "spływające" światła - NOWE STYLE */
.light-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Upewnij się, że są pod treścią */
    pointer-events: none; /* Nie blokują interakcji */
}

.light-particles span {
    position: absolute;
    display: block;
    background: rgba(0, 123, 255, 0.4); /* Kolor świateł, pasujący do primary-color */
    border-radius: 50%;
    animation: animateLight 20s linear infinite; /* Czas animacji dla płynnego ruchu */
    bottom: -150px; /* Startują poza ekranem */
    opacity: 0;
    filter: blur(8px); /* Efekt rozmycia */
}

/* Ustawienia indywidualne dla każdego światła za pomocą zmiennych CSS */
.light-particles span:nth-child(even) {
    background: rgba(40, 167, 69, 0.4); /* Zielony kolor dla parzystych (solarne) */
}

.light-particles span:nth-child(3n + 0) {
    background: rgba(0, 255, 255, 0.3); /* Cyjanowy dla co 3 elementu (dodatkowa poświata) */
    filter: blur(12px);
}


/* Losowanie rozmiaru i pozycji początkowej dla każdego światła */
.light-particles span:nth-child(1) { left: 10%; width: 30px; height: 30px; animation-delay: 0s; animation-duration: calc(40s / var(--i)); }
.light-particles span:nth-child(2) { left: 20%; width: 40px; height: 40px; animation-delay: 2s; animation-duration: calc(30s / var(--i)); }
.light-particles span:nth-child(3) { left: 25%; width: 25px; height: 25px; animation-delay: 4s; animation-duration: calc(35s / var(--i)); }
.light-particles span:nth-child(4) { left: 40%; width: 50px; height: 50px; animation-delay: 0s; animation-duration: calc(25s / var(--i)); }
.light-particles span:nth-child(5) { left: 45%; width: 35px; height: 35px; animation-delay: 6s; animation-duration: calc(45s / var(--i)); }
.light-particles span:nth-child(6) { left: 55%; width: 60px; height: 60px; animation-delay: 8s; animation-duration: calc(28s / var(--i)); }
.light-particles span:nth-child(7) { left: 60%; width: 20px; height: 20px; animation-delay: 10s; animation-duration: calc(32s / var(--i)); }
.light-particles span:nth-child(8) { left: 70%; width: 45px; height: 45px; animation-delay: 12s; animation-duration: calc(38s / var(--i)); }
.light-particles span:nth-child(9) { left: 80%; width: 30px; height: 30px; animation-delay: 14s; animation-duration: calc(29s / var(--i)); }
.light-particles span:nth-child(10) { left: 90%; width: 55px; height: 55px; animation-delay: 16s; animation-duration: calc(34s / var(--i)); }
.light-particles span:nth-child(11) { left: 5%; width: 32px; height: 32px; animation-delay: 1s; animation-duration: calc(33s / var(--i)); }
.light-particles span:nth-child(12) { left: 15%; width: 48px; height: 48px; animation-delay: 3s; animation-duration: calc(27s / var(--i)); }
.light-particles span:nth-child(13) { left: 30%; width: 28px; height: 28px; animation-delay: 5s; animation-duration: calc(39s / var(--i)); }
.light-particles span:nth-child(14) { left: 50%; width: 42px; height: 42px; animation-delay: 7s; animation-duration: calc(31s / var(--i)); }
.light-particles span:nth-child(15) { left: 65%; width: 52px; height: 52px; animation-delay: 9s; animation-duration: calc(26s / var(--i)); }
.light-particles span:nth-child(16) { left: 75%; width: 22px; height: 22px; animation-delay: 11s; animation-duration: calc(41s / var(--i)); }
.light-particles span:nth-child(17) { left: 85%; width: 38px; height: 38px; animation-delay: 13s; animation-duration: calc(36s / var(--i)); }
.light-particles span:nth-child(18) { left: 95%; width: 62px; height: 62px; animation-delay: 15s; animation-duration: calc(24s / var(--i)); }
.light-particles span:nth-child(19) { left: 22%; width: 33px; height: 33px; animation-delay: 17s; animation-duration: calc(30s / var(--i)); }
.light-particles span:nth-child(20) { left: 78%; width: 47px; height: 47px; animation-delay: 18s; animation-duration: calc(35s / var(--i)); }
.light-particles span:nth-child(21) { left: 42%; width: 27px; height: 27px; animation-delay: 19s; animation-duration: calc(42s / var(--i)); }
.light-particles span:nth-child(22) { left: 68%; width: 58px; height: 58px; animation-delay: 20s; animation-duration: calc(29s / var(--i)); }
.light-particles span:nth-child(23) { left: 12%; width: 36px; height: 36px; animation-delay: 21s; animation-duration: calc(37s / var(--i)); }


@keyframes animateLight {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Pojawiają się */
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.2); /* Spływają w górę i lekko rosną */
        opacity: 0; /* Znikają */
    }
}

/* Animacja pulsowania dla ikony żarówki */
.hero-buttons .secondary-btn i.fa-lightbulb {
    animation: pulseIcon 1.5s infinite alternate;
}

@keyframes pulseIcon {
    from {
        transform: scale(1);
        color: var(--primary-color);
    }
    to {
        transform: scale(1.1);
        color: var(--glow-color); /* Zmienia kolor na glow podczas pulsowania */
    }
}

/* Style dla wszystkich sekcji */
.offer-section,
.product-category-section,
.realizations-section,
.why-us-section,
.contact-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--section-bg-light);
}

.offer-section.alt-bg,
.product-category-section.alt-bg,
.realizations-section.alt-bg,
.why-us-section.alt-bg,
.contact-section.alt-bg {
    background-color: var(--section-bg-dark);
}

/* Sekcja Oferta */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.offer-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.offer-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.offer-item .icon-large {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.offer-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.offer-item p {
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 30px;
}


/* Product Category Section (Solarne & 230V) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.product-info-placeholder {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.product-info-placeholder .icon-large {
    font-size: 4em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.product-info-placeholder h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.product-info-placeholder p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.product-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


.product-item img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 15px;
}

@media (max-width: 600px) {
    .product-item img {
        max-height: 160px;
    }
}


.product-item h3 {
    padding: 20px 25px 10px;
    font-size: 1.6em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.product-item p {
    padding: 0 25px;
    font-size: 0.98em;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-item ul {
    list-style: none;
    padding: 15px 25px 0;
    margin-bottom: 15px;
}

.product-item ul li {
    font-size: 0.9em;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-item ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.product-item .btn {
    margin: 25px;
    width: calc(100% - 50px);
    align-self: flex-start;
}


/* Realizations Section */
.realization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.realization-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.realization-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.realization-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.realization-item h3 {
    padding: 20px 25px 10px;
    font-size: 1.6em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.realization-item p {
    padding: 0 25px 25px;
    font-size: 0.98em;
    color: var(--text-color);
}


/* Sekcja Dlaczego My */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-us-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform var(--transition-speed);
}

.why-us-item:hover {
    transform: translateY(-5px);
}

.why-us-item i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.why-us-item h4 {
    margin-top: 0;
    font-size: 1.3em;
}

.why-us-item p {
    font-size: 0.9em;
    color: #555;
}


/* Sekcja CTA */
.cta-section {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.8em;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    text-align: center;
}

.contact-info {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 600px; /* Ogranicz szerokość dla lepszego wyglądu */
    width: 100%; /* Upewnij się, że zajmuje dostępną przestrzeń do max-width */
    margin: 50px auto 0 auto; /* Wyśrodkowanie i margines od góry */
    text-align: left; /* Tekst wewnątrz bloku wyrównany do lewej */
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8em;
    text-align: center; /* Wyśrodkowanie nagłówka w bloku */
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.3em;
    flex-shrink: 0;
    width: 25px;
}

.contact-info .social-icons {
    margin-top: 30px;
    justify-content: center; /* Wyśrodkowanie ikon społecznościowych */
}

.map-container {
    margin-top: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.map-container iframe {
    border-radius: var(--border-radius);
}


/* Dodatkowe podświetlenia tekstu */
.highlight-text {
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Delikatny cień/poświata */
}

.hero-section p .highlight-text {
    color: var(--glow-color); /* Zmieniamy kolor na glow w hero */
    text-shadow: 0 0 10px var(--glow-color);
}


/* Footer */
.main-footer {
    background-color: #222;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    font-size: 0.95em;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.main-footer .footer-col {
    margin-bottom: 20px;
}

.main-footer .footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.2em;
    position: relative;
}
.main-footer .footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.main-footer .footer-col p {
    font-size: 0.9em;
    margin-bottom: 10px;
}
.main-footer .footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.main-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-col ul li {
    margin-bottom: 12px;
}

.main-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.main-footer .footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.main-footer .copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* === NOWE STYLE DLA PODSTRON === */

/* Sekcja Hero dla podstron */
.subpage-hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    min-height: 40vh; /* Mniejsza wysokość niż główny hero */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); /* Delikatniejszy overlay */
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.subpage-hero h1 {
    font-size: 3.2em; /* Mniejszy nagłówek niż główny hero */
    margin-bottom: 15px;
    color: var(--white);
}

.subpage-hero p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Sekcja z treścią dla podstron */
.subpage-content {
    padding: 60px 20px;
    background-color: var(--section-bg-light);
}

.subpage-content .content-block {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    text-align: left; /* Tekst w blokach wyrównany do lewej */
}

.subpage-content .content-block:last-child {
    margin-bottom: 0;
}

.subpage-content .content-block h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-blue);
    font-size: 2.2em;
}

.subpage-content .content-block p {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #444;
}

.subpage-content .content-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 25px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.icon-list li {
    background-color: var(--light-grey);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.icon-list li i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 1.4em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.feature-item {
    background-color: var(--section-bg-dark); /* Lekko ciemniejsze tło dla elementów */
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}

.cta-block {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 30px;
    border-radius: var(--border-radius);
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-block h3 {
    color: var(--white);
    font-size: 2em;
    margin-bottom: 20px;
}

.cta-block p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-block .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-block .btn:hover {
    background-color: #218838;
    border-color: #218838;
}

/* === Responsywność === */

/* Media Query dla dużych laptopów/desktopów (1200px i mniej) - dodanie zmiennych */
@media (max-width: 1200px) {
    .hero-company-name { font-size: var(--hero-company-name-font-size-lg); }
    .hero-section h1 { font-size: var(--hero-h1-font-size-lg); }
}

/* Media Query dla tabletów w orientacji poziomej / mniejszych laptopów (992px i mniej) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px; /* Lekko zmniejszony padding kontenera */
    }

    /* Nagłówek i nawigacja */
    .main-header .container {
        flex-wrap: wrap;
        justify-content: space-between; /* Wyrównanie elementów */
    }
    .main-nav ul {
        width: 100%;
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
        display: none; /* Ukryj domyślnie na małych ekranach */
        background-color: rgba(255, 255, 255, 0.98); /* Lekkie tło dla otwartego menu */
        border-top: 1px solid #eee;
        padding-bottom: 10px;
    }
    .main-nav ul.active {
        display: flex; /* Pokaż po kliknięciu hamburgera */
    }
    .main-nav ul li {
        margin: 10px 0;
        border-bottom: 1px solid #eee; /* Linia oddzielająca elementy menu */
        padding-bottom: 5px;
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    .main-nav ul li a {
        padding: 8px 0; /* Zmniejszony padding linków */
        font-size: 1.1em; /* Lekko większe czcionki dla czytelności */
        display: block; /* Upewnij się, że link zajmuje całą szerokość li */
    }
    .main-nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: block;
        margin-left: 0; /* Brak marginesu, bo jest space-between */
    }

    /* Sekcja Hero */
    .hero-section {
        padding: 80px 20px;
        min-height: 70vh; /* Zmniejszona minimalna wysokość */
    }
    .hero-company-name {
        font-size: var(--hero-company-name-font-size-md);
        letter-spacing: 4px;
        text-shadow:
            0 0 12px var(--glow-color),
            0 0 25px var(--glow-color);
        padding: 8px 0;
    }
    .hero-section h1 {
        font-size: var(--hero-h1-font-size-md);
        margin-bottom: 20px;
    }
    .hero-section p {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 90%; /* Przyciski zajmują większą szerokość */
        max-width: 350px; /* Ograniczenie szerokości przycisków */
        margin-right: 0;
        font-size: 1em;
        padding: 12px 25px;
    }

    /* Ogólne nagłówki sekcji */
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.2em; }
    .section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    /* Siatki */
    .offer-grid,
    .why-us-grid,
    .product-grid,
    .realization-grid,
    .main-footer .container,
    .icon-list,
    .features-grid {
        grid-template-columns: 1fr; /* Wszystkie gridy stają się jedną kolumną */
        gap: 25px; /* Mniejsze odstępy */
    }

    /* Itemy w siatkach */
    .offer-item, .why-us-item, .product-item, .realization-item {
        padding: 30px;
    }
    .offer-item .icon-large {
        font-size: 3em;
    }
    .product-item img, .realization-item img {
        height: 200px;
    }

    /* Sekcja Kontakt */
    .contact-info {
        padding: 30px;
        margin-top: 40px;
    }
    .contact-info h3 {
        font-size: 1.6em;
    }
    .contact-info p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    .contact-info p i {
        font-size: 1.2em;
    }

    /* Footer */
    .main-footer .footer-col {
        text-align: center;
    }
    .main-footer .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .main-footer .footer-col ul li {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }

    /* Podstrony */
    .subpage-hero {
        padding: 60px 20px;
        min-height: 35vh;
    }
    .subpage-hero h1 {
        font-size: 2.5em;
    }
    .subpage-hero p {
        font-size: 1em;
    }
    .subpage-content {
        padding: 40px 20px;
    }
    .subpage-content .content-block {
        padding: 30px;
    }
    .subpage-content .content-block h2 {
        font-size: 1.8em;
    }
    .cta-block {
        padding: 40px 20px;
    }
    .cta-block h3 {
        font-size: 1.8em;
    }
    .cta-block p {
        font-size: 1em;
    }
}

/* Media Query dla małych telefonów (poniżej 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Jeszcze mniejszy padding */
    }

    /* Sekcja Hero */
    .hero-section {
        padding: 60px 15px;
        min-height: 60vh;
    }
    .hero-company-name {
        font-size: var(--hero-company-name-font-size-xs);
        letter-spacing: 2px;
        text-shadow:
            0 0 5px var(--glow-color),
            0 0 10px var(--glow-color);
        padding: 5px 0;
    }
    .hero-section h1 {
        font-size: var(--hero-h1-font-size-xs);
        margin-bottom: 15px;
    }
    .hero-section p {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .btn {
        width: 100%; /* Przyciski zajmują całą szerokość */
        max-width: unset; /* Usuń ograniczenie max-width */
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Ogólne nagłówki */
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }
    h4 { font-size: 1.1em; }
    .section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* Itemy w siatkach */
    .offer-item, .why-us-item, .product-item, .realization-item {
        padding: 20px;
    }
    .offer-item .icon-large {
        font-size: 2.5em;
    }
    .product-item img, .realization-item img {
        height: 160px;
    }

    /* Sekcja Kontakt */
    .contact-info {
        padding: 20px;
        margin-top: 30px;
    }
    .contact-info h3 {
        font-size: 1.4em;
    }
    .contact-info p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    .contact-info p i {
        font-size: 1em;
        margin-right: 10px;
        width: 20px;
    }
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }

    /* Footer */
    .main-footer .container {
        gap: 30px;
    }
    .main-footer .footer-col h4 {
        font-size: 1.1em;
    }
    .main-footer .footer-col p, .main-footer .footer-col ul li a {
        font-size: 0.85em;
    }
    .main-footer .copyright {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.8em;
    }

    /* Podstrony */
    .subpage-hero {
        padding: 40px 15px;
        min-height: 30vh;
    }
    .subpage-hero h1 {
        font-size: 2.2em;
    }
    .subpage-hero p {
        font-size: 0.9em;
    }
    .subpage-content {
        padding: 30px 15px;
    }
    .subpage-content .content-block {
        padding: 25px;
    }
    .subpage-content .content-block h2 {
        font-size: 1.6em;
    }
    .cta-block {
        padding: 30px 15px;
    }
    .cta-block h3 {
        font-size: 1.6em;
    }
    .cta-block p {
        font-size: 0.9em;
    }
}

/* ====== KATALOG PRODUKTÓW ====== */
.catalog-section {
    padding: 80px 20px;
    background-color: var(--section-bg-light);
    text-align: center;
}

.catalog-header {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.catalog-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.catalog-header p {
    font-size: 1.1em;
    color: var(--text-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 15px;
}

.product-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.4em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.product-content p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: var(--text-color);
}

.product-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.product-content table th,
.product-content table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.product-content table th {
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    width: 40%;
}