#steps-block {
    border-radius: 10px;
    padding: 80px 145px;
}

#steps-block .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

#steps-block .step-card {
    /* max-height: 260px; */
    border-radius: 12px;
    overflow: hidden;
}

#steps-block .step-image-container {
    width: 100%;
    height: 100%;
    max-height: 260px;
    overflow: hidden;
}

#steps-block .step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#steps-block .step-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#steps-block .step-wrap {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
}

#steps-block .step-card:nth-child(1) .step-wrap {
    max-width: 300px;
}

#steps-block .step-card:nth-child(1) .step-text-wrapper {
    padding: 5px;
    border-radius: 10px;
    /* Убираем фон по умолчанию для десктопа */
    background: none;
}

@media (max-width: 1240px) {
    #steps-block .step-card:nth-child(1) .step-text-wrapper {
        /* Добавляем фон только на мобилке */
        background: rgba(255, 255, 255, 0.8);
    }
}



#steps-block .step-title {
    margin-bottom: 15px;
}

#steps-block .step-description p {
    color: var(--text-primary-main);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

#steps-block .step-description span {
    color: var(--bg-primary-third);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

#steps-block .step-card:nth-child(1) {
    background-image: url(./images/Tilted\ right\ 2.png);
    background-position: right;
    background-repeat: no-repeat;
}

#steps-block .step-card:nth-child(3) {
    background-image: url(./images/image\ 14.png);
    background-position: right 20px top 20px;
    background-repeat: no-repeat;
}

#steps-block .step-card:nth-child(even) {
    background-image: url(./../images/cardbg.png);
    background-position: right top;
    background-color: var(--bg-primary-main);
    background-repeat: no-repeat;
}

#steps-block .step-card:nth-child(even) .step-content {

}

#steps-block .step-card:nth-child(even) .step-title {

}

#steps-block .step-card:nth-child(even) .step-description {

}

#steps-block .step-card:nth-child(odd) {
    border: 1px solid rgba(48, 45, 43, 0.3);
    border-radius: 10px;
}

#steps-block .step-card:nth-child(odd) .step-content {
}

#steps-block .step-card:nth-child(odd) .step-title {

}

#steps-block .step-card:nth-child(odd) .step-description {

}

@media (max-width: 1200px) {
        #steps-block {
        padding: 60px 80px;
    }
}

@media (max-width: 1024px) {
    #steps-block .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #steps-block {
        padding: 40px 20px;
    }
    
    #steps-block .steps-grid {
        grid-template-columns: 1fr;
    }

    #steps-block .step-card {
        max-height: none;
    }

    #steps-block .step-image-container,
    #steps-block .step-content {
        min-height: 200px;
    }
}


@media (max-width: 320px) {
    #steps-block {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    #steps-block .steps-grid {
        gap: 20px;
        margin-top: 20px;
    }
    
    #steps-block .step-content {
        padding: 20px;
        height: auto;
        min-height: 180px;
    }
    
    #steps-block .step-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    #steps-block .step-description p,
    #steps-block .step-description span,
    #steps-block ul li {
        font-size: 14px;
    }
    
    #steps-block .step-number {
        width: 32px;
        height: 32px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #steps-block ul li {
        margin-bottom: 6px;
        padding-left: 12px;
    }
    
    #steps-block ul li::before {
        width: 6px;
        height: 6px;
        top: 8px;
    }
}

#steps-block .step-number-wrapper {
    margin-bottom: 15px;
}

#steps-block .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: var(--bg-primary-third);
    color: white;
    padding: 10px 15px;
}

#steps-block ul {
    margin-top: 10px;
}

#steps-block .step-card:nth-child(4) ul {
    margin: 0;
}

#steps-block ul li {
    position: relative;
    list-style: none;
    margin-bottom: 8px;
    padding-left: 15px;
    color: var(--text-primary-main);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
}

#steps-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--bg-primary-third);
    border-radius: 50%;
}