.document-content__icon-wrap--items .document-content__format{
    margin-bottom: 20px;
}
.document-content__title--link:hover,
.document-content__title--link:hover span{
    color: rgb(69, 113, 251);
}
.document-content__modal-header__btn-download:first-child {
    padding-left: 2px;
}
.document-content__modal-header__btn-download.hidden,
.document-content__modal-header__action-print.hidden {
    display: none;
}
.documentDoc,
.documentPdf {
    display: none;
}
.documentDoc.active,
.documentPdf.active {
    display: block;
}
.document {
    padding: 13px 0 71px;
}
.document .title-wrap {
    margin-bottom: 30px;
}
.document-wrap {
    display: grid;
    gap: 28px;
    grid-template-columns: 460px 1fr;
    padding-top: 3px;
}
.document-content__wrap {
    display: flex;
    flex-direction: column;
}
.document-content {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 13px 0;
    padding: 15px 0 25px;
    border-bottom: 1px solid #BFD9FF;
}
.document-content__icon-wrap {
    grid-area: 1 / 1 / 4 / 2;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 52px 0 29px;
}
.document-content__icon {
    width: 44px;
    height: 24px;
}
.document-content__title {
    font-family: var(--inter);
    color: var(--dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    margin-top: 2px;
}
.document-content__format {
    font-family: var(--inter);
    color: var(--dark);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;

    display: flex;
    align-items: center;
    gap: 10px;
}
.document-content__link {
    font-family: var(--inter);
    color: var(--blue);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
}
.document-content__link:hover {
    cursor: pointer;
}
.document-content__description {
    grid-area: 1 / 3 / 4 / 4;
    padding-left: 31px;
    font-family: var(--inter);
    color: var(--dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
}
.document-content__description span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
.document-content__format--icon::before {
    content: '';
    background-image: url("/local/templates/medStandart/images/order/new.svg");
    width: 32px;
    height: 11px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
}


/*MODAL*/
.document-content__modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    min-height: 48px;
    background-color: var(--white);
    display: flex;
    align-items: center;

}
.document-content__modal-header__btn-download::after {
    background-image: url("/local/templates/medStandart/images/order/download.svg");
}
.document-content__modal-header__action-print::after {
    background-image: url("/local/templates/medStandart/images/order/print.svg");
}
.document-content__modal-header__btn-download::after,
.document-content__modal-header__action-print::after {
    content: '';
    width: 18px;
    height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
}
.document-content__modal-header__btn-close:hover,
.document-content__modal-header__btn-download:hover,
.document-content__modal-header__action-print:hover {
    opacity: 0.7;
}
.document-content__new-link {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    color: #4571FB;
}
.document-content__new-link:hover {
    cursor: pointer;
    opacity: .7;
}
.document-content__modal {
 /*   position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 797px;
    padding: 20px;
    background-color: #fff;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;*/
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 80%;
    height: 91%;
    top: 65px;
    bottom: 0;
    max-width: 797px;
    padding: 20px;
    background-color: #fff;
    z-index: 1000;
    /* opacity: 0; */
    /* visibility: hidden; */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}
iframe::-webkit-scrollbar ,
.docContainerInner::-webkit-scrollbar {
    width: 10px; /* Ширина всего элемента навигации */
}
span.iframe--top {
    position: absolute;
    background: white;
    width: 97%;
    z-index: 999;
    height: 57px;
    margin-left: -2px;
    max-width: 797px;
}
iframe::-webkit-scrollbar-track ,
.docContainerInner::-webkit-scrollbar-track {
    background: #fff; /* Цвет дорожки */
}

iframe::-webkit-scrollbar-thumb ,
.docContainerInner::-webkit-scrollbar-thumb {
    background-color: rgba(191, 217, 255, 1); /* Цвет бегунка */
    border-radius: 20px; /* Округление бегунка */
    border: 3px solid rgba(191, 217, 255, 1); /* Оформление границ бегунка */
}
.document-content__modal-header__btn-download {
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700;
    line-height: 19.2px;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-content__modal-header__action-print {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #fff;
    color: #496780;
    text-decoration: none;
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700;
    line-height: 19.2px;
    color: var(--blue);
}

.document-content__modal-header__btn-close {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #BFD9FF;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    margin-left: auto;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    color: var(--blue);
}
.document-content__modal-header--con {
    display: flex;
    align-items: center;
    max-width: 797px;;
}
.document-content__modal-wrap {
    display: none;
}
.document-content__modal-wrap--active {
    display: block;
    z-index: 1000;
}
.overlay-active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 679px) {
    span.iframe--top {
        width: 94%;
    }
}
@media (max-width: 1100px) {
    .document-wrap {
        gap: 15px;
        grid-template-columns: 1fr 1fr;
    }
    .document-content__icon-wrap {
        margin: 0 10px 0 0;
        display: block;
    }
    .document-content__description {
        padding-left: 10px;
    }
}
@media (max-width: 768px) {
    .document {
        padding: 21px 0 80px;
    }
    .document .title-wrap {
        margin-bottom: 20px;
    }
    .document-wrap {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 6px;
    }
    .document-content__icon {
        width: 45px;
        height: 24px;
    }
    .document-content__title {
        font-size: 14px;
        line-height: 17px;
    }
    .document-content__format {
        font-size: 12px;
        line-height: 14px;
        padding: 2px 0 3px;
    }
    .document-content {
        grid-template-columns: auto 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 10px 29px;
        padding: 20px 0 28px 0;
    }
    .document-content__icon-wrap {
        grid-area: 1 / 1 / 5 / 2;
        display: block;
        padding: 6px 0 0 3px;
    }
    .document-content__description {
        grid-area: 4 / 2 / 5 / 3;
        padding-left: 0;
        font-size: 14px;
        line-height: 17px;
        padding-top: 12px;
    }
    .document-content__modal-header__action-print {
        display: none;
    }
    .document-content__modal {
        width: 90%;
    }
}