* {
    font-family: Trebuchet MS;
    filter: brightness(1);
    box-sizing: border-box;
}

body {
    margin: 0px;
    background-color: #e7d7c1;
    width: 100%;
    height: 100%;
    overflow: auto;
}

header {
    display: flex;
    width: 100%;
    height: 200px;
}

header img {
    width: 50%;
    height: 200px;
    border-radius: 500px;
}

.zdj {
    flex: 0 0 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a78a7f;
    background-color: #a78a7f;
}

#tytul {
    height: 200px;
    flex: 1;
    text-align: center;
    font-size: 300%;
    margin: auto;
    background-color: #a78a7f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.srodek {
    display: flex;
    width: 100%;
    height: 700px;
    justify-content: space-evenly;
}

nav {
    width: 25%;
    height: 720px;
    /*border: rgb(191,67,66, .4)3px solid;*/
    background-clip: padding-box;
    background-color: rgb(191, 67, 66, .3);
}

.center {
    margin: auto;
}

.nawigacja_blok {
    text-align: center;
    width: 100%;
    height: 15%;
    display: flex;
    justify-content: center;
    /* poziomo */
    align-items: center;
    /* pionowo */
    padding: 10px 0;
    background-color: #a78a7f;
    border-radius: 10px;
    margin-top: 3%;
    font-size: 150%;
    font-weight: bolder;
}

#ogolne {
    background-color: #735751;
    color: red;
}

main {
    width: 75%;
    height: 700px;
    /* taka sama wysokość jak .srodek */
    font-size: 200%;
    overflow: hidden;
    /* main nie scrolluje */
    text-align: center;
    background-color: #e7d7c1;

}

#ogolne_main {
    display: block;
    text-align: center;
}

.main_blok {
    display: none;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 30px;
    /* stałe, przewidywalne wartości */
    box-sizing: border-box;
    font-size: 90%;
}


footer {
    width: 100%;
    background-color: #a78a7f;
    text-align: center;
    padding: 20px 10px;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 120%;
    color: black;
}

.main_blok::-webkit-scrollbar {
    width: 8px;
}

dd,
dt,
li {
    text-align: left;
}

hr {
    height: 3px;
    background-color: #8c1c13;
}

dt {
    color: #8c1c13;
    font-size: 120%;
}

.podtytul {
    color: black;
    font-size: 110%;
    font-weight: bold;
}

.blanka {
    display: flex;
    justify-content: space-around;
}

#blanka_img {
    margin-right: 40px
}

#blanka_tekst p {
    width: 50%;

}

#blanka_tekst {
    display: flex;
    justify-content: left;
    align-items: center;
}

#terminarz_inne_main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* =========================
   STAŁA WIDOCZNOŚĆ PRZYCISKÓW
   ========================= */

/* DESKTOP + MOBILE */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 100vh;
    /* nigdy nie wyjdzie poza ekran */
    overflow-y: auto;
    /* scroll jeśli brak miejsca */
}

/* ukrycie scrollbara (opcjonalne) */
nav::-webkit-scrollbar {
    width: 6px;
}

/* =========================
   WERSJA MOBILNA – TELEFONY
   ========================= */
@media (max-width: 850px) {

    body {
        overflow: auto;
    }

    /* ===== HEADER ===== */
    header {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    /* ukrywamy zdjęcia w headerze */
    .zdj {
        display: none;
    }

    #tytul {
        width: 100%;
        font-size: 180%;
        height: auto;
        padding: 15px 10px;
        text-align: center;
    }

    /* ===== UKŁAD STRONY ===== */
    .srodek {
        flex-direction: column;
        height: auto;
    }

    /* ===== MENU – LINIA POZIOMA ===== */
    nav {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        /* zawijanie przycisków */
        justify-content: center;
        gap: 10px;
        padding: 10px;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        background-color: rgba(191, 67, 66, 0.95);
    }

    .nawigacja_blok {
        width: 45%;
        /* 2 przyciski w rzędzie */
        height: auto;
        padding: 12px 5px;
        font-size: 110%;
        margin-top: 0;
        box-sizing: border-box;
        flex: 1 1 45%;
        min-height: 48px;
    }

    /* ===== MAIN ===== */
    main {
        width: 100%;
        height: auto;
        font-size: 150%;
        overflow: visible;
    }

    .main_blok {
        height: auto;
        overflow: visible;
        padding: 15px;
        font-size: 100%;
    }

    /* ===== TERMINARZ INNE – SKALOWANIE ZDJĘĆ ===== */
    #terminarz_inne_main img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 15px auto;
    }

    /* ===== BLOK BLANKA ===== */
    .blanka {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #blanka_img {
        width: 90%;
        max-width: 320px;
        margin: 0 0 15px 0;
    }

    #blanka_tekst p {
        width: 100%;
    }

    /* ===== TEKSTY ===== */
    dt,
    dd,
    li {
        font-size: 95%;
    }

    /* ===== FOOTER ===== */
    footer p {
        font-size: 100%;
    }
}

