/*
 * Список документов страницы «Экспертная комиссия».
 * Карточки в две колонки: иконка файла, название-ссылка, тип файла.
 */

.max-width-theme.docs {
    margin-bottom: 0;
}

.docs_wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 0;
}

/* Карточка документа */
.docs_wrapper > div {
    display: grid;
    grid-template-columns: 64px auto;
    row-gap: 10px;
    column-gap: 16px;
    flex-basis: 49%;
    padding: 20px;
    border: 1px solid #D7E6F2;
    border-radius: 14px;
}

.docs_wrapper > div a:hover {
    text-decoration: underline;
}

.docs_wrapper .img_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #fff;
    border-radius: 10px;
}

.docs_wrapper .img_wrapper img {
    height: 32px;
    max-width: unset;
}

.docs_wrapper .text_wrapper {
    justify-content: space-between;
}

.docs_wrapper .text_wrapper a {
    color: var(--gray-color);
}

/* Тип файла: PDF, DOC */
.docs_wrapper .text_wrapper > div:last-child {
    font-size: 12px;
    color: var(--text-color);
}

@media (max-width: 900px) {
    .docs_wrapper > div {
        grid-template-columns: 48px auto;
    }

    .docs_wrapper .img_wrapper {
        width: 48px;
        height: 48px;
    }

    .docs_wrapper .img_wrapper img {
        height: 28px;
    }

    .docs_wrapper .text_wrapper {
        gap: 12px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .docs_wrapper {
        flex-direction: column;
    }

    .docs_wrapper > div {
        grid-template-columns: 32px auto;
        column-gap: 16px;
        max-width: 100%;
    }

    .docs_wrapper .img_wrapper {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .docs_wrapper .img_wrapper img {
        height: 18px;
    }

    .docs_wrapper .text_wrapper {
        gap: 12px;
        font-size: 12px;
    }

    .docs_wrapper .text_wrapper a {
        word-break: break-word;
    }
}
