body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f2f2f2, #ddd); /* Szary gradient tła */
    color: #333;
    min-height: 100vh;
}

.facebook-profile {
    max-width: 800px; /* Ogranicz maksymalną szerokość strony */
    margin: 20px auto; /* Wyśrodkuj na stronie */
    background-color: #fff; /* Białe tło dla głównej sekcji profilu */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ukryj wystające elementy (np. zaokrąglone rogi) */
}

.cover-photo {
    width: 100%;
    height: 250px; /* Wysokość zdjęcia w tle - dostosuj */
    overflow: hidden;
    position: relative; /* Dodaj pozycjonowanie dla kontekstu z-index */
    z-index: 1; /* Ustaw niższy z-index niż dla logo */
}

.cover-photo img {
    width: 100%;
    display: block;
    /* Upewnij się, że zdjęcie pokrywa cały obszar */
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-header {
    padding: 0 20px 20px;
    display: flex;
    align-items: flex-end; /* Wyrównaj elementy do dołu */
    position: relative;
    z-index: 2;
     /* Dodaj padding na górze, aby zrobić miejsce na logo poniżej zdjęcia w tle */
    padding-top: 80px; /* Dostosuj tę wartość, aby przesunąć logo niżej */
}

.profile-picture-link {
    display: block; /* Link jako blok */
    text-decoration: none; /* Usuń podkreślenie */
    margin-right: 20px; /* Zachowaj odstęp po prawej stronie logo */
    /* Dodaj top margin, aby przesunąć logo w dół względem góry profile-header */
    margin-top: -60px; /* Przesunięcie w górę, aby logo częściowo nałożyło się na cover */
    position: relative;
    z-index: 3;
}

.profile-picture {
    width: 120px; /* Rozmiar kwadratu z logo */
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    /* border: 1px solid #ccc; Usunięto szarą obwódkę */
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); Usunięto cień */
    /* background-color: #fff; Usunięto białe tło */
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.profile-info {
    flex-grow: 1;
     padding-bottom: 10px;
}

.profile-info h1 {
    font-size: 1.5em;
    margin: 0 0 5px 0;
    color: #333;
}

.profile-info p {
    font-size: 1em;
    margin: 0;
    color: #65676B;
}

main {
    padding: 0 20px 20px;
}

.section {
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
}

.section:first-child {
    border-top: none;
}

.section h2 {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

/* Styl dla paragrafów w sekcji Kontakt */
#kontakt p {
    margin: 0;
    padding: 0;
    line-height: 1.4; /* Możesz dostosować wysokość linii */
}

/* Reguła last-child nadal jest potrzebna, aby upewnić się, że nie ma odstępu po ostatnim elemencie */
#kontakt p:last-child {
    margin-bottom: 0;
}

#kontakt a {
    color: #333;
    text-decoration: none;
}

#kontakt a:hover {
    text-decoration: underline;
}


footer {
    background-color: #f2f2f2;
    color: #65676B;
    text-align: center;
    padding: 1em 0;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 5px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}


/* Responsywność */
@media (max-width: 600px) {
    .facebook-profile {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        margin-top: -40px;
        text-align: center;
        padding-top: 60px; /* Dostosuj padding na górze dla mniejszych ekranów */
    }

    .profile-picture-link {
         margin-bottom: 10px;
         margin-right: 0;
         margin-top: -30px; /* Dostosuj przesunięcie w górę na małych ekranach */
    }

     .profile-picture {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        padding-bottom: 0;
        margin-top: 15px; /* Mniejszy odstęp na małych ekranach */
    }

    .profile-info h1 {
        font-size: 1.3em;
    }

    .profile-info p {
        font-size: 0.9em;
    }

     main {
        padding: 0 15px 15px;
    }

    .section {
         padding: 15px 0;
    }
}