/*base*/
* {
    box-sizing: border-box;
    margin: 0;
}
:root {
    --main-color: #11844d;
    --main-color-hover: #1e6c47;
    --main-font: Onest, sans-serif;
    --bg-color-gray: #F4F5FA;
    --footer-color-gray: #C9CADC;
}
body {
    font-family: var(--main-font);
    margin: 0;
    scroll-behavior: smooth;
}
.main-color {
    color: var(--main-color);
}
.main-bg {
    background-color: var(--main-color);
}
.container {
    max-width: 1920px;
    padding: 0 160px;
    margin: 0 auto;
}
input, button {
    outline: none;
}
.main-content {
    width: calc(100% - 370px);
}
.hide-sidebar .main-content {
    width: 100%;
}

/*header*/
#header {
    padding: 30px 0;
}
.header_container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.header_switch-bar {
    width: 50px;
    height: 50px;
    background-color: var(--bg-color-gray);
    cursor: pointer;
    border-radius: 5px;
}
.switch-open {
    display: none;
}
.header_start {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header_logo a {
    color: #000;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
}
.header_logo img {
    vertical-align: middle;
}
.header_search {
    position: relative;
    width: 100%;
}
.header_search input {
    border: 1px solid var(--footer-color-gray);
    padding: 0 0 0 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 100%;
    height: 50px;
    width: 100%;
}
.header_search button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--main-color);
    transition: 0.3s ease all;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}
.header_search button:hover {
    background-color: var(--main-color-hover);
}
.header_end {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}
.mb_search-button {
    display: none;
}
.btn_auth {
    padding: 0 30px;
    transition: 0.3s ease all;
    display: flex;
    line-height: 14px;
    color: #000000;
    border-radius: 10px;
    border: 1px solid var(--footer-color-gray);
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    height: 50px;
}
.btn_auth:hover {
    color: #fff;
    background-color: var(--main-color);
}
.btn_auth > span {
    white-space: nowrap;
}
.btn_auth:hover svg path {
    fill: #fff;
}

/*footer*/
#footer {
    background-color: #000;
}
.footer_top {
    height: 100px;
    width: 100%;
    border-radius: 0 0 100px 100px;
    background-color: #fff;
}
.footer_info {
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
}
.footer_info .header_logo a {
    color: #fff;
}
.footer_info-text {
    margin-top: 30px;
}
.footer_info-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--footer-color-gray);
    margin-bottom: 10px;
    margin-top: 0;
    max-width: 570px;
}

.footer_social {
    padding: 20px;
    border-radius: 15px;
    background: #6A6773;
}
.footer_social-title {
    color: var(--footer-color-gray);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}
.footer_social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}
.footer_social-icons a {
    background: var(--footer-color-gray);
    border-radius: 50%;
    display: inline-block;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.footer_copy {
    padding: 20px 40px;
    border-radius: 30px 30px 0 0;
    background: #6A6773;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--footer-color-gray);
}
.footer_copy .footer_copy-link a {
    color: var(--footer-color-gray);
}
.footer_social-email a {
    color: var(--footer-color-gray);
    text-decoration: none;
}
.footer_social-email a:hover {
    text-decoration: underline;
}
/*main*/
.main-container {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}
/*sidebar*/
.main-sidebar {
    background-color: var(--bg-color-gray);
    border-radius: 20px;
    padding: 20px;
    width: 300px;
}
.main-sidebar_content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-sidebar_item {
    padding: 0 10px;
}
.main-sidebar_item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
}
.main-sidebar_item-link svg {
    width: 20px;
}
.main-sidebar_item-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 10px 0;
    padding: 0 10px;
}
.main-sidebar_item-accordion-btn > span {
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-sidebar_item-accordion-btn > span svg {
    width: 20px;
}
.main-sidebar_item-accordion {
    background-color: #ffffff;
    border-radius: 20px;
}
.main-sidebar_item-accordion-body {
    max-height: 400px;
    overflow-y: scroll;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.main-sidebar_item-accordion-body::-webkit-scrollbar {
    width: 4px;
}
.main-sidebar_item-accordion-body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--footer-color-gray);
}
.main-sidebar_item-accordion-body a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
}
.main-sidebar_item-accordion-body a:hover {
    text-decoration: underline;
    font-weight: bold;
}
.main-sidebar_item-accordion.hide {
    background-color: unset;
}
.main-sidebar_item-accordion.hide .main-sidebar_item-accordion-btn > svg {
    transform: rotateZ(180deg);
}
#main-container.hide-sidebar .main-sidebar,
.header_switch-bar.hide .switch-close,
.main-sidebar_item-accordion.hide .main-sidebar_item-accordion-body {
    display: none;
}
.header_switch-bar.hide .switch-open {
    display: inline;
}
.main-sidebar_close {
    display: none;
}

