.how-works {
    margin: 80px 0;
}

.how-works__subtitle {
    margin-bottom: 10px;
}

.how-works__title {
    max-width: 64%;
    margin-top: 20px;
    margin-bottom: 75px;
}

.how-works__steps {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 46px 120px;
    position: relative;
}

.how-step {
    max-width: 282px;
    width: 100%;
    position: relative;
    text-align: center;
}

.how-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F39C12;
    border-radius: 50%;
    position: absolute;
    width: 50px;
    height: 50px;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    color: #FFFFFF;
    z-index: 2;
}

.how-step__image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.how-step__image img {
    max-width: 282px;
    width: 100%;
    height: 172px;
}

.how-step__text {
    font-size: 20px;
    line-height: 130%;
    font-weight: 500;
    text-align: center;
    color: #000000;
}

.how-works__steps-line {
    display: flex;
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
}

.how-works__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    color: #FFFFFF;
}

@media (max-width: 1280px) {
    .how-works {
        margin: 42px 0;
    }
    .how-works__title {
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 48px;
        line-height: 100%;
    }
    .how-works__title span {
        display: block;
    }
    .how-works__steps {
        flex-direction: column;
        gap: 35px;
    }
    .how-step {
        max-width: 241px;
        width: 100%;
        position: relative;
        text-align: center;
        margin: 0 auto;
        position: relative;
    }
    .how-step:nth-child(1n + 2):after {
        content: '';
        background-image: url("/wp-content/uploads/2025/12/Group-1-1.svg");
        background-repeat: no-repeat;
        background-size: contain;
        width: 47px;
        height: 258px;
        position: absolute;
        top: 50%;
        left: -50px;
        transform: translateY(-15%);
    }
    .how-step:nth-child(2n + 2):after {
        content: '';
        background-image: url("/wp-content/uploads/2025/12/Group.svg");
        background-repeat: no-repeat;
        background-size: contain;
        width: 47px;
        height: 258px;
        position: absolute;
        top: 50%;
        left: auto;
        right: -50px;
        transform: translateY(-15%);
    }
    .how-step:last-child:after {
        display: none;
    }
    .how-step__number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .how-works__steps-line {
        display: none;
    }
    .how-step__image {
        margin-bottom: 10px;
    }
    .how-step__image img {
        max-width: 241px;
        width: 100%;
        height: 172px;
        margin: 0 auto;
    }
    .how-step__text {
        font-size: 15px;
        line-height: 18px;
    }
    .how-works__btn {
        margin-top: 22px;
    }
}