.reports-section {
    padding: 60px 0;
}

.section-title-reports { /* Отдельный класс для заголовка */
    font-size: 2.5em;
    font-weight: bold;
    color: #000;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
}

.reports-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем карточки, если их не ровно 3 */
    gap: 30px; /* Пространство между карточками */
}

.report-card {
    background-color: #fff; /* Белый фон карточки */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    width: calc(33.333% - 20px); /* Три карточки в ряд */
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.report-image-link {
    display: block;
    background-color: #f0f2f5; /* Фон для области картинки, если картинка не покрывает ее всю */
}

.report-image-link img {
    width: 100%;
    object-fit: cover; /* Масштабирует и обрезает, чтобы заполнить */
    display: block;
    transition: opacity 0.3s ease;
}
.report-image-link:hover img {
    opacity: 0.85;
}

.report-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Чтобы блок с информацией занимал оставшееся место */
    text-align: left; /* Текст в карточке слева */
}

.report-info h3 {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
    /* Для многострочных заголовков, чтобы выровнять кнопки "Скачать" */
    min-height: 3.2em; /* Примерно 2-3 строки */
}
.report-info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.report-info h3 a:hover {
    color: var(--primary-color); /* Зеленый при наведении (или ваш фирменный) */
}


.report-date {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 15px;
}

.download-button {
    display: inline-block;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
    align-self: flex-start; /* Кнопка слева */
}

.download-button:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: #000;
}

/* Адаптивность */
@media (max-width: 992px) {
    .report-card {
        width: calc(50% - 15px); /* Две карточки в ряд */
    }
    .report-card:nth-child(3n) { /* Убираем лишний отступ для каждой третьей на больших экранах */
        /* margin-right: 0; */ /* Если используется justify-content: flex-start; */
    }
    .report-card:nth-child(2n) { /* Убираем лишний отступ для каждой второй на средних экранах */
        /* margin-right: 0; */
    }
    .report-card:last-child:nth-child(odd) { /* Если последняя карточка нечетная (т.е. одна в ряду) */
        /* Можно сделать ее шире или центрировать */
        /* width: 100%; */
        /* max-width: 400px; */ /* Ограничить ширину, если она одна */
        /* margin-left: auto; */
        /* margin-right: auto; */
    }
}

@media (max-width: 768px) {
    .section-title-reports {
        font-size: 2em;
    }
    .report-image-link img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .report-card {
        width: 100%; /* Одна карточка в ряд */
        min-width: unset;
    }
    .report-card:not(:first-child) {
        margin-top: 30px;
    }
    .download-button {
        align-self: center; /* Кнопка по центру на маленьких экранах */
    }
}