/* Reset */


html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
}


/* Common */


header, section, footer, div {
    display: block;
}

.inner {
    display: block;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

@media screen and (max-width: 768px) {
    .inner {
        padding: 0 20px;
    }
}


/* Basic */


html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    background: #FFF;
    color: #000;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

p {
    margin: 2rem 0 2rem 0;
    line-height: 1.7;
}

h2, h3 {
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

h2 {
    color: #3B828F;
    text-align: center;
    font-size: 1.8rem;
    margin: 4rem 0 4rem 0;
}

h3 {
    color: #444;
    font-size: 1.3rem;
    margin: 0 0 2rem 0;
}



/* Header */


#header {
    background: #EEE url("images/okolie-loga.svg") center center/3000px 170px no-repeat;
    border-top: 3px solid #DDD;
    height: 170px;
}

#header .inner {
    padding: 70px 50px 50px 50px;
    
}

#header a {
    color: #444;
    text-decoration: none;
}

#header img {
    display: inline-block;
    width: 80px;
    height: 50px;
    margin-right: 27px;
}

h1 {
    display: inline-block;
    font-size: 2.2rem;
    text-transform: uppercase;
    font-family: "Geologica", sans-serif;
    font-weight: 300;
}

h1 span {
    color: #3B828F;
}


/* Navigation */


#nav {
    background-color: #3B3B3B;
    border-top: 8px solid #3B828F;
    border-bottom: 8px solid #EEE;
    text-align: center;
}

nav ul {
    list-style-type: none;
}

#nav li {
    display: inline-block;
    margin: 0 10px;
    padding: 0;
}

#nav li a {
    display: block;
    padding: 30px 25px 30px 45px;
    color: #FFF;
    text-decoration: none;
    background: #3B3B3B url("images/arrow-down.svg") 20px center/0.8rem no-repeat;
    transition: background-color 0.5s;
}

#nav li a:hover {
    background: #444 url("images/arrow-down.svg") 20px center/0.8rem no-repeat;
}


/* Mobile navigation */


@media screen and (max-width: 768px) {
    #nav {
        text-align: left;
    }
    
    #nav .inner {
        padding: 10px 10px;
    }
    
    #nav li {
        display: block;
        margin: 0;
    }
    
    #nav li a {
        padding: 15px 25px 15px 45px;
        background: #3B3B3B url("images/arrow-down.svg") 20px center/0.8rem no-repeat;
    }
}


/* Section - služby */


.grid-sluzby {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media screen and (max-width: 1024px) {
    .grid-sluzby {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .grid-sluzby {
        grid-template-columns: 1fr;
    }
}

.grid-sluzby .column {
    background-color: #EEE;
    color: #000;
    text-align: left;
    padding: 45px 50px 35px 50px;
    border-radius: 3px;
}

@media screen and (max-width: 768px) {
    .grid-sluzby .column {
        padding: 25px 30px 15px 30px;
    }
}

.grid-sluzby .column h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid #BBB;
    transition: border-bottom-color 0.5s;
}

.grid-sluzby .column:hover > h3 {
    border-bottom-color: #000;
}

.grid-sluzby .column p {
    margin-bottom: 0.7rem;
}

.grid-sluzby .column ul {
    list-style-type: none;
}

.grid-sluzby .column li {
    margin: 1rem 0;
    padding-left: 30px;
    background: url("images/arrow-right.svg") left center/0.7rem no-repeat;
}

.grid-sluzby .column.projektovanie {
    background-color: #3B828F;
    color: #FFF;
}

.grid-sluzby .column.projektovanie h3 {
    color: #FFF;
    border-bottom: 1px solid #7AA4AC;
    transition: border-bottom-color 0.5s;
}

.grid-sluzby .column.projektovanie:hover > h3 {
    border-bottom-color: #B3CBCF;
}

.podfarbeny-odsek {
    display: block;
    background-color: #EEE;
    color: #000;
    text-align: left;
    margin: 10px 0 10px 0;
    padding: 30px 50px 30px 50px;
    border-radius: 3px;
}

@media screen and (max-width: 768px) {
    .podfarbeny-odsek {
        padding: 20px 30px 20px 30px;
    }
}


/* Section - referencie */


.grid-referencie {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

@media screen and (max-width: 1200px) {
    .grid-referencie {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1024px) {
    .grid-referencie {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .grid-referencie {
        grid-template-columns: 1fr;
    }
}

.grid-referencie > a {
    position: relative;
    cursor: pointer;
}

.grid-referencie a img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 3px;
}

.grid-referencie .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.5);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.2s;
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Geologica", sans-serif;
    font-size: 1.5rem;
}

.grid-referencie a:hover .overlay {
    opacity: 1;
}


/* Section - kontakt */


#kontakt {
    margin-top: 100px;
    background-color: #444;
    padding: 0 0 40px 0;
    border-top: 8px solid #3B828F;
    border-bottom: 8px solid #EEE;
    color: #FFF;
}

#kontakt h2 {
    color: #FFF;
    margin: 3rem 0 3rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #777;
}

#kontakt a {
    color: #FFF;
}

#kontakt li {
    line-height: 1.5;
}

.grid-kontakt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media screen and (max-width: 1024px) {
    .grid-kontakt {
        grid-template-columns: 1fr;
    }
}

.grid-kontakt .column {
    padding: 20px 50px 20px 50px;
}

@media screen and (max-width: 768px) {
    .grid-kontakt .column {
        padding: 0 30px 0 30px;
    }
}

.grid-kontakt .column p {
    margin-bottom: 0.7rem;
}

.grid-kontakt .column ul {
    list-style-type: none;
}

.grid-kontakt .column li {
    margin: 1rem 0;
}

.phone, .mail {
    font-size: 1.5rem;
    font-weight: 700;
    color: #77B0BB;
}

.phone {
    padding: 1rem 0 0 0;
}

.mail {
    padding: 0.5rem 0 0 0;
}

#kontakt .mail a {
    color: #77B0BB;
    text-decoration: none;
}


/* Footer */


#footer {
    color: #888;
    margin: 50px auto 0 auto;
    font-size: 0.9rem;
    border-bottom: 8px solid #EEE;
}

#footer a {
    display: block;
    width: 100px;
    height: 50px;
    margin: 0 auto;
    background: url("images/arrow-top.svg") center bottom no-repeat;
}