.how-work {
    margin: 8rem 0;
}

.how-work__inner {
    display: flex;
    flex-direction: column;
    padding: 4rem 2.4rem;
    background-color: #f8f8f8;
    border-radius: 1.7rem;
    border: 1px solid #eaeaeb;
    gap: 2.4rem;
}

.how-work__head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.2rem;
}

.how-work__head-left {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.how-work__title {
    font-weight: 600;
    font-size: 3.2rem;
    line-height: 3.84rem;
    color: #272727;
}

.how-work__subtitle {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.7rem;
    color: #272727;
}

.how-work__number {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.how-work__number p {
    font-weight: 500;
    font-size: 4rem;
    line-height: 110%;
    text-align: right;
    color: #D9012A;
}

.how-work__number span {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.7rem;
    color: #272727;
    text-align: right;
}

.how-work__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

.how-work__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #EAEAEB;
    background-color: #fff;
    border-radius: 1.6rem;
    padding: 1.6rem;
    gap: 1rem;
}

.how-work__card-content {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.how-work__card-title {
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 110%;
    color: #1E5D9D;
}

.how-work__card-text {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.7rem;
    color: #272727;
}

.how-work__card-image {
    width: 100%;
    height: 18.7rem;
}

.how-work__card-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.how-work__card-image picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.how-work__sub {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.7rem;
    color: #272727B2;
}
@media (max-width: 48em) {
    .how-work__inner {
        padding: 3.413rem 2.731rem;
        gap: 2.219rem;
        border-radius: 2.901rem;
    }

    .how-work__head {
        flex-direction: column;
        gap: 4.096rem;
    }

    .how-work__head-left {
        gap: 1.365rem;
    }

    .how-work__title {
        font-size: 4.096rem;
        line-height: 100%;
    }

    .how-work__subtitle {
        font-size: 2.389rem;
        line-height: 2.901rem;
    }

    .how-work__number {
        gap: 1.365rem;
    }

    .how-work__number p {
        font-size: 6.827rem;
        text-align: left;
    }

    .how-work__number span {
        font-size: 2.389rem;
        line-height: 2.901rem;
        text-align: left;
    }

    .how-work__cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 4.096rem;
    }

    .how-work__card {
        border-radius: 2.731rem;
        padding: 2.731rem;
        gap: 3.413rem;
    }
    .how-work__card-content {
        gap: 1.365rem;
    }
    .how-work__card-title {
        font-size: 3.072rem;
    }
    .how-work__card-text {
        font-size: 2.389rem;
        line-height: 2.901rem;
    }
    .how-work__card-image{
        height: 31.915rem;
    }
    .how-work__sub {
        font-size: 2.389rem;
        line-height: 2.901rem;
    }



}


















