.steps-block {
    padding-bottom: 155px;
    position: relative;
    margin-bottom: -125px;
}
.steps-block:before {
    content: '';
    position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 77%;
   z-index: 0;
   background-color: #F5F5F8;
}
.steps-block .title {
    text-align: center;
}
.steps-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
}
.steps-item {
    width: calc(100% / 3 - 30px*2/3);
    padding: 23px 25px 18px;
    position: relative;
    margin-right: 30px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 30px rgba(62, 53, 116, 0.12);
    border-radius: 2px;
    background-image: url(bg.png);
    background-position: top right;
    background-size: auto 55px;
    background-repeat: no-repeat;
    min-height: 198px;
}

.steps-item:nth-child(3n) {
    margin-right: 0;
}
.steps-item:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px solid #E31E24;
    border-radius: 2px;
    z-index: 0;
}
.steps-item:last-child {
    background-color: #505050;
    background-image: url(bg-final.png);
    background-size: auto 115px;
    background-position: bottom right;
}
.steps-item:last-child .steps-item-num {
    color: #fff;
}
.steps-item:last-child .steps-item-title {
    color: #fff;
    width: min-content;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;

}
.steps-item:last-child:before {
    display: none;
}
.steps-item:last-child .steps-item-desc { 
    display: none;
}
.steps-item-num {
    position: relative;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #E31E24;
    margin-bottom: 10px;
    z-index: 1;
}
.steps-item-title {
    position: relative;
    font-weight: 700;
    font-size: 18px;
    line-height: 133%;
    color: #505050;
    margin-bottom: 5px;
    z-index: 1;
}
.steps-item-desc {
    position: relative;
    font-weight: 400;
    font-size: 16px;
    line-height: 138%;
    color: #505050;
    z-index: 1;
}
@media (max-width: 1199px) { 
    .steps-item:last-child {
        background-size: auto 134px;
    }
}
@media (max-width: 991px) { 
    .steps-content {
        margin-top: 40px;
    }
    .steps-item {
        width: calc(100% / 3 - 20px*2/3);
        margin-right: 20px;
        margin-bottom: 20px;
    }
    .steps-item-desc {
        font-size: 14px;
    }
    .steps-item {
        padding: 19px 19px 15px;
        background-size: auto 40px;
    }
    .steps-item-title {
        font-size: 16px;
    }
    .steps-item:last-child .steps-item-title {
        font-size: 14px;
        line-height: 25px;
    }
    .steps-item:last-child {
        background-size: auto 115px;
    }
}
@media (max-width: 767px) { 
    .steps-item {
        width: calc(50% - 10px);
    }
    .steps-item:nth-child(3n) {
        margin-right: 20px;
    }
    .steps-item:nth-child(2n) { 
        margin-right: 0;
    }
    .steps-item-title {
        font-size: 18px;
    }
    .steps-item-desc {
        font-size: 15px;
    }
}
@media (max-width: 480px) {  
    .steps-item-desc {
        font-size: 12px;
    }
    
    .steps-item-title {
        font-size: 13px;
    }
    .steps-item {
        min-height: 150px;
        padding: 12px 15px 15px;
        width: calc(50% - 5px);
        margin-right: 10px;
        margin-bottom: 10px;
    }
    .steps-item:nth-child(3n) {
        margin-right: 10px;
    }
    .steps-item:nth-child(2n) { 
        margin-right: 0;
    }
    .steps-item-num {
        font-size: 20px;
        line-height: 22px;
    }
    .steps-item:last-child {
        background-size: auto 84px;
    }
    .steps-content {
        margin-top: 30px;
    }
}
@media (max-width: 380px) {  
    .steps-item:last-child {
        background-size: auto 72px;
    }
}