.body {
    margin: 0;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

*, *:after, *:before {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/*header====
===============*/

.header {
    padding: 10px;
}

.header.fixed {
    position: fixed;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-top: 0;
}


.header__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
}

.header__link {
    text-transform: uppercase;
    margin-left: 14px;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    transition: color .15s linear;
}

.header__link:hover {
    color: #cb4646;
}

/*Intro*/
.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    height: 500px;
    background: #75799f url("../images/Фон.jpg") no-repeat center;
    background-size: cover;
}

.intro__title {
    text-transform: uppercase;
    font-size: 30px;
    text-align: center;
    padding: 20px;
}

/*content*/

.content__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.content__title {
    margin-top: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.content__text {
    margin-top: 25px;
    text-indent: 15px;
    padding: 0 20px;
}

.footer {
    display: flex;
    justify-content: space-between;
    text-align: center;
    background-color: #336886;
    padding: 25px 0;
}

.footer__address, .author {
    width: 50%;
}




/*Table====
========================*/
.mtb-3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.table {
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-collapse: collapse;
}

.table th, .table td {
    text-align: center;
    padding: 10px;
}

.table th {
    background-color: #507afc;
    color: #FFFFFF;
}

.table th:nth-child(odd){
    background-color: #2196f3;
}

.table tr:nth-child(even){
    background-color: #e7e5e5;
}
.table tr{
    transition: all .3s;
}
.table tr:hover{
    background-color: #cccccc;
}
.table td:not(:last-child){
    border-right: 1px solid #cccccc;
}

.table-responsive{
    overflow-x: auto;
}


.title__table {
    text-align: center;
    text-transform: uppercase;
}



/*Books*/

.books {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 20px;
    background-color: #c9ef7e;
}

.books__title {
    text-transform: uppercase;
    font-size: 15px;
    color: #ee1f1f;
    text-align: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.books__link {
    margin-left: 20px;
}

.books__item {
    width: 33.333%;
    margin-bottom: 20px;
}

.books__item a {
    text-decoration: none;
    color: black;
    font-weight: 700;
    transition: color .2s linear;
}

.books__item a:hover {
    color: #f50000;
}


.test__item {
    margin-bottom: 20px;
}

.burger {
    display: none;
    cursor: pointer;
    background: #FFFFFF;
    border: 0;
    padding: 8px 2px;
}

.burger__item {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000000;
    font-size: 0;
    color: transparent;
    position: relative;
}

.burger__item:before, .burger__item:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #000000;
    left: 0;
    z-index: 1;
}

.burger__item:before {
    top: -6px;
}

.burger__item:after {
    bottom: -6px;
}

.test {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #c79f9f;
}

.test__title {
    text-transform: uppercase;
    font-size: 16px;
    text-decoration: underline;
    margin-bottom: 10px;
}

.test__item {
    margin-right: 15px;
}

/*Media*/

@media (max-width: 770px) {
    .header__link {
        font-size: 12px;
    }

    .intro {
        height: auto;
        padding: 35px 0;
    }

    .intro__title {
        font-size: 20px;
    }

    .nav {
        display: none;
        width: 100%;
        background-color: #fff;
        position: absolute;
        right: 0;
        top: 15%;
        flex-direction: column;
        text-align: left;
    }

    .nav.show {
        display: flex;
    }

    .header__link {
        padding: 7px 15px;
    }

    .burger {
        display: block;
    }

    .books__item {
        width: 50%;
    }


}








