/* === STYL GŁÓWNY (style.css) - WERSJA KOMPLETNA I OSTATECZNA === */

/* --- Kluczowa poprawka zapobiegająca problemom z szerokością --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Zmienne kolorystyczne i podstawowe ustawienia --- */
:root {
    --header-bg: #1e272e; /* Ciemny grafit */
    --footer-bg: #1e272e;
    --primary-text: #333;
    --secondary-text: #f1f2f6;
    --accent-color: #3498db; /* Niebieski akcent */
    --light-bg: #f5f6fa;
    --white-bg: #ffffff;
    --border-color: #dfe4ea;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    background-color: var(--light-bg);
    color: var(--primary-text);
    line-height: 1.6;
    word-wrap: break-word;
}

/* --- Struktura i Kontener --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Nagłówek i Nawigacja --- */
.header {
    background-color: var(--header-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo a {
    display: block;
    width: 180px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8em;
    color: var(--white-bg);
}

/* --- Nagłówki i Tekst --- */
h1, h2, h3 {
    color: var(--header-bg);
    line-height: 1.3;
}
h1 { font-size: 2.8em; margin-bottom: 20px; }
h2 { font-size: 2.2em; border-bottom: 3px solid var(--accent-color); padding-bottom: 10px; margin-top: 40px; }
h3 { font-size: 1.5em; }

/* --- Główna sekcja "Hero" na stronie głównej --- */
.hero-logo {
    display: block;
    width: 320px;
    height: 100px;
    margin: 0 auto 30px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero {
    background-color: var(--header-bg);
    color: var(--white-bg);
    text-align: center;
    padding: 80px 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white-bg);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* --- Karty Oferty i Sprzętu --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card ul {
    list-style-type: '✓ ';
    padding-left: 20px;
}
.card li { margin-bottom: 10px; }

/* --- Tabela z Cennikiem (WERSJA PODSTAWOWA - NA KOMPUTER) --- */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--header-bg);
    color: var(--white-bg);
    font-size: 1.1em;
}

.pricing-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.pricing-table tr:hover {
    background-color: #e8f4fd;
}

.price {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--accent-color);
}


/* --- Sekcja Kontaktowa --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}
.contact-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
}
.contact-info strong {
    color: var(--header-bg);
}
.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* --- Stopka --- */
.footer {
    background-color: var(--footer-bg);
    color: var(--secondary-text);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* --- Ustawienia dla urządzeń mobilnych (Responsywność) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--header-bg);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #4a4a4a;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* --- OSTATECZNE style dla responsywnej tabeli z cennikiem --- */
    .pricing-table {
        border: none;
        box-shadow: none;
    }
    .pricing-table thead {
        display: none;
    }
    .pricing-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        background: var(--white-bg);
        padding: 10px;
    }
    .pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 5px;
        border-bottom: 1px dotted var(--border-color);
    }
    .pricing-table td:last-child {
        border-bottom: none;
    }
    .pricing-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--header-bg);
        text-align: left;
        margin-right: 15px;
    }
    .pricing-table td.price {
        font-size: 1.3em;
    }
}