/* ===================================
   БЛОК: СЛАЙДЕР СЕРТИФИКАТОВ
   =================================== */

.certificates-section {
    width: 100%;
    padding: 60px 0;
    overflow: visible !important; /* Чтобы кнопки не обрезались */
}

.certificates-section .container,
.certificates-section .w1140,
.certificates-section .reg-pad2 {
    overflow: visible !important; /* Чтобы кнопки не обрезались родительскими контейнерами */
}

.certificates-section .center {
    text-align: center;
    margin-bottom: 50px;
}

.certificates-section .summar-title {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 0;
}

.certificates-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.certificates-slider {
    position: relative;
    overflow: hidden; /* Скрываем лишние слайды */
}

.certificates-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificates-slider .swiper-slide a {
    display: block;
    max-width: 340px;
    width: 100%;
}

.certificates-slider .swiper-slide img {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates-slider .swiper-slide img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Кнопки навигации - теперь позиционируются относительно wrapper */
.certificates-slider-wrapper .swiper-button-prev,
.certificates-slider-wrapper .swiper-button-next,
.certificates-slider-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10000 !important;
    background-color: #fff !important;
    border-radius: 12px;
    width: 44px !important;
    height: 44px !important;
    margin-top: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.certificates-slider-wrapper .swiper-button-prev,
.certificates-slider-nav-prev {
    left: 0 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.3398 17L22.3523 24.0125L20.3491 26.0157L11.3335 17L20.3491 7.98438L22.3523 9.98754L15.3398 17Z' fill='%232E4A93'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
}

.certificates-slider-wrapper .swiper-button-next,
.certificates-slider-nav-next {
    right: 0 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='34' height='34' viewBox='0 0 34 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.6602 17L11.6477 9.98746L13.6509 7.98429L22.6665 17L13.6509 26.0156L11.6477 24.0125L18.6602 17Z' fill='%232E4A93'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
}

/* Скрываем стандартные иконки Swiper */
.certificates-slider-wrapper .swiper-button-prev:after,
.certificates-slider-wrapper .swiper-button-next:after {
    display: none !important;
}

.certificates-slider-wrapper .swiper-button-prev:hover,
.certificates-slider-wrapper .swiper-button-next:hover,
.certificates-slider-nav:hover {
    background-color: #f5f5f5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Пагинация */
.certificates-slider .swiper-pagination {
    bottom: -40px;
}

.certificates-slider .swiper-pagination-bullet {
    background: #2E4A93;
    opacity: 0.3;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .certificates-section .summar-title {
        font-size: 28px;
    }
    
    .certificates-slider-wrapper {
        padding: 0 35px;
    }
    
    .certificates-slider .swiper-slide a {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .certificates-section .summar-title {
        font-size: 22px;
    }
    
    .certificates-slider-wrapper {
        padding: 0 30px;
    }
    
    .certificates-slider .swiper-slide a {
        max-width: 250px;
    }
}

