.cert-section {
    margin-bottom: 20px;
}

.cert-section__title {
    margin-bottom: 16px;
}

.cert-section__title:first-of-type {
    margin-top: 0;
}

.cert-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 536px) {
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1100px) {
    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cert-item {
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    padding: 16px;
}

.cert-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.cert-item__figure {
    margin-top: auto;
}

.cert-item__picture {
    cursor: pointer;
    display: block;
}

.cert-item__title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.cert-item__download {
    display: block;
    background: var(--currentDarkBlue, #1a2c4e);
    border: 1px solid var(--currentDarkBlue, #1a2c4e);
    font-size: 17px;
    color: #fff;
    line-height: 52px;
    width: 300px;
    max-width: 100%;
    margin: 40px auto 0;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
}

.cert-modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.cert-modal__content {
    position: relative;
    width: 95%;
    height: 95%;
    margin: 2.5% auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.cert-modal__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.cert-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cert-modal__close:hover {
    background: #e9ecef;
    color: #333;
}

.cert-modal__body {
    height: calc(100% - 81px);
    padding: 20px;
}

.certificate-swiper {
    width: 100%;
    height: 100%;
}

.certificate-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.certificate-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.certificate-swiper .swiper-button-prev,
.certificate-swiper .swiper-button-next {
    color: #007bff;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.certificate-swiper .swiper-button-prev:after,
.certificate-swiper .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.certificate-swiper .swiper-pagination-bullet {
    background: #007bff;
    opacity: 0.5;
}

.certificate-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .cert-modal__content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .cert-modal__header {
        padding: 15px 20px;
    }

    .cert-modal__title {
        font-size: 1.2rem;
    }

    .cert-modal__body {
        padding: 15px;
        height: calc(100% - 71px);
    }

    .certificate-swiper .swiper-button-prev,
    .certificate-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .certificate-swiper .swiper-button-prev:after,
    .certificate-swiper .swiper-button-next:after {
        font-size: 16px;
    }
}
