.how-work {
    position: relative;
    width: 100%;
    background: var(--s-color);
    padding: 90px;
}

.how-work::before {
    content: '';
    background-image: url('../patterns/hpr.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    width: 136px;
    height: 172px;
    position: absolute;
    top: 30%;
    right: 0;
}

.how-work::after {
    content: '';
    background-image: url('../patterns/hpl.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
    width: 136px;
    height: 172px;
    position: absolute;
    top: 30%;
    left: 0;
}

.how-work-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 2;
    position: relative;
}

.how-work-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.how-work-item {
    background: var(--w-color);
    padding: 30px 80px 30px 30px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.how-work-item-icon {
    line-height: 0;
    background: var(--p-color);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    border-radius: 100px;
    border: 8px solid var(--w-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    right: -60px;
}

.how-work-item-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--s-color);
}

.how-work-item-text p {
    font-size: 18px;
    line-height: 32px;
}

.how-work-item-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.section-title-w h3 {
    color: var(--w-color);
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .how-work {
        position: relative;
        width: 100%;
        background: var(--s-color);
        padding: 50px 80px;
    }

    .how-work-items {
        gap: 24px;
    }

    .how-work-item {
        padding: 60px 20px 20px 20px;
    }

    .how-work-item-icon {
        width: 100px;
        height: 100px;
        top: 0;
        left: 50%;
        right: unset;
        transform: translate(-50%, -50%);
    }

    .how-work-item-text {
        gap: 0;
    }

    .how-work-item-text h3 {
        font-size: 20px;
        line-height: 1.9;
        text-align: center;
    }

    .section-title-w h3 {
        margin-bottom: 50px;
    }

    .how-work-item-text p {
        font-size: 16px;
        line-height: 1.8;
        text-align: center;
    }
}

@media (max-width: 992px) {

    .how-work {
        padding: 50px 10px;
    }

    .how-work-item-icon img {
        width: 34px;
        height: 34px;
    }

    .how-work-item-text h3 {
        font-size: 18px;
        line-height: 1.8;
    }

    .how-work-item-text p {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .how-work-item {
        padding: 60px 15px 15px 15px;
    }
}

@media (max-width: 768px) {
    .how-work {
        padding: 40px 10px;
    }

    .section-title-w h3 {
        margin-bottom: 30px;
    }

    .how-work-item-icon {
        width: 90px;
        height: 90px;
        border-width: 5px;
    }

    .how-work-item-text h3 {
        font-size: 17px;
        line-height: 1.7;
    }

    .how-work-item {
        padding: 54px 15px 15px 15px;
    }

    .how-work-item-text {
        gap: 8px;
    }

    .how-work-item-text p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .how-work-content {
        gap: 0;
    }

    .how-work-items {
        display: grid;
        gap: 16px;
    }

    .how-work-item {
        padding: 15px;
        gap: 16px;
    }

    .how-work-item-icon {
        position: relative;
        right: -42px;
        top: 40px;
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .how-work-item-text {
        align-items: start;
    }

    .how-work-item-text p {
        font-size: 15px;
        width: 100%;
        text-align: right;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .section-title-w h3 {
        margin-bottom: 20px;
    }
}

@media (max-width: 400px) {
.how-work {
	padding: 30px 0;
}

    .how-work-item-icon {
        position: relative;
        right: -42px;
        top: 40px;
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .how-work-item {
        padding: 15px;
        gap: 8px;
    }


    .how-work-item-icon {
        position: relative;
        right: -42px;
        top: 34px;
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .how-work-item-icon img {
        width: 26px;
        height: 26px;
    }

    .how-work-item-text {
        gap: 0;
    }

    .how-work-item-text h3 {
        font-size: 16px;
        line-height: 1.7;
    }

}