/* 
Zmienne CSS - system motywów 
*/
:root {
    --bg-primary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --primary-blue: #0056b3; 
    --accent-yellow: #f1c40f; 
    --accent-hover: #d4ac0d;
    --gallery-bg: #81d4fa; /* Jasny niebieski */
    
    /* MENU */
    --nav-bg: #0056b3; 
    --nav-border: #004494; 
    --nav-item-bg: #ffffff; 
    --nav-item-color: #000000; 
    --nav-item-hover-bg: #f1c40f; 
    --nav-item-hover-color: #000000; 
    
    --contact-bg: #f1c40f; 
    --contact-color: #000000;
    --contact-hover-bg: #ffffff; 
    --contact-hover-color: #0056b3;
    
    --hamburger-color: #ffffff; 

    /* SEKCJA O NAS (Kafelki) */
    --box-bg: #f5f5f5;
    --box-hover-bg: #0056b3;
    --box-text-primary: #0056b3;
    --box-text-secondary: #4a4a4a;
    --box-hover-text: #ffffff; 

    --form-bg: #ffffff;
    --form-border: #cccccc;
    --hero-overlay: rgba(255, 255, 255, 0.7);
    --hero-text: #1a1a1a;
}

/* Motyw Ciemny */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --text-primary: #f5f5f5;
    --text-secondary: #cccccc;
    --primary-blue: #4da6ff; 
    --accent-yellow: #f1c40f;
    --accent-hover: #d4ac0d;
    --gallery-bg: #81d4fa; /* Jasny niebieski */
    
    /* MENU */
    --nav-bg: #001f3f; 
    --nav-border: #000000;
    --nav-item-bg: #1a1a1a; 
    --nav-item-color: #f5f5f5; 
    --nav-item-hover-bg: #f1c40f; 
    --nav-item-hover-color: #000000;
    
    --contact-bg: #f1c40f;
    --contact-color: #000000;
    --contact-hover-bg: #ffffff;
    --contact-hover-color: #001f3f;
    
    --hamburger-color: #f5f5f5;

    /* SEKCJA O NAS (Kafelki) w motywie ciemnym */
    --box-bg: #1a1a1a;
    --box-hover-bg: #4da6ff;
    --box-text-primary: #4da6ff;
    --box-text-secondary: #cccccc;
    --box-hover-text: #ffffff;

    --form-bg: #1a1a1a;
    --form-border: #333333;
    --hero-overlay: rgba(10, 10, 10, 0.85);
    --hero-text: #f5f5f5;
    --gallery-bg: #002244; /* Ciemny niebieski */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
    text-align: center;
}

.logo-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper .logo {
    max-width: 100%;
    object-fit: contain;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--nav-border);
    margin: 15px auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow);
    animation: load 1.5s ease-out forwards;
}

.preloader-content p {
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg); 
    padding: 10px 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Lewa strona - Logo */
