*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans';
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    color: #D8D8D8;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    display: flex;
    flex-direction: column;
}

.top {
    background: url(./img/background.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #FFD7D4;
    width: 100%;
    height: 880px;
    z-index: 0;
}

/*
.container {
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}
*/

.topbar {
    width: 100%;
    /*height: 100px;*/
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
}

.topbar-container {
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
}

.topbar-title {
    display: block;
    text-align: center;
    font-size: 36px;
    padding: 10px 0;
    color: #FFF;
}

.topbar-nav {
    text-align: center;
    padding-bottom: 16px;
}

.topbar-nav a {
    display: inline-block;
    margin: 0 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.topbar-nav a.active,
.topbar-nav a:hover {
    color: #FFF;
}

.main {
    max-width: 1130px;
    height: 880px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.main-title {
    margin-top: 31px;
    margin-bottom: 21px;
    font-size: 48px;
    color: #FFF;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-subtitle {
    max-width: 800px;
    line-height: 26px;
    padding: 0 5px;
}


/*760*/
.bottom {
    background-color: #FFD7D4;
}

.quality {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.card-title {
    font-weight: bold;
    font-size: 20px;
    color: #222;
    margin-top: 36px;
    margin-bottom: 9px;
}

.card-body {
    font-size: 12px;
    color: #777;
    max-width: 500px;
    padding: 0 5px;
}




@media only screen and (max-width: 339px) {
    .topbar-nav a {
        margin: 0 9px;
    }
    .main-title {
        font-size: 40px;
    }
}

@media only screen and (min-width: 690px) {
    .topbar {
        height: 100px;
    }
    .topbar-container {
        display: flex;
        height: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
    }
    .topbar-title,
    .topbar-nav {
        padding: 0;
    }
    .topbar-nav a {
        margin: 0 37px;
    }
}

@media only screen and (min-width: 850px) {
    .quality {
        flex-direction: row;
        justify-content: center;
    }

    .card {
        margin: 100px 30px;
    }
}
