/* --- 1. Zmienne globalne --- */
:root {
    --primary-color: #00B2B5;
    --accent-color: #007377;
    --text-color: #1E1F23;
    --bg-color: #FFFFFF;
    --section-bg: #F6F6F6;
    --max-container-width: 1200px;
    --font-main: 'Graphik', Helvetica, Arial, sans-serif;
}

/* --- 2. Reset i podstawy --- */
html, body { height: 100%; margin: 0; padding: 0; scroll-behavior: smooth; }
html { scroll-snap-type: y mandatory; overflow-y: scroll; }
* { box-sizing: border-box; }
body { font-family: var(--font-main); line-height: 1.6; color: var(--text-color); background: var(--bg-color); overflow-x: hidden; 
/* Dodaj te linie */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Upewnij się, że główny kontener z treścią wypełnia przestrzeń */
main {
    flex: 1; /* To "wypycha" stopkę na sam dół */
}

/* --- 3. Nawigacja i Menu --- */
nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid #eee;
}
.logo img { max-height: 50px; width: auto; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a {
    text-decoration: none; color: var(--text-color);
    font-weight: 500; font-size: 0.95em; 
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease;
}
nav ul li a:hover { color: var(--primary-color); }
nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

/* --- 4. Sekcje i Grid --- */
section {
    min-height: 100vh; scroll-snap-align: start;
    padding: 120px 5% 80px 5%; display: flex; flex-direction: column; justify-content: center;
}
#start { padding: 0 !important; }
.section-grid { display: grid; gap: 80px; align-items: center; max-width: var(--max-container-width); margin: 0 auto; }
.grid-img-left { grid-template-columns: 450px 1fr; }
.grid-img-right { grid-template-columns: 1fr 450px; }

/* --- 5. Formularz Kontaktowy (Profesjonalny) --- */
#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
#contact-form input, 
#contact-form select, 
#contact-form textarea {
    width: 100%; padding: 15px;
    border: 1px solid #ddd; border-radius: 12px;
    font-family: inherit; font-size: 1em;
    transition: border-color 0.3s;
}
#contact-form input:focus, #contact-form textarea:focus { border-color: var(--primary-color); outline: none; }
#contact-form textarea, .consent-container, #contact-form button { grid-column: span 2; }

.consent-container {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 0.85em; color: #666; margin: 10px 0;
}
#contact-form button {
    background: var(--primary-color); color: white;
    font-weight: 600; padding: 18px; border: none;
    border-radius: 12px; cursor: pointer; transition: background 0.3s;
}
#contact-form button:hover { background: var(--accent-color); }

/* --- 6. UI i Komponenty --- */
h2 { font-size: 2.8em; margin-bottom: 30px; color: var(--primary-color); line-height: 1.1; }
.content-img img { width: 100%; border-radius: 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.msg { padding: 15px; border-radius: 8px; margin-bottom: 20px; display: none; }
.msg-success { background: #d4edda; color: #155724; }
.msg-error { background: #f8d7da; color: #721c24; }

/* --- 7. Modal i Cookie --- */
.modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); overflow-y: auto; }
.modal-content { background: #fff; margin: 5% auto; padding: 50px; width: 90%; max-width: 800px; border-radius: 25px; position: relative; }

#cookie-banner {
    position: fixed !important; bottom: 0 !important; left: 0 !important; 
    width: 100% !important; background: #1e1f23 !important; 
    color: #fff !important; padding: 25px 10% !important; 
    text-align: center !important; z-index: 2147483647 !important;
    display: none; font-size: 0.95em !important; box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
#cookie-banner button { margin: 0 10px; padding: 10px 25px; border-radius: 8px; border: none; cursor: pointer; font-weight: bold; }

/* --- 8. RWD (Mobilne) --- */
@media (max-width: 900px) {
    .section-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .content-img { order: -1; }
    h2 { font-size: 2em; }
    nav ul li { margin-left: 15px; }
}

/* --- Poprawiony przycisk zamykania --- */
.close-btn {
    position: sticky;
    top: 10px;
    float: right;
    width: 40px;           /* Szerokość boxa */
    height: 40px;          /* Wysokość boxa */
    background-color: #e0e0e0; /* Szary kolor tła */
    color: #333;           /* Kolor ikony */
    border-radius: 8px;    /* Delikatne zaokrąglenie boxa */
    font-size: 24px;       /* Większy znak X */
    font-weight: bold;
    cursor: pointer;
    display: flex;         /* Wycentrowanie X w boxie */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 100;
}

.close-btn:hover {
    background-color: #d0d0d0; /* Ciemniejszy szary po najechaniu */
}

footer {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 0.9em;
    background: #f9f9f9;
    /* Usuwamy scroll-snap-align: start, jeśli stopka jest ucinana */
    scroll-snap-align: end; 
    width: 100%;
}

/* --- Stylizacja linków w stopce --- */
footer a {
    color: #007377;        /* Twój kolor accent-color */
    text-decoration: none; /* Usuwa podkreślenie */
    font-weight: 500;
    transition: color 0.3s;
}

footer a:hover {
    color: #00B2B5;        /* Twój kolor primary-color */
    text-decoration: underline;
}

/* Upewnienie się, że stopka ma odpowiedni odstęp i czytelność */
footer {
    padding: 30px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

/* --- Stylizacja dla linków w tekście i stopce --- */
a.modal-trigger, 
footer a {
    color: inherit;            /* Kolor taki sam jak otaczający tekst */
    font-weight: bold;         /* Pogrubienie */
    text-decoration: underline; /* Podkreślenie */
    transition: color 0.3s ease;
}

/* Opcjonalnie: lekka zmiana koloru po najechaniu, aby użytkownik widział, że to link */
a.modal-trigger:hover, 
footer a:hover {
    color: var(--primary-color); 
}

/* --- Stylizacja linków wyglądających jak przyciski --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;          /* Wymuszamy biały tekst */
    font-weight: 600;
    text-decoration: none !important;   /* Usuwamy podkreślenie dla przycisku */
    padding: 14px 30px;
    border-radius: 12px;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 178, 181, 0.2); /* Delikatny cień pod kolor przycisku */
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
    transform: translateY(-2px);       /* Subtelny efekt uniesienia po najechaniu */
    box-shadow: 0 6px 20px rgba(0, 115, 119, 0.3);
}

.btn-primary:active {
    transform: translateY(0);          /* Powrót na miejsce przy kliknięciu */
}