header .mhb-view.desktop .first-row .mhb-image img {
    margin-left: 30px;
}

.one-second.mcb-wrap {
    padding: 0 15px;
}

#Subheader {
    /* padding: 50px 0!important; */
    background-position: center!important;
    background-size: cover!important;
}

#Footer .container {
    display: flex;
    gap: 25px;
}

#Footer .container .one-fourth {
    width: 100%;
}

@media (max-width: 768px) {
    #Footer .container {
        flex-direction: column;
    }
    #Footer .container .one-fourth {
        width: 100%;
    }
}

/******************************/

body.page-id-2673 #Subheader {
    padding: 50px 0!important;
}

body.page-id-2673 #Subheader .title {
    font-size: 50px;
    line-height: 1;
}

@media only screen and (max-width: 820px) {
    body.page-id-2673 #Subheader .title {
        font-size: 30px;
    }
}

@media only screen and (max-width: 430px) {
    body.page-id-2673 #Subheader .title {
        font-size: 20px;
    }
}

/******************************/

#pifs-custom-footer {
    width: 100%; padding: 10px; display: flex; flex-direction: column; gap: 30px; max-width: 1060px; margin: 0 auto; box-sizing: border-box;
}

#pifs-custom-footer img { max-width: 100%; height: auto; }

@media only screen and (min-width: 960px) and (max-width: 1239px) {
    #pifs-custom-footer {
        max-width: 940px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    #pifs-custom-footer {
        max-width: 708px;
    }
}

@media only screen and (max-width: 767px) {
    #pifs-custom-footer {
        max-width: 480px !important;
        padding: 10px 15px;
    }
}


/****************** Członkowie Rady ******************/

.pifs-czlonkowie-rady-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; margin-bottom: 25px; }

.czlonek-rady-item {  display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 25px; border: 2px solid #EE7F00; }

.czlonek-rady-img img {
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    width: 200px;
    max-width: 200px;
    height: 200px!important;
    max-height: 200px;
}

.czlonek-rady-title-container { text-align: center; width: 100%; }
.czlonek-rady-title { display: inline-block; position: relative; margin-bottom: 35px; }
.czlonek-rady-title::after { border-bottom: 2px solid #EE7F00; content: ""; position: absolute; width: 100%; left: 0; bottom: -10px; }

.czlonek-rady-opis {  font-size: 14px; line-height: 1.5; }

@media only screen and (max-width: 959px) {
    .pifs-czlonkowie-rady-container { grid-template-columns: 1fr 1fr; }
}

@media only screen and (max-width: 767px) {
    .pifs-czlonkowie-rady-container { grid-template-columns: 1fr; }
}

.pifs-header-img { margin-top: 25px; display: inline-block; }
.pifs-header-img img { max-width: 200px; width: 100%; height: auto; max-height: unset!important; }

@media only screen and (max-width: 959px) {
    .pifs-header-img { margin-top: 15px; }
    .pifs-header-img.first-element { margin-left: 50px; }
    .pifs-header-img img { max-width: 150px; }
}

@media only screen and (max-width: 550px) {
    .pifs-header-img.first-element { margin-left: 10px; }
}

header .first-row .mhb-col.center { align-items: start!important; }