.home-advantages {
    position: relative;
    padding: 5rem 0 6.875rem;
}

.home-advantages__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.home-advantages__background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-advantages__title {
    position: relative;
    z-index: 3;
    font-family: var(--font-secondary);
    text-align: center;
    margin-bottom: 4.375rem;
    white-space: unset;
    max-width: 80%;
}

.home-advantages__title-main {
    display: block;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-secondary);
    font-size: 2.125rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}

.home-advantages__title-sub {
    display: block;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--color-accent);
    font-family: var(--font-secondary);
    font-size: 3.125rem;
    line-height: 2.75rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.home-advantages__body-image-wrapper {
    position: absolute;
    top: -0.5rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 66rem;
    overflow-x: hidden;
    overflow-y: visible;
}

.home-advantages__body-image {
    width: auto;
    height: 66rem;
    object-fit: cover;
    object-position: left;
}

.home-advantages__list {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 28.1%;
}

.home-advantages__column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-advantages__column--left,
.home-advantages__column--right {
    display: none;
}

.home-advantages__item {
    text-align: left;
    max-width: 17.5625rem;
}

.home-advantages__item-title {
    font-family: var(--font-secondary);
    color: var(--color-accent);
    font-size: 22px;
    line-height: 23px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.home-advantages__item-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.313;
    color: #F2EFEA;
}

@media (min-width: 769px) {
    .home-advantages {
        padding: 6.25rem 0 8.125rem;
        min-height: auto;
        max-height: none;
    }

    .home-advantages__title {
        margin-bottom: 200px;
        max-width: 100%;
    }

    .home-advantages__title-main {
        font-size: 2.5rem;
        line-height: 3.75rem;
        text-align: left;
    }

    .home-advantages__title-sub {
        font-size: 4.375rem;
        line-height: 3.75rem;
    }

    .home-advantages__body-image-wrapper {
        top: 49.5%;
        left: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
        width: auto;
        overflow: visible;
        height: 900px;
    }

    .home-advantages__body-image {
        height: 900px;
        width: auto;
        object-fit: cover;
        object-position: center;
    }


    .home-advantages__column {
        gap: 1.7rem;
    }

    .home-advantages__list {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        margin-left: 0;
        width: 100%;
    }

    .home-advantages__item {
        max-width: 17.5rem;
    }

    .home-advantages__item-title {
        margin-bottom: 0.25rem;
    }

    .home-advantages__column {
        width: 45%;
    }

    .home-advantages__column--left,
    .home-advantages__column--right {
        display: flex;
    }

    /* reordering columns */
    .home-advantages__column--left {
        order: 2;
        align-items: flex-end;
    }

    .home-advantages__column--right {
        order: 1;
        align-items: flex-start;
    }

    .home-advantages__column--right .home-advantages__item-title {
        text-align: left;
    }

    /* Змінюємо порядок елементів у колонках */
    .home-advantages__column--right .home-advantages__item:nth-child(1) {
        order: 2;
        margin-top: 2rem;
    }

    .home-advantages__column--right .home-advantages__item:nth-child(2) {
        order: 1;
        /* Boosted Libido & Performance */
        margin-top: 0;
    }

    .home-advantages__column--left .home-advantages__item:nth-child(1) {
        order: 1;
        /* Confidence Booster */
        margin-top: 0;
    }

    .home-advantages__column--left .home-advantages__item:nth-child(2) {
        order: 2;
        /* Improved Blood Flow */
        margin-top: 2rem;
    }

    .home-advantages__item-text {
        font-size: 1.0625rem;
        line-height: 1.4375rem;
        max-width: 270px;
    }
}

@media (max-width: 768px) {
    .home-advantages__list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .home-advantages__column {
        width: 100%;
    }

    .home-advantages__column--left,
    .home-advantages__column--right {
        display: flex;
    }

    .home-advantages__column--left .home-advantages__item:nth-child(1) {
        margin-top: 0;
    }

    .home-advantages__column--left .home-advantages__item:nth-child(2) {
        margin-top: 1.1rem;
    }

    .home-advantages__column--right .home-advantages__item:nth-child(1) {
        margin-top: 0.625rem;
    }

    .home-advantages__column--right .home-advantages__item:nth-child(2) {
        margin-top: 1.625rem;
    }
}

@media (max-width: 420px) {
    .home-advantages__title-sub {
        font-size: 2rem;
        width: 100%;
    }

    .home-advantages__title-main {
        font-size: 1.75rem;
        width: 100%;
        white-space: nowrap;
    }

    .home-advantages__list {
        margin-left: 31%;
        gap: 0.8rem;
    }

    .home-advantages__column {
        gap: 0;
    }

    .home-advantages__body-image-wrapper  {
        top: -1rem;
    }

        .home-advantages__column--left .home-advantages__item:nth-child(2) {
        margin-top: 1.2rem;
    }
}