/* style.css */
:root {
    --primary-red: #D32F2F;
    --dark-bg: #1A1A1A;
    --light-bg: #F4F4F4;
    --text-main: #333333;
    --text-white: #FFFFFF;
    --border-gray: #DDDDDD;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--text-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu na mobile */
}

/* --- Nawigacja --- */
header {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 6px 0; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

a {
	color: var(--primary-red);
    text-decoration: none;
}

a:hover {
	color: var(--dark-bg);
}

h1, h2, h3
{
	line-height: 1.3;
	padding-bottom: 12px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative; /* Ważne dla pozycjonowania menu na mobile */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-red);
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo span { color: var(--text-white); }

.logo .red { color: var(--primary-red)!important; }


/* Stylizacja listy linków (desktop domyślnie) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary-red); }

/* Przycisk Hamburgera (domyślnie ukryty) */
.menu-toggle {
    display: none; /* Ukryty na desktopie */
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

/* --- Hero Section --- */
.hero {
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--text-white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-default {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img-main-hero.jpg');
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1; 
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero p { max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

/* --- Przyciski --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-small {
    display: inline-block;
    padding: 6px 8px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    margin: 6px 0 6px 0;
    color: var(--text-white)!important; 
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
}
.btn-primary:hover { background-color: #b71c1c; color: var(--dark-bg)!important;}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--dark-bg);
}

/* --- Sekcje Ogólne --- */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--dark-bg); }
.bg-gray { background-color: var(--light-bg); }

.container h2:not(.section-title) {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--dark-bg);
}

/* --- Ikony / Cechy --- */
.features-grid {
    display: grid;
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item i { font-size: 3rem; color: var(--primary-red); margin-bottom: 15px; display: block; }

/* --- Kafle Usług --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center; 
    align-items: center;
}

.service-card:hover { transform: translateY(-5px); }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-red);
    display: block;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.service-card h3 { margin-bottom: 15px; }
.service-card p { margin-bottom: 20px; flex-grow: 1; }

/* --- FAQ --- */
.faq-list {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 20px;
}
.faq-question { font-weight: bold; color: var(--primary-red); margin-bottom: 10px; display: block; font-size: 1.1rem; }

/* --- Cennik --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    table-layout: fixed; 
}
.price-table th, .price-table td { padding: 12px 15px; border: 1px solid var(--border-gray); text-align: center; }
.price-table th { background-color: var(--text-main); color: var(--text-white); }
.price-table tr:nth-child(even) { background-color: #f9f9f9; }

.price-table td:first-child {
    font-weight: 700;
    color: var(--dark-bg);
    text-align: left;
}

/* --- Kontakt i Listy Zalet --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 10px; margin-bottom: 15px;
    border: 1px solid var(--border-gray); border-radius: 4px;
    font-family: inherit;
}
.advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.advantages-list li {
    background: #fff;
    padding: 15px;
    border-left: 3px solid var(--primary-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.text-link-highlight {
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: bold;
}
.text-link-highlight:hover { text-decoration: none; color: #b71c1c; }

/* --- Stopka --- */
footer { background-color: var(--dark-bg); color: #aaa; padding: 40px 20px; margin-top: auto; }
.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer-col h4 { color: var(--text-white); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aaa; text-decoration: none; }
.footer-col a:hover { color: var(--primary-red); }

.col-last {text-align: right;}

.termin { color: var(--primary-red); font-weight: bold;}

/* --- Mobile Responsywność (Hamburger Menu) --- */
@media (max-width: 768px) {
    /* Pokaż przycisk hamburgera po prawej stronie */
    .menu-toggle {
        display: block;
        margin-left: auto; 
    }

    /* Zabezpieczenie kontenera nav */
    .nav-container nav {
        position: static;
    }

    /* Kontener rozwijanego menu */
    .nav-links {
        display: none;
        flex-direction: column;
        
        /* Reset odstępów z wersji desktopowej - TO JEST KLUCZOWE */
        gap: 0; 
        
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    /* Klasa dodawana przez JS */
    .nav-links.active {
        display: flex;
    }

    /* Pozycje listy */
    .nav-links li {
        margin: 0;
        width: 100%;
        /* Ciemnoszara linia oddzielająca */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Styl linków - centrowanie flexboxem */
    .nav-links a {
        font-size: 1.1rem;
        
        /* Centrowanie idealne w pionie i poziomie */
        display: flex;
        justify-content: center;
        align-items: center;
        
        width: 100%;
        padding: 24px 0; /* Wysokość przycisku */
        line-height: 1;  /* Reset linii, aby nie przesuwała tekstu */
    }

    
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    .advantages-list, .contact-grid { grid-template-columns: 1fr; }
    .price-table { display: block; overflow-x: auto; white-space: nowrap; }
    .col-last {text-align: left;}


    .price-table, 
    .price-table thead, 
    .price-table tbody, 
    .price-table th, 
    .price-table td, 
    .price-table tr { 
        display: block; 
    }

    /* 2. Ukrywamy oryginalne nagłówki tabeli (nie pasują do układu pionowego) */
    .price-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* 3. Stylizujemy wiersz jako "kafel" */
    .price-table tr { 
        margin-bottom: 20px; 
        border: 1px solid var(--border-gray);
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        overflow: hidden; /* Zaokrąglenie rogów */
    }

    /* 4. Stylizujemy komórki */
    .price-table td { 
        /* Flexbox ustawia Etykietę po lewej, a Cenę po prawej */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; /* Miejsce na etykietę */
        text-align: right; /* Cena do prawej */
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price-table td:last-child {
        border-bottom: none;
    }

    /* 5. Pierwsza komórka (np. Rozmiar) wyróżniona jako nagłówek kafla */
    .price-table td:first-child {
        background-color: var(--dark-bg);
        color: var(--text-white);
        text-align: center;
        justify-content: center;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* 6. Dodajemy etykiety przed wartościami (pobierane z HTML data-label) */
    .price-table td::before { 
        content: attr(data-label); 
        font-weight: bold;
        text-align: left;
        color: var(--text-main);
        /* Na pierwszym elemencie (nagłówku kafla) nie chcemy etykiety "Rozmiar" obok tekstu */
    }
    
    .price-table td:first-child::before {
        display: none;
    }

}