/* ==========================================================================
   1. RESET I USTAWIENIA GLOBALNE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f5f7;
    color: #2d3748;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styl dla linków */
a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* ==========================================================================
   2. HEADER & NAWIGACJA (DESKTOP) - WERSJA PROCENTOWA
   ========================================================================== */
header {
    background-color: #1a202c; 
    /* KROK 1: Definiujemy sztywną wysokość nagłówka dla komputerów */
    height: 140px; 
    
    /* Rezygnujemy z paddingu góra/dół, kontrolujemy tylko boki (5%) */
    padding: 0 5%; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Kontener linku wokół logo */
.logo-link {
    display: flex;
    align-items: center;
    /* KROK 2: Link zajmuje pełną wysokość nagłówka */
    height: 100%; 
}

.nav-logo {
    /* KROK 3: Logo zajmuje dokładnie 90% wysokości nagłówka (w tym przypadku ok. 126px) */
    height: 80%; 
    width: auto;
    display: block;
    /* Automatycznie centruje logo w pionie wewnątrz 100% wysokości linku */
    margin: auto 0; 
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: #e2e8f0;
}

.nav-menu a.active{
    color: #f8381d;
    font-weight: 600;
}

.nav-menu a:hover {
    color: #f6ad55;
}

.menu-toggle, 
.hamburger-label {
    display: none;
}

/* ==========================================================================
   3. FOOTER (STOPKA)
   ========================================================================== */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    margin-top: auto; /* Popycha footer na dół strony, jeśli jest mało treści */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Stylizacja mapy */
footer iframe {
    width: 100% !important;
    height: 250px; /* Maksymalna estetyczna wysokość mapy */
    display: block;
    filter: grayscale(20%) contrast(110%); /* Lekki industrialny filtr dla mapy */
}

/* Teksty w footerze */
footer h4 {
    font-size: 13px;
    font-weight: 400;
    margin: 15px 20px 0 20px;
    color: #cbd5e0;
}

/* Ostatnia linijka z logo twórców strony */
footer h4:last-of-type {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Logo WebDesign wielkości tekstu */
footer h4 img {
    height: 27px; /* Dokładnie dopasowane do wielkości linii tekstu */
    width: auto;
    vertical-align: middle;
}

/* ==========================================================================
   4. RESPONSOWNOŚĆ (MEDIA QUERIES - MOBILE) - WERSJA PROCENTOWA
   ========================================================================== */
@media screen and (max-width: 992px) {
    
    header {
        /* KROK 4: Na telefonach zmniejszamy nagłówek np. do 85px. 
           Logo automatycznie zmniejszy się do ~76px. Będzie duże, ale nie rozwali układu! */
        height: 85px; 
    }

    /* Pokaż przycisk hamburgera */
    .hamburger-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-label span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #e2e8f0;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Ukryte menu rozwijane w pionie na telefonie */
    .nav-menu {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #1a202c;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 18px 0;
        border-top: 1px solid #2d3748;
        width: 100%;
    }

    /* Logika otwierania menu przy użyciu checkboxa: */
    .menu-toggle:checked ~ .nav-menu {
        max-height: 400px; 
    }

    /* Animacja hamburgera w krzyżyk (X) po kliknięciu */
    .menu-toggle:checked ~ .hamburger-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger-label span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================================================================
   5. PODSTRONA KONTAKT (NOWA WERSJA DWUKOLUMNOWA)
   ========================================================================== */

.contact-section {
    background-color: #121620; 
    color: #ffffff;
    padding: 80px 5%; /* Większy padding dla lepszego rozbicia sekcji */
    flex-grow: 1;
}

.section-title {
    text-align: center;
    font-size: 36px; /* Lekko powiększony tytuł */
    font-weight: 700;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Główny kontener na dwie główne sekcje (lewa i prawa) */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Sprawia, że obie strony mają równą wysokość */
    gap: 40px; /* Większy odstęp między kolumnami */
    max-width: 1200px;
    margin: 0 auto;
}

/* Lewa kolumna grupująca dwa kafelki */
.contact-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Odstęp między dwoma lewymi kafelkami */
}

/* Prawa kolumna z formularzem */
.form-card {
    flex: 1.2; /* Formularz jest minimalnie szerszy, co wygląda bardzo naturalnie */
}

/* Uniwersalny styl kafelków */
.contact-card {
    background-color: #1a202c;
    padding: 40px; /* Większy padding wewnątrz dla efektu "oddechu" */
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Klasa dla wyjustowania zawartości konkretnego kafelka */
.card-justify {
    text-align: justify;
}

.contact-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.contact-card .address {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 20px;
    font-size: 17px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-list li:last-child {
    margin-bottom: 0; /* Reset dla ostatniego elementu */
}

.contact-list .icon {
    color: #f8381d;
    font-size: 20px;
}

/* Przycisk "Wyznacz trasę" */
.map-btn-link {
    display: inline-block;
    margin-top: auto; /* Popycha przycisk na dół kafelka, jeśli tekst jest krótki */
}

.btn-primary {
    background-color: #f8381d;
    color: white;
    border: none;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #d62c16;
    transform: translateY(-2px);
}

/* FORMULARZ KONTAKTOWY */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #121620;
    border: 1px solid #2d3748;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.contact-form input[type=number]::-webkit-inner-spin-button, 
.contact-form input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f8381d;
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #f8381d;
    color: white;
    border: none;
    padding: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    letter-spacing: 1px;
    font-size: 15px;
}

.btn-submit:hover {
    background-color: #d62c16;
}

.rodo-text {
    font-size: 11px;
    color: #718096;
    line-height: 1.6;
    text-align: justify;
    margin-top: 5px;
}

/* ==========================================================================
   RESPONSOWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Na tabletach i średnich ekranach przechodzimy w pełen pion */
@media screen and (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info-column {
        width: 100%;
    }
    
    .contact-card {
        padding: 30px;
    }
}

/* Na telefonach dbamy o odpowiednie łamanie wierszy w formularzu */
@media screen and (max-width: 576px) {
    .contact-section {
        padding: 50px 4%;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   6. PODSTRONA KOTŁY C.O.
   ========================================================================== */

.products-section {
    background-color: #121620; /* Spójne ciemne tło */
    color: #ffffff;
    padding: 80px 5%;
    flex-grow: 1;
}

/* Sekcja nagłówkowa strony */
.products-hero {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 16px;
    color: #cbd5e0;
    line-height: 1.7;
}

/* Główny kontener na karty */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Odstęp między dużymi blokami */
}

/* Ogólny styl dużych kart */
.product-large-card {
    background-color: #1a202c;
    padding: 45px;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.text-justify {
    text-align: justify;
}

.product-large-card h2,
.product-small-card h2 {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.product-large-card p,
.product-small-card p {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Lista cech w dużym bloku 1 */
.features-list {
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-list li {
    font-size: 15px;
    color: #cbd5e0;
    line-height: 1.7;
    padding-left: 20px;
    border-left: 3px solid #f8381d; /* Akcent spawalniczy po lewej stronie */
}

.feature-highlight {
    display: block;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Lista certyfikatów w dużym bloku 2 */
.cert-list {
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cert-list li {
    font-size: 16px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fire-icon {
    color: #f8381d;
    font-size: 18px;
}

/* Podsumowania na dole dużych kart */
.card-summary {
    font-weight: 400;
    color: #e2e8f0 !important;
    margin-bottom: 0 !important;
    padding-top: 15px;
    border-top: 1px solid #2d3748;
}

/* WIERSZ Z DWIEMA MNIEJSZYMI KARTAMI */
.small-cards-row {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Równa wysokość obu małych kart */
}

.product-small-card {
    flex: 1;
    background-color: #1a202c;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

/* Wyróżnienie tekstu dotacji */
.text-accent {
    color: #f8381d;
    font-weight: 600;
}

/* Karta CTA (Wezwanie do kontaktu) */
.cta-card {
    text-align: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-left: 4px solid #f8381d; /* Wyrazisty akcent po lewej */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-sub {
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096 !important;
    margin-bottom: 30px !important;
}

.cta-link {
    display: block;
    width: 100%;
}

.btn-cta {
    width: 100%;
    background-color: #f8381d;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-color: #d62c16;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSOWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Dla tabletów - wszystko przechodzi w jedną kolumnę pionową */
@media screen and (max-width: 992px) {
    .products-section {
        padding: 50px 4%;
    }

    .hero-title {
        font-size: 28px;
    }

    .product-large-card {
        padding: 30px;
    }

    .small-cards-row {
        flex-direction: column;
        gap: 30px;
    }

    .product-small-card {
        padding: 30px;
        width: 100%;
    }
}

/* Dla smartfonów - wyłączenie justowania dla lepszej czytelności krótkich linii */
@media screen and (max-width: 576px) {
    .text-justify {
        text-align: left; /* Na małych ekranach wyjustowany tekst potrafi robić brzydkie, wielkie dziury */
    }
    
    .hero-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   7. PODSTRONA KOTŁY SPECJALNE / REALIZACJE NIETYPOWE
   ========================================================================== */

.special-section {
    background-color: #121620; /* Spójne, ciemne, industrialne tło */
    color: #ffffff;
    padding: 80px 5%;
    flex-grow: 1;
}

/* Wstęp */
.special-hero {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.special-hero .hero-sub {
    font-size: 16px;
    font-weight: 500;
    color: #f8381d; /* Akcent kolorystyczny strony */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

/* GALERIA REALIZACJI (Zabezpieczenie różnych wymiarów zdjęć) */
.special-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 równe kolumny */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.gallery-item {
    position: relative;
    background-color: #252e3f;
    border-radius: 6px;
    overflow: hidden;
    height: 450px; /* Sztywna wysokość wyrównująca wszystkie 3 zdjęcia */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* KLUCZOWE: Obcina i dopasowuje zdjęcia 679x510 oraz 383x510 do równej ramki bez zniekształceń */
    object-fit: cover; 
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* Efekt najechania na zdjęcie */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(248, 56, 29, 0.15); /* Subtelna czerwona poświata */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Delikatny zoom zdjęcia w środku */
}

/* Napis na zdjęciu po najechaniu lub delikatnie widoczny na dole */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(18, 22, 32, 0.9) 0%, rgba(18, 22, 32, 0.2) 100%);
    padding: 20px;
    box-sizing: border-box;
}

.gallery-overlay span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* BLOK INFORMACYJNY (DWUKOLUMNOWY) */
.special-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Lewa strona: Atuty */
.craft-info {
    flex: 1.4;
    background-color: #1a202c;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    text-align: justify;
}

.craft-info h3 {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.craft-info p {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Nowoczesne formatowanie listy rzemieślniczej */
.craft-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.craft-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    color: #cbd5e0;
    line-height: 1.6;
}

.craft-list li strong {
    color: #ffffff;
}

.craft-icon {
    font-size: 20px;
    background-color: #121620;
    padding: 8px;
    border-radius: 4px;
    line-height: 1;
}

/* Prawa strona: Karta CTA */
.quote-card {
    flex: 1;
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-left: 4px solid #f8381d;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.quote-card h4 {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.quote-card p {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 35px;
}

.quote-btn-link {
    width: 100%;
}

.btn-quote {
    width: 100%;
    background-color: #f8381d;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-quote:hover {
    background-color: #d62c16;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSOWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Dla tabletów i średnich ekranów */
@media screen and (max-width: 992px) {
    .special-gallery {
        grid-template-columns: repeat(2, 1fr); /* Galeria zmienia się w 2 kolumny */
    }
    
    .special-info-container {
        flex-direction: column; /* Sekcja info i CTA układa się pionowo */
        gap: 30px;
    }
    
    .craft-info, .quote-card {
        width: 100%;
    }
}

/* Dla telefonów komórkowych */
@media screen and (max-width: 650px) {
    .special-gallery {
        grid-template-columns: 1fr; /* Galeria przechodzi w 1 kolumnę */
    }
    
    .gallery-item {
        height: 280px; /* Nieco niższe zdjęcia na telefonie */
    }
    
    .special-hero h1 {
        font-size: 26px;
    }
    
    .craft-info {
        text-align: left; /* Wyłączenie justowania na telefonie */
        padding: 30px 20px;
    }
}

/* ============================================
   8. PODSTRONA: KONSTRUKCJE STALOWE (konstrukcje.html)
   ============================================ */

.constructions-section {
    background-color: #121620;
    padding-bottom: 80px;
}

/* --- Hero / Tytuł --- */
.title {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 60px 20px 0;
    text-align: center;
}

.title h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.title p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Siatka 3-kolumnowa: Karty Produktowe --- */
.sections-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.sekcja {
    background-color: #1a202c;
    border-radius: 8px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sekcja h2 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sekcja > p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Zoptymalizowana lista - zniwelowane zbyt duże przerwy */
.sekcja ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Dyskretne, estetyczne odstępy między punktami */
    flex-grow: 1; /* Wypełnia przestrzeń i spycha zdjęcie na dół */
}

.sekcja ul li {
    color: #cbd5e0;
    font-size: 1rem;
    line-height: 1.45;
    padding-left: 10px;
    border-left: 2px solid #f8381d;
}

.sekcja ul li span {
    display: block;
    color: #f8381d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.sekcja img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: auto;
}

/* --- Nowa, dopracowana sekcja CTA (.kontakt) --- */
.kontakt {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 40px;
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-left: 4px solid #f8381d; /* Wyrazisty akcent po lewej */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kontakt h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.kontakt p {
    color: #cbd5e0;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.kontakt button {
    background-color: #f8381d;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 4px;
    padding: 16px 42px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(248, 56, 29, 0.3);
    transition: all 0.3s ease;
}

.kontakt button:hover {
    background-color: #d62c16;
    box-shadow: 0 6px 20px rgba(248, 56, 29, 0.5);
    transform: translateY(-2px);
}

/* --- Responsywność --- */

/* Tablety (od 577px do 992px) */
@media (max-width: 992px) {
    .sections-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telefon (< 576px) */
@media (max-width: 576px) {
    .sections-wrapper {
        grid-template-columns: 1fr;
    }

    .title p {
        text-align: left;
    }

    .kontakt {
        padding: 30px 20px;
        border-left: none;
        border-top: 4px solid #f8381d;
    }

    .kontakt button {
        width: 100%;
    }
}

/* ============================================
   9. PODSTRONA: O NAS (onas.html)
   ============================================ */

.about-section {
    background-color: #121620;
    padding: 60px 20px 80px;
    color: #ffffff;
}

/* Główny kontener wyśrodkowujący całą treść strony */
.about-container {
    max-width: 950px;
    margin: 0 auto;
}

/* --- Hero / Nagłówek główny --- */
.about-hero {
    text-align: center;
    margin-bottom: 45px;
}

.about-hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-hero .lead-text {
    font-size: 1.1rem;
    color: #cbd5e0;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto;
}

/* --- Bloki tekstu (Historia i Dlaczego My) --- */
.about-block {
    margin-bottom: 40px;
}

.about-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(248, 56, 29, 0.3); /* Dyskretne czerwień pod nagłówkiem */
}

.about-block p {
    color: #a0aec0;
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 15px;
    text-align: justify;
}

/* Akcentowanie wybranych fraz w tekście */
.about-block p span {
    color: #ffffff;
    font-weight: 600;
}

/* Lista korzyści */
.about-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-list li {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 15px;
    border-left: 3px solid #f8381d;
}

.about-list li span {
    display: block;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

/* --- Dedykowany Blok CTA (Karta dolna z przyciskami) --- */
.about-cta-card {
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-left: 4px solid #f8381d;
    padding: 40px 35px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.about-cta-card h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.about-cta-card p {
    color: #cbd5e0;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 28px auto;
}

/* Kontener na przyciski obok siebie */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ogólny styl przycisków */
.btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Przycisk Główny (Czerwony) */
.btn-primary {
    background-color: #f8381d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(248, 56, 29, 0.3);
}

.btn-primary:hover {
    background-color: #d62c16;
    box-shadow: 0 6px 20px rgba(248, 56, 29, 0.5);
    transform: translateY(-2px);
}

/* Przycisk Drugorzędny (Wyznacz trasę - Zarysowany) */
.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #a0aec0;
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- Responsywność dla urządzeń mobilnych --- */
@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-block p {
        text-align: left;
    }

    .about-cta-card {
        padding: 30px 20px;
        border-left: none;
        border-top: 4px solid #f8381d;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   10. STRONA GŁÓWNA (index.html)
   ============================================ */

/* Kontener pomocniczy dla podstrony głównej */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #a0aec0;
    font-size: 1rem;
}

/* --- 1. HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(18, 22, 32, 0.85), rgba(18, 22, 32, 0.95)), 
                url('images/photo1.jpg') center/cover no-repeat;
    padding: 250px 20px 240px;
    text-align: center;
}

.hero-container {
    max-width: 850px;
    margin: 0 auto;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #cbd5e0;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- 2. PASEK ATUTÓW (TRUST BAR) --- */
.trust-bar {
    background-color: #1a202c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.trust-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 20px 15px;
    text-align: center;
}

.trust-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.trust-item h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-item p {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- 3. KAFELKI OFERTOWE --- */
.services-section {
    background-color: #121620;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #1a202c;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(248, 56, 29, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-content p {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: #f8381d;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #ffffff;
}

/* --- 4. O NAS W PIGUŁCE --- */
.about-short-section {
    background-color: #161b26;
    padding: 60px 0;
}

.about-short-card {
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-left: 4px solid #f8381d;
    padding: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-short-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-short-card p {
    color: #cbd5e0;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-short-card .btn {
    margin-top: 15px;
}

/* --- 5. JAK PRACUJEMY --- */
.process-section {
    background-color: #121620;
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background-color: #1a202c;
    border-radius: 8px;
    padding: 30px 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #f8381d;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: #a0aec0;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* --- 6. SEKCJA CTA (WEZWANIE DO DZIAŁANIA) --- */
.cta-section {
    background-color: #121620;
    padding-bottom: 80px;
}

.cta-box {
    background: linear-gradient(145deg, #1e2638 0%, #141824 100%);
    border-radius: 8px;
    border-top: 4px solid #f8381d;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cta-box h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    color: #a0aec0;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.phone-number {
    background-color: #f8381d;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.phone-number:hover {
    background-color: #d62c16;
    transform: translateY(-2px);
}

.location-info {
    color: #cbd5e0;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSYWNOŚĆ STRONY GŁÓWNEJ
   ============================================ */

/* Tablety i mniejsze ekrany (max 992px) */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telefony (max 576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 60px 15px 50px;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .trust-grid, 
    .services-grid, 
    .process-steps {
        grid-template-columns: 1fr;
    }

    .about-short-card {
        padding: 30px 20px;
    }

    .cta-contacts {
        flex-direction: column;
        gap: 15px;
    }

    .phone-number {
        width: 100%;
        text-align: center;
    }
}