.userpage-section {
    padding: 80px 20px;
    padding-top: 0;
    background-color: #fff;
    width: 100%;
    padding-bottom: 0;
}

.userpage-container {
    max-width: 1200px;
    margin: 0 auto;
}

.userpage-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Универсальный слайдер */
.universal-slider {
    position: relative;
    width: 100%;
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Обновленный контейнер для навигации */
.slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.step-indicators {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-number.active {
    background: #3a0000;
    color: white;
    border-color: #3a0000;
}

.step-numbers {
    padding: 10px 10px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-numbers.active {
    background: #3a0000;
    color: white;
    border-color: #3a0000;
}

/* Навигационные кнопки слева и справа от цифр */
.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: none;
    color: rgb(102, 102, 102);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    /* Добавляем фиксированные минимальные размеры */
    min-width: 50px;
    min-height: 50px;
    /* Запрещаем сжатие */
    flex-shrink: 0;
}

.nav-btn:hover {

    transform: scale(1.05);
}

.nav-btn:disabled {
color: white;
cursor: not-allowed;
transform: none;
}

.slider-content {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide-image {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    max-width: 600px;
}

.slide-text h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.slide-text p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    text-align: justify;
    color: #666;
    line-height: 1.6;
}

/* Десктоп версия с горизонтальным расположением */
@media (min-width: 769px) {
    .slide {
        flex-direction: row;
        text-align: left;
        gap: 40px;
        margin-bottom: auto;
    }

    .slide-image {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .slide-text {
        flex: 1;
        text-align: left;
    }

    .step-indicators {
        gap: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .nav-btn {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    .swipe-hint{
        display: none;
    }
}

/* Мобильная версия слайдера с точками */
@media (max-width: 768px) {
    .slider-navigation {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .slider-container{
        gap: 0;
    }

    .userpage-section{
        padding: 80px 0;
    }

    .userpage-title{
        margin-bottom: 20px;
        font-size: 40px;
        padding: 0 10px;
    }

    .slide{
        gap: 20px;
    }

    .slide-text p {
        font-size: 12px;
    }
    .slide-text h3 {
        font-size: 20px;
    }
    
    .step-indicators {
        display: none; /* Скрываем цифры и слова на мобильных */
    }
    
    .nav-btn {
        display: none; /* Скрываем кнопки навигации на мобильных */
    }
    
    /* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ТОЧЕК И ПОДСКАЗКИ - ТЕПЕРЬ НА ОДНОЙ СТРОКЕ */
    .dots-indicators {
        display: flex;
        gap: 10px;
        justify-content: center;
        order: -1;
        align-items: center; /* Выравниваем по центру по вертикали */
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .dot.active {
        background: #3a0000;
        transform: scale(1.2);
    }
    
    /* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ПОДСКАЗКИ СВАЙПА - ТЕПЕРЬ В ОДНОЙ СТРОКЕ С ТОЧКАМИ */
    .swipe-hint {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;

        color: #0000007d;
        font-family: 'Inter', Arial, sans-serif;
        font-size: 14px;
        order: -1; /* Теперь тот же порядок, что и у точек */
        margin-right: 15px; /* Отступ между подсказкой и точками */
    }
    
    .swipe-hint-gif {
        width: 30px; /* Немного уменьшаем для компактности */
        height: 30px;
        filter: brightness(0) invert(0.5);
        rotate: 90deg;
    }
    
    /* НОВЫЙ КОНТЕЙНЕР ДЛЯ ОБЪЕДИНЕНИЯ ПОДСКАЗКИ И ТОЧЕК */
    .mobile-indicators-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        order: -1;
    }
}

@media (max-width: 480px) {
    .userpage-title{
        font-size: 30px;
    }
    
    /* Дополнительные стили для очень маленьких экранов */
    .swipe-hint {
        font-size: 12px;
        gap: 8px;
    }
    
    .swipe-hint-gif {
        width: 25px;
        height: 25px;
    }
    
    .dots-indicators {
        gap: 8px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}

/* Добавьте в конец glavn.css */
.slider-content {
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.slide-track {
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.slide {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Улучшение для iOS */
@supports (-webkit-touch-callout: none) {
    .slider-content {
        overflow: hidden;
    }
    
    .slide-track {
        will-change: transform;
    }
}