.author__card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    width: 100%;
    overflow: hidden;
    padding-right: 20px;
    border-radius: 12px;
    background: var(--svetlo-seryy);
    backdrop-filter: blur(20px);
}

.author__image-wrap {
    flex: 0 0 175px;
    align-self: stretch;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

.author__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.author__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding-top: 24px;
    padding-bottom: 24px;
}

.author__label,
.author__speciality,
.author__meta-label {
    margin: 0;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--chernyy-50);
}

.author__person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.author__name {
    display: inline;
    width: 100%;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--chernyy);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    overflow-wrap: anywhere;
}

.author__speciality {
    width: 100%;
    overflow-wrap: break-word;
}

.author__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.author__meta-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
}

.author__meta-value {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--chernyy);
}

.author__separator {
    display: block;
    flex: 0 0 3px;
    width: 3px;
    height: 3px;
}

.author__image-wrap:empty,
.author__label:empty,
.author__name:empty,
.author__speciality:empty,
.author__meta-value:empty,
.author__meta-label:empty,
.author__meta-item:empty,
.author__meta:empty {
    display: none;
}

.author__person:empty,
.author__person:not(:has(.author__name:not(:empty), .author__speciality:not(:empty))),
.author__meta:not(:has(.author__meta-item:not(:empty))) {
    display: none;
}

.author__meta:not(:has(.author__meta-item:nth-of-type(2))) .author__separator,
.author__meta-item:empty + .author__separator,
.author__separator:has(+ .author__meta-item:empty),
.author__separator:first-child,
.author__separator:last-child {
    display: none;
}

.author__card:not(:has(.author__image-wrap:not(:empty))) {
    padding-left: 20px;
}

@media (max-width: 992px) {

    .author__image-wrap {
        flex-basis: 130px;
    }

    .author__content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .author__label,
    .author__speciality,
    .author__meta-label {
        font-size: 14px;
    }

    .author__name {
        font-size: 21px;
    }

    .author__meta {
        gap: 8px;
    }

    .author__meta-item {
        align-items: flex-end;
    }

    .author__meta-value {
        font-size: 17px;
    }
}

@media (max-width: 599px) {
    .author__card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .author__image-wrap {
        flex: 0 0 auto;
        align-self: center;
        width: 130px;
        height: 130px;
        min-height: 0;
    }

    .author__content {
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .author__person {
        align-items: center;
    }

    .author__meta {
        justify-content: center;
    }

    .author__meta-item {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .author__separator {
        align-self: center;
    }
}
