@charset "UTF-8";

.author {
    --author-accent: #0fa6ab;
    --author-accent-dark: #087f86;
    --author-surface: #ffffff;
    --author-shadow: 0 28px 72px rgba(10, 91, 102, 0.16);
    background: linear-gradient(180deg, rgba(15, 166, 171, 0.1) 0%, #ffffff 54%);
    color: #1f2230;
    padding: 48px 0 96px;
}

.author_wrapper {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.author_header {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(40px, 6vw, 64px);
    border-radius: 32px;
    padding: clamp(24px, 4vw, 48px);
    background: var(--author-accent);
    box-shadow: 0 24px 64px rgba(8, 127, 134, 0.22);
}

.author_header .left {
    width: min(760px, 100%);
    background: var(--author-surface);
    border-radius: 32px;
    padding: clamp(32px, 3vw + 12px, 56px);
    box-shadow: var(--author-shadow);
}

.author_header h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 2vw + 24px, 54px);
    font-weight: 700;
    line-height: 1.1;
    color: #161831;
}

.author_header p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
    color: #4d5163;
}

.author_header p:last-of-type {
    margin-bottom: 0;
}

.author_breadcrumbs {
    width: min(1120px, 100%);
    margin: 0 auto 20px;
    padding: 0 clamp(16px, 3vw, 32px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6a6f85;
}
.author_breadcrumbs > * {
    flex: 0 0 auto;
}
.author_breadcrumbs-link {
    color: #6a6f85;
    text-decoration: none;
}

.author_breadcrumbs-link:hover,
.author_breadcrumbs-link:focus {
    color: var(--author-accent-dark);
}

.author_breadcrumbs-separator {
    color: #9aa0b4;
}

.author_breadcrumbs-current {
    font-weight: 600;
    color: #1f2230;
}

.author_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 20px;
}

.author_filters-label {
    font-weight: 600;
    color: #3a3f55;
}

.author_filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author_filters-link {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 166, 171, 0.35);
    background: rgba(15, 166, 171, 0.08);
    color: var(--author-accent);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.author_filters-link:hover,
.author_filters-link:focus,
.author_filters-link.is-active {
    background: var(--author-accent);
    color: #ffffff;
    border-color: transparent;
}

.author_header .mobile {
    display: none;
}

.author_btn_mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(16px, 3vw, 28px);
}

.author_btn_mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 166, 171, 0.35);
    background: rgba(15, 166, 171, 0.1);
    color: var(--author-accent);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.author_btn_mobile a:hover,
.author_btn_mobile a:focus {
    background: var(--author-accent);
    color: #ffffff;
    border-color: transparent;
}

.author_header .right {
    display: none;
}

.author_header .right img {
    width: min(100%, 320px);
    height: auto;
}

.author_list {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 40px);
    margin: 0 auto clamp(56px, 10vw, 96px);
    counter-reset: author-rank;
}

.author_item {
    position: relative;
    background: var(--author-surface);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 56px) clamp(32px, 4vw, 52px);
    box-shadow: var(--author-shadow);
    overflow: hidden;
    counter-increment: author-rank;
}

.author_item::before {
    content: "№" counter(author-rank);
    position: absolute;
    top: clamp(20px, 4vw, 36px);
    right: clamp(20px, 5vw, 56px);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(15, 166, 171, 0.12);
    color: var(--author-accent);
}

.author_item:nth-of-type(1)::before {
    background: linear-gradient(90deg, #ffe385 0%, #f8c11c 100%);
    color: #503800;
}

.author_item:nth-of-type(2)::before {
    background: linear-gradient(90deg, #dfe4ff 0%, #9daffc 100%);
    color: #23317f;
}

.author_item:nth-of-type(3)::before {
    background: linear-gradient(90deg, #ffdff2 0%, #ff9bd9 100%);
    color: #6f1250;
}

.author_info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 4vw, 36px);
    align-items: start;
    margin-bottom: clamp(20px, 4vw, 32px);
}

.author_info .left {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
}

.author_info .left img {
    width: clamp(96px, 10vw, 128px);
    height: clamp(96px, 10vw, 128px);
    border-radius: 32px;
    object-fit: cover;
    background: rgba(15, 166, 171, 0.08);
    border: 4px solid rgba(15, 166, 171, 0.18);
    box-shadow: 0 20px 40px rgba(17, 22, 62, 0.18);
}

.author_info .left .author_fio {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2230;
    text-decoration: none;
}

.author_info .left .author_fio.mobile {
    display: none;
    align-items: center;
    gap: 10px;
}

.author_info .right .author_fio {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: clamp(22px, 2vw + 12px, 30px);
    font-weight: 700;
    color: #1f2230;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author_info .right .author_fio:hover,
.author_info .right .author_fio:focus {
    color: var(--author-accent-dark);
}

.author_info .author_fio img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.author_info .author_place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(15, 166, 171, 0.12);
    color: var(--author-accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.author_info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #505468;
}

.author_info .full_text {
    display: none;
}

.author_stats {
    display: grid;
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 16px 24px;
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(15, 166, 171, 0.08);
}

.author_stats-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author_stats-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6077;
}

.author_stats-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2230;
}

