/* Step Block Styles */
.step-block {
    padding: 80px 20px;
    background-color: #F8F9FA;
}

.step-block__container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-block__title {
    font-size: 40px;
    font-weight: 600;
    color: #0A0F1C;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-block__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #5A5A5A;
    text-align: left !important;
    margin-bottom: 60px;
    margin-left: 0 !important;
    margin-right: auto !important;
    line-height: 1.6;
    max-width: 800px;
    padding: 0 !important;
}

.step-block__steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Vertical Timeline Line - плавный градиент */
.step-block__steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: 70px;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--tcm-accent) 0%, 
        var(--tcm-accent) var(--progress, 0%), 
        #EBEBEB var(--progress, 0%), 
        #EBEBEB 100%);
    z-index: 1;
    transition: none;
}

/* Убираем ::after, т.к. теперь используем градиент */
.step-block__steps::after {
    display: none;
}

.step-block__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    padding-left: 100px;
}

/* Remove alternate layout */
.step-block__item--right {
    flex-direction: row;
}

/* Number Circle Wrapper */
.step-block__number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #EBEBEB;
    border: none;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    z-index: 10;
    box-shadow: none;
}

.step-block__number span {
    display: none;
}

.step-block__number::before {
    content: attr(data-step);
}

/* Active state for number circle */
.step-block__item.active .step-block__number {
    background-color: var(--tcm-accent);
    color: #fff;
    box-shadow: none;
}

.step-block__content {
    flex: 1;
    min-width: 0;
}

.step-block__step-title {
    font-size: 24px;
    font-weight: 600;
    color: #0A0F1C;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.step-block__description {
    font-size: 16px;
    line-height: 1.7;
    color: #64748B;
    margin: 0 0 20px 0;
    padding: 0 !important;
}

.step-block__description a {
    color: var(--tcm-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.step-block__description a:hover {
    color: var(--tcm-accent-hover);
    text-decoration: underline;
}

.step-block__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--tcm-accent);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.step-block__button:hover {
    background: var(--tcm-accent-hover);
}


.step-block__button svg {
    width: 16px;
    height: 16px;
}

.step-block__image {
    flex-shrink: 0;
    max-width: 557px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-block__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .step-block {
        padding: 60px 20px;
    }
    
    .step-block__title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    
    .step-block__item {
        flex-direction: column !important;
        padding: 30px 20px;
        padding-left: 85px;
        gap: 25px;
        text-align: left;
    }
    
    .step-block__number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .step-block__step-title {
        font-size: 20px;
    }
    
    .step-block__description {
        font-size: 15px;
    }
    
    .step-block__button {
        align-self: flex-start;
    }
    
    .step-block__image {
        max-width: 100%;
        margin-left: -18%;
    }
}

@media (max-width: 899px) {
    .step-block {
        padding: 50px 15px;
    }
    
    .step-block__title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .step-block__steps::before {
        left: 25px;
    }
    
    .step-block__steps::after {
        left: 25px;
    }
    
    .step-block__steps {
        gap: 30px;
    }
    
    .step-block__item {
        flex-direction: column !important;
        padding: 30px 20px;
        padding-left: 85px;
        gap: 25px;
    }
    
    .step-block__number {
        width: auto;
        height: auto;
        top: 10%;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        gap: 6px;
    }
    
    .step-block__number::before {
        content: 'Step ' attr(data-step);
    }
    
    .step-block__step-title {
        font-size: 20px;
    }
    
    .step-block__description {
        font-size: 15px;
    }
    
    .step-block__button {
        width: 40%;
        justify-content: center;
    }
    
    .step-block__image {
        max-width: 309px;
        margin-left: -55%;
    }
}

@media (max-width: 600px) {
    .step-block {
        padding: 40px 15px;
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .step-block__title {
        font-size: 28px;
        margin-bottom: 30px;
        text-align: left;
    }
    .step-block__subtitle {
        text-align: left !important;
    }
    
    .step-block__steps::before {
        left: 22px;
    }
    
    .step-block__steps::after {
        left: 22px;
    }
    
    .step-block__steps {
        gap: 25px;
    }
    
    .step-block__item {
        flex-direction: column !important;
        padding: 25px 15px;
        gap: 20px;
        text-align: left;
    }
    

    
    .step-block__step-title {
        font-size: 18px;
        margin-bottom: 12px;
        margin-left: 70px;
        text-align: left;
    }
    
    .step-block__description {
        font-size: 14px;
        margin-bottom: 15px;
        margin-left: 40px;
        text-align: left;
    }
    
    .step-block__button {
        padding: 10px 20px;
        font-size: 11px;
        margin: 0 auto;
        display: flex;
    }
    
    .step-block__image {
        max-width: 100%;
        margin-left: 40px;
    }
}
@media (max-width: 400px) {
    .step-block__button {
        font-size: 9px;
        padding: 5px 5px;
    }
}