/* =========================================================
   AUTHOR PAGE – BASE
========================================================= */

.author-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* =========================================================
   AUTHOR HERO
========================================================= */

.author-hero {
    margin: 60px 0;
}

.author-hero__card {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

/* Фото автора */
.author-hero__photo {
    flex-shrink: 0;
    width: 320px;
    max-width: 100%;
}

.author-hero__photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Контент */
.author-hero__content {
    display: flex;
    flex-direction: column;
}

.author-hero__name {
    font-size: 36px;
    margin: 0 0 10px;
    line-height: 1.2;
}

.author-hero__position {
    font-size: 18px;
    color: #20a4a2;
    margin-bottom: 15px;
}

.author-hero__expertise {
    font-size: 15px;
    margin-bottom: 20px;
    color: #555;
}

.author-hero__bio {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Кнопки */
.author-hero__actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #20a4a2;
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background .25s ease, transform .2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #178c8a;
    color: #fff !important;
    transform: translateY(-2px);
}

.author-social {
    display: flex;
    gap: 15px;
    margin: 25px 0 auto;
}

/* =========================================================
   CERTIFICATES
========================================================= */

.author-certificates {
    margin-top: 80px;
}

.author-certificates h2 {
    margin-bottom: 25px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.certificate-item {
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.certificate-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* PDF */
.certificate-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    text-decoration: none;
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 15px;
}

.pdf-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.pdf-label {
    font-size: 16px;
}

/* Кнопка всегда внизу */
.certificate-item .button,
.certificate-item .btn-primary {
    margin-top: auto;
}

/* =========================================================
   AUTHOR POSTS
========================================================= */

.author-posts {
    margin-top: 80px;
}

.author-posts__list {
    padding-left: 20px;
}

.author-posts ul li {
    margin-bottom: 12px;
}

.author-posts a {
    font-weight: 500;
    color: #20a4a2;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Планшеты */
@media (max-width: 992px) {
    .author-hero__card {
        flex-direction: column;
        padding: 30px;
    }

    .author-hero__photo {
        width: 100%;
        max-width: 420px;
    }

    .author-hero__name {
        font-size: 30px;
    }
}

/* Мобильные */
@media (max-width: 576px) {
    .author-page {
        margin: 40px auto;
    }

    .author-hero {
        margin: 40px 0;
    }

    .author-hero__card {
        padding: 24px;
        gap: 24px;
    }

    .author-hero__name {
        font-size: 26px;
    }

    .author-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

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