/* Mafia stories */
.hero__items.hero__items_as-leader {
    display: block;
    padding-bottom: 30px;
}

.hero__items_as-leader .leader__heading {
    padding: 0;
}

.hero__items_as-leader .leader__link_pc {
    display: flex;
    background: #fff;
    color: #000 !important;
}

.mafia-stories-column {
    min-width: 0;
}

.mafia-stories-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 2px 0 8px;
}

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

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

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

.mafia-stories-slider.swiper-initialized .mafia-stories-slider__item {
    scroll-snap-align: unset;
}

.mafia-stories-slider__item {
    flex: 0 0 180px;
    width: 180px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    scroll-snap-align: start;
    text-align: center;
    color: #000;
}

.mafia-stories-slider__frame {
    width: 180px;
    height: 252px;
    box-sizing: border-box;
    border: 3px solid #0A7FD6;
    border-radius: 22px;
    background: #fff;
    padding: 4px;
    overflow: hidden;
    display: block;
}

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

.mafia-stories-slider__item.is-viewed .mafia-stories-slider__frame {
    border-color: #B8B8B8;
}

.mafia-stories-slider__caption {
    margin-top: 12px;
    font-family: "Prosto One", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: #000;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mafia-stories-slider__time {
    margin-top: 2px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
    color: #8A8A8A;
    display: block;
    text-align: center;
}

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

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

#zuck-modal-content .story-viewer .tip.link {
    display: none !important;
}

.leader__column.mafia-stories-column {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.leader__column.mafia-stories-column .mafia-stories-slider {
    width: 100%;
}

/* Stories right-edge viewport */
@media (min-width: 993px) {
    .leader,
    .leader .container,
    .leader__body,
    .leader__column.mafia-stories-column {
        overflow: visible;
    }

    .leader__body {
        position: relative;
        gap: 30px;
    }

    .leader__body > .leader__column:first-child {
        position: relative;
        z-index: 3;
    }

    .leader__column.mafia-stories-column {
        position: relative;
        z-index: 2;
        min-width: 0;
    }

    .leader__column.mafia-stories-column .mafia-stories-slider {
        width: calc(100% + 15px);
        max-width: none;
        overflow: visible;
        clip-path: inset(0 -100vw 0 0);
    }
}

@media (max-width: 992px) {
    .hero__items.hero__items_as-leader {
        width: 100%;
        flex-basis: auto;
        padding-bottom: 0;
    }

    .hero__items_as-leader .leader__box {
        padding: 18px;
        margin-bottom: 10px;
    }

    .hero__items_as-leader .leader__row {
        margin-bottom: 10px;
    }

    .leader__column.mafia-stories-column {
        order: 0;
        margin-bottom: 16px;
    }

    .mafia-stories-slider {
        overflow: visible;
        padding-bottom: 4px;
    }

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

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

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

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

    .mafia-stories-slider__caption {
        margin-top: 12px;
        font-size: 15px;
        line-height: 19px;
    }

    .mafia-stories-slider__time {
        margin-top: 1px;
        font-size: 10px;
        line-height: 13px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .leader__column.mafia-stories-column .mafia-stories-slider {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 992.98px) {
    .leader__column.mafia-stories-column .mafia-stories-slider {
        width: 100%;
    }
}

@media (min-width: 993px) and (max-width: 1199.98px) {
    .leader__column.mafia-stories-column .mafia-stories-slider {
        width: calc(100% + ((100vw - 960px) / 2) + 15px);
    }
}

@media (min-width: 1200px) {
    .leader__column.mafia-stories-column .mafia-stories-slider {
        width: calc(100% + ((100vw - 1140px) / 2) + 15px);
    }
}

/* Mafia contact buttons adjustments */
.leader__body {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.leader__row .leader__item {
    position: relative;
}

.leader__row .leader__item_tg {
    background: #14AAFF !important;
}

.leader__row .leader__item_tg span {
    position: relative;
    z-index: 2;
}

.leader__row .leader__item_max,
.leader__row .leader__item_phone {
    background: #edefec !important;
}

.leader__row .leader__item_max::after,
.leader__row .leader__item_phone::after,
.leader__row .leader__item_tg::after {
    display: none !important;
}

.leader__row .leader__item_max {
    padding: 0;
    overflow: hidden;
}

.leader__row .leader__item_max img {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transition: opacity 0.3s;
}

.leader__row .leader__item_max:hover img {
    opacity: 0;
}

.leader__row .leader__item_max svg {
    position: relative;
    z-index: 3;
    display: block;
    width: 33px;
    height: 33px;
    margin: auto;
}

.leader__row .leader__item_phone svg,
.leader__row .leader__item_tg svg {
    position: relative;
    z-index: 2;
    display: block;
}

.leader__row .leader__item:hover {
    background: #e89f62 !important;
}

