/* ==================================================
   RESET I USTAWIENIA GLOBALNE
================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #fdfcf8;
    color: #2c2c2c;
    overflow-x: hidden;
}

img,
iframe,
video {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}


/* ==================================================
   HEADER
================================================== */

.main-header {
    width: 100%;
    background: #a2a05a;
    color: white;
}


/* BANER - NIE ZMIENIAĆ */

.baner {
    width: 100%;
    height: 400px;

    background-image: url("img/img/baner.jpeg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #a2a05a;
}


/* GÓRNA CZĘŚĆ HEADER */

.header-top {
    max-width: 1100px;
    margin: 20px auto;
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


.header-top h1 {
    flex: 1;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.3;
}


/* KONTAKT */

.header-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}


.header-contact a {
    color: white;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 8px;

    max-width: 100%;
    overflow-wrap: anywhere;
}


.header-contact a:hover {
    text-decoration: underline;
}


.header-contact svg {
    flex-shrink: 0;
}


.header-contact img {
    width: 22px;
    height: 22px;
}


.email-link span {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* DOLNA CZĘŚĆ HEADER */

.header-bottom {
    max-width: 1100px;

    margin: 15px auto 20px;
    padding: 15px;

    background: rgba(255,255,255,.15);

    border-radius: 10px;

    text-align: left;
}


/* ==================================================
   MENU
================================================== */

nav {
    background: #5f5e3c;
}


nav ul {
    list-style: none;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    padding: 15px;
}


nav a {
    display: block;

    padding: 8px 12px;

    color: #fff7db;

    text-decoration: none;

    font-weight: 600;

    border-radius: 6px;
}


nav a:hover {
    background: #ffd966;
    color: #5f5e3c;
}


/* ==================================================
   PASEK DOTACJI
================================================== */

.donation-bar {

    background: #f4f4f4;

    color: #333;

    text-align: center;

    padding: 15px;

    font-weight: bold;

    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;

    overflow-wrap: anywhere;
}
/* ==================================================
   GŁÓWNA TREŚĆ
================================================== */

main {

    width: 100%;
    max-width: 900px;

    margin: 30px auto;

    padding: 30px;

    background: #fffef9;

    border-radius: 12px;

    box-shadow: 0 2px 12px rgba(0,0,0,.1);

    overflow: hidden;
}


section {

    margin-bottom: 50px;

}


section h2 {

    color: #5f5e3c;

    text-align: center;

    margin-bottom: 25px;

    line-height: 1.3;

}


section p,
section li {

    margin-bottom: 12px;

    text-align: left;

    overflow-wrap: anywhere;

}


ul {

    padding-left: 25px;

}



/* ==================================================
   KOLORY TEKSTU
================================================== */

.czerwony {

    color: #b30000;

    font-weight: 600;

}


.zielony {

    color: #006b00;

    font-weight: 600;

}



/* ==================================================
   ZDJĘCIA
================================================== */

#zdjecie-kosciola img,
.galilea-obrazek img,
#aktualnosci img,
#nietaciswieci img {

    max-width: 100%;

    margin: 20px auto;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,.2);

}



/* ==================================================
   SCHOLA
================================================== */

.schola-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

}


.button-link {

    display: inline-block;

    padding: 12px 25px;

    background: #2f6b3f;

    color: white;

    text-decoration: none;

    border-radius: 10px;

    font-weight: bold;

    box-shadow: 0 3px 6px rgba(0,0,0,.2);

}


.button-link.secondary {

    background: #8b1e1e;

}



/* ==================================================
   NIE TACY ŚWIĘCI
================================================== */

#nietaciswieci .nts-zdjecia {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;

}


#nietaciswieci .nts-zdjecia img {

    width: 100%;

    max-width: 400px;

}



/* ==================================================
   GALILEA
================================================== */

.galilea-tekst p {

    text-align: left;

}


.galilea-obrazek {

    margin-top: 20px;

}



/* ==================================================
   YOUTUBE
================================================== */

.youtube-container {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin: 20px auto;

    overflow: hidden;

}


.youtube-container iframe {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    border: 0;

}



/* ==================================================
   FACEBOOK
================================================== */

.facebook-container {

    width: 100%;

    max-width: 500px;

    margin: 20px auto;

    overflow: hidden;

}


.facebook-container iframe {
    width: 100%;
    height: 800px;
    border: 0;

}



/* ==================================================
   MAPA
================================================== */

.mapa {

    width: 100%;

    overflow: hidden;

}


.mapa iframe {

    width: 100%;

    height: 300px;

    border: 0;

    border-radius: 10px;

}



/* ==================================================
   VIDEO LOKALNE - SCHOLA
   poprawka Redmi / Samsung
================================================== */


.video-local {

    width: 100%;

    max-width: 700px;

    margin: 20px auto;

    overflow: hidden;

    box-sizing: border-box;

}


.video-local video {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,.2);

}



/* ==================================================
   POWRÓT NA GÓRĘ
================================================== */

.back-to-top {

    text-align: right;

    margin: 20px 0;

}


.back-to-top a {

    display: inline-block;

    padding: 8px 15px;

    background: #808000;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-size: 20px;

}



/* ==================================================
   STOPKA
================================================== */

footer {

    background: #808000;

    color: white;

    text-align: center;

    padding: 20px 10px;

}
/* ==================================================
   TABLET
================================================== */

