html {
    height: 100%;
    font-size: 8px;
}
body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #cdcdcd;
    font-size: 1.6rem;
}

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

.body_noscroll {
    overflow: hidden;
}

.row {
    margin: 1rem 0;
}
.col {
    padding: 0 1rem;
}


.header__title {
    padding-bottom: 1rem;
    position: relative;
}
.header__title:after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -2px;
    height: 3px;
    background-image: linear-gradient(white, transparent);
}

.img-fluid {
    max-width: 100%;
}
.nobr {
    white-space: nowrap;
}
.app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 10rem 20px;
    box-sizing: border-box;
}
.header {
    text-align: center;
    position: relative;
    margin-top: calc(2vmax + 14rem);
}

.header__logo {
    position: relative;
    z-index: 2;
}

.header::before, header::after {
    content: '';
    position: fixed;
    background: url("../img/corner.png") no-repeat;
    background-size: 100%;
    width: 32rem;
    height: 32rem;
    max-width: 15vmax;
    max-height: 15vmax;
    top: 2vmax;
    z-index: 2;
}

.header::before {
    display: none;
    left: 2vmax;
}

.header::after {
    right: 2vmax;
    transform: rotate(90deg);
}

.footer::before, .footer::after {
    content: '';
    position: fixed;
    background: url("../img/corner.png") no-repeat;
    background-size: 100%;
    width: 32rem;
    height: 32rem;
    max-width: 15vmax;
    max-height: 15vmax;
    bottom: 2vmax;
    z-index: 2;
}

.footer::before {
    left: 2vmax;
    transform: rotate(270deg);
}

.footer::after {
    right: 2vmax;
    transform: rotate(180deg);
}


.footer__credits {
    position: fixed;
    bottom: 4rem;
    box-sizing: border-box;
    width: 100%;
    left: 0;
    text-align: center;
    z-index: 4;
}

.footer__credites-text {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 1rem;
    color: rgb(195, 195, 195)
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.partners {
    margin-top: 2rem;
}

.partners__item {
    height: 5vmax;
    max-height: 40px;
}

.services__title {
    text-align: center;
    color: wheat;
}

.services {
    margin-left: -30px;
    margin-top: 2rem;
    margin-bottom: 0;
}

.services__item {
    line-height: 2;
}

.services__item + .services__item {
    border-top: 1px solid #474747;
}

.advantages {
    position: fixed;
    width: 100%;
    left: 0;
    text-align: center;
    top: 10rem;
    font-size: 1.8rem;
    z-index: 3;
}

.contacts {
    text-align: center;
}
.contacts__item {
    padding: 5px;
    display: block;
}

.crm-partners {
    text-align: center;
    padding: 0.5rem;
    padding-bottom: 1rem;
    line-height: 2;
}
.crm-partners__items {
    display: flex;
    justify-content: center;
    align-items: center;
}
.crm-partners__item {
    max-height: 2rem;
    margin: 0 1rem;
}

.main {
    position: relative;
    z-index: 4;
}

.menu {
    position: fixed;
    top: 5vmax;
    left: 2vmax;
    z-index: 5;
}

.menu__toggle-checkbox {
    display: none;
}

.menu__toggle-bar {
    display: block;
    width: 60px;
    height: 1px;
    border-bottom: 4px solid #5c5c5c;
    margin-bottom: 8px;
}

.menu__items {
    position: fixed;
    display: none;
    top: 12vh;
    left: 2vmax;
    width: 50%;
    background: #000;
    z-index: 5;
    padding: 1rem;
    margin: 0;
    list-style-type: none;
    font-size: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 3rem rgba(255, 255, 255, 0.8);
}

.menu__toggle-checkbox:checked + .menu .menu__items {
    display: block;
}

.menu__link {
    margin: 0 1rem;
}

.menu__link_active {
    color: wheat;
}

@media screen and (max-height: 414px) {
    .footer__credits {
        bottom: 3vh;
    }
}

@media screen and (min-width: 321px) {
    html {
        font-size: 10px;
    }
    .advantages {
        position: absolute;
        left: 50%;
        margin-left: -4.5rem;
        top: -11.5rem;
        width: 8rem;
        height: 8rem;
        display: flex;
        align-items: center;
        border-radius: 100%;
        line-height: 1;
        box-shadow: 0 0 3rem rgba(255, 255, 255, 0.8);
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
}

@media screen and (min-width: 769px) {
    .menu__toggle {
        display: none;
    }
    .menu__items {
        background: none;
        top: 2vmax;
        left: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 0;
        box-shadow: none;
        font-size: 2rem;
    }
    .row {
        display: flex;
    }
    .header::before {
        display: block;
    }
    .menu__items {
        display: flex;
    }
    .menu {
        /*top: 7vmax;*/
    }
    .menu__toggle-bar {
        width: 80px;
        border-bottom: 8px solid white;
        margin-bottom: 8px;
    }
    .app {
        justify-content: center;
    }
    .advantages {
        left: 100%;
        top: 11rem;
        margin-left: 0;
    }
}

@media screen and (min-width: 1025px) {
    .advantages {
        top: -6rem;
    }
    .menu {
        left: 4vmax;
        top: 4vmax;
    }
}

@media screen and (orientation: landscape) and (max-height: 1023px) and (max-width: 1023px) {
    body {
        font-size: 1.4rem;
    }
    .header {
        margin-top: 2vmax;
    }
    .advantages {
        display: none;
    }
    .header__logo {
        max-width: 50vw;
    }
    .contacts__item {
        display: inline-block;
    }
    .footer {
        bottom: 0.5rem;
    }
    .services {
        margin-top: 0;
    }
    .crm-partners {
        display: none;
    }
}

@media screen and (orientation: landscape) and (min-height: 321px) {
    .header {
        margin-top: calc(2vmax + 2rem);
    }
    .services {
        margin-top: 2rem;
    }
}
