/* RESET I PODSTAWY */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f8f9fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* NAGŁÓWEK (LOGO I MENU) */
/* STYLIZACJA NAGŁÓWKA I LOGO */
/* --- NAGŁÓWEK I LOGO --- */
.site-header { 
    position: relative; /* Wymagane dla ikonki na telefonie */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background-color: #231f20; 
    padding: 20px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.header-logo {
    max-width: 320px; /* Zmniejszone logo (baner) */
    height: auto;
    display: block;
}

/* --- NAWIGACJA (KOMPUTER) --- */
.main-nav { 
    margin-top: 20px; 
    width: 100%; /* Pozwala wyśrodkować menu na całej szerokości */
}

.main-nav ul {
    list-style: none; /* Usuwa kropki */
    display: flex;    /* Układa linki w poziomie */
    justify-content: center; /* Idealnie wyśrodkowuje na ekranie */
    gap: 35px; /* Odstępy między linkami */
    padding: 0;
    margin: 0;
}

.main-nav a { 
    color: #ecf0f1; 
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover { 
    color: #3498db; 
}

/* --- IKONKA HAMBURGERA --- */
.hamburger {
    display: none; /* Ukryta na komputerze */
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
}

/* --- WERSJA DLA TELEFONÓW I TABLETÓW --- */
@media (max-width: 768px) {
    .hamburger { 
        display: block; /* Pokazuje ikonkę na telefonie */
    }
    .main-nav {
        display: none; /* Ukrywa menu domyślnie */
        background-color: #231f20;
        padding-bottom: 20px;
    }
    .main-nav.open {
        display: block; /* Pokazuje menu po kliknięciu w JS */
    }
    .main-nav ul {
        flex-direction: column; /* Ustawia linki z powrotem pionowo */
        align-items: center;
        gap: 15px;
    }
}

/* SLIDER */
.hero-slider { position: relative; width: 100%; height: 60vh; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.slide-text { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); color: #fff; max-width: 500px; z-index: 2; }
.slide-text h1 { font-size: 3rem; margin-bottom: 15px; line-height: 1.2; }
.btn { display: inline-block; padding: 12px 25px; background: #0056b3; color: #fff; border: none; font-weight: bold; cursor: pointer; margin-top: 15px; transition: background 0.3s; }
.btn:hover { background: #004494; }

/* SEKCJA USŁUG */
.services-preview { padding: 60px 10%; text-align: center; }
.services-preview h2 { margin-bottom: 40px; font-size: 2rem; }
.services-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.service-card { background: #fff; padding: 30px; flex: 1; min-width: 280px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 8px; }
.service-card h3 { margin-bottom: 15px; color: #0056b3; }

/* STOPKA */
.site-footer { background: #2c3e50; color: #ecf0f1; padding: 50px 10% 20px; }
.footer-container { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { border-bottom: 2px solid #0056b3; padding-bottom: 10px; margin-bottom: 20px; }
.footer-col p { margin-bottom: 10px; font-size: 0.95rem; }
.form-col input, .form-col select { width: 100%; padding: 10px; margin-bottom: 10px; border: none; border-radius: 4px; }
.footer-bottom { text-align: center; border-top: 1px solid #34495e; padding-top: 20px; font-size: 0.85rem; }

/* MEDIA QUERIES (DLA URZĄDZEŃ MOBILNYCH) */
@media (max-width: 768px) {
    .main-nav ul { flex-direction: column; align-items: center; gap: 15px; }
    .hero-slider { height: 40vh; }
    .slide-text { display: none; /* Zgodnie z życzeniem - znika na mobilnych */ }
    .footer-container { flex-direction: column; }
}
/* STYLIZACJA GALERII I PODSTRON */
.page-top-gallery { padding: 40px 10% 20px; text-align: center; background: #fff; }
.page-top-gallery h2 { margin-bottom: 20px; color: #2c3e50; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-item { height: 200px; overflow: hidden; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item img:hover { transform: scale(1.05); }

.content-section { padding: 60px 10%; }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; font-size: 1.1rem; color: #666; }
.products-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.spec-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid #0056b3; }
.spec-card h3 { margin-bottom: 15px; color: #2c3e50; }

/* PODSTRONA KONTAKT */
.contact-wrapper { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.contact-details-box { flex: 1; min-width: 300px; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-details-box h3 { margin-top: 20px; margin-bottom: 10px; color: #0056b3; }
.contact-details-box h3:first-child { margin-top: 0; }
.contact-details-box p { margin-bottom: 12px; }
.contact-map-box { flex: 1; min-width: 300px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; }
}
/* MINI SLIDER W KARCIE */
.mini-slider {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}
.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.3s;
}
.mini-slide.active {
    opacity: 1;
}
/* Efekt najechania - zbliżenie sugerujące możliwość kliknięcia */
.mini-slider:hover .mini-slide.active {
    transform: scale(1.03);
}

/* STYLIZACJA OKNA LIGHTBOX (POWIĘKSZENIE) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.content-section h2 {
    text-align: center;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: color 0.3s;
}
.lightbox-prev:hover, .lightbox-next:hover { color: #0056b3; }
.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }
a.clickable-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
a.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}
/* STYLIZACJA KROKU 2 FORMULARZA */
.form-row-2col { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.form-row-2col .radio-group { flex: 1; min-width: 200px; }
.radio-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.group-title { font-weight: bold; color: #fff; margin-bottom: 2px; }
.group-subtitle { font-size: 0.85rem; color: #bdc3c7; margin-bottom: 10px; }

.radio-group label { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; color: #ecf0f1; }
.radio-group input[type="radio"] { cursor: pointer; accent-color: #0056b3; transform: scale(1.2); }

.horizontal-radios .inline-options { display: flex; gap: 15px; flex-wrap: wrap; }
.textarea-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.textarea-group textarea { width: 100%; padding: 12px; border-radius: 4px; border: none; background: #1a252f; color: #fff; resize: vertical; margin-top: 10px; }
.textarea-group textarea::placeholder { color: #7f8c8d; }

.form-buttons { display: flex; gap: 15px; margin-top: 20px; }
.btn-secondary { background: #7f8c8d; }
.btn-secondary:hover { background: #95a5a6; }
.btn-next { width: 100%; }

/* Margines dla samej captchy */
.h-captcha { margin-top: 15px; margin-bottom: 15px; }
/* GALERIA GŁÓWNA PORCJOWANA (4 NA KOMPUTER, 1 NA TELEFON) */
.main-carousel {
    display: flex;
    gap: 15px;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.carousel-item {
    display: none;
    flex: 1;
    max-width: 24%; /* Czyli 4 w rzędzie z odstępami na komputerze */
    height: 250px;
}
.carousel-item.active {
    display: block;
}
.carousel-item img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 6px; cursor: pointer; transition: transform 0.3s;
}
.carousel-item img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
    .carousel-item { max-width: 100%; } /* Na telefonie 1 obrazek na pełną szerokość */
}
/* SPECJALNY WYGLĄD SLIDERA TYLKO DLA WENTYLACJI */
.mini-slider.vent-slider {
    height: 250px;
    background-color: #fff; /* Białe tło, żeby po bokach nie było czarnych pasów */
}
.mini-slider.vent-slider .mini-slide {
    object-fit: contain; /* Pokaż całe zdjęcie bez przycinania */
}