/* --- style.css - Wersja FINALNA (Validator 10/10 + Mobile Fix) --- */

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    /* Miejsce na przyklejony nagłówek (tylko dla Desktop) */
    padding-top: 140px; 
}

/* Skip link */
.skip-link {
    position: absolute; 
    top: -40px; 
    left: 0;
    background: #006d77;
    color: white;
    padding: 10px; 
    z-index: 2000; 
    text-decoration: none; 
    transition: top 0.2s; 
    font-weight: bold;
}
.skip-link:focus { 
    top: 0; 
}

/* Fokus */
a:focus, button:focus, input:focus {
    outline: 3px solid #d9480f;
    outline-offset: 2px;
}

/* Układ główny */
.container-limit {
    max-width: 1000px; 
    margin: 0 auto; 
    padding-left: 20px; 
    padding-right: 20px;
}

/* Header - Wersja Desktop (Przyklejony) */
header {
    background-color: #ffffff;
    border-bottom: 4px solid #006d77;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    
    /* PRZYKLEJENIE MENU (Fixed dla Desktop) */
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-top {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px;
}

.main-logo-img { 
    height: 55px; 
    width: auto; 
    display: block; 
}

.header-ue-logo img { 
    height: 55px; 
    width: auto; 
    transition: transform 0.2s; 
}
.header-ue-logo:hover img { 
    transform: scale(1.05); 
}

/* Menu */
nav ul {
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: flex; 
    flex-wrap: wrap; 
    border-top: 1px solid #eee; 
    padding-top: 15px;
}

nav ul li {
    margin-right: 15px;
    margin-bottom: 5px;
}

nav a {
    text-decoration: none; 
    color: #2c3e50;
    font-weight: 600; 
    font-size: 1.05em; 
    padding: 8px 15px;
    border-radius: 4px; 
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
nav a:hover { 
    background-color: #006d77; 
    color: white; 
}

/* Hero Full */
#hero-full {
    width: 100%;
    background: linear-gradient(to right, rgba(0, 93, 115, 0.9), rgba(0, 30, 40, 0.75)), url('/nowa/hero-image.jpg');
    background-size: cover; 
    background-position: center center;
    padding: 100px 0; 
    margin-bottom: 40px;
    color: #ffffff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative; 
    z-index: 1;
}

.hero-content-inner { 
    max-width: 800px; 
}

#hero-full h1 { 
    color: #ffffff; 
    font-size: 3em; 
    margin: 0 0 20px 0; 
    line-height: 1.1; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

#hero-full p.lead { 
    font-size: 1.5em; 
    font-weight: 300; 
    opacity: 0.95; 
}

/* Sekcje */
section.content-section {
    background-color: #ffffff; 
    margin: 40px auto; 
    padding: 40px;
    border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0; 
    max-width: 1000px;
    
    /* WAŻNE DLA KOTWIC: */
    position: relative;
}

/* KOTWICA - FIX DLA DESKTOPA (Przesunięcie w górę, bo menu zasłania) */
.kotwica {
    position: absolute;
    top: -200px; /* Menu ma ok. 140px, dajemy zapas */
    left: 0;
    visibility: hidden;
    display: block;
}

h1.page-title { 
    color: #006d77; 
    margin-top: 0; 
}

h2 { 
    color: #006d77; 
    border-bottom: 3px solid #006d77; 
    padding-bottom: 10px; 
    display: inline-block; 
    margin-bottom: 25px; 
    margin-top: 0; 
}

h3 { 
    color: #004e57; 
}

/* Oferta */
.offer-list {
    list-style: none; 
    padding: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.offer-list li {
    margin: 15px;
    flex: 1 1 300px; 
    max-width: 380px;
    display: flex; 
    flex-direction: column;
}

.offer-card-link {
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column;
    background: #ffffff; 
    padding: 25px; 
    border: 1px solid #eee;
    border-top: 4px solid #006d77; 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: transform 0.2s;
    height: 100%; 
}

.offer-card-link:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.offer-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #f0f0f0; 
}

.offer-icon { 
    width: 42px; 
    height: 42px; 
    color: #006d77; 
    flex-shrink: 0; 
    margin-right: 15px;
}

.offer-list h3 { 
    margin: 0; 
    font-size: 1.2em; 
    line-height: 1.3; 
    color: #2c3e50; 
}

.offer-list p { 
    margin-bottom: 0; 
    color: #555; 
    font-size: 0.95em; 
}

/* Projekty UE */
.ue-header-wrapper { 
    display: flex; 
    align-items: center; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
    border-bottom: 3px solid #006d77;
    padding-bottom: 15px;
}

.ue-header-wrapper h2 { 
    margin-bottom: 0; 
    border-bottom: none;
    margin-right: 20px; 
}

.ue-header-wrapper img { 
    height: 45px; 
    width: auto; 
}

h3.ue-status-title { 
    margin-top: 40px; 
    font-size: 1.3em; 
    color: #2c3e50; 
    background: #eaf4f4; 
    padding: 10px 15px; 
    border-left: 5px solid #006d77; 
    border-radius: 0 4px 4px 0; 
}

