.author-card {
    position: relative;

    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    margin-top: 3%;
    margin-bottom: 3%;
    float: left;
    gap: 20px;
    align-items: flex-start;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

    .author-card:hover {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
        transform: translateY(-2px);
    }

    .author-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #f4f4f4;
    }

.author-card__avatar {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    position: relative;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #f0f0f0;
}

    .author-card__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.author-card__badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1da1f2;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.author-card__main {
    flex: 1 1 auto;
    min-width: 0;
}

.author-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.author-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

    .author-card__name:hover {
        color: #c0392b;
    }

.author-card__role {
    font-size: 12px;
    color: #8a6d3b;
    background: #fcf3e3;
    border: 1px solid #f3e0bd;
    padding: 1px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.author-card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



@media (max-width: 640px) {
    .page {
        padding: 16px 12px 60px;
    }

    .article {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .article__title {
        font-size: 22px;
    }

    .article__body p {
        font-size: 16px;
    }

    .author-card {
        padding: 22px 18px;
        gap: 14px;
        border-radius: 12px;
    }

    .author-card__avatar {
        width: 58px;
        height: 58px;
    }

    .author-card__name {
        font-size: 16px;
    }

    .author-card__desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .author-card__stats {
        gap: 16px;
        margin-bottom: 14px;
    }
}
@media screen and (max-width: 768px) {
    .author-card {
        flex-direction: column;
        gap: 14px;
        padding: 22px 18px;
        border-radius: 12px;
    }

    .author-card__avatar {
        width: 58px;
        height: 58px;
    }

    .author-card__name {
        font-size: 16px;
    }

    .author-card__desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}