/* --- Globalne Style i Zmienne --- */
:root {
    --bg-color: #273139;
    --text-color: #e0e5ea;
    --primary-color: #E0C58E;
    --secondary-color: #3a4a58;
    --font-family: 'Montserrat', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
}

/* --- Nowe style dla elementów przeniesionych z nagłówka --- */
.header-logo-container {
    padding: 0.8rem 1.5rem;
    min-height: 96px; /* Ustawienie minimalnej wysokości dla spójności */
}
.site-logo {
    max-height: 72px; 
    width: auto;      
}
.header-contact-container {
    /* Padding zostanie nadpisany w media query dla desktopu */
}
.header-contact-info {
    text-align: right;
}
.header-contact-info p {
    margin: 0.1rem 0; 
}
.header-contact-info a {
    color: var(--text-color); 
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.header-contact-info a:hover { color: var(--primary-color); }

/* --- Główny kontener --- */
.page-container {
    display: grid;
    max-width: 70%;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* --- Sekcja Hero (Globalne) --- */
.hero-image-container {
    width: 100%;
    height: 100%;
    /* Tło przeniesione do .hero-section */
    position: relative;
}

/* --- Układ na Komputer (PC) --- */
@media (min-width: 992px) {
    .page-container {
        grid-template-columns: 45% 55%;
    }
    .hero-section {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        background: url('../img/hero.jpg') no-repeat center 25%;
        background-size: cover;
    }
    .hero-section .header-logo-container {
        position: relative;
        z-index: 10;
    }
    .hero-image-container {
       display: none; /* Ten kontener nie jest już potrzebny, tło jest na rodzicu */
    }
    
    .hero-section::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 50%;
        background: linear-gradient(to right, rgba(39, 49, 57, 0), var(--bg-color) 95%);
        z-index: 5; 
    }

    .content-section {
        grid-column: 2 / 3;
        padding: 0 5rem 2rem 5rem;
    }

    .header-contact-container {
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: var(--bg-color);
        min-height: 96px; 
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0 -5rem;
        padding: 0.8rem 6.5rem; /* 5rem z rodzica + 1.5rem własnego paddingu */
    }
}

/* --- Układ na Telefon (Smartfon) --- */
@media (max-width: 991px) {
    .page-container {
        max-width: 100%; 
        grid-template-columns: 1fr;
    }
    .header-logo-container { 
        text-align: center;
        flex-shrink: 0; /* Zapobiega kurczeniu się logo */
    }
    .header-contact-container {
        padding: 0 1.5rem 0.8rem 1.5rem;
    }
    .header-contact-info { text-align: center; }
    
    .hero-section {
        height: 60vh;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    .hero-image-container { 
        display: block; 
        flex-grow: 1; 
        background-image: url('../img/hero.jpg');
        background-repeat: no-repeat;
        /* POPRAWKA: Ustawienie pozycji na 30% od góry */
        background-position: center 30%;
        background-size: auto 150%; 
    }
    
    .content-section {
        padding: 2rem 1.5rem 2.5rem 1.5rem;
    }
}

/* --- Stylowanie Treści --- */
.motto-container {
    text-align: right;
    margin-bottom: 2.5rem;
    padding-left: 15%; 
}
.company-motto {
    margin: 0;
    font-size: 1.0rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--primary-color);
}
h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #ffffff;
    padding: 1.5rem 0 0.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    border-top: 1px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #ffffff; }

/* Sekcja Usług */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.service-card h3 {
    margin-top: 0;
    color: #ffffff;
}
.service-card ul { list-style: none; padding-left: 0; margin-top: 1rem; margin-bottom: 0; }
.service-card li { position: relative; padding-left: 1.5em; margin-bottom: 0.4rem; line-height: 1.4; }
.service-card li::before {
    content: ''; 
    width: 6px; height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute; left: 0; top: 0.7em; 
    transform: translateY(-50%); 
}

/* Sekcja Kontaktu */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-details p { margin-bottom: 1rem; }
.contact-details p strong { color: var(--primary-color); font-weight: 600; }

/* Stylowanie Formularza */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem;
    background-color: var(--secondary-color);
    border: 1px solid #5a6b79;
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 197, 142, 0.5); 
}
.cta-button {
    background-color: var(--primary-color);
    color: var(--bg-color); 
    padding: 0.8rem 1.8rem;
    border: none; border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}
.cta-button:hover { background-color: #f0d8a4; }