/*background*/
.black_bg {
    display: none;
}
.black_bg.active {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 998;
    background-color: rgba(0, 0, 0, 0.7);
}

/* слайдер книг*/
.book-swp {
    margin-bottom: 70px;
}
.book-swp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.main_title {
    font-size: 30px;
    font-weight: 500;
    line-height: 30px;
    color: #000000;
}
.book-swp__head_right {
    display: flex;
    align-items: center;
}
.book-swp__head_right a {
    height: 40px;
    width: auto;
    padding: 0 20px;
    gap: 8px;
    text-decoration: none;
}
.btn_white {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 407px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: #000000;
    border-radius: 10px;
    border: 1px solid #C9CADC;
    transition: 0.3s ease;
    text-decoration: none;
}
.book-swp__head_right button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C9CADC;
    border-radius: 10px;
    transition: 0.3s ease all;
    background-color: #fff;
    cursor: pointer;
}
.book-swp__btn_prev {
    margin: 0 20px 0 40px;
}
.book-swp__head_right button:hover {
    border-color: var(--main-color);
}
.book-swp__head_right button:hover svg path {
    stroke: var(--main-color);
}
.btn_white:hover {
    border: 1px solid transparent;
    background: var(--main-color);
    color: #ffffff;
}
a.btn_white:hover svg path {
    fill: #fff;
}
.similar-book__card a.similar-book__card_image {
    width: 100%;
    height: 253px;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}
.similar-book__card a.similar-book__card_image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.similar-book__card a.similar-book__card_no-image img {
    -o-object-fit: contain;
    object-fit: contain;
}
.similar-book__card h4 {
    font-size: 14px;
    line-height: 120%;
    font-weight: 500;
    margin-bottom: 5px;
}
.similar-book__card h4 a {
    color: #000000;
    text-decoration: none;
}
.similar-book__card p {
    color: #6A6773;
    font-size: 14px;
    line-height: 120%;
    margin-bottom: 10px;
}
.similar-book__card p a {
    color: #6A6773;
    text-decoration: none;
}
.similar-book__card_review {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 3px;
}
.similar-book__card_review_rating {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}
.similar-book__card_review_count {
    font-size: 12px;
    color: #6A6773;
}
/* слайдер жанров */
.popular-genres__card a {
    height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #F4F5FA;
    border-radius: 15px;
    padding: 15px;
    text-decoration: none;
}
.popular-genres__card h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
    color: #000;
}
.popular-genres__card p {
    font-size: 12px;
    line-height: 120%;
    color: #6A6773;
}
/* контент на главной */
.library-about__title {
    font-size: 30px;
    font-weight: 500;
    line-height: 30px;
    color: #000000;
    margin-bottom: 30px;
}
.library-about__content {
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}
.library-about__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
}
.library-about__content p {
    margin-top: 0;
    margin-bottom: 12px;
}
.library-about__toggle {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: none;
    background: none;
    color: var(--main-color);
    font-size: 14px;
    padding: 6px 10px;
    cursor: pointer;
}
.library-about__toggle-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--main-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.library-about__content--expanded {
    max-height: none;
}
.library-about__content--expanded::after {
    display: none;
}