.author_stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
    color: #4d5163;
}

.author_seo {
    width: min(1120px, 100%);
    margin: 0 auto clamp(32px, 6vw, 56px);
    padding: 0 clamp(16px, 3vw, 32px);
    color: #3b3f54;
}

.author_seo h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw + 12px, 28px);
    font-weight: 700;
    color: #1f2230;
}

.author_seo p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.author_seo-updated {
    margin-top: 10px;
    font-size: 14px;
    color: #6b6f86;
}

.author_formula {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(15, 166, 171, 0.06);
}

.author_formula summary {
    cursor: pointer;
    font-weight: 600;
    color: #2a2f45;
}

.author_formula summary::marker {
    color: var(--author-accent);
}

.author_formula ul {
    margin: 12px 0 8px 20px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.author_formula-note {
    margin: 0;
    font-size: 14px;
    color: #5b6077;
}

.author .books.swiper {
    padding: 12px 0 16px;
}

.author .books .swiper-wrapper {
    align-items: stretch;
}

.author .books .swiper-slide {
    width: 150px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 166, 171, 0.08);
    box-shadow: none;
    transition: transform 0.3s ease;
}

.author .books .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: none;
}

.author .books .swiper-slide:hover {
    transform: translateY(-6px);
}

.author .navigator {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 32px);
    margin-top: 16px;
}

.author .navigator > div:first-child {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 166, 171, 0.12);
    position: relative;
    overflow: hidden;
}

.author .navigator .og_btn {
    display: flex;
    gap: 12px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.author .sw-button-prev,
.author .sw-button-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(15, 166, 171, 0.3);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.author .sw-button-prev:hover,
.author .sw-button-prev:focus,
.author .sw-button-next:hover,
.author .sw-button-next:focus {
    background: var(--author-accent);
    border-color: transparent;
}

.author .sw-button-prev svg path,
.author .sw-button-next svg path {
    stroke: var(--author-accent);
    transition: stroke 0.3s ease;
}

.author .sw-button-prev:hover svg path,
.author .sw-button-prev:focus svg path,
.author .sw-button-next:hover svg path,
.author .sw-button-next:focus svg path {
    stroke: #ffffff;
}

.author .sw-scrollbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 166, 171, 0.16);
}

.author .sw-scrollbar .swiper-scrollbar-drag {
    background: var(--author-accent);
    border-radius: inherit;
}

.author_books-message-wrapper {
    background: rgba(15, 166, 171, 0.08);
    border-radius: 24px;
    padding: 24px;
}

.author_books-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
    color: #43465a;
}

.author_list_bottom_svg {
    display: none;
}

.author_new {
    background: linear-gradient(180deg, rgba(15, 166, 171, 0.12) 0%, rgba(15, 166, 171, 0) 100%);
    padding-top: clamp(32px, 6vw, 64px);
}

.author_new .og_wrapper {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.author_new span {
    display: block;
    font-weight: 700;
    color: #161831;
    margin-bottom: clamp(20px, 4vw, 32px);
}

.author_new_content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(16px, 4vw, 32px);
    align-items: center;
    background: var(--author-surface);
    border-radius: 32px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: var(--author-shadow);
}

.author_new .swiper_new {
    width: 100%;
}

.author_new .swiper-wrapper {
    align-items: stretch;
}

