body {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
}

p {
    padding: 0;
    margin: 0;
}

div {
    box-sizing: border-box;
}

h2 {
    font-size: 23px;
    line-height: 26px;
    font-weight: 500;
    margin: 4px 0 4px 15px;
    padding: 0;
    display: block;
    color: #0f0f0f;
}

h3 {
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
    margin: 4px 0 4px 15px;
    padding: 0;
    display: block;
    color: #4d4d4d;
}

h4 {
    font-size: 25px;
    line-height: 25px;
    font-weight: 500;
    margin: 4px 0 4px 15px;
    padding: 0;
    display: block;
    color: #41ad49;
    font-weight: 500;
}

.clear {
    clear: both;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
}

.container_green {
    width: 100%;
    margin: 0 auto;
    /*height: 53px;*/
    background: #41ad49;
    text-align: center;
}

.container_books {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 42px;
    background: #e6e6e6;
}

.books_body {
    max-width: 1050px;
    margin: 0 auto 42px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    width: 214px;
    margin-left: 25px;
}

.header_text {
    float: right;
    margin: 70px 35px 0 0;
    font-size: 21px;
    line-height: 29px;
    color: #1a1a1a;
}

.header_email {
    float: right;
    font-size: 21px;
    line-height: 29px;
    color: #1a1a1a;
    text-decoration: none;
}

.header_email a {
    text-decoration: none;
    color: #1a1a1a;
}

.code_text {
    font-size: 27px;
    font-weight: 500;
    line-height: 53px;
    color: #fff;
}

