/* Custom Slider CSS */

/* Контейнер слайдера */
.custom-slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    /* margin: 20px 0; */
}

/* Внутренний слайдер */
.custom-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.custom-slide.active {
    opacity: 1;
}

/* Градиентный слой для затемнения */
.custom-slider-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0000005e, rgb(0 0 0 / 51%), transparent);
    z-index: 5;
    pointer-events: none;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%); */
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .custom-slider-container {
        /* height: 60vh !important; */
    }
    
    .custom-slider-text {
        padding: 20px !important;
        width: 95% !important;
        top: 50% !important;
    }
    
    .custom-slider-text h1 {
        font-size: 25px !important;
        margin-bottom: 30px !important;
    }
    
    .custom-slider-text .subtitle {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .custom-slider-text .stats-container {
        gap: 20px !important;
    }
    
    .custom-slider-text .stat-item {
        min-width: 120px !important;
    }
    
    .custom-slider-text .stat-number {
        font-size: 24px !important;
    }
    
    .custom-slider-text .stat-description {
        font-size: 12px !important;
    }
}

@media screen and (max-width: 480px) {
    .custom-slider-container {
        /* height: 50vh !important; */
    }
    
    .custom-slider-text {
        padding: 15px !important;
        top: 55% !important;
    }
    
    .custom-slider-text h1 {
        font-size: 24px !important;
    }
    
    .custom-slider-text .stats-container {
        flex-direction: column !important;
        gap: 0px !important;
    }
    
    .custom-slider-indicators {
        bottom: 10px !important;
    }
    
    .indicator {
        width: 8px !important;
        height: 8px !important;
    }
    
    .custom-slider-indicators {
        gap: 6px !important;
        bottom: 10px !important;
    }
}

/* Анимация появления текста */
.custom-slider-text {
    animation: slideInUp 1s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
}

.custom-slider-text .subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    /* Стили как у оригинального подзаголовка */
    font-size: 20px !important;
    font-family: "Inter", Arial, sans-serif !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

.custom-slider-text h1 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    /* Точные стили как у оригинального заголовка */
    font-size: 60px !important;
    font-family: "Times New Roman", Arial, sans-serif !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

.custom-slider-text .stats-container {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.custom-slider-text .stat-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.custom-slider-text .stat-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 1.0s both;
}

.custom-slider-text .stat-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 1.2s both;
}

/* Стили для блоков статистики */
.custom-slider-text .stat-item {
    text-align: center;
}

.custom-slider-text .stat-number {
    font-size: 36px;
    /* font-weight: bold; */
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.custom-slider-text .stat-divider {
    width: 60px;
    height: 2px;
    background: #fff;
    border: none;
    margin: 0 auto 10px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.custom-slider-text .stat-description {
    font-size: 17px;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white;
}

/* Адаптивные размеры как у оригинального заголовка */
@media screen and (max-width: 1199px) {
    .custom-slider-text h1 {
        font-size: 50px !important;
    }
}

@media screen and (max-width: 959px) {
    .custom-slider-text h1 {
        font-size: 40px !important;
    }
    .custom-slider-text .subtitle {
        font-size: 22px !important;
    }
    .custom-slider-text .stat-number {
        font-size: 32px !important;
    }
    .custom-slider-text .stat-description {
        font-size: 13px !important;
    }
}

@media screen and (max-width: 639px) {
    .custom-slider-text h1 {
        font-size: 25px !important;
        margin-bottom: 0px !important;
    }
    .custom-slider-text .subtitle {
        font-size: 14px !important;
    }
    .custom-slider-text .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    .custom-slider-text .stat-number {
        font-size: 20px !important;
    }
    .custom-slider-text .stat-description {
        font-size: 12px !important;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.custom-slider-indicators { 
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20; 
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.indicator{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}
.indicator.active{ background: rgba(255,255,255,0.8); }

.subtitle{
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);   
}