/* Стили для секции */
.certificates-section {
    padding: 50px 0;
}

.section-header-certificates {
    text-align: center;
    margin-bottom: 40px;
}
.section-header-certificates h1 {
    font-size: 2.4em;
    font-weight: bold;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}
.section-header-certificates .subtitle-certificates {
    font-size: 0.95em;
    color: #444; /* Текст описания */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Адаптивная сетка, ~2 колонки */
    gap: 30px; /* Пространство между карточками */
}

.certificate-card {
    background-color: #fff; /* Белый фон карточки */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Легкая тень */
    display: flex;
    flex-direction: column;
    text-align: left; /* Текст в карточке слева */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.certificate-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.certificate-card h3 {
    font-size: 1.15em;
    font-weight: bold;
    color: #000;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.certificate-details { /* Класс для строк с номером и сроком */
    font-size: 0.85em;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
}
.certificate-details:last-of-type {
    margin-bottom: 20px; /* Отступ до кнопки */
}

.download-certificate-button {
    display: inline-block;
    background-color: #f0a078; /* Персиковый/оранжевый цвет кнопки */
    color: #fff;
    padding: 10px 25px;
    border-radius: 20px; /* Сильное скругление */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
    align-self: flex-start; /* Кнопка слева */
    min-width: 120px; /* Минимальная ширина кнопки */
}
.download-certificate-button:hover {
    background-color: #eb8f61; /* Темнее при наведении */
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-header-certificates h1 {
        font-size: 2em;
    }
    .certificates-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 20px;
    }
    .certificate-card {
        padding: 20px;
    }
    .download-certificate-button {
        align-self: center; /* Кнопка по центру на мобильных */
    }
}

@media (max-width: 480px) {
    .section-header-certificates h1 {
        font-size: 1.8em;
    }
}