/**
 * Стили для карусели партнеров
 *
 * @package Empty_Theme
 */

.partners-section {
    padding: 60px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0071CE, #004b96, #0090ff, #00a1ff, #0071CE);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0071CE; /* Запасной цвет */
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: gradient-animation 5s ease infinite;
}

.partners-carousel-container {
    margin-bottom: 0;
    padding: 20px 0 60px;
    width: 100%;
}

.partners-carousel .partner-item {
    height: 220px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.partners-carousel .partner-item:hover {
    transform: translateY(-5px);
}

.partner-logo {
    max-width: 95%;
    max-height: 95%;
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.7;
    transform: scale(1);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.2);
}

/* Добавляем анимацию пульсации для логотипов */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 113, 206, 0);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 113, 206, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 113, 206, 0);
    }
}

.partners-carousel:hover .partner-logo {
    animation: none; /* Останавливаем анимацию при наведении на карусель */
}

.partner-logo {
    animation: pulse 2s infinite;
}

/* Стили для стрелок навигации */
.partners-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.partners-carousel .owl-prev,
.partners-carousel .owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    color: #0071CE !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partners-carousel .owl-prev {
    left: -25px;
}

.partners-carousel .owl-next {
    right: -25px;
}

.partners-carousel .owl-prev:hover,
.partners-carousel .owl-next:hover {
    background-color: #0071CE !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 113, 206, 0.4);
    transform: scale(1.1);
}

.partners-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.partners-carousel .owl-dot {
    display: inline-block;
    margin: 0;
}

.partners-carousel .owl-dot span {
    display: block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.partners-carousel .owl-dot.active span {
    background-color: #0071CE;
    transform: scale(1.2);
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .partners-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .partners-carousel-container {
        padding: 10px 0 40px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }

    .partners-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .partners-carousel .partner-item {
        height: 160px;
        padding: 8px;
    }

    .partners-carousel .owl-prev {
        left: -15px;
    }

    .partners-carousel .owl-next {
        right: -15px;
    }

    .partners-carousel-container {
        padding: 10px 0 30px;
    }
}

@media (max-width: 480px) {
    .partners-title {
        font-size: 22px;
    }

    .partners-carousel .partner-item {
        height: 130px;
        padding: 5px;
    }

    .partners-carousel .owl-prev,
    .partners-carousel .owl-next {
        width: 35px;
        height: 35px;
        font-size: 18px !important;
    }

    .partners-carousel-container {
        padding: 5px 0 25px;
    }
}
