* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: #202429;
    background: #fff;
    font-weight: 400;
    color: #fff;
}

a.button {
    -webkit-transition: all 300ms ease-in;
    -moz-transition: all 300ms ease-in;
    -ms-transition: all 300ms ease-in;
    -o-transition: all 300ms ease-in;
    transition: all 300ms ease-in;
}

header {
    background: #212529 url(images/ksh-holding.jpg) center center no-repeat;
    background-size: cover;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.5rem;
    font-weight: 300;
    text-align: center;
}

span.color {
    color: #4d62ab;
}

.companies-block {
    display: flex;
    height: 30vh;
}

.companies-block section {
    flex-basis: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.companies-block section .inside {
    position: relative;
    overflow: hidden;
}

.companies-block section .inside h2 {
    position: absolute;
    top: -999px;
}

.companies-block section .inside img {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

.companies-block section:nth-child(2n) {
    background: #f7f7f7;
}

main {
    overflow: hidden;
    position: relative;
}

main h1 {
    position: absolute;
    top: -999px;
}

.companies-block section .inside .more-box {
    text-align: center;
}

a.button {
    display: inline-block;
    background: #3f4899;
    padding: 20px 35px;
    text-decoration: none;
    color: #fff;
}

a.button:hover {
    background: #4d62ab;
}

.companies-block section:nth-child(5) a.button,
.companies-block section:nth-child(6) a.button,
.companies-block section:last-child a.button {
    background: #1a1b19;
    cursor: auto;
}

@media screen and (min-width:320px) and (max-width:1023px) {

    header {
        font-size: 2.5rem;
    }

    .companies-block {
        flex-wrap: wrap;
        height: auto;
    }

    .companies-block section {
        flex-basis: 100%;
        height: 100vw;
    }

}

@media screen and (min-width:480px) and (max-width:1023px) {}

@media screen and (min-width:600px) and (max-width:1023px) {}

@media screen and (min-width:768px) and (max-width:1023px) {}

@media screen and (min-width:1024px) and (max-width:1919px) {

    .companies-block {
        height: 50vw;
        flex-wrap: wrap;
    }

    .companies-block section {
        flex-basis: 25%;
    }

    header {
        font-size: 3.5rem;
    }

    .companies-block section:nth-child(5),
    .companies-block section:nth-child(7) {
        background: #f7f7f7;
    }

    .companies-block section:nth-child(6),
    .companies-block section:nth-child(8) {
        background: #fff;
    }

}

@media screen and (min-width:1280px) and (max-width:1439px) {}

@media screen and (min-width:1366px) and (max-width:1439px) {}

@media screen and (min-width:1440px) and (max-width:1679px) {}

@media screen and (min-width:1600px) and (max-width:1919px) {}

@media screen and (min-width:1680px) and (max-width:1919px) {}

@media screen and (min-width:1800px) and (max-width:1919px) {}