.projects-list { 
    list-style: none; 
    padding: 0; 
}

.projects-list li { 
    margin-bottom: 30px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #eee; 
}

.projects-list li:last-child { 
    border-bottom: none; 
}

.project-title { 
    font-weight: bold; 
    font-size: 1.1em; 
    color: #005f73;
    margin-bottom: 12px; 
    display: block; 
}

.project-data { 
    font-size: 0.95em; 
    color: #555; 
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 6px; 
    border-left: 3px solid #ccc; 
    line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumbs { 
    margin-bottom: 20px; 
    font-size: 0.9em; 
    color: #666; 
}
.breadcrumbs a { 
    color: #005f73; 
    text-decoration: none; 
}
.breadcrumbs a:hover { 
    text-decoration: underline; 
}

/* Obrazki na podstronach */
.offer-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    margin-top: 10px;
    border: 1px solid #eee;
}

/* --- POPRAWKI DLA WALIDATORA (USUNIĘCIE GAP/GRID) --- */

/* Timeline Process - Zmiana na Flexbox bez gap */
.process-steps { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 30px 0; 
    justify-content: center;
}
.step-card { 
    background: #eaf4f4; 
    padding: 20px; 
    border-radius: 8px; 
    flex: 1 1 200px; 
    border-left: 4px solid #006d77; 
    margin: 10px; /* Zamiast gap */
}
.step-number { font-size: 2em; font-weight: bold; color: #006d77; margin-bottom: 10px; display: block; }
.step-title { font-weight: bold; margin-bottom: 10px; display: block; color: #2c3e50; }

/* Hardware Grid - Zmiana na Flexbox bez gap i grid */
.hardware-grid { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 30px 0; 
    justify-content: center;
}
.hardware-card { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 20px; 
    text-align: center; 
    transition: transform 0.2s; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1 1 250px; /* Zamiast grid column */
    max-width: 300px;
    margin: 10px; /* Zamiast gap */
}
.hardware-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.hardware-icon { font-size: 2.5em; margin-bottom: 15px; display: block; }
.hardware-title { font-weight: bold; color: #006d77; margin-bottom: 10px; display: block; }

/* Competence Grid - Zmiana na Flexbox bez gap i grid */
.competence-grid { 
    display: flex; 
    flex-wrap: wrap; 
    margin-top: 30px; 
    justify-content: center;
}
.competence-item { 
    background: #fff; 
    border-left: 4px solid #006d77; 
    padding: 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    flex: 1 1 300px; /* Zamiast grid column */
    margin: 10px; /* Zamiast gap */
}
.competence-item h4 { 
    color: #006d77; 
    margin-top: 0; 
    display: flex; 
    align-items: center; 
    /* Gap usunięte wewnątrz H4 */
}
/* Dodatek dla ikony wewnątrz h4 (jeśli jest) */
.competence-item h4 svg, .competence-item h4 img {
    margin-right: 10px;
}

.pdf-download-btn { display: inline-block; background-color: #d9480f; color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; margin-top: 20px; transition: background 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.pdf-download-btn:hover { background-color: #b93a0b; transform: translateY(-2px); }

blockquote { background: #fff; border-left: 5px solid #006d77; margin: 30px 0; padding: 20px; font-style: italic; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
blockquote footer { margin-top: 10px; font-weight: bold; font-style: normal; font-size: 0.9em; color: #005f73; text-align: left; background: none; padding: 0; border: none; }

/* Footer */
footer { 
    text-align: center; 
    font-size: 0.9em; 
    margin-top: 50px; 
    padding: 30px 0; 
    color: #666; 
    border-top: 1px solid #ddd; 
    background-color: #ffffff; 
    width: 100%; 
}

/* --- RWD - Wersja Mobilna (Poniżej 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Odklejamy nagłówek na telefonie (SIŁOWO !important) */
    header {
        position: relative !important; 
        top: auto !important;
        left: auto !important;
    }

    /* 2. Usuwamy margines góry strony (SIŁOWO !important) */
    body {
        padding-top: 0 !important;
    }

    /* 3. Naprawiamy kotwice (bez offsetu) */
    .kotwica {
        top: -20px; 
    }

    /* 4. Układ pionowy */
    .header-top { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    .header-top > a {
        margin-bottom: 15px;
    }
    
    .main-logo-img { height: 45px; } 
    
    nav ul { 
        flex-direction: column; 
        width: 100%; 
    }
    
    nav a { 
        display: block; 
        background: #f0f0f0; 
        margin-bottom: 5px; 
        text-align: center; 
    }
    
    #hero-full { padding: 60px 0; }
    #hero-full h1 { font-size: 2.2em; }
    
    /* Flex zamiast Grid na mobile też działa, ale tu upewniamy się o szerokości */
    .offer-list li, .step-card, .hardware-card, .competence-item { 
        flex: 1 1 100%; 
        max-width: 100%; 
        margin: 15px 0;
    }
}