/* ===== Карточка автора ===== */

.author-card {
    margin: 0;
    background: linear-gradient(135deg, rgba(15, 18, 26, 0.94), rgba(18, 21, 31, 0.72));
    border-radius: clamp(16px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -18px rgba(11, 13, 20, 0.75);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    color: #f5f6fb;
}

.author-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(139, 93, 255, 0.35), rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
}

.author-card__inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.author-card__badge {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(139, 93, 255, 0.18);
    color: #cbb8ff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
}

.author-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 4vw, 2rem);
    align-items: center;
}

.author-card__avatar {
    margin: 0;
    padding: clamp(0.4rem, 1.5vw, 0.75rem);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 93, 255, 0.4), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.9);
}

.author-card__avatar img {
    display: block;
    width: clamp(72px, 15vw, 120px);
    height: clamp(72px, 15vw, 120px);
    border-radius: 50%;
    object-fit: cover;
}

.author-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.author-card__name {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.author-card__title {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    color: rgba(245, 246, 251, 0.72);
    font-weight: 500;
}

.author-card__meta {
    margin: 0;
    color: rgba(245, 246, 251, 0.6);
    font-size: 0.95rem;
}

.author-card__cta {
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #f5f6fb;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(139, 93, 255, 0.24);
    border: 1px solid rgba(139, 93, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.author-card__cta:hover,
.author-card__cta:focus-visible {
    background: rgba(139, 93, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -15px rgba(139, 93, 255, 0.9);
}

.author-card__cta i {
    font-size: 0.85rem;
}

.author-card__description {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.7;
    color: rgba(245, 246, 251, 0.82);
}

.author-card__description p {
    margin: 0;
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ С ПОДПИСЯМИ (GRID) ===== */
.author-card__socials {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.author-card__socials li {
    display: flex;
}

.author-card__socials a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0.5rem;
    width: 100%;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f6fb;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.author-card__socials a:hover,
.author-card__socials a:focus-visible {
    transform: translateY(-3px);
    background: rgba(139, 93, 255, 0.35);
    border-color: rgba(139, 93, 255, 0.5);
}

.author-card__socials a i {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.author-card__socials a:hover i {
    transform: scale(1.1);
}

.author-card__socials i.fa-solid.fa-m {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Видимые подписи под иконками */
.author-card__socials .social-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    opacity: 0.85;
    color: rgba(245, 246, 251, 0.8);
}

/* для скрытого текста (для accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Адаптивность */
@media (max-width: 680px) {
    .author-card__inner {
        padding: clamp(1.25rem, 6vw, 1.75rem);
        gap: clamp(1.25rem, 6vw, 1.75rem);
    }

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

    .author-card__info {
        align-items: center;
    }

    .author-card__cta {
        justify-content: center;
        width: 100%;
    }

    /* На мобильных - 2 кнопки в ряд */
    .author-card__socials {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .author-card__socials a {
        padding: 0.85rem 0.5rem;
    }

    .author-card__socials a i {
        font-size: 1.2rem;
    }

    .author-card__socials .social-label {
        font-size: 0.65rem;
    }
}

/* Планшеты - 3 кнопки в ряд */
@media (min-width: 681px) and (max-width: 900px) {
    .author-card__socials {
        grid-template-columns: repeat(3, 1fr);
    }
}