.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.materials-text {
    color: #0B2C5D;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    flex-wrap: wrap;
    /* Разрешаем перенос на маленьких экранах */
}

/* Сетка документов */


.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    /* Уменьшили отступ между карточками */
    width: 100%;
}

.documents-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;

    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Добавляем для позиционирования */
}

.documents-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    justify-content: center;
    /* Фиксированный отступ между заголовком и кнопкой */
}

.documents-meta {
    display: flex;
    flex-shrink: 0;
    /* Запрещаем сжатие иконок */
}

.documents-content {
    flex-grow: 1;
    min-width: 0;
}

.open-button-wrapper {
    flex-shrink: 0;
    /* Фиксированный отступ слева от заголовка */
}

.documents-title {
    color: #0B2C5D;
    font-weight: bold;
    font-size: 24px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.document-date {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.document-filename p {
    color: #0B2C5D;

    font-size: 24px;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Стили для иконок */
.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #0DA8CD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    /* Уменьшили отступ */
}

.open-button {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: right;
    /* Заменили margin на gap */
}

.open-text {
    font-size: 16px;
    /* Уменьшили размер шрифта */
    text-transform: uppercase;
    color: #0B2C5D;
    white-space: nowrap;
    /* Запрет переноса текста */
}

.documents-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 9 0;
}

.document-more-button {
    /* Исправлена опечатка в названии класса */
    background-color: #0DA8CD;
    color: #FFFFFF;
    padding: 10px 160px;
    /* Изменили фиксированную ширину на относительные отступы */
    border-radius: 15px;
    text-decoration: none;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Запрещаем перенос текста */
    display: inline-block;
    /* Для правильной работы padding */
    margin-left: 20px;
    /* Добавляем отступ от текста */
}


.documents-report-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(360px, auto);
    gap: 32px 24px;
    justify-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0;
}

.documents-card-report {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 620px;
    /* БОЛЬШЕ размер карточки */
}

.documents-thumb-report {
    width: 100%;
    max-width: 500px;
    /* БОЛЬШЕ максимально допустимая ширина */
    max-height: 500px;
    /* БОЛЬШЕ максимально допустимая высота */
    aspect-ratio: 1/1;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
}

.documents-thumb-report a {
    display: block;
    height: 100%;
}

.documents-thumb-report img {
    height: 100%;
    display: block;
    border-radius: 24px;
    image-rendering: auto;
}

.documents-title-report {
    text-align: center;
    font-weight: 600;
    font-size: 1.27em;
    margin: 0 0 10px 0;
    color: #0B2C5D;
    background: none;
    border: none;
    padding: 0;
}

.documents-title-report a {
    color: #0B2C5D;
    text-decoration: none;
    transition: color 0.2s;
}

.documents-title-report a:hover,
.documents-title-report a:focus {
    color: #07316D;
    text-decoration: underline;
}