@media only screen and (max-width: 1700px) {
    .similar-book__card a {
        height: 230px;
    }
    .book-detail_cover {
        padding: 55px 0 51px 365px;
    }
    .book-detail_cover__img {
        width: 275px;
    }
    .hide-sidebar .book-detail_description {
        padding-left: 375px;
        flex-direction: column;
    }
    #main-container:not(.hide-sidebar) .book-detail_description {
        flex-direction: column;
    }
    .book-detail_description__right {
        width: 100%;
    }
    #main-container:not(.hide-sidebar) .authors_card_books .similar-book__card {
        width: calc(33.3333333333% - 20px);
    }
    #main-container:not(.hide-sidebar) .authors_card_books .similar-book__card:nth-child(n+4) {
        display: none;
    }
    .hide-sidebar .authors_card_books .similar-book__card:nth-child(n+6) {
        display: none;
    }
    .hide-sidebar .authors_card_books .similar-book__card {
        width: calc(20% - 22px);
    }
    /*hide-sidebar*/
}
@media only screen and (max-width: 1500px) {
    .similar-book__card a {
        height: 206px;
    }
    .hide-sidebar .book-detail_cover {
        padding: 55px 0 55px 335px;
    }
    #main-container:not(.hide-sidebar) .book-detail_cover {
        padding: 55px;
    }
    #main-container:not(.hide-sidebar) .book-detail_cover__img {
        position: static;
        width: 100%;
        align-items: center;
        margin-top: 27px;
    }
    .hide-sidebar .book-detail_cover__img {
        width: 275px;
        left: 20px;
        top: 20px;
    }
}
@media only screen and (max-width: 1300px) {
    .main_title {
        font-size: 26px;
        line-height: 26px;
    }
    .book-item_rating_icon {
        font-size: 26px;
        line-height: 31px;
    }
    #main-container:not(.hide-sidebar) .main-sidebar {
        padding: 20px 10px;
        width: 260px;
    }
    .main-content {
        width: calc(100% - 330px);
    }
    #main-container:not(.hide-sidebar) .authors_card_books .similar-book__card {
        width: calc(33% - 20px);
    }
    #main-container:not(.hide-sidebar) .authors_card_books .similar-book__card:nth-child(n+4) {
        display: none;
    }
    .hide-sidebar .authors_card_books .similar-book__card:nth-child(n+5) {
        display: none;
    }
    .hide-sidebar .authors_card_books .similar-book__card {
        width: calc(25% - 20px);
    }
    #main-container:not(.hide-sidebar) .authors_card_books .similar-book__card a {
        height: 145px;
    }
    .authors_card {
        gap: 60px;
    }
}
@media only screen and (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    .header_auth .btn_auth {
        padding: 0 15px;
    }
    .header_auth .btn_auth span span {
        display: none;
    }
    .main-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0;
        z-index: 999;
    }
    .main-sidebar_close {
        display: block;
        position: absolute;
        top: 20px;
        right: 15px;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        z-index: 2;
    }
    .main-content {
        width: 100%;
    }
    .footer_info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer_copy {
        flex-direction: column;
        gap: 10px;
    }
    #main-container .book-detail_cover__img {
        position: static;
        width: 100%;
        align-items: center;
        margin-top: 27px;
    }
    #main-container:not(.hide-sidebar) .book-detail_cover, 
    .hide-sidebar .book-detail_cover {
        padding: 30px;
        margin-bottom: 60px;
    }
    .book-detail_cover .main_title {
        font-size: 26px;
    }
    .book-detail_btn-need-auth__wrap span {
        display: none;
    }
    .book-detail_btn-need-auth__wrap,
    .book-detail_btn-need-auth__wrap .btn_white {
        margin-top: 0;
        margin-right: 0;
    }
    .book-detail_btn-need-auth__wrap .btn_white {
        width: 50px;
        height: 50px;
        padding: 0;
    }
    .book-detail_cover__img img {
        max-width: 100%;
    }
    .authors_card {
        gap: 30px;
        flex-direction: column;
    }
    .authors_card_title {
        flex-direction: row;
        width: 100%;
    }
    #main-container .authors_card_books .similar-book__card:nth-child(n+5) {
        display: none;
    }
    #main-container .authors_card_books .similar-book__card {
        width: calc(25% - 20px);
    }
    .authors_card_books .similar-book__card a {
        height: 300px;
    }
    .login_img {
        max-width: 301px;
    }
    .login_img .login_table_bg {
        display: block;
    }
    .login_img .login_desktop_bg {
        display: none;
    }
    .login_form {
        padding-left: 99px;
    }
    .login_form form {
        width: 329px;
    }
    #main-container:not(.hide-sidebar) .book-detail_description,
    .hide-sidebar .book-detail_description {
        padding-left: 0;
    }
}
@media only screen and (max-width: 768px) {
    .library-about__title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    #main-container .authors_card_books .similar-book__card:nth-child(n+4) {
        display: none;
    }
    #main-container .authors_card_books .similar-book__card {
        width: calc(33.3333333333% - 13px);
    }
    .authors_card_books {
        gap: 20px;
    }
    .categories_lists {
        flex-direction: column;
    }
    .categories_list {
        width: 100%;
    }
    .login {
        flex-direction: column;
        gap: 68px;
    }
    .login_img {
        max-width: 100%;
        height: 160px;
    }
    .login_img .login_logo {
        width: 89px;
    }
    .login_img .login_table_bg {
        display: none;
    }
    .login_img .login_mobile_bg {
        display: block;
    }
    .login_form {
        padding-left: 0;
    }
    .login_form .login_form_in {
        width: 100%;
        padding: 0 75px 0 75px;
    }
    .login_form form {
        width: 100%;
    }
}
@media only screen and (max-width: 700px) {
    .mb_search-button {
        display: block;
    }
    .mb_search-button .search_btn {
        height: 40px;
        width: 40px;
    }
    .header_search .header_search-wrap {
        display: none;
    }
    .header_auth .btn_auth {
        height: 40px;
        padding: 0 10px;
    }
    .header_search.active_mb .header_search-wrap {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        padding: 30px;
    }
    .header_search.active_mb button {
        right: 32px;
    }
    .header_search.active_mb .mb_search-button {
        display: none;
    }
    .similar-book__card a {
        height: 195px;
    }
    .similar-book__card h4, .similar-book__card p {
        font-size: 12px;
    }
    .book-swp {
        position: relative;
        padding-bottom: 70px;
    }
    .book-swp__head_right a {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
    }
}
@media only screen and (max-width: 650px) {
    .container {
        padding: 0 10px;
    }
    .book-items {
        margin: 40px 0 50px 0;
    }
    .book-item {
        padding: 10px;
        gap: 20px;
    }
    .book-item_title {
        font-size: 16px;
        line-height: 19px;
    }
    .book-item_text {
        display: none;
    }
    .book-item_img img {
        width: 110px;
    }
    .book-item_btns {
        gap: 10px;
    }
    .book-item_btns .btn_white span {
        display: none;
    }
    .book-item_btns .btn_white {
        width: 50px;
    }
    .book-item_rating_icon {
        width: auto;
        font-size: 20px;
        line-height: 24px;
    }
    .book-item_rating span {
        font-size: 10px;
        line-height: 12px;
    }
    .book-item_rating_icon svg {
        transform: translateY(-3px);
        width: 20px;
        height: 20px;
    }
    .book-item_title,
    .book-item_author {
        padding-right: 65px;
    }
    .similar-book__card_review_rating {
        font-size: 12px;
    }
    .similar-book__card_review_count {
        font-size: 10px;
    }
    .authors_alphabet {
        margin: 30px 0 40px 0;
    }
    .authors_alphabet {
        margin: 30px 0 40px 0;
    }
    .authors_card_title {
        justify-content: space-between;
    }

    .privacy-consent {
        flex-direction: column;
        align-items: flex-start;
    }
    .privacy-consent__button {
        width: 100%;
    }
}
@media only screen and (max-width: 550px) {
    .header_start {
        gap: 15px;
    }
    .header_auth .btn_auth span {
        display: none;
    }
    .header_logo a {
        font-size: 16px;
    }
    .header_end {
        gap: 5px;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .authors_card_books .similar-book__card a {
        height: 235px;
    }
}
@media only screen and (max-width: 450px) {
    .book-swp .similar-book__card a {
        height: 235px;
    }
    .book-item {
        gap: 15px;
    }
    .book-item_content {
        gap: 15px;
    }
    .book-item_img img {
        width: 95px;
    }
    .book-item_btns .btn_green {
        width: 130px;
    }
    .review_form,
    .reviews {
        padding: 20px;
    }
    .review_form .star_group .star_group-item {
        width: 30px;
        height: 30px;
    }
    .review_form .star_group .star_group-item svg {
        width: 30px;
    }
    .book-page__content_head .zoom {
        gap: 0px;
    }
    .book-page__content_head .zoom .pin {
        margin-left: 5px;
    }
    .book-page__content_text img {
        max-width: 100%;
    }
    .book-item_rating_icon {
        font-size: 18px;
    }
    .book-item_rating_icon svg {
        transform: translateY(-2px);
        width: 18px;
        height: 18px;
    }
    .book-item_title,
    .book-item_author {
        padding-right: 50px;
    }
    .authors_card_title {
        justify-content: space-between;
        gap: 10px;
    }
    .authors_card_title .title_text_name {
        font-size: 18px;
        line-height: 21px;
    }
    #main-container .authors_card_books .similar-book__card:nth-child(n+3) {
        display: none;
    }
    #main-container .authors_card_books .similar-book__card {
        width: calc(50% - 10px);
    }
    .authors_card_books .similar-book__card a {
        height: 280px;
    }

    .categories_lists {
        margin: 40px 0 50px 0;
        gap: 30px;
    }
    .categories_list {
        gap: 30px;
    }
    .categories_block .book_link {
        font-size: 14px;
        line-height: 19px;
    }

    .login {
        flex-direction: column;
        gap: 64px;
    }
    .login_img {
        height: 110px;
    }
    .login_img .login_logo {
        width: 67px;
    }
    .login_form .login_form_in {
        padding: 0 10px;
    }
    .login_form h6 {
        margin: 15px 0;
        font-size: 24px;
        line-height: 24px;
    }
    .login_form .form_btns {
        transform: translateY(-5px);
        margin-top: 0;
    }
}