.How_It_Works {
    display: flex;
    justify-content: center;
    align-items: center;
}

.How_It_Works_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
}

.How_It_Works_title{
    color: #545C9E;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 550;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 40px;
}
.How_It_Works_title_h1{
    margin-top: 32px;
    text-align: center;
    width: 683px;
    height: 137px;
    background: linear-gradient(
            145deg,
            #80E5FF 0px,
            #545C9E 20%,
            #545C9E 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 56px;
    letter-spacing: 2px;
    font-weight: 550;
}

.line_gradient {
    margin-left: 40px;
    width: 32px;
    height: 1px;
    background: linear-gradient(
            145deg,
            #80E5FF 0px,
            #545C9E 80%,
            #545C9E 100%
    );

}
.How_It_Works_title_h2 {
    color: #545C9E;
    font-size: 20px;
    width: 529px;
    padding: 5px;
}
.How_It_Works_title_h3 {
    color: #545C9E;
    font-size: 16px;
    width: 192px;
}

.How_It_Works_body{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
.Cards1{
    width: 265px;
    height: 400px;
    border-radius: 20px;
    padding-top: 30px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url('/assets/image/home_desktop/How_It_Works/Dots.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    /*justify-content: space-around;*/
    flex-direction: column;
}
.step{
    background-color: #F1F2F9;
    border-radius: 15px;
    padding: 5px 10px 5px  10px;
    text-align: center;
    color: #545C9E;
}

.Cards_wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 180px;
    padding-top: 40px;
}
.Cards_Title{
    color: #545C9E;
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.Cards_body{
    color: #545C9E;
    font-size: 16px;
    text-align: center;
}

.Cards2{
    width: 265px;
    height: 400px;
    border-radius: 20px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url('/assets/image/home_desktop/How_It_Works/Dots.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}
.Cards3{
    width: 265px;
    height: 400px;
    border-radius: 20px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url('/assets/image/home_desktop/How_It_Works/Dots.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}
.Cards4{
    width: 265px;
    height: 400px;
    border-radius: 20px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url('/assets/image/home_desktop/How_It_Works/Dots.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.How_It_Works_footer{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Адаптив под планшет --- */
@media (max-width: 1024px) {
    .How_It_Works_title_h1 {
        width: 90%;
        height: auto;
        font-size: 42px;
    }

    .How_It_Works_title_h2 {
        width: 80%;
        text-align: center;
        font-size: 18px;
    }

    .How_It_Works_body {
        flex-wrap: wrap;
        gap: 63px;
    }

    .Cards1, .Cards2, .Cards3, .Cards4 {
        width: 220px;
        height: auto;
        padding: 20px;
    }
}

/* --- Адаптив под мобильные --- */
@media (max-width: 768px) {

    .How_It_Works_title {
        margin-left: 0;
        text-align: center;
    }

    .line_gradient {
        margin-left: 0;
        margin: 10px auto;
    }

    .How_It_Works_title_h1 {
        font-size: 32px;
        width: 100%;
        height: auto;
        line-height: 1.3;
    }

    .How_It_Works_title_h2 {
        width: 100%;
        font-size: 16px;
        text-align: center;

    }

    .How_It_Works_body {
        gap: 20px;
        flex-direction: column;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .Cards1, .Cards2, .Cards3, .Cards4 {
        width: 90%;
        max-width: 320px;
        height: auto;
        margin: 15px 0;
        padding: 20px;
    }

    .Cards_Title {
        font-size: 18px;
        height: auto;
        margin-bottom: 5px;
    }

    .Cards_body {
        font-size: 14px;
    }
    .How_It_Works_footer{
        padding: 10px;
    }
}

/* --- Супер-маленькие экраны (телефоны до 480px) --- */
@media (max-width: 480px) {
    .How_It_Works_title_h1 {
        font-size: 26px;
    }

    .How_It_Works_title_h2 {
        font-size: 14px;
    }

    .Cards1, .Cards2, .Cards3, .Cards4 {
        max-width: 280px;
        padding: 15px;
    }

    .Cards_Title {
        font-size: 16px;
    }

    .Cards_body {
        font-size: 13px;
    }
}