
/* =========================================
   ZÁKLADNÍ RESPONZIVNÍ NASTAVENÍ
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   HLAVIČKA
   ========================================= */

.top {
    width: 100%;
    max-width: 100%;
    background-image: url(/img/bg_top.png);
    background-repeat: no-repeat;
    height: 91px;
    background-position: top center;
    padding: 0 25px;
}

.top h1 {
    max-width: 100%;
}

.top h1 a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.top h1 img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================
   NAVIGACE
   ========================================= */

.top2 {
    width: 100%;
    max-width: 100%;
    background-image: url(/img/bg_menu.png);
    background-repeat: repeat-x;
    height: 42px;        
}

.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
}

.menu a img {
    flex-shrink: 0;
    max-width: 32px;
    height: auto;
    margin-right: 8px;
}


/* =========================================
   HLAVNÍ OBSAH
   ========================================= */

.mainFrame {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.perex {
    max-width: 100%;
    min-width: 0;
}

.perex h2 {
    max-width: 100%;
    overflow-wrap: break-word;
}

.perex p {
    max-width: 100%;
    line-height: 1.7;
}

.clear {
    clear: both;
}


/* =========================================
   KONTAKTNÍ ÚDAJE A PATIČKA
   ========================================= */

.footerHome {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.footerHome a {
    overflow-wrap: anywhere;
}

.footer {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    text-align: center;
    line-height: 1.6;
    overflow-wrap: break-word;
}


/* =========================================
   TABLETY
   ========================================= */

@media screen and (max-width: 768px) {


/*    
    .mainFrame {
        padding-left: 20px;
        padding-right: 20px;
    }
*/

.mainFrame {
        width: 100%;
        max-width: 100%;
        padding-left: 20px !important;
        padding-right: 25px !important;
        margin-left: 0;
        margin-right: 0;
    }

    .mainFrame .perex {
        width: 100%;
        max-width: 100%;
    }

    .top h1 {
        text-align: center;
    }

    .menu {
        gap: 12px;
    }

    .perex {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .perex h2 {
        font-size: 26px;
    }

    .footerHome {
        padding: 20px 15px;
    }

}


/* =========================================
   MOBILNÍ TELEFONY
   ========================================= */

@media screen and (max-width: 480px) {

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .top {
        padding: 15px 10px;
    }

    .top h1 {
        margin: 0;
        padding: 0;
    }

    .top h1 a {
        justify-content: center;
    }

    .top h1 img {
        max-width: 100%;
        margin: 0 auto;
    }

    .top h1 span {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 22px;
    }

    .top2 {
        height: auto;
        padding: 10px;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .menu a {
        width: 100%;
        min-height: 48px;
        padding: 10px 15px;
        font-size: 17px;
        justify-content: center;
    }

    .menu a img {
        max-width: 28px;
    }

    .top3 {
        height: 15px;
        background-image: url(/img/bg_top2.png);
        background-repeat: no-repeat;
        height: 40px;
        background-position: top center;        
    }

    .mainFrame {
        padding-left: 16px;
        padding-right: 16px;
    }

    .perex {
        margin-bottom: 25px;
    }

    .perex h2 {
        font-size: 23px;
        line-height: 1.3;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .perex p {
        font-size: 16px;
        line-height: 1.75;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .footerHome {
        font-size: 14px;
        line-height: 1.9;
        padding: 20px 12px;
        text-align: center;
    }

    .footer {
        font-size: 12px;
        padding: 15px 10px;
    }

}


/* =========================================
   VELMI ÚZKÉ DISPLEJE
   ========================================= */

@media screen and (max-width: 360px) {

    .top h1 span {
        font-size: 19px;
    }

    .perex h2 {
        font-size: 21px;
    }

    .mainFrame {
        padding-left: 12px;
        padding-right: 12px;
    }

}
