.certificates-main {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 0 20px 40px 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #1C2331;
    text-align: center;
}

.certificates-title {
    display: inline-block;
    max-width: 600px;
    padding: 20px 30px;
    margin: 0 auto 60px auto;
    text-align: center;
    background: linear-gradient(135deg, #1C2331 0%, #2C3E50 100%);
    border-radius: 24px;
    color: #FFBB33;
    font-size: 3.2rem;
}

.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.certificate-item {
    flex: 1 1 280px;
    max-width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.certificate-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.certificate-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.certificate-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.certificate-caption {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .certificates-main {
        margin-top: 80px;
    }

    .certificates-title {
        padding: 32px;
    }

    .certificates-title h1 {
        font-size: 2.5rem;
    }

    .certificate-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    .certificates-main {
        margin-top: 60px;
        padding: 0 16px 32px 16px;
    }

    .certificates-title {
        padding: 24px 20px;
        margin-bottom: 40px;
    }

    .certificates-title h1 {
        font-size: 2rem;
    }

    .certificate-item {
        flex: 1 1 100%;
    }

    .certificate-item a {
        padding: 16px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
