@font-face {
    font-family: 'Bebas Neue';
    src: local('Bebas Neue Thin'),
    local('BebasNeue-Thin'),
    url('../fonts/Bebasneue/bebasneuethin.woff2') format('woff2'),
    url('../fonts/Bebasneue/bebasneuethin.woff') format('woff'),
    url('../fonts/Bebasneue/bebasneuethin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    src: local('Bebas Neue Light'),
    local('BebasNeue-Light'),
    url('../fonts/Bebasneue/bebasneuelight.woff2') format('woff2'),
    url('../fonts/Bebasneue/bebasneuelight.woff') format('woff'),
    url('../fonts/Bebasneue/bebasneuelight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    src: local('Bebas Neue Book'),
    local('BebasNeueBook'),
    url('../fonts/Bebasneue/bebasneuebook.woff2') format('woff2'),
    url('../fonts/Bebasneue/bebasneuebook.woff') format('woff'),
    url('../fonts/Bebasneue/bebasneuebook.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    src: local('Bebas Neue Regular'),
    local('BebasNeueRegular'),
    url('../fonts/Bebasneue/bebasneueregular.woff2') format('woff2'),
    url('../fonts/Bebasneue/bebasneueregular.woff') format('woff'),
    url('../fonts/Bebasneue/bebasneueregular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bebas Neue';
    src: local('Bebas Neue Bold'),
    local('BebasNeueBold'),
    url('../fonts/Bebasneue/bebasneuebold.woff2') format('woff2'),
    url('../fonts/Bebasneue/bebasneuebold.woff') format('woff'),
    url('../fonts/Bebasneue/bebasneuebold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Bebas Neue";
    letter-spacing: 3px;
    background: linear-gradient(to right, #208c8c, #0b6d78);
}

.back_img {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    background-image: url('../img/niac.svg');
    background-attachment: fixed;
}

.wrapper_scroll {
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.nav {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background-color: rgba(50, 49, 48, 0.75);
    border-bottom: 2px solid #0b6d78;
}

.logo_name {
    display: flex;
    align-items: center;
}

.name {
    max-width: 350px;
    margin: 0 25px 0 25px;
    font-size: 24px;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
}

.logo {
    width: 102px;
    height: 87px;
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.right_menu_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home_btn {
    display: block;
    margin: 0 15px 0 0;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.5s ease;
}

.home_btn:hover {
    color: #32797f;
}

.home_btn_size {
    font-size: 28px;
}

.burger-menu {
    margin: 0 10px 0 0;
    width: 25px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-menu-bottom,
.burger-menu-center,
.burger-menu-top {
    width: inherit;
    height: 3px;
    background-color: #ffffff;
}

.burger-menu-top {
    transform-origin: 0 0;
    transition: transform ease .5s;
}

.burger-menu-center {
    transition: opacity ease .5s;
}

.burger-menu-bottom {
    transform-origin: 0 100%;
    transition: transform ease .5s;
}

.burger-menu-top-active {
    width: 127.5%;
    transform: rotate(45deg);
}

.burger-menu-center-active {
    opacity: 0;
}

.burger-menu-bottom-active {
    width: 127.5%;
    transform: rotate(-45deg);
}

.menu {
    position: fixed;
    right: -100%;
    width: 320px;
    padding: 15px;
    box-sizing: border-box;
    border: 2px solid #0b6d78;
    border-radius: 6px;
    background-color: #ffffff;
    transition: right 0.7s ease;
    z-index: 1000;
}

.menu-active {
    right: 0;
}

.menu_list {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-size: 20px;
    font-weight: 600;
    color: rgba(50, 49, 48, 0.8);
}

.menu_item {
    margin: 0 0 0 0;
    text-align: left;
}

.menu_link {
    display: block;
    margin: 0;
    padding: 7px 7px 5px 7px;
    border-radius: 6px;
    text-decoration: none;
    color: #000000;
}

.menu_item:last-child {
    margin: 0;
}

.menu_item:hover .menu_link {
    background-color: rgba(50, 49, 48, 0.9);
    color: #ffffff;
}

/* === Стартовая страница === */

.card_wrapper {
    width: 95%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.card_link {
    text-decoration: none;
}

.card {
    width: 250px;
    height: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 2px solid #0b6d78;
    border-radius: 10px;
    background-color: rgba(50, 49, 48, 0.75);
    overflow: hidden;
}

.card_image_text_menu_wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.7s ease;
}

.card_image {
    width: 100%;
    height: 120px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.card_image_font {
    height: 100%;
    color: #ffffff;
    transition: color 0.5s ease;
}

.card_text {
    width: 100%;
    height: 110px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.card_menu {
    height: 100%;
    margin: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    overflow: hidden;
    overflow-y: scroll;
}

.card_menu::-webkit-scrollbar {
    width: 3px;
}

.card_menu::-webkit-scrollbar-thumb {
    background-color: #eeeeee;
}

.card_menu_list {
    padding: 0 5px 0 5px;
    margin: 0;
    box-sizing: border-box;
}

.card_menu_item {
    padding: 5px 5px 5px 5px;
    margin: 0 0 0 25px;
    border-radius: 6px;
    transition: all 0.5s ease;
}

.card_menu_link {
    color: #ffffff;
    text-decoration: none;
}

.card:hover .card_image_text_menu_wrapper {
    transform: translateY(-106%);
}

.card_menu_link:hover .card_menu_item {
    background-color: #ffffff;
    box-shadow: 0 0 4px #ffffff;
    color: #000000;
    text-shadow: 0 0 4px #000000;
}

/* === О системе, новости, справка  === */

.about_wrapper {
    margin: 40px auto;
    width: 80%;
    color: #ffffff;
}

.about_head {
    margin: 25px 0 55px 0;
    font-weight: 400;
    font-size: 36px;
    text-align: center;
}

.about_list {
    text-align: left;
    font-weight: 400;
    font-size: 22px;
}

.about_list_item {
    margin: 0 0 25px 25px;
}

.about_link {
    color: #ffffff;
}

.news_wrapper {
    margin: 40px auto;
    width: 80%;
    color: #ffffff;
}

.news_head {
    margin: 25px 0 55px 0;
    font-weight: 400;
    font-size: 36px;
    text-align: center;
}

.news_list_scroll {
    overflow-y: auto;
    height: 70vh;
}

.news_content {
    list-style-type: none;
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    font-weight: 400;
    font-size: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.news_content a {
    color: #ffffff;
}

.news_content_nodata {
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    text-align: center;
    font-weight: 400;
    font-size: 22px;
}

.help_wrapper {
    margin: 40px auto;
    width: 80%;
    color: #ffffff;
}

.help_head {
    margin: 25px 0 55px 0;
    font-weight: 400;
    font-size: 36px;
    text-align: center;
}

.help_content {
    text-align: center;
    font-weight: 400;
    font-size: 22px;
}

.mailRu {
    position: fixed;
    bottom: 5px;
    right: 5px;
    border: 0px;
    opacity: 0.05;
    height: 15px;
    width: 88px;
}

/* === Адаптив === */

@media (max-width: 1084px) and (max-width: 1357px) {

    .back_img {
    	height: auto;
    }

}

@media (max-width: 600px) {
    .logo {
        display: none;
    }

    .name {
        text-align: center;
    }

    .menu {
        width: 100%;
    }

    .about_wrapper {
        width: 90%;
    }

    .news_wrapper {
        width: 90%;
    }

    .help_wrapper {
        width: 90%;
    }
}

@media (max-width: 537px) {
    .card {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .name {
        margin: 0 5px;
        font-size: 20px;
    }

    .about_head {
        font-size: 30px;
    }

    .about_list {
        font-size: 18px;
    }

    .about_list_item {
        margin: 0 0 15px 15px;
    }

    .news_head {
        font-size: 30px;
    }

    .news_content {
        font-size: 18px;
    }

    .help_head {
        font-size: 30px;
    }

    .help_content {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .name {
        font-size: 17px;
    }

    .about_list_item {
        margin: 0 0 10px 10px;
    }
}

@media (max-width: 290px) {
    .name {
        font-size: 16px;
    }
}
