/**
 * Business UTP Slider (27.11.2025)
 * Прозрачный слайдер с 4 УТП для B2B
 */

.utp-slider {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1f3c 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимированный фон с сеткой */
.utp-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Светящиеся точки */
.utp-slider::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.utp-slider-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.utp-slider-badge {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

/* Контейнер для анимации УТП */
.utp-carousel {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.utp-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.utp-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.utp-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.utp-title strong {
    color: #3b82f6;
}

.utp-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 24px;
}

/* Ключевые метрики */
.utp-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.utp-metric {
    text-align: center;
}

.utp-metric-value {
    font-size: 36px;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.utp-metric-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Индикаторы прогресса */
.utp-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.utp-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
}

.utp-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
}

.utp-indicator.active {
    background: rgba(59, 130, 246, 0.3);
}

.utp-indicator-progress {
    height: 100%;
    width: 0;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.utp-indicator.active .utp-indicator-progress {
    animation: indicator-fill 6s linear forwards;
}

@keyframes indicator-fill {
    from { width: 0; }
    to { width: 100%; }
}

/* CTA кнопка */
.utp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.utp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .utp-slider {
        min-height: 350px;
    }
    
    .utp-title {
        font-size: 24px;
    }
    
    .utp-text {
        font-size: 15px;
    }
    
    .utp-metrics {
        gap: 20px;
    }
    
    .utp-metric-value {
        font-size: 28px;
    }
    
    .utp-carousel {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .utp-slider {
        min-height: 320px;
    }
    
    .utp-title {
        font-size: 20px;
    }
    
    .utp-metric-value {
        font-size: 24px;
    }
    
    .utp-carousel {
        min-height: 280px;
    }
}
