

/* Start:/local/templates/hram_preobrazhenija/components/sam/stories.list/tea/style.css?17664227956484*/
.sam-stories {
    --swiper-theme-color: #f9e24b;
}
.sam-stories__slider {
    overflow: hidden;
}
.sam-stories__slider:not(.swiper-initialized) {
    opacity: 0.66;
}
.sam-stories__slider .swiper-wrapper {
    display: flex;
}
.sam-stories__slide.swiper-slide {
    width: auto;
}
.sam-stories__slide.swiper-slide button {
    position: relative;
    display: block;
    background: none;
    border: none;
    margin: 0;
    padding: 10px;
    cursor: pointer;
}
.sam-stories__slide.swiper-slide button:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.sam-stories__slide.swiper-slide button::before,
.sam-stories__slide.swiper-slide button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 240px;
}
.sam-stories__slide.swiper-slide button::before {
    background: #fff;
    inset: 5px;
    z-index: 2;
}
.sam-stories__slide.swiper-slide button::after {
    background: linear-gradient(0deg, #f9e24b, #fcc521);
    animation: rotate-bg 1s infinite linear;
}
.sam-stories__slide.swiper-slide button img,
.sam-stories__slide.swiper-slide button picture {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    width: 240px;
    overflow: hidden;
    object-fit: cover;
    object-position: center center;
    border-radius: 240px;
    z-index: 3;
}
.sam-stories img {
    vertical-align: middle;
    max-width: 100%;
    border: 0;
}
@media (max-width: 480px) {
    .sam-stories__slide.swiper-slide button img,
    .sam-stories__slide.swiper-slide button picture {
        width: 180px;
    }
    .sam-stories__slide.swiper-slide button::before,
    .sam-stories__slide.swiper-slide button::after {
        border-radius: 180px;
    }
}
@keyframes rotate-bg {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
} 
.sam-stories__modal {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    z-index: 2147483648;
    transition: opacity 0.2s ease, width 0.2s step-end, height 0.2s step-end;
    overflow: clip;
}
.sam-stories__modal.opened {
    opacity: 1;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}
.sam-stories__close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.sam-stories__modal-slider {
    margin: auto 0;
    height: 90dvh;
    width: 100%;
}
.sam-stories__modal-slider .swiper-slide {
    display: flex;
    width: auto;
}
.sam-stories__modal .swiper-button-prev::after,
.sam-stories__modal .swiper-button-next::after {
    content: '';
    display: none;
}
.swiper-button-next.sam-stories__modal-next,
.swiper-button-prev.sam-stories__modal-prev {
    margin: 0;
    top: 0;
    left: 0;
    height: 100%;
    width: calc((100vw - 90vh / 16 * 9) / 2);
    opacity: 0;
}
.swiper-button-next.sam-stories__modal-next {
    left: auto;
    right: 0;
}

.sam-stories__item {
    position: relative;
    aspect-ratio: 9 / 16;
    height: 100%;
    width: auto;
    max-width: 100vw;
    margin: auto;
    border-radius: 5px;
    overflow: hidden;
    transform: scale(.75);
    transition: transform 0.4s ease;
}
.swiper-slide-active .sam-stories__item {
    transform: scale(1);
}
.sam-stories__item-slider {
    height: 100%;
}
.sam-stories__item-slider .swiper-progressbar {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 2px;
    z-index: 20;
}
.sam-stories__item-slider .swiper-progressbar.active {
}
.sam-stories__item-slider .swiper-progressbar span {
position: relative;
height: 2px;
flex: 1 1 auto;
background: #eee;
}
.sam-stories__item-slider .swiper-progressbar span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: 100%;
    background: #fcc521;
}
.sam-stories__item-slider .swiper-progressbar.active span:has(~ .active)::after {
    width: 100%;
}
.sam-stories__item-slider .swiper-progressbar.active span.active::after {
    width: calc(100% * var(--progress));
}

.sam-stories__controls {
    position: absolute;
    top: 24px;
    right: 8px;
    max-width: calc(100% - 16px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
}
.swiper-slide-active .sam-stories__item .sam-stories__controls {
    opacity: 1;
}
.sam-stories__controls svg {
    pointer-events: none;
}
.sam-stories__playpause {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border-radius: 40px;
    border: none;
    z-index: 2;
}
.sam-stories__playpause::after,
.sam-stories__playpause::before {
    position: absolute;
    content: "";
    display: block;
    height: 14px;
    width: 4px;
    border-radius: 8px;
    background: var(--black,#1f1f1f);
    transition: transform .2s ease;
}
.sam-stories__playpause::before {
    left: 55%
}
.sam-stories__playpause::after {
    right: 55%
}
.sam-stories__playpause svg {
    transition: transform .2s ease;
    transform: scale(0)
}
.sam-stories__playpause.paused svg {
    transform: scale(1)
}
.sam-stories__playpause.paused::after,
.sam-stories__playpause.paused::before {
    transform: scale(0);
}
.sam-stories__mute {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border-radius: 40px;
    border: none;
    z-index: 2;
}
.sam-stories__mute::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    margin-top: -1px;
    width: 80%;
    height: 1px;
    background: currentColor;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
}
.sam-stories__mute.muted::after {
    transform: rotate(-45deg) scale(1);
}
.sam-stories .swiper-button-prev,
.sam-stories .swiper-button-next {
    display: none !important;
}
/*
.video-widget__slider {
    height: 90dvh;
}*/

/* End */


/* Start:/local/components/custom/main.feedback/templates/line/style.css?1766078979729*/
.modal__success {
    margin-top: 22px;
}

.popup {
    position: fixed;
    left: calc(50% - 158px);
    width: 316px;
    padding: 25px;
    background-color: var(--primary);
    bottom: 20px;
    z-index: 100;

    transform: translateY(calc(100% + 20px));
    opacity: 0;
    visibility: hidden;

    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    visibility 0.3s ease, opacity 0.3s ease;
}
.popup._open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
}
.popup__content svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}
/* End */


/* Start:/local/templates/hram_preobrazhenija/components/bitrix/news.list/diocese-index/style.css?1765639963267*/
.card-diocese__content{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card-diocese__content{
    line-height: 1.4; /* подгони под макет */
    max-height: calc(1.4em * 3);
}

/* End */
/* /local/templates/hram_preobrazhenija/components/sam/stories.list/tea/style.css?17664227956484 */
/* /local/components/custom/main.feedback/templates/line/style.css?1766078979729 */
/* /local/templates/hram_preobrazhenija/components/bitrix/news.list/diocese-index/style.css?1765639963267 */
