/* Блок автора статьи — Figma 15225:2190 (desktop) / 15225:2374 (mobile) */

.blog-detail .blog-detail__header.blog-detail__header--admin {
    gap: 20px !important;
}

@media (min-width: 992px) {
    .blog-detail .blog-detail-content:has(.article-author) {
        grid-template-columns: 1fr 210px;
        grid-template-areas:
            "header header"
            "description sidebar";
    }

    .blog-detail .blog-detail-content__header:has(.article-author) {
        max-width: none;
        margin-left: 0;
        width: 100%;
    }

    .blog-detail .blog-detail-content__description {
        max-width: none;
        grid-column-end: 3;
    }

    .blog-detail__header--admin .blog-detail__title {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        width: 100%;
    }

    .blog-detail .blog-detail-content:has(.article-author) .blog-detail-content__description {
        margin-left: 0;
        max-width: 100%;
    }
}

.blog-detail__header--admin .blog-detail__title h1 {
    text-align: left;
}

.article-author {
    display: grid !important;
    grid-template-columns: minmax(200px, 558px) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 20px 0 0;
    overflow: hidden;
    border-radius: 24px;
    background: #f5f8fa;
    box-sizing: border-box;
}

.article-author__media {
    position: relative;
    height: 100%;
    min-height: 0;
    background: #f5f8fa;
    overflow: hidden;
}

.article-author__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.article-author__body {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    min-width: 0;
    padding: 34px 60px 34px 103px;
    z-index: 1;
    box-sizing: border-box;
}

.article-author__body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--article-author-vector);
    background-repeat: no-repeat;
    background-position: right -40px center;
    background-size: min(684px, 130%) auto;
    pointer-events: none;
    z-index: -1;
}

.article-author__eyebrow {
    margin: 0;
    max-width: 552px;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.1;
    color: #262633;
}

.article-author__person {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 20px;
    width: auto;
    max-width: 552px;
    text-decoration: none !important;
    color: inherit;
}

.article-author__name,
.article-author__position,
.article-author__more {
    display: block;
    margin: 0;
    max-width: 552px;
    font-size: 20px;
    line-height: 1.4;
    color: #262633 !important;
    white-space: normal;
    transition: color 0.3s ease-in-out;
}

.article-author__name,
.article-author__more {
    font-weight: 600;
    text-decoration: none !important;
}

.article-author__position {
    font-weight: 400;
}

a.article-author__name:hover,
a.article-author__position:hover,
a.article-author__more:hover {
    color: #d33674 !important;
}

.article-author__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 552px;
}

.article-author__dates {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.article-author__dates-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 9px;
    color: #e41874;
}

.article-author__dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.article-author__date-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 83px;
}

.article-author__date-label {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.15;
    color: #424352;
}

.article-author__date-value {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #424352;
}

.article-author__stats {
    display: flex;
    align-items: center;
    gap: 50px;
}

.article-author__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #424352;
}

.article-author__stat svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #e41874;
}

.article-author__stat--views svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

@media (max-width: 991px) {
    .blog-detail .blog-detail__header.blog-detail__header--admin {
        gap: 20px !important;
    }

    .article-author {
        grid-template-columns: 1fr;
        height: auto;
        margin: 20px 0 0;
    }

    .article-author__media {
        height: 268px;
    }

    .article-author__body {
        height: auto;
        gap: 20px;
        padding: 20px;
    }

    .article-author__body::before {
        background-position: right -20px bottom -20px;
        background-size: 280px auto;
    }

    .article-author__eyebrow {
        font-size: 20px;
    }

    .article-author__name,
    .article-author__position {
        font-size: 17px;
    }

    .article-author__more {
        font-size: 20px;
    }

    .article-author__stats {
        gap: 24px;
    }
}

/* Текст статьи — как на детальных страницах услуг (.page-service-detail) */
.blog-detail .blog-detail-description.page-service-detail {
    margin-top: 12px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    color: #262633;
}

.blog-detail .blog-detail-description.page-service-detail p {
    font-size: 17px;
    line-height: 1.4;
    color: #262633;
    margin: 0 0 12px;
}

.blog-detail .blog-detail-description.page-service-detail p:last-child {
    margin-bottom: 0;
}

.blog-detail .blog-detail-description.page-service-detail h2 {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    color: #262633;
    margin: 32px 0 16px;
    text-align: left;
}

.blog-detail .blog-detail-description.page-service-detail h3 {
    font-size: 32px;
    margin: 24px 0 12px;
    text-align: left;
}

@media (max-width: 992px) {
    .blog-detail .blog-detail-description.page-service-detail h3 {
        font-size: 24px;
    }
}

.blog-detail .blog-detail-description.page-service-detail ul,
.blog-detail .blog-detail-description.page-service-detail ol {
    margin: 0 0 16px;
    padding-left: 1.2em;
}

.blog-detail .blog-detail-description.page-service-detail ul li,
.blog-detail .blog-detail-description.page-service-detail ol li {
    font-size: 17px;
    line-height: 1.4;
    list-style: disc outside;
    margin-top: 8px;
}

.blog-detail .blog-detail-description.page-service-detail figure {
    margin: 24px 0;
    max-width: 100%;
}

.blog-detail .blog-detail-description.page-service-detail figure img,
.blog-detail .blog-detail-description.page-service-detail img:not([class]) {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

/* Таблицы — розовая шапка, белый текст (как на услугах) */
.blog-detail .blog-detail-description.page-service-detail table {
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    margin: 24px 0;
}

.blog-detail .blog-detail-description.page-service-detail .table {
    overflow-x: auto;
    margin: 24px 0;
}

.blog-detail .blog-detail-description.page-service-detail table th,
.blog-detail .blog-detail-description.page-service-detail .table table thead th {
    background-color: #e41874;
    color: #ffffff;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.45;
    text-align: center;
    padding: 16px 20px;
    vertical-align: middle;
}

.blog-detail .blog-detail-description.page-service-detail table th p,
.blog-detail .blog-detail-description.page-service-detail table th strong,
.blog-detail .blog-detail-description.page-service-detail .table table thead th p,
.blog-detail .blog-detail-description.page-service-detail .table table thead th strong {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
}

.blog-detail .blog-detail-description.page-service-detail table td,
.blog-detail .blog-detail-description.page-service-detail .table table tbody td {
    font-size: 16px;
    line-height: 1.45;
    color: #262633;
    padding: 20px;
    vertical-align: top;
    border-bottom: 1px solid #eaeef2;
}

.blog-detail .blog-detail-description.page-service-detail table td p {
    margin: 0 0 10px;
    font-size: inherit;
}

@media (max-width: 768px) {
    .blog-detail .blog-detail-description.page-service-detail table th,
    .blog-detail .blog-detail-description.page-service-detail .table table thead th {
        font-size: 21px;
        padding: 12px 16px;
    }

    .blog-detail .blog-detail-description.page-service-detail table td {
        padding: 14px 16px;
        font-size: 16px;
    }
}