.nav-left {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo .logo-img {
    height: 80px; 
    width: auto;
    object-fit: contain;
}

.light-logo { display: block; }
.dark-logo { display: none; }
[data-theme="dark"] .light-logo { display: none; }
[data-theme="dark"] .dark-logo { display: block; }

/* Środek - Zakładki wyśrodkowane */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.nav-item {
    background-color: var(--nav-item-bg);
    color: var(--nav-item-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px; 
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-item:hover {
    background-color: var(--nav-item-hover-bg);
    color: var(--nav-item-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-item.btn-contact {
    background-color: var(--contact-bg);
    color: var(--contact-color);
}

.nav-item.btn-contact:hover {
    background-color: var(--contact-hover-bg);
    color: var(--contact-hover-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

/* Prawa strona - Język / Hamburger */

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
}

/* WYBÓR JĘZYKA (Nowy wygląd) */
.lang-menu {
    position: relative;
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    user-select: none;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: transparent;
    border-radius: 5px;
    transition: background 0.3s;
}

.selected-lang:hover {
    background: rgba(255, 255, 255, 0.1);
}

.selected-lang .lang-text {
    font-size: 0.95rem;
}

.selected-lang .arrow {
    font-size: 0.6rem;
    color: #a0c4ff;
    transition: transform 0.3s;
    margin-left: 2px;
}

/* Strzałka w dół, kiedy kliknięte kręci się do góry */
.lang-menu.active .arrow {
    transform: rotate(180deg);
}

.lang-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 5px 0;
    min-width: 90px;
    display: none;
    flex-direction: column;
    border: 1px solid #ddd;
    z-index: 1005;
}

.lang-menu.active ul {
    display: flex;
    animation: fadeIn 0.2s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: #000000;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.lang-menu ul li a:hover {
    background: #f0f0f0;
}

.flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* PŁYWAJĄCY SUWAK MOTYWU PIONOWY (Lewy dolny róg) */
.theme-switch-wrapper.floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9000;
    background: var(--nav-bg);
    padding: 10px; /* mniejszy padding dla pionowego */
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border: 2px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-switch-wrapper.floating:hover {
    transform: translateY(-5px) scale(1.05);
}

.theme-switch {
    display: inline-block;
    width: 32px;
    height: 64px;
    position: relative;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    flex-direction: column; /* PIONOWO */
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.slider .moon {
    font-size: 13px;
    z-index: 1;
    margin-top: 1px;
}
.slider .sun {
    font-size: 13px;
    z-index: 1;
    margin-bottom: 1px;
}
.slider:before {
    background-color: #fff;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    position: absolute;
    transition: 0.4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
input:checked + .slider {
    background-color: var(--primary-blue);
}
input:checked + .slider:before {
    transform: translateY(-32px); /* Porusza się do góry */
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}
.bar {
    width: 28px;
    height: 3px;
    background-color: var(--hamburger-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('dom-fotowoltaika.jpg') no-repeat center center/cover;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--hero-text);
    font-weight: 500;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-hero {
    background: var(--primary-blue);
    color: #fff;
}
.btn-hero:hover {
    background: var(--accent-yellow);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

/* Sekcja funkcji / Features */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 5% 80px;
    gap: 30px;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: var(--box-bg);
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid var(--accent-yellow);
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-box h3 {
    color: var(--box-text-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.feature-box p {
    color: var(--box-text-secondary);
    transition: color 0.3s ease;
}

.feature-box:hover {
    background: var(--box-hover-bg);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-box:hover h3, 
.feature-box:hover p {
    color: var(--box-hover-text); 
}

/* Strony podrzędne */
.content-section {
    padding: 120px 10% 80px;
    min-height: 80vh;
}

.content-section h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.offer-list {
    margin-top: 30px;
    padding-left: 20px;
}

.offer-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Formularz kontaktowy */
.contact-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.contact-form-section .contact-form {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 600px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

.btn-submit {
    background-color: var(--accent-yellow);
    color: #000;
}
.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* MEDIA QUERIES (RWD) */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 30px;
        transform: translateX(0);
        left: auto;
        margin: 0;
    }

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

    .nav-item {
        font-size: 1.5rem;
        padding: 12px 30px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .theme-switch-wrapper.floating {
        bottom: 20px;
        left: 20px;
    }
}

/* SEKCJA MAPY I KONTAKTU */
.contact-map-section {
    padding: 60px 5%;
    background-color: var(--bg-primary);
}

.contact-map-section.page-top {
    padding-top: 140px; 
}

.contact-map-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .contact-map-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.map-box {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    position: relative;
}

.map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-box:hover iframe {
    filter: grayscale(0%);
}

.info-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.info-box h3::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-yellow);
    margin-right: 15px;
}

.info-box ul {
    list-style: none;
    margin-bottom: 40px;
}

.info-box ul li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 5px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-yellow);
    color: #000;
    transform: translateY(-3px);
}

/* FOOTER NOWY W STYLU "HYMON" */
.site-footer {
    background-color: var(--nav-bg); 
    color: #ffffff;
    padding: 60px 5% 20px;
    font-size: 0.95rem;
    border-top: 1px solid var(--nav-border);
}

[data-theme="light"] .site-footer {
    color: #ffffff;
}

[data-theme="dark"] .site-footer {
    color: #cccccc;
}

.footer-container {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 2fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-col ul li a::before {
    content: "•";
    color: #ffffff;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: 0;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-yellow);
}

.footer-col ul li a:hover::before {
    color: var(--accent-yellow);
}

.footer-about p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-contact-details p {
    margin-bottom: 5px;
}
.footer-contact-details strong {
    color: var(--accent-yellow);
}

.footer-social p {
    margin-bottom: 15px;
}

.social-icons-footer {
    display: flex;
    gap: 12px;
}

.social-icons-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: var(--nav-bg);
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icons-footer a:hover {
    background-color: var(--accent-yellow);
    color: #000000;
    transform: translateY(-3px);
}

.footer-action p {
    margin-bottom: 15px;
}

.btn-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-footer:hover {
    background-color: var(--accent-yellow);
    color: #000000;
    border-color: var(--accent-yellow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 20px auto 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-yellow);
}

@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col.footer-about {
        grid-column: span 3;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col.footer-about {
        grid-column: span 1;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
    }
    
    .footer-col ul li a {
        justify-content: center;
    }
    
    .footer-col ul li a::before {
        display: none;
    }
    
    .social-icons-footer {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* SEKCJA OFERTY (Karty produktów) */
.offer-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    line-height: 1.7;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.offer-card {
    background-color: var(--box-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top-color: var(--accent-yellow);
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
}

.offer-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.offer-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

[data-theme="dark"] .offer-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

[data-theme="dark"] .offer-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* SEKCJA DETALI OFERTY (Podstrony) */
.service-detail-section {
    padding: 160px 5% 80px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.service-detail-container {
    max-width: 900px;
    background: var(--box-bg);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-yellow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .service-detail-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.service-detail-container h2 {
    color: var(--primary-blue);
    font-size: 2.8rem;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}
.service-detail-container p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}
.price-box {
    background: var(--bg-primary);
    border: 2px dashed var(--accent-yellow);
    padding: 30px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 40px;
    transition: background 0.3s ease;
}
.price-box h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.price-box .price {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* STYLE DLA ZDJĘĆ W OFERTACH I NA GŁÓWNEJ */
.offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: contain; /* żeby pompa i magazyn nie były ucięte */
    margin-bottom: 30px;
    border-radius: 15px;
}

/* PASKI SEKCJI */
.section-bar {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}
.section-bar h2 {
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
[data-theme="dark"] .section-bar {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* O NAS NA GŁÓWNEJ */
.about-section {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 50px 5%;
    align-items: center;
}
.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.about-image {
    flex: 1;
    min-width: 300px;
}
.about-image img, .about-image video {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    max-height: 400px;
}
[data-theme="dark"] .about-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* GALERIA HEXAGONY */
.hex-gallery-section {
    text-align: center;
    padding: 40px 0 60px;
    background-color: var(--gallery-bg);
}
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    gap: 5px;
    padding: 0 5%;
}
.hex-item {
    width: 250px;
    height: 280px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    overflow: hidden;
    background-color: var(--box-bg);
}
.hex-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

[data-theme="dark"] 


.hex-item:hover 
.hex-item:hover img {
    transform: scale(1.1);
}

/* PROSTOKĄTNA GALERIA (PODSTRONA) */
.rect-gallery-section {
    padding: 60px 5%;
    background-color: var(--bg-primary);
}
.rect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.rect-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
}
[data-theme="dark"] .rect-item {
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.rect-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rect-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 86, 179, 0.9);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
}
[data-theme="dark"] .rect-overlay {
    background: rgba(0, 31, 63, 0.9);
}
.rect-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--accent-yellow);
}
.rect-overlay p {
    font-size: 0.95rem;
    margin: 0;
}
.rect-item:hover img {
    transform: scale(1.1);
}
.rect-item:hover .rect-overlay {
    transform: translateY(0);
}

/* SECTION BAR FIX (No margin-top after background) */
.section-bar-top {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}
.section-bar-top h2 {
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
[data-theme="dark"] .section-bar-top {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}


/* HEX GALLERY (Homepage specific) */
.hex-gallery-home {
    background-color: var(--gallery-bg);
    padding: 60px 0 80px;
    text-align: center;
}

.hex-grid-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hex-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -72px; /* Idealne spasowanie pionowe */
}

.hex-row:first-child {
    margin-top: 0;
}

.hex-item-home {
    width: 250px;
    height: 288px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #fff; /* Biała obwódka */
    position: relative;
    margin: 0 5px; /* Idealny odstęp poziomy */
}

.hex-item-home img {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: cover;
    display: block;
}

.hex-item-home .tint {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: rgba(0, 86, 179, 0.45); /* Półprzezroczysty niebieski */
    pointer-events: none;
}

[data-theme="dark"] .hex-item-home .tint {
    background-color: rgba(0, 31, 63, 0.65);
}

.hex-item-home.center-hex .tint {
    display: none; /* Brak przyciemnienia dla środkowego zdjęcia */
}

.hex-btn-container {
    margin-top: 50px;
}

/* Empty hexagon for spacing */
.hex-item-empty {
    width: 280px;
    height: 323px;
    margin: -35px -5px;
    visibility: hidden;
}

/* Adjust grid layout to create honeycomb pattern */
.hex-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -68px;
}
.hex-row:first-child {
    margin-top: 0;
}

.hex-btn-container {
    margin-top: 40px;
}
