/* ========================================
   CERTIFICATES SLIDER STYLES
   ======================================== */

/* Секция сертификатов */
.certificates__section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Слайдер */
.certificates__slider {
    margin: 50px 0 60px;
    padding: 0 50px;
    position: relative;
}

.certificates__slider .slick-list {
    overflow: hidden;
}

.certificates__slider .slick-track {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху для разной высоты */
}

/* Слайд */
.certificates__slide {
    padding: 0 15px;
    outline: none;
}

.certificates__slide a {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.certificates__slide a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(4, 24, 148, 0.15);
}

.certificates__slide a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 24, 148, 0);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.certificates__slide a:hover::before {
    background: rgba(4, 24, 148, 0.05);
}

/* Иконка увеличения при наведении */
.certificates__slide a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(4, 24, 148, 0.9) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/><path d="M11 8v6M8 11h6"/></svg>') center / 30px no-repeat;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.certificates__slide a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.certificates__slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Стрелки навигации */
.certificates__slider .slick-prev,
.certificates__slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #041894;
}

.certificates__slider .slick-prev:hover,
.certificates__slider .slick-next:hover {
    background: #041894;
    color: #fff;
    box-shadow: 0 6px 25px rgba(4, 24, 148, 0.3);
}

.certificates__slider .slick-prev {
    left: 0;
}

.certificates__slider .slick-next {
    right: 0;
}

.certificates__slider .slick-prev svg,
.certificates__slider .slick-next svg {
    width: 24px;
    height: 24px;
}

/* Точки навигации */
.certificates__slider .slick-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.certificates__slider .slick-dots li {
    margin: 0;
}

.certificates__slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #041894;
    background: transparent;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.certificates__slider .slick-dots li button:hover {
    background: rgba(4, 24, 148, 0.3);
}

.certificates__slider .slick-dots li.slick-active button {
    background: #041894;
    transform: scale(1.2);
}

/* Заголовок партнёров */
.partners__title {
    font-family: "Roboto", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
}

.partners__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #041894;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Партнёры */
.partners__inner {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.partners__item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partners__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partners__item img {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ========================================
   FANCYBOX CUSTOMIZATION
   ======================================== */

.fancybox-thumbs {
    background: rgba(0, 0, 0, 0.9);
}

.fancybox-thumbs__list a::before {
    border-color: #041894;
}

.fancybox-progress {
    background: #041894;
}

.fancybox-button {
    background: rgba(4, 24, 148, 0.8);
}

.fancybox-button:hover {
    background: #041894;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .certificates__slider {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .certificates__section {
        padding: 60px 0;
    }

    .certificates__slider {
        margin: 40px 0 50px;
    }

    .certificates__slider .slick-prev,
    .certificates__slider .slick-next {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .certificates__section h2.default-title {
        font-size: 32px;
    }

    .partners__title {
        font-size: 24px;
    }

    .partners__inner {
        gap: 20px;
    }

    .partners__item {
        padding: 15px;
    }

    .partners__item img {
        max-width: 100px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .certificates__section {
        padding: 50px 0;
    }

    .certificates__slider {
        padding: 0 10px;
        margin: 30px 0 40px;
    }

    .certificates__slide {
        padding: 0 10px;
    }

    .certificates__slide a::after {
        width: 50px;
        height: 50px;
        background-size: 24px;
    }

    .certificates__slider .slick-dots {
        margin-top: 20px;
        gap: 8px;
    }

    .certificates__slider .slick-dots li button {
        width: 10px;
        height: 10px;
    }

    .partners__title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .partners__item {
        padding: 12px;
    }

    .partners__item img {
        max-width: 80px;
        height: 40px;
    }
}