.author_new .swiper-slide {
    width: 148px;
    min-height: 180px;
    box-sizing: border-box;
    border-radius: 28px;
    padding: 20px 16px;
    background: linear-gradient(180deg, rgba(15, 166, 171, 0.12) 0%, rgba(15, 166, 171, 0.02) 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f2230;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author_new .swiper-slide img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(17, 22, 62, 0.18);
    background: #ffffff;
}
.author_new .swiper-slide span {
    max-width: 100%;
    margin-bottom: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.author_new .swiper-slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(17, 22, 62, 0.2);
}

.author_new .sw-button-prev,
.author_new .sw-button-next {
    width: 48px;
    height: 48px;
}

.author_new .sw-button-prev svg path,
.author_new .sw-button-next svg path {
    stroke: var(--author-accent);
}

@media (max-width: 1200px) {
    .author_header {
        grid-template-columns: 1fr;
    }

    .author_header .right {
        order: -1;
    }
}

@media (max-width: 1024px) {
    .author {
        padding: 32px 0 72px;
    }

    .author_header .left {
        padding: clamp(28px, 6vw, 42px);
    }

    .author_header .mobile {
        display: block;
    }

    .author_header .desktop {
        display: none;
    }

    .author_item {
        padding: clamp(24px, 6vw, 40px);
    }

    .author_item::before {
        top: clamp(16px, 4vw, 28px);
        right: clamp(16px, 4vw, 28px);
    }

    .author_info {
        grid-template-columns: 1fr;
    }

    .author_info .left {
        justify-content: flex-start;
    }

    .author_new_content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .author_new .sw-button-prev,
    .author_new .sw-button-next {
        order: 1;
    }
}

@media (max-width: 768px) {
    .author_wrapper {
        padding: 0 clamp(12px, 4vw, 20px);
    }

    .author_header h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .author_info .right .author_fio {
        font-size: clamp(20px, 6vw, 26px);
    }

    .author_stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .author .books .swiper-slide {
        width: 132px;
        height: 200px;
    }

    .author_new .swiper-slide {
        width: 136px;
        min-height: 164px;
    }
}

@media (max-width: 600px) {
    .author_info .right .author_fio.desktop {
        display: none;
    }

    .author_info .left .author_fio.mobile {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .author {
        padding-bottom: 56px;
    }

    .author_info {
        gap: 20px;
    }

    .author_info .left {
        flex-direction: column;
        align-items: flex-start;
    }

    .author_info .left img {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .author .books .swiper-slide {
        width: 120px;
        height: 184px;
    }

    .author_new .swiper-slide {
        width: 120px;
        min-height: 156px;
    }
}

.author_rating-page .author_item::before {
    content: "#" attr(data-rank);
}

.author_rating-page .author_header {
    border-radius: 18px;
}

.author_rating-page .author_header .left {
    border-radius: 16px;
}

.author_rating-page .author_item {
    border: 1px solid rgba(15, 166, 171, 0.16);
    border-radius: 16px;
}

.author_rating-page .author_info .left img,
.author_rating-page .author_info .left .initials-avatar {
    border-radius: 50%;
}

.author_rating-page .author_info .right p {
    max-width: 820px;
}

.author_rating-page .author_stats {
    border-radius: 12px;
}

.author_rating-page .author_stats-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
}

.author_rating-page .author_read-toggle {
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--author-accent-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.author_rating-page .author_read-toggle:hover,
.author_rating-page .author_read-toggle:focus {
    text-decoration: underline;
}

.author_rating-page .books .swiper-slide {
    border-radius: 8px;
}

.author_rating-page .navigator {
    grid-template-columns: minmax(0, 1fr) auto;
}

.author_rating-page .sw-scrollbar {
    min-width: 0;
}

@media (max-width: 768px) {
    .author_rating-page .author_header {
        margin-bottom: 28px;
        padding: 14px;
    }

    .author_rating-page .author_header .left {
        padding: 22px 18px;
    }

    .author_rating-page .author_filters,
    .author_rating-page .author_catalog-search {
        align-items: stretch;
    }

    .author_rating-page .author_filters-list {
        width: 100%;
    }

    .author_rating-page .author_stats-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .author_rating-page .author_item {
        padding: 56px 16px 24px;
    }

    .author_rating-page .author_item::before {
        left: 16px;
        right: auto;
    }

    .author_rating-page .author_info .left {
        flex-direction: row;
        align-items: center;
    }

    .author_rating-page .navigator {
        grid-template-columns: 1fr;
    }

    .author_rating-page .navigator .og_btn {
        justify-content: flex-start;
    }
}
