/* Страница сертификатов */
.certificates-page {
    width: 100%;
    padding: 40px 0;
}

.certificates-page .wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.certificates_page__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.certificate {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.certificate:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.certificate__image {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 100%;
}

.certificate__actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate__image:hover .certificate__actions {
    opacity: 1;
}

.certificate__magnify,
.certificate__download {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0cf4c;
    border-radius: 50%;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.certificate__magnify:hover,
.certificate__download:hover {
    background: #e0bf3c;
    transform: scale(1.1);
}

.certificate__magnify i,
.certificate__download i {
    font-size: 18px;
}

.certificate__magnify svg,
.certificate__download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.certificate__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate__title_description {
    margin-bottom: 20px;
}

.certificate__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.certificate__description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.certificate__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f0cf4c;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.certificate__button:hover {
    background: #e0bf3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 207, 76, 0.3);
}

.certificate__button i {
    font-size: 16px;
}

.certificate__button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.certificate.d-none {
    display: none;
}

.certificates-page__content {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .certificates-page {
        padding: 20px 0;
    }
    
    .certificate {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .certificate__image {
        width: 100%;
        max-width: 100%;
    }
    
    .certificate__title {
        font-size: 18px;
    }
    
    .certificate__description {
        font-size: 13px;
    }
    
    .certificate__button {
        width: 100%;
        justify-content: center;
    }
}

