*{
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

.container{
   max-width: 1140px; /* изменяется до 1140рх */
   width: 100%;
   margin: 0 auto;
   padding: 0 15px;
}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-thumb{
    border-radius: 20px;
    background: #3FA5D5;
    color: #323232;
}

body{
    font-family: 'RR';
    background: #E5E5E5;
}

.btn{
    max-width: 211px;
    width: 100%;
    background: #3FA5D5;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    padding: 7px 0;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;

}

.aside{
    background: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100px;
    height: 100%;
    position: fixed; /* закрепляет элементы на сайте даже при скроллинге*/
    left: 0; /* указывает позицию закрепления */
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 15px;
    transition: width 300ms;
    overflow: hidden; /* прячет лишние элементы */
}

.aside__menu{
    margin-left: 20px;
}

.aside:hover{
    width: 234px;
}

.aside__menu-link{
    color: #939393;
    display: flex;
    align-items: center;
    margin-bottom: 55px;
    transition: color 300ms;
}

.aside__menu-link:hover{
    color: #2A86B1;
}

.aside__menu-link i{
    font-size: 40px;
    margin-right: 30px;
}

.aside__menu-link span{
    font-size: 18px;
    line-height: 21px;
}

.header__content{
    height: 500px;
    background: url(../image/header.png) no-repeat center /cover white;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 62px;
    margin: 30px 0;
}

.header__content-title{
    font-size: 50px;
    line-height: 59px;
    color: #464748;
    font-family:'RB';
    max-width: 332px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.header__content-title::before{
    content: '';
    display: block;
    width: 100px;
    height: 53px;
    background: #3FA5D5;
    position: absolute;
    z-index: -2; /* приоритет */
    left: 0;
    top: 30px;
}

.header__content-text{
    font-size: 16px;
    line-height: 19px;
    color: #696868;
    margin: 25px 0;
    max-width: 314px;
    width: 100%;
    text-align: justify; /* выравнивает текст */
}

.main__top-item{
    max-width: 255px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 18px 19px 18px;
}


.main__top-title{
    font-size: 20px;
    line-height: 24px;
    color: #2A86B1;
    margin-bottom: 60px;
    font-family: 'RB';
    text-align: center;
}

.main__top-icon{
    font-size: 100px;
    color: #3FA5D5;
    margin-bottom: 70px;
}

.main__top{
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.main__bottom-left{
    max-width: 825px;
    width: 100%;
}
.main__bottom-right{
    max-width: 255px;
    width: 100%;
}

.main__bottom-title{
    font-size: 20px;
    line-height: 24px;
    text-align: justify;
    color: #686868;
    font-family: 'RB';
    margin-bottom: 22px;
    margin-left: 22px;
}

.main__bottom-text{
    background: #FFFFFF;
    border-radius: 8px;
    font-size: 16px;
    line-height: 19px;
    text-align: justify;
    color: #545454;
    padding: 15px;
}

.main__bottom-text:nth-of-type(2){
    margin: 15px 0;
}

.main__bottom{
    display: flex;
    justify-content: space-between;
    margin-bottom: 44px;
}

.main__bottom-item{
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
}

.main__bottom-img{
    margin-right: 15px;
}

.main__bottom-item-title{
    font-size: 17px;
    line-height: 16px;
    color: #323232;
    margin-bottom: 5px;
}

.main_bottom-item-text{
    font-size: 14px;
    line-height: 13px;
    color: #000000;
    font-family: 'RL';
}

.main__bottom-box{
    flex-grow: 1; /* зaнимает все пространство родителя */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main__bottom-right{
    display: flex;
    flex-direction: column;
}

.footer{
    background: #3FA5D5;
    padding: 40px 0;
}

.footer__box{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left-title{
    font-size: 50px;
    line-height: 59px;
    color: #FFFFFF;
    font-family: 'RB';
}

.footer__box-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer__right-number{
    font-size: 18px;
    line-height: 21px;
    color: #FFFFFF;
    font-family: 'RB';
    margin-bottom: 15px;
}

.footer__right-mail{
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
}

/* Media start */

@media(max-width:1400px){
    .aside{
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        z-index: 99999999;
        align-items: center;
        padding: 15px;
    }
    .aside__menu{
        display: flex;
        gap: 20px;
        margin: 0;
    }
    
    .aside__menu-link{
        margin: 0;
    }
    .aside-photo{
        display: none;
    }
    .aside:hover{
        width: 100%;
    }
    .header{
        margin-top: 250px;
    }
}

@media(max-width:1140px){
    .main__top-item{
        max-width: 40%;
    }
    .main__top{
        flex-wrap: wrap;
        justify-content: space-around;
        row-gap: 20px;
    }
    .main__bottom{
        flex-wrap: wrap;
        row-gap: 20px;
        justify-content: center;
    }
    .main__bottom-left,
    .main__bottom-right{
        max-width: 100%;
    }
    .main__bottom-box{
       display: flex;
       flex-direction: row;
       flex-wrap: wrap;
       justify-content: space-around;
       row-gap: 20px;
    }
    .main__bottom-item{
        max-width: 45%;
    }
}

@media(max-width:800px){
    .aside{
        flex-direction: column;
        row-gap: 10px;
    }
    .aside__menu{
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media(max-width:576px){
    .footer__box{
        flex-direction: column;
        row-gap: 20px;
    }
    .footer__left-title{
        font-size: 30px;
        line-height: 30px;
    }
    .main__top-item{
        max-width: 100%;
    }
    .main__bottom-box{
        flex-direction: column;
    }
    .main__bottom-item{
        max-width: 100%;
    }
    .header__content{
        padding: 0 15px;
        align-items: center;
    }
    .header__content-title::before{
        display: none;
    }
    .header__content-title{
        font-size: 30px;
        line-height: 36px;
        text-align: center;
    }
    .aside__menu-link i{
        font-size: 24px;
        margin-right: 15px;
    }
    .main__bottom-title{
        text-align: center;
    }
}














/* Media end */