/* список книг */
.book-items {
    margin: 60px 0 50px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.book-item {
    border: 1px solid #C9CADC;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: start;
    gap: 30px;
    position: relative;
}
.book-item_content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.book-item_img img {
    width: 175px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 15px;
}
.book-item_title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    margin-bottom: 5px;
    padding-right: 80px;
}
.book-item_title a {
    color: #000;
    text-decoration: none;
}
.book-item_author {
    font-size: 14px;
    line-height: 15px;
    color: #6A6773;
}
.book-item_author a {
    color: #6A6773;
    text-decoration: none;
}
.book-item_genres {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.book-item_text {
    font-size: 14px;
    line-height: 18px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-item .more_link {
    font-size: 14px;
    line-height: 15px;
    color: #6A6773;
    text-decoration: none;
}
.book-item_btns {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}
.book-item_btns a {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn_green {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 405px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: #fff;
    border-radius: 10px;
    background: var(--main-color);
    transition: 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn_green:hover {
    background: var(--main-color-hover);
}
.book-item_rating_icon {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    color: #000;
}
.book-item_rating span {
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #6A6773;
}
.book-item_rating {
    position: absolute;
    top: 10px;
    right: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: right;
}

/* pagination */
.pagination {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pagination a {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #C9CADC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
    color: #000;
}
.pagination a span {
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}
.pagination a:hover,
.pagination a.active {
    border: transparent;
    background-color: var(--main-color);
    color: #fff;
}
.pagination a.next_icon:hover,
.pagination a.prev_icon:hover {
    background-color: #fff;
    border: 1px solid #6A6773;
    color: #000;
}
.pagination a.next_icon:hover svg path,
.pagination a.prev_icon:hover svg path {
    stroke: var(--main-color);
}

/* детальная книги */
.book-detail_cover {
    padding: 55px 0 51px 388px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    margin-top: 10px;
}
.book-detail_cover__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4A5768, #6F8093);
    z-index: -1;
    border-radius: 30px;
}
.book-detail_cover .main_title {
    color: #fff;
    margin-bottom: 10px;
}
.book-detail_author-list {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.book-detail_author-list a {
    font-size: 14px;
    line-height: 140%;
    color: #C9CADC;
    text-decoration: none;
}
.book-detail_pages {
    font-size: 14px;
    line-height: 140%;
    color: #C9CADC;
    margin-bottom: 10px;
}
.book-detail_genre-list {
    display: flex;
    align-items: center;
    gap: 15px;
}
.book-detail_genre {
    padding: 7px 10px;
    color: #F4F5FA;
    font-size: 14px;
    line-height: 140%;
    font-weight: 500;
    background: #39475A;
    border-radius: 30px;
    text-decoration: none;
}
.book-detail_cover__img {
    position: absolute;
    left: 40px;
    top: 40px;
    width: 288px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.book-detail_cover__img img {
    border-radius: 10px;
}
.book-detail_cover .btn_white {
    float: right;
    padding: 0px 30px;
    gap: 8px;
    width: auto;
    margin-right: 20px;
    margin-top: -15px;
    color: #fff;
}
.book-detail_btn-need-auth__wrap {
    position: relative;
}
.book-detail_description {
    padding-left: 388px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 60px;
    flex-direction: column;
}
.book-detail_description__left {
    width: 100%;
}
.book-detail_description__right {
    width: 345px;
    flex-shrink: 0;
}
.book-detail_description__left h2 {
    font-size: 20px;
    line-height: 120%;
    font-weight: 500;
    margin-bottom: 10px;
}
.book-detail_description-text {
    font-size: 14px;
    line-height: 140%;
    color: #6A6773;
}
.book-detail_reviews-head {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.book-detail_reviews-info {
    font-size: 30px;
    line-height: 140%;
    font-weight: 500;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}
.book-detail_reviews-info span {
    font-size: 12px;
    line-height: 120%;
    color: #6A6773;
    margin-bottom: 8px;
}
.book-detail_reviews-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.book-detail_reviews-rating__item {
    display: flex;
    align-items: center;
    gap: 13px;
}
.book-detail_reviews-rating__item span {
    color: #6A6773;
    font-size: 14px;
    line-height: 140%;
    width: 10px;
    flex-shrink: 0;
}
.book-detail_reviews-rating__item .line_wrap {
    width: 100%;
    position: relative;
    height: 9px;
    background: #F4F5FA;
    border-radius: 10px;
}
.book-detail_reviews-rating__item .line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #F5A623;
    border-radius: 10px;
}
/* форма отзывов */
.review_form {
    background: #F4F5FA;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}
.review_form .line {
    height: 1px;
    width: 100%;
    background: #EBEBEB;
}
.review_form__subtitle {
    font-size: 16px;
    line-height: 100%;
    font-weight: 500;
    color: #6A6773;
}
.review_form .star {
    display: flex;
    align-items: center;
    gap: 20px;
}
.review_form .star p {
    font-size: 20px;
    line-height: 120%;
    font-weight: 500;
    color: black;
}
.star_group-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.star_group {
    display: flex;
    align-items: center;
    gap: 5px;
}
.star_group .active svg path {
    fill: #F5A623;
}
.review_form .form_control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.review_form .form_control label {
    font-size: 14px;
    line-height: 140%;
    color: #6A6773;
}
.form_inp {
    background: #fff;
    border: 1px solid #C9CADC;
    width: 100%;
    border-radius: 10px;
    outline: none;
    padding: 15px 15px 16px;
    font-size: 16px;
    line-height: 120%;
    color: black;
    transition: 0.3s ease all;
    resize: none;
}
.review_form__submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.review_form__submit .btn_green {
    width: auto;
    padding: 0 30px;
}
button {
    border: none;
    cursor: pointer;
    background: transparent;
    outline: 0;
}
.review_form .error {
    color: #F43E2D;
    font-weight: bold;
    font-size: 14px;
}
.review_form .success {
    color: var(--main-color);
    font-size: 18px;
    font-weight: bold;
}

/* список отзывов */
.reviews {
    background: #F4F5FA;
    border-radius: 20px;
    padding: 30px;
    max-width: 760px;
    margin: 0 auto 60px auto;
}
.reviews .main_title {
    margin-bottom: 20px;
}
.reviews__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.reviews__list_item {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
}
.reviews__list .item_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}
.reviews__list .item_user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reviews__list .item_user .letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4867F6;
    font-size: 20px;
    line-height: 110%;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}
.reviews__list .item_user .review-name {
    font-size: 14px;
    line-height: 110%;
    margin-bottom: 5px;
}
.reviews__list .item_user p {
    font-size: 12px;
    line-height: 110%;
    color: #6A6773;
}
.reviews__list .degree {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 24px;
    line-height: 120%;
    font-weight: 500;
}
.reviews__list .item_content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reviews__list .item_content p {
    font-size: 14px;
    line-height: 140%;
}
.review_form .form_control textarea {
    height: 144px;
}

/* всплывашка для неавторизованных */
.need_auth_hint {
    font-weight: 400;
    line-height: 1.5em;
    transform: translate(-100%, -50%);
    transition: opacity .2s;
    position: absolute;
    background-color: #F4F5FA;
    bottom: 20px;
    left: 75%;
    height: 60px;
    width: max-content;
    color: #000000;
    border-radius: 6px;
    padding: 15px;
    font-size: 12px;
    top: 50%;
    display: none;
  
}
.need_auth_hint>span {
    color: #0423B6 !important;
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* reader */
.book-page__content {
    background: white;
    border-radius: 20px;
    padding: 10px 20px 20px;
    margin-bottom: 20px;
    border: 1px solid #DBDBDB;
}
.book-page__content.grey-theme {
    background: #DDD7CA;
}
.book-page__content.light-theme {
    background: #F6F6F6;
}
.book-page__content.dark-theme {
    background: #1D211F;
}
.book-page__content.dark-theme .book-page__content_head .theme p,
.book-page__content.dark-theme .book-page__content_head .theme h2,
.book-page__content.dark-theme .book-page__content_head .theme h3,
.book-page__content.dark-theme .book-page__content_head .theme h4 {
    color: #fff;
}
.book-page__content.dark-theme .book-page__content_text p,
.book-page__content.dark-theme .book-page__content_text h2,
.book-page__content.dark-theme .book-page__content_text h3,
.book-page__content.dark-theme .book-page__content_text h4 {
        color: #fff;
}
.book-page__content_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #DBDBDB;
}
.book-page__content_head .theme {
    display: flex;
    align-items: center;
    gap: 10px;
}
.book-page__content_head .theme p {
    font-size: 14px;
    line-height: 110%;
    font-weight: 500;
    color: #1D211F;
    padding-right: 11px;
    flex-shrink: 0;
}
.book-page__content_head .theme button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #DBDBDB;
    flex-shrink: 0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-page__content_head .theme button svg {
    width: 10px;
    display: none;
}
.book-page__content_head .theme button.grey {
    background: #DDD7CA;
}
.book-page__content_head .theme button.light {
    background: #F6F6F6;
}
.book-page__content_head .theme button.dark {
    background: #1D211F;
}
.book-page__content_head .theme button.dark svg path {
    fill: #fff;
}
.book-page__content_head .theme button.active {
    border-color: #A3D95D;
}
.book-page__content_head .theme button.active svg {
    display: block;
}
.book-page__content_head .zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.book-page__content_head .zoom button {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-page__content_head .zoom .pin {
    margin-left: 20px;
}
.book-page__content_text {
    padding-top: 10px;
}
.book-page__content_text p {
    font-size: 16px;
    line-height: 140%;
    color: #1D211F;
}
.book-page__content_text * {
    margin-bottom: 10px;
}
.book-page__content_text img {
    width: auto;
    max-width: 320px;
    display: block;
}
.book-page__content_pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}
.book-page__content_pagination .pagination_left {
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}
.book-page__content_pagination .pagination_left p {
    font-size: 14px;
    line-height: 110%;
    color: #7B8781;
}
.book-page__content_pagination .pagination_left__btn {
    border: 1px solid #DBDBDB;
    background: #fff;
    padding: 4px 4px 4px 45px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    position: relative;
}
.book-page__content_pagination .pagination_left__btn input {
    color: #6A6773;
    font-size: 16px;
    line-height: 120%;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 4px 40px 4px 10px;
    border: 0;
    outline: none;
    background: transparent;
}
.book-page__content_pagination .pagination_left__btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.book-page__content_pagination .pagination_right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.book-page__content_pagination .pagination_right button {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DBDBDB;
    border-radius: 10px;
    transition: 0.3s ease all;
}
.book-page__content_pagination .pagination_right button svg path {
    transition: 0.3s ease all;
}
.book-page__content_pagination .pagination_right button:hover {
    border-color: #6A6773;
}
.book-page__content_pagination .pagination_right button:hover svg path {
    stroke: #4867F6;
}
.book-page__content_pagination .pagination_right p {
    font-size: 14px;
    line-height: 110%;
    font-weight: 500;
    color: #1D211F;
}
.book-page__content_pagination .pagination_right p.sm {
    display: none;
}

/* authors */
.authors_alphabet {
    margin: 40px 0 60px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.authors_alphabet .full {
    width: 50px;
}
.authors_alphabet .full span {
    text-transform: capitalize;
}
.authors_alphabet a {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #C9CADC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
}
.authors_alphabet a span {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: #000000;
    transition: 0.3s ease;
}
.authors_alphabet a:hover {
    border: 1px solid transparent;
    background: #11844d;
}
.authors_alphabet a:hover span {
    color: #ffffff;
}
.authors_alphabet a.active {
    border: 1px solid transparent;
    background: #11844d;
}
.authors_alphabet a.active span {
    color: #ffffff;
}
.authors_card_books {
    display: flex;
    gap: 30px;
    width: 100%;
}
.hide-sidebar .authors_card_books .action_book {
    width: calc(16.6666666667% - 25px);
}
.authors_card_books .similar-book__card {
    width: calc(25% - 20px);
}
.hide-sidebar .authors_card_books .similar-book__card {
    width: calc(16.6666666667% - 25px);
}
.authors_cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 50px;
}
.authors_card {
    display: flex;
    align-items: start;
    gap: 80px;
}
.authors_card_title {
    width: 332px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.authors_card_title .title_text_name {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
}
.authors_card_title span {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #6A6773;
}
.authors_card_title .btn_white {
    width: 148px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.authors_card_title .btn_white svg path {
    transition: 0.3s ease;
}
.authors_card_title .btn_white:hover svg path {
    fill: #ffffff;
}
#main-container:not(.hide-sidebar) .authors_card_books .similar-book__card:nth-child(n+5) {
    display: none;
}

/* жанры */
.categories_lists {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px 0 50px 0;
}
.categories_list {
    width: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.categories_block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.categories_block .list_title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #000000;
    text-decoration: none;
}
.categories_block ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 10px;
    list-style-type: none;
    padding: 0;
}
.categories_block .book_link {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #000000;
    padding: 7px 10px;
    border-radius: 30px;
    border: 1px solid #C9CADC;
    transition: 0.3s ease;
    text-decoration: none;
    display: block;
}
.categories_block .book_link:hover {
    background: #39475A;
    color: #F4F5FA;
    border: 1px solid transparent;
}
/* аутентификация */
.login {
    display: flex;
    align-items: stretch;
    height: 100vh;
}
.login_img {
    max-width: 950px;
    position: relative;
}
.login_img .login_logo {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 150px;
}
.login_img img {
    -o-object-fit: cover;
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.login_img .login_table_bg {
    display: none;
}
.login_img .login_mobile_bg {
    display: none;
}
.login_form {
    padding-left: 155px;
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: center;
}
.login_form h6 {
    font-size: 30px;
    font-weight: 500;
    line-height: 30px;
    color: #000000;
    margin: 30px 0;
}
.login_form form {
    width: 385px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.login_form form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: #6A6773;
    position: relative;
}
.login_form form label button {
    position: absolute;
    right: 20px;
    bottom: 12px;
}
.login_form form label button svg {
    width: 20px;
}
.login_form form label button svg:nth-child(1) {
    display: none;
}
.login_form form label.show button {
    bottom: 15px;
}
  .login_form form label.show button svg {
    display: none;
}
.login_form form label.show button svg:nth-child(1) {
    display: block;
}
.login_form form input {
    padding: 15px;
    border-radius: 10px;
    height: 50px;
    border: 1px solid #7B8781;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    color: #000000;
}
.login_form form input::-moz-placeholder {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    color: #000000;
}
.login_form form input::placeholder {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    color: #000000;
}
.login_form form input:hover {
    border: 1px solid #6A6773;
}
.login_form form input.error,
.login_form form input.is-invalid {
    border-color: #EB3232;
}
.login_form .invalid-feedback {
    color: #EB3232;
}
.login_form form .forget_password {
    color: #4867F6;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
}
.login_form form p {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: #6A6773;
}
.login_form form p a {
    color: #4867F6;
}
.login_form .form_btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.login_form .form_btns a,
.btn_green {
    width: 100%;
}
.login_form .back_btn {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login_form .back_btn span {
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
    font-family: "Manrope", sans-serif;
    color: #7B8781;
}
.wrapper {
    width: 100%;
    overflow: auto;
}
.login_form_in a {
    text-decoration: none;
}
.success-feedback {
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 10px;
}

/* cookie consent */
.privacy-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1024px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    line-height: 1.45;
}

.privacy-consent[hidden] {
    display: none;
}

.privacy-consent__text {
    flex: 1;
}

.privacy-consent__text a {
    color: #0b63ce;
    text-decoration: underline;
}

.privacy-consent__button {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #0b63ce;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.privacy-consent__button:hover {
    background: #084fA6;
}

.btn_green_privacy-consent {
    width: 90px;
    height: 40px;
}

/* Остальное */
.library-content-block p, 
.library-content-block ul {
    margin-bottom: 10px;
}