@media (max-width: 768px) {


    .baner {

        height: 260px;

        /* BANER ZOSTAJE */

        background-size: contain;

    }



    .header-top {

        flex-direction: column;

        text-align: center;

        margin: 10px auto;

    }



    .header-top h1 {

        width: 100%;

        text-align: center;

        font-size: 1.5rem;

    }



    .header-contact {

        width: 100%;

        justify-content: center;

    }



    .header-contact a {

        justify-content: center;

    }



    .header-bottom {

        margin: 10px;

        text-align: center;

    }



    nav ul {

        flex-direction: column;

        align-items: center;

    }



    nav a {

        width: 100%;

        text-align: center;

    }



    main {

        width: calc(100% - 30px);

        margin: 20px auto;

        padding: 25px;

    }

}



/* ==================================================
   TELEFON
================================================== */

@media (max-width: 480px) {


    body {

        font-size: 16px;

    }



    /* BANER - NIE ZMIENIAĆ */

    .baner {

        height: 180px;

        background-size: contain;

    }



    .header-top {

        padding: 15px 10px;

    }



    .header-top h1 {

        font-size: 1.2rem;

        line-height: 1.3;

    }



    .header-contact {

        flex-direction: column;

        width: 100%;

        gap: 12px;

    }



    .header-contact a {

        width: 100%;

        justify-content: center;

        text-align: center;

        font-size: .95rem;

    }



    .header-contact svg {

        width: 20px;

        height: 20px;

    }



    .header-contact img {

        width: 20px;

        height: 20px;

    }



    .email-link span {

        max-width: 230px;

        text-align: center;

        overflow-wrap: anywhere;

    }



    .header-bottom {

        font-size: .95rem;

        padding: 12px;

    }



    /* MENU */

    nav ul {

        padding: 10px;

        gap: 5px;

    }



    nav a {

        padding: 10px;

    }



    /* DOTACJE */

    .donation-bar {

        padding: 12px 10px;

        font-size: .95rem;

    }



    /* TREŚĆ */

    main {

        width: calc(100% - 30px);

        margin: 15px auto;

        padding: 20px 15px;

        border-radius: 8px;

    }



    section {

        width: 100%;

        margin-bottom: 35px;

        padding-left: 5px;

        padding-right: 5px;

    }



    section h2 {

        font-size: 1.25rem;

        text-align: center;

        line-height: 1.35;

        padding: 0 10px;

    }



    section p,
    section li {

        font-size: .98rem;

        text-align: left;

        overflow-wrap: anywhere;

    }



    section ul {

        padding-left: 10px;

        padding-right: 10px;

    }



    /* ZDJĘCIA */

    #zdjecie-kosciola img,
    .galilea-obrazek img,
    #nietaciswieci img {

        border-radius: 8px;

    }



    /* YOUTUBE */

    .youtube-container {

        width: 100%;

        margin: 15px auto;

    }



    /* FACEBOOK */

    .facebook-container {

        width: 100%;

    }



    .facebook-container iframe {
    width: 100%;
    height: 800px;
    border: 0;
    }



    /* VIDEO SCHOLI - REDMI */

    .video-local {

        width: 100%;

        max-width: 100%;

        margin: 15px auto;

        padding: 0;

        overflow: hidden;

    }



    .video-local video {

        display: block;

        width: 100%;

        max-width: 100%;

        height: auto;

    }



    /* PRZYCISKI */

    .schola-links {

        flex-direction: column;

    }



    .button-link {

        width: 100%;

        text-align: center;

        padding: 12px;

    }



    /* MAPA */

    .mapa iframe {

        height: 250px;

    }



    /* STOPKA */

    footer {

        font-size: .9rem;

        padding: 15px 10px;

    }
}
/* ==================================================
   OSTATECZNA POPRAWKA REDMI / SAMSUNG
================================================== */

@media (max-width:480px) {


/* =====================
   MENU TELEFON
===================== */

nav {
    width:100%;
}


nav ul {
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    width:100%;
    padding:10px !important;
    gap:6px !important;
}


nav li {
    width:100% !important;
}


nav a {
    display:block !important;
    width:100% !important;
    text-align:center !important;
    padding:12px !important;
}



/* =====================
   KONTAKT PARAFII
===================== */

.header-contact {

    display:flex !important;

    flex-direction:column !important;

    width:100% !important;

    align-items:center !important;

    justify-content:center !important;

    gap:10px !important;

}


.header-contact a {

    width:100% !important;

    justify-content:center !important;

    text-align:center !important;

    white-space:normal !important;

}


.email-link span {

    display:block;

    max-width:260px;

    overflow-wrap:anywhere;

}


/* ==================================================
   VIDEO LOKALNE - SCHOLA
================================================== */

.video-local {

    position: relative;

    width: 100%;

    max-width: 500px;

    aspect-ratio: 16 / 9;

    margin: 20px auto;

    overflow: hidden;

    border-radius: 10px;

}


.video-local video {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,.2);

}



/* TELEFON REDMI */


    .video-local {

        width:100%;

        max-width:100%;

        aspect-ratio:16 / 9;

        margin:15px auto;

    }

    .video-local video {

        width:100%;

        height:100%;

        object-fit:contain;

    }

}


/* =====================
   YOUTUBE I VIDEO RÓWNE
===================== */


.youtube-container,
.video-local {

    max-width:100% !important;

}