.spaces__wrapper {
    display: flex;
}

.spaces__content {
    flex-basis: 556px;
}

.spaces__image-wrapper {
    flex-basis: 804px;
    flex-grow: 1;
    margin-left: -243px;
    display: flex;
    position: relative;
    z-index: 5;
}


.spaces__heading {
    max-width: 391px;
    margin-bottom: 30px;
}

.spaces__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: my-counter;
}

.item-spaces {
    display: flex;
    padding: 4.2px 5px;
    border: 1px solid #f5efda;
    border-radius: 100px;
    background: #f6f1df;
    align-items: center;
}

.item-spaces__left,
.item-spaces__right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-spaces__left {
    margin-right: 39px;
    position: relative;
}

.item-spaces__left::after {
    content: '';
    position: absolute;
    right: -21px;
    width: 1px;
    height: 100%;
    background: #dbd3b7;
}

.item-spaces::before {
    content: counter(my-counter, upper-alpha);
    counter-increment: my-counter;
    position: relative;
    left: 0;
    border-radius: 100px;
    width: 70px;
    height: 70px;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: center;
    color: #21201e;
    font-family: 'Bodoni Antiqua URW Light', sans-serif;
}

.item-spaces__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.spaces__btn {
    margin-top: 48px;
    min-width: 290px;
}

.item-spaces__text {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5f60;
    position: relative;
    top: -7px;
}

.spaces__image {
    object-fit: contain;
}

@media screen and (min-width: 1600px) {
    .item-spaces::before {
        width: 80px;
        height: 80px;
        font-size: 42px;
    }

    .spaces__content {
        flex-grow: 1;
    }

    .spaces__image-wrapper {
        margin-left: -300px;
    }

    .item-spaces__icon {
        width: 40px;
        height: 40px;
    }

    .item-spaces__text {
        font-size: 16px;
    }


}

@media screen and (max-width: 1199.98px) {
    .item-spaces::before {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .spaces__heading {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .spaces__image-wrapper {
        margin-left: -150px;
    }

    .spaces__btn {
        margin-top: 30px;
    }
}

@media screen and (max-width: 1024.98px) {
    .spaces__wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .spaces__image-wrapper {
        margin-left: 0;
    }

    .spaces__image-wrapper,
    .spaces__content {
        flex-basis: fit-content;

    }

    .spaces__heading {
        max-width: 100%;
    }

    .spaces__btn {
        margin-top: 0;
    }

    .spaces__image {
        max-height: 600px;
    }

}

@media screen and (max-width: 599.98px)  {
    .item-spaces::before {
       width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .item-spaces {
        padding: 3.2px 4px;
    }

    .item-spaces__icon {
        width: 28px;
        height: 28px;
    }

    .item-spaces__left {
        gap: 8px;
    }

    .item-spaces__text {
        top: 0;
    }

    .item-spaces__heading {
        position: relative;
        top: 3px;
    }

    .spaces__btn {
        width: 100%;
    }
}