.material-detail {
    background: #FFF;
    padding-top: 4rem;
    --gray-color: #f0f0f0;
    --text-color: #111;
    padding-bottom: 4rem;
    margin-bottom: 40px;

    color: var(--text-color);
}

.material-detail__inner {
    display: flex;
    gap: 22px;
}

.material-detail__picture {
    max-width: 200px;
}

.material-detail__picture_inner {
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.material-detail__content {
    flex: 1;
}

.material-detail__header {
    flex: 1;
}

.material-detail__header_row {
    display: flex;
    /*margin-bottom: 35px;*/
    gap: 20px;
}

.material-detail__author_block {
    max-width: 415px;
}

.material-detail .btn-type {
    background: var(--gray-color);
    border: 0;
}

.material-detail .btn-type svg {
    opacity: 0.7;
}

.material-detail .btn-type svg * {
    stroke: var(--text-color);
}

.material-detail .btn-type span {
    color: var(--text-color);
}

.material-detail .btn-type .library {
    color: #C10B24;
    text-transform: uppercase;
    padding-left: 7px;
    border-left: 1px solid #aaa;
}

.material-detail .btn-type:hover {
    background-color: var(--clr-blue);
    color: #FFF;
    border-color: transparent;
}

.material-detail .btn-type:hover svg path,
.material-detail .btn-type:hover span {
    stroke: #FFF;
    color: #FFF;
}

.material-detail .page-title {
    font-size: clamp(1.25rem, 0.5rem + 2.4vw, 2rem);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 8px;
}

.library-notice {
    display: inline-flex;
    background: var(--gray-color);
    border-radius: 4px;
    min-height: 32px;
    line-height: 32px;
    padding: 0 10px 0 6px;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.library-notice svg *,
.library-notice .title {
    color: #aaa;
    stroke: #aaa;
}

.library-notice .icon {

}

.btn-download {
    display: inline-flex;
    background: var(--gray-color);
    border-radius: 4px;
    height: 32px;
    line-height: 32px;
    padding: 0 10px 0 4px;
    max-width: 400px;
    color: var(--text-color);
    vertical-align: middle;
    align-items: center;
}

.btn-download .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border-radius: 4px;
    margin-top: 4px;
    margin-right: 8px;
    background: #FFF;
}

.btn-download .title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-download svg * {
    stroke: var(--main-color);
}

.material_content-text {
    max-width: 845px;
    margin-bottom: 30px;
}

.material_content-text,
.material_content-text p,
.material_content-text span {
    color: #515151;
    line-height: 1.45 !important;
    font-size: 1rem !important;
}

.material_content-text img {
    display: inline-block;
    margin: 10px 0;
    max-width: 100%;
    height: auto;
}

.material_content-text ul,
.material_content-text ol {
    margin: 10px 0 10px 35px;
}

.material-detail__author {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.material-detail__author_picture {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 6px;
}

.material-detail__author_image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.material-detail__author_content {
    flex: 1;
}

.material-detail__author_name {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 7px;
    display: inline-block;
}

.material-detail__published {
    font-size: 14px;
    color: #515151;
}

.btn-icon--blue {
    color: #004898;
    line-height: 1.5;
}

.btn--blue.article-btn--bottom {
    padding: 1rem 3rem;
}

.library_warning {

}

.material-detail__picture__empty {
    position: relative;
    flex-basis: 150px;
}

.material-detail__picture__empty .material-detail__picture_inner:before {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    left: 26px;
    width: calc(100% - 40px);
    height: 40px;
    background: url("/assets/svg/logo.svg") 50% 50% no-repeat #F0F0F0;
    background-size: 100%;
}

.material-detail__picture__empty .material-detail__picture_inner {
    height: 200px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    background: #F0F0F0;
    border: 2px solid #FFF;
    box-shadow: 0 0 0 2px #F0F0F0;
    flex: 1;
}

.material-detail__link .fa {
    color: var(--main-color);
}

.material-detail__link .btn-download {
    padding: 0 15px;
}

.material-detail__link .btn-download:hover {
    background: var(--main-color);
    color: #FFF;
}

.material-detail__link .btn-download:hover .fa {
    color: #FFF;
}

@media (max-width: 990px) {
    .library-notice {
        line-height: 1.2;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .material-detail__header_row {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .material-detail__author_block {
        max-width: 100%;
    }
}

.material-detail__picture_inner {
    padding: 2.75rem 0;
    position: relative;
}

.material-detail__picture_inner .article-header__type {
    position: absolute;
    top: 4px;
    left: 4px;
}

.material-detail__picture_inner .article-header__type.btn-type {
    padding: 4px;
    background-color: transparent;
}

.material-detail__picture_inner .article-header__type.btn-type path {
    stroke: #AAAAAA;
    transition: 0.25s all ease;
}

.material-detail__picture_inner .article-header__type.btn-type:hover path {
    stroke: #111;
    color: #111;
}

.material-detail__attachment{
    margin-top: 20px;
}

@media (max-width: 768px) {
    .material-detail .page-title {
        line-height: 1.2;
    }

    .material-detail {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .material-detail__inner {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .material-detail__picture {
        max-width: 100%;
    }

    .material-detail__picture_inner {
        padding: 0 25px;
        align-items: center;
        justify-content: center;
    }

    .material-detail__picture_inner .article-header__type {
        display: none;
    }

    .material-detail__picture__empty {
        display: none;
    }
}

.article-main__content-bottom .messages-item__members{
    gap: 2px;
    padding-right: 0;
}

@media (max-width: 700px) {
    .article-main__content-bottom .messages-item__members {
        display: flex;
    }
}