/* Общие стили для элементов партнёров */
.partner-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column; /* Оставляем vertical-align */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 120px;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Стиль для контейнера партнёров */
.partners-track {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    animation: scrollPartners 40s linear infinite;
    will-change: transform;
    flex-wrap: nowrap; /* Чтобы все элементы были в одну линию */
}

/* Партнёрские изображения */
.partner-item img {
    max-width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 6px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    box-shadow: 0 0 10px 5px rgba(0, 122, 255, 0.8);
}

.partner-item p {
    font-family: 'Verdana', sans-serif;
    font-size: 12px; /* Увеличим шрифт */
    line-height: 1.5; /* Увеличим межстрочный интервал */
    margin: 0;
    padding-top: 6px;
    overflow: visible; /* Разрешим тексту выходить за пределы блока */
    word-wrap: break-word;
    max-height: none; /* Убираем ограничение по высоте */
    text-align: center;
}

/* Лента с логотипами */
.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Анимация для бесконечной прокрутки */
@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Пауза при наведении */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* Секция партнёров */
.partners {
    background-color: #f9f9f9;
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    z-index: 15;
    margin-top: 40px;
}

.partners h2 {
    font-family: 'Verdana', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 15;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .partner-item img {
        max-width: 90px;
        height: 90px;
    }

    .partner-item p {
        font-size: 10px;
    }

    .partners-track {
        animation-duration: 12s; /* Увеличиваем скорость для мобильных */
    }
}

/* Стили для почтовой ссылки */
.contact-email {
    text-align: center;
    margin-bottom: 20px;
}

.email-link {
    font-family: 'Verdana', sans-serif;
    font-size: 36px;
    color: #333;
    text-decoration: none; /* Без подчеркивания */
    font-weight: 600;
}

.email-link:hover {
    color: #333; /* Без изменений при наведении */
    text-decoration: none; /* Убираем подчеркивание */
}

