html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

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

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

img {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', Verdana, sans-serif;
    min-width: 100%;
    min-height: 100%;
    background-color: #E8F1FF;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 75px;
    padding: 0 75px;
    background: #103A84;
}

.user {
    display: flex;
    cursor: pointer;
}

.logo {
    width: 50px;
}

.username {
    margin-right: 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    color: #fff;
}

.avatar {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #168cd1 url('img/avatar.png') no-repeat center center;
    background-size: 75%;
}

.main {
    /* max-width: 1200px; */
    margin: 0 auto;
    margin-top: 50px;
    width: 80%;
    margin-left: 10%;
    overflow: scroll; 

    /*убираем полосу прокрутки*/
    -ms-overflow-style: none;/* IE and Edge */
    scrollbar-width: none;/* Firefox */
}
/*Настройки скроллбара в Chrome*/
.main::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

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

::-webkit-scrollbar-track {
    -webkit-box-shadow: 5px 5px 5px -5px rgba(8, 42, 70, 0.2) inset;
    background-color: #e8f1ff;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(4, 0, 80);
    background-image: -webkit-linear-gradient(45deg,
        rgba(4, 0, 80, 1) 0%,
        rgba(9, 9, 121, 1) 31%,
        rgba(0, 162, 195, 1) 100%);
}

.nav {
    position: relative;
    display: block;
    width: 50%;
    margin: 0 auto;
}

.search {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    width: 100%;
    border: 1px solid #1f3f76;
    border-radius: 30px;
    background: #fff;
    outline: none;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.search-button {
    width: 40px;
    height: 40px;
    margin-left: -40px;
    padding: 19px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border: none;
    background: #1f3f76 url('img/search.svg') no-repeat 40% center;
    cursor: pointer;

}

/* FSL settings */
.FSL {
    background-color: #E8F1FF;

    /* display:grid; */
    /* grid-template-columns: repeat(2,50%); */
    /* grid-template-areas: 
    "m m m m"
    "o o o o"
    "o o o o"
    "o o o o"
    "o o o o;" */
}

.Fmain{
    /* grid-area: m; */
    /* display:flex; */
    width: 100%;
    height: 10em;
    background: #051A3F;
    mix-blend-mode: darken;
    border: 1px solid #000000;
    border-radius: 9px;
}

.Fother {
    /* grid-area: o; */
    /* grid-auto-rows: auto; */
    display: flex;
    /* flex-flow: column wrap; */
    flex-flow: row wrap;
    justify-content: space-around;
    background: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 9px;
}

.IB{
    background-color: #051A3F;
    height: 100%;
    width: 25%;
    border-radius: 0 9px 9px 0;
}

.flex {
    display: flex;
    flex-direction: row-reverse;
    width: 45%;
    height: 150px;
    margin: 2%;
    background: #FFFFFF;
    /* Back shadow */
    box-shadow: 0px 0px 4px 3px rgba(63, 63, 63, 0.55);
    border-radius: 9px;
}

@media (max-width: 640px) {

    /* стили для xs-устройств */
    .flex {
        width: 80%;
        height: 5em;
        margin: 2%;
        border-radius: 4px;
    }

    .Fother {
        justify-content: center;
    }
}

@media (min-width: 1700px) and (max-width:2700px) {

    /* стили для fhd-устройств */
    .flex {
        width: 30.1%;
        height: 10em;
        margin: 1.5%;
        border-radius: 12px;
    }

    .main {
        width: 86%;
        margin-left: 7%;
    }
}

@media (min-width: 2700px) {

    /* стили для uhd-устройств */
    .flex {
        width: 22.5%;
        height: 10em;
        margin: 1.25%;
        border-radius: 12px;
    }

    .main {
        width: 94%;
        margin-left: 3%;
    }
}