/* Running Banner Section Styles
 * Минималистичная интерактивная бегущая строка для финансовых услуг
 * Поддержка светлой и темной темы, responsive дизайн
 */

/* ========================================
   ОСНОВНЫЕ СТИЛИ СЕКЦИИ
   ======================================== */

.running-banner-section .container {
    max-width: 100%;
}

.running-banner-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 80px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Заголовок секции */
.running-banner-section .section-title {
    font-size: 45px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0rem;
    transition: color .3s ease;
    color: #3F405B !important;
}

.running-banner-wrapper {
    position: relative;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.running-banner-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    min-width: fit-content;
}

/* ========================================
   АНИМАЦИЯ БЕГУЩЕЙ СТРОКИ
   ======================================== */

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* ========================================
   ЭЛЕМЕНТЫ БЕГУЩЕЙ СТРОКИ
   ======================================== */

.banner-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 180px;
    justify-content: center;
    border: 2px solid transparent;
}

.banner-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #007bff;
}

.banner-icon {
    font-size: 20px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.banner-text {
    font-family: 'Gilroy-Medium', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #3F405B;
    transition: all 0.3s ease;
}

.banner-item:hover .banner-icon {
    transform: scale(1.1);
}

/* Цвета иконок */
.banner-item:nth-child(1) .banner-icon { color: #007bff; }
.banner-item:nth-child(2) .banner-icon { color: #28a745; }
.banner-item:nth-child(3) .banner-icon { color: #17a2b8; }
.banner-item:nth-child(4) .banner-icon { color: #ffc107; }
.banner-item:nth-child(5) .banner-icon { color: #dc3545; }
.banner-item:nth-child(6) .banner-icon { color: #6c757d; }
.banner-item:nth-child(7) .banner-icon { color: #f7931e; }

/* Второй набор элементов - те же цвета */
.banner-item:nth-child(9) .banner-icon { color: #007bff; }
.banner-item:nth-child(10) .banner-icon { color: #28a745; }
.banner-item:nth-child(11) .banner-icon { color: #17a2b8; }
.banner-item:nth-child(12) .banner-icon { color: #ffc107; }
.banner-item:nth-child(13) .banner-icon { color: #dc3545; }
.banner-item:nth-child(14) .banner-icon { color: #6c757d; }
.banner-item:nth-child(15) .banner-icon { color: #f7931e; }

/* Третий набор элементов - те же цвета */
.banner-item:nth-child(17) .banner-icon { color: #007bff; }
.banner-item:nth-child(18) .banner-icon { color: #28a745; }
.banner-item:nth-child(19) .banner-icon { color: #17a2b8; }
.banner-item:nth-child(20) .banner-icon { color: #ffc107; }

/* ========================================
   РАЗДЕЛИТЕЛИ
   ======================================== */

.banner-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
}

/* ========================================
   TOOLTIP (ТОЛЬКО НА ДЕСКТОПЕ)
   ======================================== */

.banner-tooltip {
    position: fixed;
    display: none;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    max-width: 300px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.banner-tooltip.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tooltip-content {
    font-family: 'Gilroy-Regular', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #3F405B;
    text-align: center;
}

.tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-top: none;
    border-left: none;
    transform: translateX(-50%) rotate(45deg);
}

/* ========================================
   ТЕМНАЯ ТЕМА
   ======================================== */

body.dark .running-banner-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .running-banner-section .section-title {
    color: #fff !important;
}

body.dark .banner-item {
    background: rgba(45, 45, 45, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

body.dark .banner-item:hover {
    background: rgba(58, 58, 58, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: #007bff;
}

body.dark .banner-text {
    color: #ffffff;
}

body.dark .banner-tooltip {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(0, 123, 255, 0.3);
}

body.dark .tooltip-content {
    color: #ffffff;
}

body.dark .tooltip-arrow {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Мобильный tooltip в темной теме */
@media (max-width: 768px) {
    body.dark .banner-tooltip {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(0, 123, 255, 0.3);
        color: #ffffff;
    }
    
    body.dark .tooltip-content {
        color: #ffffff;
    }
    
    /* Светлая тема для мобильного tooltip */
    body:not(.dark) .banner-tooltip {
        background: rgba(255, 255, 255, 0.95);
        color: #3F405B;
        border-color: rgba(0, 123, 255, 0.2);
        left: 12% !important;
    }
    
    body:not(.dark) .tooltip-content {
        color: #3F405B;
    }
}

/* ========================================
   RESPONSIVE ДИЗАЙН
   ======================================== */

/* Планшеты */
@media (max-width: 1199px) {
    .running-banner-section {
        padding: 40px 0;
    }
    
    .running-banner-wrapper {
        height: 70px;
    }
    
    .banner-item {
        padding: 10px 20px;
        margin: 0 15px;
        min-width: 160px;
    }
    
    .banner-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .banner-text {
        font-size: 15px;
    }
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 991px) {
    .running-banner-track {
        animation-duration: 25s;
    }
    
    .banner-item {
        margin: 0 12px;
        min-width: 140px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .running-banner-section .section-title {
        font-size: 40px;
        font-weight: 500;
        line-height: 49px;
    }
    .running-banner-section {
        padding: 30px 0;
    }
    
    .running-banner-wrapper {
        height: 70px;
    }
    
    .running-banner-track {
        animation-duration: 20s;
    }
    
    .banner-item {
        padding: 12px 20px;
        margin: 0 12px;
        min-width: 150px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .banner-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    /* Отключить hover эффекты на мобильных */
    .banner-item:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: none;
        border-color: transparent;
    }
    
    body.dark .banner-item:hover {
        background: rgba(45, 45, 45, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        border-color: transparent;
    }
    
    /* Мобильный tooltip */
    .banner-tooltip {
        background: rgba(45, 45, 45, 0.95);
        color: white;
        border-radius: 12px;
        padding: 16px 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        font-size: 14px;
        text-align: center;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 280px;
    }
    
    .banner-tooltip .tooltip-arrow {
        display: none;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .running-banner-section {
        padding: 25px 0;
    }
    .running-banner-section .section-title {
        font-size: 24.5px;
    }
    
    .running-banner-wrapper {
        height: 60px;
        scale: 1.3;
    }
    
    .running-banner-track {
        animation-duration: 18s;
    }
    
    .banner-item {
        padding: 10px 16px;
        margin: 0 10px;
        min-width: 130px;
    }
    
    .banner-icon {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .banner-text {
        font-size: 13px;
    }
    
    
}

/* Очень маленькие устройства */
@media (max-width: 480px) {
    .running-banner-section {
        padding: 20px 0;
    }
    .running-banner-section .section-title {
        font-size: 24.5px;
    }
    
    .running-banner-wrapper {
        height: 55px;
        scale: 1.3;
    }
    
    .running-banner-track {
        animation-duration: 15s;
    }
    
    .running-banner-section .section-title {
        margin-bottom: 0;
    }
    
    .banner-item {
        padding: 8px 14px;
        margin: 0 8px;
        min-width: 110px;
    }
    
    .banner-icon {
        font-size: 15px;
        margin-right: 5px;
    }
    
    .banner-text {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .running-banner-section .section-title {
        font-size: 22px;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 0rem;
        transition: color .3s ease;
        color: #3F405B !important;
        margin-top: -25px;
    }
    .running-banner-section {
        padding: 10px 0;
    }
}

/* Экстра маленькие устройства */
@media (max-width: 360px) {
    .running-banner-wrapper {
        height: 50px;
    }
    
    .running-banner-track {
        animation-duration: 20s;
    }
    
    .banner-item {
        padding: 6px 12px;
        margin: 0 6px;
        min-width: 100px;
    }
    
    .banner-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .banner-text {
        font-size: 11px;
    }
    .running-banner-section .section-title {
        font-size: 23.5px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 0rem;
        transition: color .3s ease;
        color: #3F405B !important;
        margin-top: -25px;
    }
}


    

/* ========================================
   АНИМАЦИЯ ПРИ ЗАГРУЗКЕ
   ======================================== */

.running-banner-section {
    opacity: 1;
}

/* ========================================
   УТИЛИТАРНЫЕ КЛАССЫ
   ======================================== */

.banner-paused {
    animation-play-state: paused !important;
}

.banner-running {
    animation-play-state: running !important;
}

/* Улучшенная производительность */
.running-banner-track {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.banner-item {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}