﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

a {
    color: white;
    text-decoration: none;
}

.main-block {
    height: 100vh;
    width: 100vw;
    background: url("img/home2.jpg") no-repeat right center;
    background-size:100% 100%;
    position: relative;
}

.main-block--overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(255,255,255,.6);
}

.main-block--content {
    position: relative;
    z-index: 9;
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

.main-block--content .logo {
    height: 180px;
}

.main-block--items {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.main-block--item {
    width: 25%;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
}

.main-block--item .main-btn {
    background-color: #005596;
    padding: 10px 16px;
    color: white;
    font-size: 16px;
    border-radius: 6px;
}

.main-block--item h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.main-block--item p {
    font-size: 22px;
    margin-bottom: 10px;
}

.main-block--item div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media(max-width: 1200px) {
    .main-block {
        background-size: cover;
        background-position: right;
    }

}

@media(max-width: 768px) {
    .main-block--content .logo {
        height: 120px;
    }

    .main-block--item {
        width: 50%;
        margin-bottom: 35px;
    }
}

@media(max-width: 576px) {
    .main-block {
        height: 100%;
        width: 100%;
        background-position: inherit;
    }

    .main-block--content .logo {
        height: 100px;
    }

    .main-block--item {
        min-height: 120px;
        width: 100%;
        margin-bottom: 60px;
    }
}

@media(orientation: landscape) and (max-width: 900px) {
    .main-block {
        height: 100%;
        width: 100%;
        background-position: right;
    }

    .main-block--content .logo {
        height: 100px;
    }

    .main-block--item {
        min-height: 120px;
        width: 100%;
        margin-bottom: 60px;
    }
}
