/* ==================== 3 Simple Steps Section (новый дизайн как Everything you need) ==================== */

.steps-section {
    background: #f6f5f4;
    padding: 150px 100px 100px 100px; /* Увеличиваем верхний padding для перекрытия */
    color: #858b98;
    position: relative;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл страницы */
    overflow-y: visible; /* Разрешаем перекрытие по вертикали */
    z-index: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.steps-header {
    text-align: center;
    margin-bottom: 20px;
}

.steps-header h2 {
    font-family: 'Sebenta', 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #111111;
}

/* Slider Wrapper */
.steps-slider-wrapper {
    margin: 0;
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.steps-slider-wrapper .row {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    min-height: 1px;
    width: 100%;
    max-width: 1074px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}


/* Right Side - Image Slider (сверху) */
.steps-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    order: 1;
    -webkit-transform: translate3d(0,0,0);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    touch-action: pan-y;
    user-select: none;
}

/* Progress Bars */
.steps-progress-bar-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.steps-progress {
    flex: 1;
    height: 4px;
    background-color: rgba(150, 150, 150, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.steps-progress-bar {
    height: 100%;
    background: #f26419;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(242, 100, 25, 0.6);
}

/* Carousel */
.steps-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    touch-action: manipulation;
    -webkit-user-drag: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    transition: 0.25s;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    user-select: none;
}

.steps-carousel:active {
    box-shadow: none;
}

.steps-carousel:focus {
    outline: none;
    box-shadow: none;
}

.steps-carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    -webkit-transform: translate3d(0,0,0);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    min-height: 1px;
    -webkit-backface-visibility: hidden;
    touch-action: manipulation;
    user-select: none;
}

.steps-carousel-slide.active {
    display: block;
    opacity: 1;
}

.steps-carousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Text under image */
.steps-image-text {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.steps-image-text-content {
    display: block; /* Показываем все тексты на десктопе */
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    padding: 20px;
    opacity: 0.5; /* Неактивные тексты полупрозрачные */
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    flex: 1;
    max-width: 350px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.steps-image-text-content.active {
    opacity: 1; /* Активный текст полностью видим */
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.step-number-text {
    display: block;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    line-height: 52px;
    text-align: center;
    margin: 0 auto 12px auto;
    color: #f26419;
    transition: all 0.3s ease;
}

.steps-image-text-content.active .step-number-text {
    background: #ffffff;
    color: #f26419;
    box-shadow: 0 0px 0px 3px #f26419;
    transform: scale(1.0);
}

.steps-image-text-content:not(.active) .step-number-text {
    opacity: 0.6;
}

.steps-image-text-content strong {
    color: #111111;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.steps-image-text-content.active strong {
    color: #111111;
    font-weight: 700;
}

.steps-carousel {
    cursor: grab;
}

.steps-carousel:active {
    cursor: grabbing;
}

/* Navigation Arrows */
.steps-image-wrapper {
    position: relative;
}

.steps-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #6C5CE7;
    font-size: 20px;
    border: none;
}

.steps-nav-prev {
    left: 20px;
}

.steps-nav-next {
    right: 20px;
}

.steps-image-wrapper:hover .steps-nav-arrow {
    opacity: 0.8;
}

.steps-nav-arrow:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.steps-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.steps-nav-arrow {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Animation for slide transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.steps-carousel-slide.slide-from-right {
    animation: slideFromRight 0.3s ease-out;
}

.steps-carousel-slide.slide-from-left {
    animation: slideFromLeft 0.3s ease-out;
}

/* Footer Section */
.steps-footer {
    text-align: center;
    margin-top: 40px;
}

.steps-footer-title {
    font-size: 27px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #111111;
}

.steps-avatars-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.steps-avatars-row img {
    height: 70px;
    width: auto;
	margin: 0 0 0 90px;
}

.steps-arrow-text {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333333;
}

/* Testimonial Card */
.steps-testimonial {
    max-width: 900px;
    margin: 50px auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.steps-testimonial img:first-child {
    height: 24px;
    margin-bottom: 20px;
}

.steps-testimonial p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #111111;
}

.steps-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.steps-author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.steps-author-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #111111;
}

.steps-author-meta {
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .steps-section {
        padding: 80px 0;
    }

    .steps-header h2 {
        font-size: 45px;
    }

    .steps-slider-wrapper .row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .steps-section {
        padding: 30px 0;
    }

    .steps-header h2 {
        font-size: 45px;
        margin-bottom: 20px;
    }
    
    .steps-slider-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        z-index: 1;
        display: block;
        overflow: hidden;
        -webkit-transform: translate3d(0,0,0);
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    
    .steps-avatars-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .steps-avatars-row img {
        order: 1;
        height: 58px;
    }
    
    .steps-arrow-text {
        order: 2;
        text-align: center;
    }
    
    .steps-slider-wrapper .row {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-transform: translate3d(0,0,0);
        width: 100%;
        max-width: 100%;
        touch-action: manipulation;
        transform: translate3d(0px, 0px, 0px);
        transition: all;
        min-height: 1px;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        flex-direction: row;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 20px;
        margin: 0;
        /* Скрываем скроллбар, но оставляем функциональность */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE и Edge */
    }
    
    .steps-slider-wrapper .row::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    
    .steps-image-wrapper {
        width: calc(100vw - 40px);
        min-width: 280px;
        max-width: 390px;
   
        flex-shrink: 0;
        position: relative;
        -webkit-transform: translate3d(0,0,0);
        min-height: 1px;
        -webkit-backface-visibility: hidden;
        touch-action: pan-y;
        user-select: none;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        display: block;
        scroll-snap-align: start;
    }
    

    
    .steps-carousel {
        width: 100%;
        display: block;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    }
    
    .steps-carousel-slide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .steps-carousel-slide.active {
        display: block !important;
        opacity: 1 !important;
    }
    
    .steps-carousel img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .steps-image-text {
        margin-top: 20px;
        padding: 0 10px;
        min-height: 155px; /* фиксируем высоту, чтобы steps-footer не смещался при 2/3 строках */
    }
    
    .steps-image-text-content {
        display: none; /* На мобильной версии скрываем неактивные */
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
        opacity: 0;
        background: transparent;
        border: none;
        transform: none;
        box-shadow: none;
    }
    
    .steps-image-text-content.active {
        display: block; /* Показываем только активный */
        opacity: 1;
    }
    
    .step-number-text {
        width: 42px;
        height: 42px;
        font-size: 22px;
        line-height: 42px;
        margin: 0 auto 10px auto;
    }
    
    .steps-image-text-content.active .step-number-text {
        transform: scale(1.1);
    }
    
    .steps-image-text-content strong {
        font-size: 15px;
        display: block;
        margin-bottom: 3px;
    }
    
    .steps-progress-bar-wrapper {
        display: flex;
        width: 100%;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .steps-progress {
        flex: 1;
        height: 3px;
    }

    .steps-footer-title {
        font-size: 27px;
    }

    .steps-testimonial {
        padding: 30px 22px;
    }

    .steps-testimonial p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .steps-header h2 {
        font-size: 35px;
    }
    
    .steps-image-wrapper {
        width: calc(100vw - 20px);
        min-width: 260px;
        max-width: 100%;
    }
    
    .steps-slider-wrapper .row {
        padding: 0 10px;
    }
    
    .steps-image-text {
        margin-top: 18px;
        padding: 0 5px;
        min-height: 150px; /* фиксируем высоту, чтобы steps-footer не смещался при 2/3 строках */
    }
    
    .steps-image-text-content {
        display: none; /* На мобильной версии скрываем неактивные */
        font-size: 13px;
        padding: 0 5px;
        line-height: 1.6;
        opacity: 0;
        background: transparent;
        border: none;
        transform: none;
        box-shadow: none;
    }
    
    .steps-image-text-content.active {
        display: block; /* Показываем только активный */
        opacity: 1;
    }
    
    .step-number-text {
        width: 38px;
        height: 38px;
        font-size: 20px;
        line-height: 38px;
        margin: 0 auto 8px auto;
    }
    
    .steps-image-text-content.active .step-number-text {
        transform: scale(1.1);
    }
    
    .steps-image-text-content strong {
        font-size: 14px;
        display: block;
        margin-bottom: 3px;
    }
    
    .steps-progress-bar-wrapper {
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .steps-progress {
        height: 2px;
    }
    
    .steps-carousel {
        border-radius: 10px;
        box-shadow: none;
    }
    
    .steps-carousel img {
        border-radius: 10px;
    }


    .steps-footer-title {
        font-size: 27px;
    }

    .steps-author-info {
        flex-direction: column;
        text-align: center;
    }
}
