html{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,*::before,*::after{
    box-sizing: inherit;
}

body{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #eeefef;
    line-height: 1.5;
    font-size: 16px;
}

.container{
    margin: 0 auto;
    width: 62.5em; /* 1000px */
}

/* HEADER */
nav{
    display: flex;
    padding: 0.625em; /* 10px */
    justify-content: space-around;
    background: #ee7c00;
    border-radius: 0.9375em; /* 15px */
    color: #fff;
    font-weight: 600;
}

nav a{
    color: #fff;
}

/* MAIN */
section{
    padding: 1.5625em; /* 25px */
}

section:nth-child(even) {
    background-color: #e0dfdf;
}

h1, h2, h3{
    font-weight: 600;
}

h1{
    font-size: 1.875em; /* 30px */
    padding-bottom: 0.9375em; /* 15px */
    color: #cc6a00;
}

h2{
    font-size: 1.25em; /* 20px */
    color: #dd7300;
}

p, ul{
    margin-bottom: 1.25em; /* 20px */
}

/* O NAS */
#o-nas ul{
    margin-left: 1.5625em; /* 25px */
    list-style: disc;
}

.znacenia{
    display: flex;
    justify-content: space-around;
}

#o-nas img{
    max-height: 12.5em; /* 200px */
}

/* CERTIFIKATY */
#certifikaty{
    text-align: center;
}

#certifikaty a{
    padding: 0 1.5625em; /* 25px */
}

#certifikaty img{
    max-height: 31.25em; /* 500px */
    border-radius: 1.875em; /* 30px */
}

/* MASP */
#masp{
    display: flex;
    margin: 0 15%;
    justify-content: space-around;
    text-align: center;
}

.satv{
    text-align: center;
}

.satv table{
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.satv table tr:nth-child(even){
    background-color: #e0dfdf;
}

.satv table tr:last-child{
    background-color: #eeefef;
}

.satv th{
    font-weight: 600;
}

.satv td:nth-child(even){
    padding-left: 1.5625em; /* 25px */
}

/* REFERENCIE */
#referencie h1{
    text-align: center;
}

/* GALERIA */
#galeria{
    padding: 0;
    overflow: hidden;
}

.galeria{
    display: flex;
    width: calc(31.25em * 26); /* 500px * 26 */
    animation: scroll 40s linear infinite;
}

.galeria:hover{
    animation-play-state: paused;
}

@keyframes scroll{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(calc(-28.125em * 10)); /* -450px * 10 */
    }
}

.galeria img{
    max-height: 18.75em; /* 300px */
    width: 100%;
}

/* KONTAKT */
#kontakt{
    display: flex;
    justify-content: space-around;
    text-align: center;
}

#kontakt table{
    text-align: left;
}

#kontakt td:nth-child(odd){
    padding-right: 1.25em; /* 20px */
}

.prevadzkova-doba{
    width: 10.9375em; /* 175px */
}

/* FOOTER */
footer{
    text-align: center;
    font-size: 0.75em; /* 12px */
    margin: 0.3125em 0; /* 5px */
}

footer a{
    color: black;
}

@media only screen and (max-width: 1100px) {
    .container{
        margin: 0;
        width: 100%;
    }
    .container a img{
        width: 100%;
    }
    .container nav {
        border-radius: 0;
        width: 100%;
    }

    #masp{
        margin: 0;
    }

}

@media only screen and (max-width: 860px) {
    #masp{
        display: block;
    }
}

@media only screen and (max-width: 500px) {
    #certifikaty a{
        padding: 0;
    }

    #certifikaty a img{
        max-height: 25em;
    }

    #kontakt{
        display: block;
    }
    .kontakt-info{
        width: 10.9375em;
        margin: 0 auto;
        margin-bottom: 1.5625em;
    }
    .prevadzkova-doba{
        margin: 0 auto;
    }
}