.boxes-main__media_masters {
    gap: 15px;
    justify-content: flex-end;
}

.boxes-master-card {
    width: 180px;
    height: 253px;
    flex: 0 0 180px;
    box-sizing: border-box;
    padding-bottom: 0;
    display: block;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.boxes-master-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.boxes-master-card .boxes-catering-block {
    width: calc(100% - 28px);
    bottom: 14px;
    left: 14px;
}

.boxes-master-card .boxes-catering-block__head {
    font-size: 23px;
}

.boxes-master-card .boxes-catering-block__label {
    font-size: 14px;
}

.boxes-master-card .boxes-catering-block__arrow {
    flex: 0 0 36px;
    width: 36px;
}

.boxes-master-card .boxes-catering-block__arrow svg {
    width: 36px;
    height: 36px;
}


/* stories-layer-fix */
.boxes-catering__body {
    position: relative;
    z-index: 3;
    background: #fff;
}

.boxes-stories-slider {
    position: relative;
    z-index: 2;
    clip-path: inset(0 -100vw 0 0);
}
.boxes-stories-slider {
    min-width: 0;
    flex: 0 0 50%;
    padding: 0 15px;
    transform: translate(-100%);
    overflow: visible;
}

.boxes-stories-slider__track {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.boxes-stories-slider__track::-webkit-scrollbar {
    display: none;
}

.boxes-stories-slider.swiper-initialized .boxes-stories-slider__track {
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.boxes-stories-slider.swiper-initialized .boxes-stories-slider__item {
    scroll-snap-align: unset;
}
.boxes-stories-slider__item {
    flex: 0 0 212px;
    width: 212px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    scroll-snap-align: start;
    text-align: center;
}

.boxes-stories-slider__frame {
    width: 212px;
    height: 282px;
    box-sizing: border-box;
    border: 3px solid #0A7FD6;
    border-radius: 32px;
    background: #fff;
    padding: 4px;
    overflow: hidden;
    display: block;
}

.boxes-stories-slider__frame img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    display: block;
}

.boxes-stories-slider__caption {
    margin-top: 18px;
    font-family: "Source Sans Pro", SourceSansPro, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24.5339px;
    line-height: 31px;
    text-align: center;
    color: #0A7FD6;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boxes-stories-zuck {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#zuck-modal {
    z-index: 10000;
}

@media (max-width: 992px) {
    .boxes-main__media_masters {
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .boxes-main__media_masters::-webkit-scrollbar {
        display: none;
    }

    .boxes-master-card {
        padding-bottom: 0;
    }
    .boxes-stories-slider {
        clip-path: none;
        width: 100%;
        flex: 0 0 100%;
        transform: translate(0);
        padding: 0 25px;
    }

    .boxes-stories-slider__track {
        gap: 8px;
        padding-bottom: 4px;
    }

    .boxes-stories-slider__item {
        flex-basis: 133px;
        width: 133px;
    }

    .boxes-stories-slider__frame {
        width: 133px;
        height: 188px;
        border-radius: 22px;
    }

    .boxes-stories-slider__frame img {
        border-radius: 16px;
    }

    .boxes-stories-slider__caption {
        margin-top: 12px;
        font-size: 15px;
        line-height: 19px;
    }
}
/* Story modal CTA */
#zuck-modal-content .story-viewer .tip.link {
    --story-width: min(100vw, 56.25vh);
    width: min(856px, calc(var(--story-width) * 0.793));
    height: min(166px, calc(var(--story-width) * 0.154));
    min-height: 56px;
    box-sizing: border-box;
    bottom: 7vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: min(35px, calc(var(--story-width) * 0.032));
    background: #14AAFF;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.25);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 0 calc(var(--story-width) * 0.12) 0 calc(var(--story-width) * 0.08);
    font-family: CoreSans, "Core Sans DS", sans-serif;
    font-size: clamp(24px, calc(var(--story-width) * 0.051), 55px);
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    z-index: 100030;
}

#zuck-modal-content .story-viewer .slides .item.active .tip.link {
    display: flex;
}

#zuck-modal-content .story-viewer .tip.link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: max(18px, calc(var(--story-width) * 0.037));
    width: clamp(28px, calc(var(--story-width) * 0.05), 54px);
    height: clamp(25px, calc(var(--story-width) * 0.044), 48px);
    background: url("../img/stories/assets/how-it-works/tg.svg") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 576px) {
    #zuck-modal-content .story-viewer .tip.link {
        bottom: 7vh;
    }
}
#zuck-modal-content .story-viewer .tip.link[href^="https://hookah-catering.ru/"] {
    background: #000;
    padding: 0 calc(var(--story-width) * 0.08);
}

#zuck-modal-content .story-viewer .tip.link[href^="https://hookah-catering.ru/"]::after {
    display: none;
}
#zuck-modal-content .story-viewer[data-story-id="tasting"] .tip.link {
    background: #000;
    padding: 0 calc(var(--story-width) * 0.08);
}

#zuck-modal-content .story-viewer[data-story-id="tasting"] .tip.link::after {
    display: none;
}
