/*
 * ШАПКА
 */






.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 .1rem 4rem rgba(0, 0, 0, .2);
    height: 10rem;
    background-color: #fff;
    padding: 0 6rem;
}


.menu-tgl,
.contacts-tgl {
    display: none;
}


.logo {
    display: flex;
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
    align-items: center;
}
.logo__link {
    display: flex;
    align-self: stretch;
    align-items: center;
}
.logo__image {
    width: 5rem;
    height: auto;
    display: block;
}
.logo__text {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.8rem;
}
.logo__text strong {
    color: #31ACFF;
    display: block;
    margin-top: .1rem;
    font-weight: 800;
}










.nav-primary {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    margin-left: 3.6rem;
}
.nav-primary .menu-item {
    display: flex;
    margin-left: 2rem;
    align-items: stretch;
}
.nav-primary .menu-item:first-child {
    margin-left: 0;
}
.nav-primary .menu-item a {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    transition: .2s;
    position: relative;
}
.nav-primary .menu-item a:hover {
    color: #306BAC;
}



.nav-primary .sub-menu {
    display: none;
}













.flexible-stretching {
    width: 100%;
    flex-shrink: 1;
}











.header .contacts {
    display: flex;
    align-self: stretch;
    flex-shrink: 0;
}
.header .contacts__item {
    display: flex;
    align-items: stretch;
    margin-left: 2rem;
}
.header .contacts__item:first-child {
    margin-left: 0;
}
.header .contacts__content {
    display: flex;
    align-items: center;
    align-self: stretch;
}
.header .contacts__link {
    cursor: pointer;
}
.header .contacts__link:hover .contacts__icon {
    background-color: #306BAC;
}
.header .contacts__link:hover .contacts__text {
    color: #306BAC;
}
.header .contacts__icon {
    background-color: #31ACFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 10rem;
    flex-shrink: 0;
    font-size: 1.6rem;
    transition: .2s;
}
.header .contacts__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: .8rem;
    font-size: 1.4rem;
    transition: .2s;
    white-space: pre-wrap;
    line-height: 1;
}
.header .contacts__text strong {
    font-weight: 400;
    display: block;
    margin-top: .4rem;
}
.header .contacts__text a {
    display: block;
    margin-top: .4rem;
    transition: .2s;
    cursor: pointer;
}
.header .contacts__text a:first-child {
    margin-top: 0;
}
.header .contacts__text a:hover {
    color: #306BAC;    
}






















































@media all and (max-width: 850px) {


.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 .1rem 4rem rgba(0, 0, 0, .2);
    height: 10rem;
    background-color: #fff;
    padding: 0 6rem;


    padding: 0;
    height: 7rem;
    justify-content: center;
}


.menu-tgl,
.contacts-tgl {
    display: none;


    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    font-size: 2.2rem;
}
.menu-tgl {
    left: 0;
}
.contacts-tgl {
    right: 0;
}
.menu-tgl.on,
.contacts-tgl.on {
    color: #31ACFF;
}


.logo {
    display: flex;
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
    align-items: center;
}
.logo__link {
    display: flex;
    align-self: stretch;
    align-items: center;
}
.logo__image {
    width: 5rem;
    height: auto;
    display: block;


    width: 3.4rem;
}
.logo__text {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.8rem;


    margin-left: .4rem;
}
.logo__text strong {
    color: #31ACFF;
    display: block;
    margin-top: .1rem;
    font-weight: 800;
}










.nav-primary {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex-shrink: 0;
    margin-left: 3.6rem;


    position: fixed;
    background-color: #303036;
    top: 7rem;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 32rem;
    margin-left: 0;
    display: block;
    padding: 2rem 2rem;
    transition: .3s;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-5rem);
}
.nav-primary.on {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.nav-primary .menu-item {
    display: flex;
    margin-left: 2rem;
    align-items: stretch;


    margin-left: 0;
    border-top: .1rem solid rgba(255, 255, 255, .2);
}
.nav-primary .menu-item:first-child {
    margin-left: 0;
    border-top: none;
}
.nav-primary .menu-item a {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    transition: .2s;
    position: relative;


    font-size: 1.8rem;
    padding: 2rem 0;
    color: #fff;
}
.nav-primary .menu-item a:hover {
    color: #306BAC;


    color: #31ACFF;
}



.nav-primary .sub-menu {
    display: none;
}













.flexible-stretching {
    width: 100%;
    flex-shrink: 1;


    display: none;
}











.header .contacts {
    display: flex;
    align-self: stretch;
    flex-shrink: 0;


    display: none;
}
.header .contacts__item {
    display: flex;
    align-items: stretch;
    margin-left: 2rem;
}
.header .contacts__item:first-child {
    margin-left: 0;
}
.header .contacts__content {
    display: flex;
    align-items: center;
    align-self: stretch;
}
.header .contacts__link {
    cursor: pointer;
}
.header .contacts__link:hover .contacts__icon {
    background-color: #306BAC;
}
.header .contacts__link:hover .contacts__text {
    color: #306BAC;
}
.header .contacts__icon {
    background-color: #31ACFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 10rem;
    flex-shrink: 0;
    font-size: 1.6rem;
    transition: .2s;
}
.header .contacts__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: .8rem;
    font-size: 1.4rem;
    transition: .2s;
    white-space: pre-wrap;
    line-height: 1;
}
.header .contacts__text strong {
    font-weight: 400;
    display: block;
    margin-top: .4rem;
}
.header .contacts__text a {
    display: block;
    margin-top: .4rem;
    transition: .2s;
    cursor: pointer;
}
.header .contacts__text a:first-child {
    margin-top: 0;
}
.header .contacts__text a:hover {
    color: #306BAC;    
}


}