.button_back {
    height: 45px;
    width: 120px;
    border-radius: 30px;
    border: none;
    font-size: 21px;
    line-height: 45px;
    color: #262626;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

a.button_back:hover {
    background: #d2d2d2;
    transition: background 0.5s;
}

.button_back img {
    margin: 0 7px -1px 0;
}

.books_button {
    display: inline-block;
    position: absolute;
    left: 0;
}

.books_title {
    text-align: center;
    font-size: 62px;
    color: #1f1f1f;
    max-width: 800px;
}

.books_items {
    max-width: 1050px;
    margin: 0 auto;
    background: #e6e6e6;
}

.items_block {
    width: 305px;
}

.item_right, .item_left {
    max-width: 500px;
    width: 100%;
    height: 425px;
    background: #fff;
    padding: 30px 20px 30px 25px;
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 30px;
}
.item_left {
    float: left;
}

.item_right {
    float: right;
}

.item_left.audio, .item_right.audio {
    height: 330px;
}

.items_pic {
    width: 150px;
}

.books_text {
    border-left: 2px solid #41ad49;
    margin: 8px 0 8px 15px;
    padding-left: 8px;
    font-size: 15px;
    line-height: 19px;
    color: #646464;
    font-weight: 500px;
    font-style: italic;
}

.books_link {
    margin: 6px 0 4px 31px;
    font-size: 16px;
    color: #41ad49;
    font-weight: 400;
}

.items_button {
    display: block;
    padding-left: 10px;
    padding-right: 10px;
    height: 35px;
    border-radius: 6px;
    background: #008bfe;
    font-size: 21px;
    line-height: 35px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    margin-left: auto;
    margin-top: 10px;
    width: fit-content;
}
.items_button small{
    font-size: 10pt;
}

.else_button {
    display: block;
    margin: 40px auto 28px auto;
    width: 328px;
    height: 65px;
    background: #41ad49;
    text-decoration: none;
    font-size: 33px;
    line-height: 65px;
    color: #ffffff;
    text-align: center;
}

.container_gray {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    height: 142px;
    background: #3b3b3b;
    text-align: center;
    font-size: 20px;
    line-height: 27px;
    font-weight: 300;
    color: #ffffff;
}

footer {
    width: 100%;
    background: #3b3b3b;
}

@media only screen and (max-device-width: 1081px), only screen and (max-width: 1081px) {
    .logo {
        display: block;
        margin: 0 auto;
    }

    .br {
        display: none;
    }

    .header_text {
        float: none;
        display: block;
        text-align: center;
        margin: 10px auto 20px auto;
    }

    .header_email {
        float: none;
        text-align: center;
        margin: 30px auto;
    }

    .books_title {
        font-size: 42px;
    }

    .item_left, .item_right {
        float: none;
        margin: 0 auto 30px auto;
        height: auto;
    }

    .else_button {
        margin: 40px auto 0 auto;
    }
}

@media only screen and (max-device-width: 712px), only screen and (max-width: 712px) {
    .header_text, .header_email {
        font-size: 18px;
    }

    .button_back {
        background: #d2d2d2;
    }

    .code_text {
        font-size: 24px;
    }

    .books_title {
        font-size: 30px;
    }

    .books_body {
        height: 90px;
        flex-direction: column;
        justify-content: space-between;
        max-width: 500px;
    }

    .books_button {
        position: relative;
        align-self: flex-start;
    }

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

@media only screen and (max-device-width: 500px), only screen and (max-width: 500px) {
    .header_text, .header_email {
        font-size: 20px;
    }

    .code_text {
        font-size: 24px;
    }

    .container_books {
        padding-top: 32px;
    }

    .books_title {
        font-size: 34px;
    }

    .books_body {
        margin-bottom: 22px;
    }

    .books_button {
        top: -10px;
    }

    .books_text {
        font-size: 16px;
    }
    .books_link {
        margin-left: 25px;
    }

    .container_gray {
        font-size: 16px;
    }
    .item_left, .item_right {
        flex-direction: column;
        height: auto !important;
    }
    .items_pic {
        margin: 0 auto 15px;
    }
    .items_block {
        width: auto;
    }
    .body__text-block {
        width: auto;
        padding-right: 15px;
    }
}

@media only screen and (max-device-width: 320px), only screen and (max-width: 320px) {
    .code_text {
        font-size: 24px;
        line-height: 32px;
    }

    .item_left, .item_right {
        width: 100%;
        height: 550px;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px 10px 20px 0;
    }

    .items_pic {
        display: block;
        margin: 0 auto;
        width: 150px;
    }

    .items_block {
        width: 100%;
        display: block;
    }

    .items_button {
        bottom: 15px;
        right: 10px;
    }

    .else_button {
        width: 310px;
    }

    .books_text {
        font-size: 18px;
    }

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

.popup-background__annotations-popup, .popup-background_your-promocode, .popup-background__download-popup, .popup-background__already-downloaded__popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    text-align: center;
    overflow: auto;
    z-index: 10000;

}

.popup-background__annotations-popup::after, .popup-background_your-promocode::after, .popup-background__download-popup::after, .popup-background__already-downloaded__popup::after {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    content: '';

}

.already-downloaded__popup, .download-popup, .your-promocode {
    max-width: 650px;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    vertical-align: middle;
    border-radius: 4px;
    display: inline-block;
}

.popup__book-img {
    display: block;
    margin: 9px auto 0 auto;
}

.popup__text {
    font-size: 20px;
    padding: 22px 70px 0 70px;
}

.popup__choose-book {
    display: block;
    margin: 26px auto 40px auto;
    padding: 8px 15px;
    background-color: #41ad49;
    width: 160px;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 19px;
}

.popup__close-button {
    width: 25px;
    height: 25px;
    color: #fff;
    border: 0;
    cursor: pointer;
    margin: 20px 20px 0 auto;
    display: block;
    background-color: #ffffff;
    background-image: url(../img/cancel.png);
    background-size: 25px 25px;
}

.download-popup__choose-book {
    padding: 9px 48px;
    background-color: #008bfe;
    border-radius: 4px;
    color: #ffffff;
    display: inline-block;
    margin: 27px auto 40px auto;
    font-size: 19px;
    text-decoration: none;
}

.download-popup__choose-another {
    color: #41ad49;
    font-size: 19px;
    padding: 7px;
    background-color: #ffffff;
    border: 2px solid #41ad49;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    margin-left: 19px;
}

.popup__text-bold {
    font-weight: 500;
}

.annotations-popup {
    max-width: 880px;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    vertical-align: middle;
    border-radius: 4px;
    display: inline-block;
}

.annotations-popup__body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.image-block__book-img {
    width: 175px;
    display: block;
    margin-right: 35px;
}

.body__text-block {
    width: 565px;
    text-align: left;
    margin-top: 14px;
}

.body__title-text {
    display: inline-block;
}

.body__title-pic {
    width: 14px;
    padding-left: 7px;
    padding-bottom: 3px;
}

.books_text-mod {
    margin-bottom: 50px;
}

.body__image-block {
    display: flex;
}
.image-block__wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.image-block__button {
    display: inline-block;
    padding: 9px 20px;
    background-color: #008bfe;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
}

.image-block__button + .image-block__button {
    margin-top: 7px;
}

.image-block__button small{
    font-size: 10pt;
}

.your-promocode__title {
    font-size: 40px;
    display: block;
    margin-top: 28px;
}

.your-promocode__code {
    font-size: 50px;
    font-weight: 500;
    display: block;
    margin-top: 21px;
    padding: 30px 0;
    background-color: #41ad49;
    color: #ffffff;
}

.your-promocode__text {
    font-size: 23px;
    padding: 34px 60px 20px 60px;
}

.your-promocode__button {
    padding: 9px 16px;
    background-color: #008bfe;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 19px;
    font-weight: 500;

}

.check-all-books-button {
    display: block;
    margin: 40px auto 0 auto;
    width: 402px;
    height: 65px;
    background-color: #41ad49;
    text-decoration: none;
    font-size: 33px;
    line-height: 65px;
    color: #ffffff;
    text-align: center;
}

.books-category {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 101px;
    flex-wrap: wrap;
    max-width: 1050px;
    margin: 0 auto;
}

.category-pic {
    width: 295px;
    display: block;
    margin-bottom: 24px;
}

.books-category__block {
    text-align: center;
    margin: 23px 23px 50px 23px;
}

.category-name {
    font-size: 25px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    max-width: 270px;
    text-transform: uppercase;
}

.book__library {
    background-color: #e6e6e6;
    padding-bottom: 100px;
}

.category-name__block {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 700px) {
    .already-downloaded__popup, .download-popup, .your-promocode {
        max-width: 450px;
    }

    .your-promocode__title {
        font-size: 30px;
    }

    .your-promocode__code {
        font-size: 40px;
        padding: 20px 0;
    }

    .your-promocode__text {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .already-downloaded__popup, .download-popup, .your-promocode {
        max-width: 320px;
    }

    .popup__text {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 16px;
    }

    .download-popup__choose-another {
        margin-left: 10px;
    }

    .your-promocode__title {
        font-size: 24px;
    }

    .your-promocode__code {
        font-size: 30px;
        padding: 10px 0;
    }

    .your-promocode__text {
        font-size: 20px;
        padding: 15px 40px 15px 40px;
    }
    .promocode__input {
        max-width: 260px;
    }
}

@media (max-width: 940px) {
    .annotations-popup {
        max-width: 600px;
    }

    .image-block__book-img {
        display: inline-block;
        margin-bottom: 40px;
    }

    .body__image-block {
        align-items: center;
        justify-content: center;
    }

    .books_text-mod {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .body__text-block {
        order: -2;
        width: auto;
        padding-right: 15px;
    }
}

@media (max-width: 650px) {
    .annotations-popup {
        max-width: 320px;
        padding-bottom: 30px;
    }

    .image-block__wrap {
        margin-top: 14px;
        min-width: 175px;
    }

    .books_text-mod {
        font-size: 13px;
    }

    .body__image-block {
        flex-wrap: wrap;
    }

    .image-block__book-img {
        margin: 0;
    }

    .check-all-books-button {
        font-size: 20px;
        width: 270px;
        height: 60px;
    }

}

@media (max-width: 700px) {
    .category-pic {
        width: 200px;
    }

    .category-name {
        font-size: 19px;
    }

    .category-name__block {
        min-height: 70px;
    }

    .books-category {
        padding-top: 30px;
    }

    .books-category__block {
        margin: 23px;
        max-width: 200px;
    }
}

.popup-background__annotations-popup, .popup-background_your-promocode, .popup-background__download-popup, .popup-background__already-downloaded__popup {
    display: none;
}

.modal-window, .modal-window *, .modal-window :after, .modal-window :before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    background: -o-radial-gradient(center,circle,rgba(0,0,0,.4) 0,rgba(0,0,0,.7) 100%);
    background: radial-gradient(circle at center,rgba(0,0,0,.4) 0,rgba(0,0,0,.7) 100%);
    overflow-y: auto;
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
    z-index: 1;
}

.modal-window__container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.modal-window__overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    backdrop-filter: blur(6px);
}
.modal-window__content {
    display: block;
    max-width: 320px;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    background-color: #fff;
}

.promocode__title {
    font: 600 24px/120% "Roboto",sans-serif;
    color: #333;
    text-align: center;
    margin: 0 0 20px;
}

.promocode__form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.promocode__input {
    border-radius: 16px;
    background-color: #f2f2f2;
    padding: 0 15px;
    height: 32px;
    font: 16px/30px "Roboto", sans-serif;
    border: 1px solid #ddd;
    margin: 0 0 14px;
    width: 100%;
    outline: none !important;
}
.promocode__submit {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 142px;
    height: 32px;
    cursor: pointer;
    text-align: center;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
    border: 0;
    border-radius: 16px;
    outline: 0;
    -webkit-box-shadow: 0 0 0 rgb(33 150 83 / 45%), 0 0 0 rgb(0 0 0 / 25%) inset;
    box-shadow: 0 0 0 rgb(33 150 83 / 45%), 0 0 0 rgb(0 0 0 / 25%) inset;
    line-height: 32px;
    padding-left: 20px;
    padding-right: 20px;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    background: #6fcf97;
    background: -webkit-gradient(linear,left top,left bottom,from(#6fcf97),to(#27ae60));
    background: -o-linear-gradient(top,#6fcf97 0,#27ae60 100%);
    background: linear-gradient(180deg,#6fcf97 0,#27ae60 100%);
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    font-size: 12px;
}