.massages {
    position: relative;
    padding: var(--block-padding) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.massages--dark {
    background-color: var(--color-levander);
}

    .massages__left,
    .massages__right {
        position: absolute;
        top: 50%;
        transform: translateY(50%);
        z-index: 1;
        width: 72px;
        height: 72px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        border-radius: 50%;
        background-color: #fff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1),
                    0 2px 6px rgba(0, 0, 0, 0.08);
        font-size: 24px;
        color: var(--color-dark);
        transition: var(--transition);
        cursor: pointer;
    }

    .massages__left:hover,
    .massages__right:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
                    0 4px 10px rgba(0, 0, 0, 0.12);
        transform: translateY(50%) scale(1.05);
    }

    .massages__left {
        left: calc(((100% - var(--inner-width)) / 2) - 36px);
    }

    .massages__right {
        right: calc(((100% - var(--inner-width)) / 2) - 36px);
    }

    .massages__list {
        padding-right: 0;
        width: var(--inner-width);
        display: flex;
        gap: 48px;
        overflow: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .massages__list::-webkit-scrollbar {
        display: none;
    }

        .massages__item {
            width: calc((100% - 96px) / 3);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            background-color: #fff;
            border-radius: 12px 80px 12px 12px;
            box-shadow: 0 4px 25px 0 rgba(183, 183, 183, 0.15);
            scroll-snap-align: start;
            overflow: hidden;
        }

            .massages__item-img {
                position: relative;
                padding-top: 60%;
                width: 100%;
                overflow: hidden;
            }

                .massages__item-img > img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 1;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                    transition: var(--transition);
                }

                .massages__item:hover .massages__item-img > img {
                    transform: scale(1.1);
                }

            .massages__item-content {
                padding: 24px;
                width: 100%;
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                gap: 24px;
                background-color: #fff;
            }

                .massages__item-content > h3 {
                    font-size: 16px;
                    font-weight: 600;
                    color: var(--color-light);
                }

                .massages__item-content > p {
                    font-size: 14px;
                    font-weight: 300;
                    color: var(--color-light);
                }

                .massages__item-notifications {
                    margin-top: auto;
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                    list-style-type: none;
                }

                    .massages__item-notifications > li {
                        font-size: 12px;
                        font-weight: 300;
                        color: var(--color-light);
                    }

            .massages__item-footer {
                margin-top: auto;
                padding: 24px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                background-color: var(--color-pale-pink);
            }

                .massages__item-duration {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    font-size: 14px;
                    font-weight: 600;
                    color: var(--color-strawberry);
                }

                .massages__item-price {
                    padding: 8px 16px;
                    background-color: var(--color-strawberry);
                    border-radius: 12px;
                    font-size: 14px;
                    font-weight: 600;
                    color: #fff;
                }

@media screen and (max-width: 1023px) {
    .massages__left,
    .massages__right {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .massages__left {
        left: calc(((100% - var(--inner-width)) / 2) - 24px);
    }

    .massages__right {
        right: calc(((100% - var(--inner-width)) / 2) - 24px);
    }

    .massages__list {
        gap: 24px;
    }

        .massages__item {
            width: 100%;
            height: fit-content;
        }

            .massages__item-duration {
                font-size: 12px;
            }

            .massages__item-price {
                font-size: 12px;
            }
}