

/* Start:/bitrix/components/sam/stories.list_custom/templates/custom/style.css?178730488821086*/
.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,
.sam-stories__modal .swiper-button-next {
    background: rgba(255,255,255,0.3);
    color: #000;
}
.sam-stories__modal .swiper-button-prev::after,
.sam-stories__modal .swiper-button-next::after {
    content: '';
    display: none;
}
.sam-stories__modal-slider .swiper-slide picture,
.sam-stories__modal-slider .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.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 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__btn {
    display: block;
    position: absolute;
}
.sam-stories__btn.--top {
    top: 24px;
    left: 8px;
}
.sam-stories__btn.--bottom {
    bottom: 24px;
    left: 8px;
    right: 8px;
}
.sam-stories__btn.--left {
    text-align: left;
}
.sam-stories__btn.--center {
    text-align: center;
}
.sam-stories__btn.--right {
    text-align: right;
}
.sam-stories__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fcc521;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-style: normal;
    line-height: 1.2;
    font-weight: 500;

}
.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);
}

/* ######################### */

.b24-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); */
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.b24-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e8ecee;
  position: relative;
  display: flex;
  flex-direction: column;
}

.b24-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #2f86f6;
}

.b24-card__image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f9fa;
      min-height: 400px;
}

.b24-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.b24-card:hover .b24-card__image {
  transform: scale(1.05);
}

.b24-card__play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(47, 134, 246, 0.9), rgba(47, 198, 246, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.b24-card:hover .b24-card__play-overlay {
  opacity: 1;
}

.b24-play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f86f6;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.b24-card:hover .b24-play-icon {
  transform: scale(1);
}

.b24-card__content {
  padding: 10px;
  display: flex;
      flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.b24-card__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 100%;
  margin: 0 0 12px 0;
  color: #2d3741;
}

.b24-card__description {
  font-size: 13px;
  line-height: 100%;
  color: #868686;
}

.b24-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e8ecee;
}

.b24-card__duration {
  font-size: 14px;
  color: #8f9ba8;
  font-weight: 500;
}

.b24-card__button {
  display: inline-flex;
  align-items: center;
  color: #2f86f6;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.b24-card__button:hover {
  color: #1a6fd8;
}

.b24-card__button::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.b24-card:hover .b24-card__button::after {
  transform: translateX(4px);
}
.doc-active-tab{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.doc-items{
    background: rgba(244, 247, 250, 1);
    padding: 16px 23px;
    border-radius: 12px;
    margin: 8px;
}
.doc-items.active{
    background-color: #004666;
    color: #fff;
}
/* .content_wrapper_block{
    margin-top: 50px;
} */

@media (max-width: 768px) {
  .b24-header__title {
    font-size: 36px;
  }

  .b24-header__subtitle {
    font-size: 18px;
  }

  .b24-section-title {
    font-size: 28px;
  }

  .b24-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .b24-container {
    padding: 0 16px;
  }
  .top_block {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        text-align: center;
    }
    .top_block a {
        font-size: 18px;
    }
    
}
@media (max-width: 768px) {
    .doc-active-tab {
        justify-content: flex-start; /* Выравнивание по левому краю */
        gap: 0px; /* Уменьшим отступ на мобилках */
    }
    
    .doc-items {
        /* Каждый блок занимает половину ширины минус половину gap */
        width: calc(50% - 16px);
        /* Если gap: 10px, то (10px / 2) = 5px */
        
        /* Альтернативный вариант без calc, если gap не нужен: */
        /* width: 50%; */
        box-sizing: border-box;
        text-align: center;
    }
    .doc-items.full-width {
        width: 100%;
    }
}

    /* ===== Блок видео ===== */
    .video-section {
        padding: 20px 0;
    }

    /* ======================================== */
    /* ===== ДЕСКТОПНАЯ ВЕРСИЯ ===== */
    /* ======================================== */
    .desktop-version {
        display: block;
    }

    /* ===== Кнопки-ссылки (десктоп) ===== */
    .video-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 14px;
    }

    .video-btn {
        display: inline-block;
        padding: 20px 85px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 16px;
        line-height: 100%;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        flex: 0 1 auto;
    }

    .video-section .video-btn:hover,
    .video-section .video-btn:active,
    .video-section .video-btn:focus {
        outline: none;
        color: #002637;
    }

    .video-section .video-btn:hover.video-btn--primary,
    .video-section .video-btn:active.video-btn--primary,
    .video-section .video-btn:focus.video-btn--primary {
        outline: none;
        color: #dcebfe;
    }

    .video-btn--primary {
        background-color: #002637;
        color: #dcebfe;
        position: relative;
        z-index: 15;
    }

    .video-btn--primary::after {
        content: url('/bitrix/components/sam/stories.list_custom/templates/custom/img/Polygon6.svg');
        position: absolute;
        bottom: -34px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
        height: 34px;
    }

    .video-btn--secondary {
        background-color: #dcebfe;
        color: #002637;
    }

    /* ===== Баннер (десктоп) ===== */
    .video-banner {
        width: 100%;
        min-height: 371px;
        background: url('/bitrix/components/sam/stories.list_custom/templates/custom/img/rbg_new.jpg') no-repeat center center;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        border-radius: 10px;
    }

    .video-banner__title {
        font-weight: 700;
        font-size: 48px;
        line-height: 100%;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .video-banner__text {
        font-weight: 400;
        font-size: 24px;
        line-height: 100%;
        letter-spacing: 0;
        color: #ffffff;
        max-width: 480px;
        width: 100%;
    }

    /* ======================================== */
    /* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
    /* ======================================== */
    .mobile-version {
        display: none;
        position: relative;
    }

    /* ===== Верхняя панель с кнопками (мобилка) ===== */
    .mobile-header {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
    }

    .mobile-header__btn {
        padding: 4px 16px;
        border-radius: 5px;
        font-weight: 700;
        font-size: 12px;
        line-height: 100%;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 38px;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        flex: 1;
        min-width: 120px;
    }

    .mobile-header__btn--active {
        background: #002637;
        color: #dcebfe;
        position: relative;
    }

    .mobile-header__btn--active::after {
        content: url('/bitrix/components/sam/stories.list_custom/templates/custom/img/Polygon6.svg');
        position: absolute;
        bottom: -34px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
        height: 34px;
    }

    .mobile-header__btn--secondary {
        background: #dcebfe;
        color: #002637;
    }

    .mobile-header__btn--secondary:hover {
        background: #c0d8f0;
    }

    /* Иконка play для мобильной кнопки */
    .mobile-header__icon {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 1px solid #00a4ff;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-header__icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-40%, -50%);
        width: 0;
        height: 0;
        border-left: 6px solid #ffffff;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }

    .mobile-header__btn--secondary .mobile-header__icon::after {
        border-left-color: #002637;
    }

    /* ===== Контент с фоном-картинкой (мобилка) ===== */
    .mobile-content {
        background: url('/bitrix/components/sam/stories.list_custom/templates/custom/img/mobile/rbg_new.jpg') no-repeat center center;
        background-size: cover;
        border-radius: 10px;
        padding: 40px 20px;
        min-height: 247px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Декоративный вектор */
    .mobile-content::before {
        content: '';
        position: absolute;
        width: 140px;
        height: 119px;
        right: -20px;
        top: 20px;
        opacity: 0.12;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 5.7px;
        transform: rotate(-22.93deg);
        pointer-events: none;
        z-index: 1;
    }

    .mobile-content__title {
        font-weight: 700;
        font-size: 22.84px;
        line-height: 100%;
        color: #ffffff;
        margin-bottom: 12px;
        position: relative;
        z-index: 2;
    }

    .mobile-content__text {
        font-weight: 400;
        font-size: 11.42px;
        line-height: 120%;
        color: #ffffff;
        max-width: 193px;
        position: relative;
        z-index: 2;
    }

    /* ============================================ */
    /* ===== АДАПТИВНОСТЬ ===== */
    /* ============================================ */

    /* Планшеты и маленькие ноутбуки */
    @media (max-width: 1024px) {
        .video-btn {
            padding: 18px 25px;
            font-size: 15px;
        }

        .video-banner__title {
            font-size: 38px;
        }

        .video-banner__text {
            font-size: 20px;
            max-width: 500px;
        }

        .video-banner {
            min-height: 300px;
            padding: 30px;
        }
    }

    /* Планшеты (вертикально) */
    @media (max-width: 768px) {
        .video-buttons {
            gap: 10px;
            justify-content: center;
        }

        .video-btn {
            padding: 15px 20px;
            font-size: 14px;
            flex: 1 1 auto;
            min-width: 180px;
        }

        .video-btn--primary::after {
            bottom: -28px;
            height: 28px;
        }

        .video-banner__title {
            font-size: 32px;
        }

        .video-banner__text {
            font-size: 18px;
            max-width: 100%;
        }

        .video-banner {
            min-height: 250px;
            padding: 25px;
        }
    }

    /* МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 600px) */
    @media (max-width: 600px) {
        .video-block-wrapper {
            padding: 0 10px;
        }

        /* Скрываем десктопную версию */
        .desktop-version {
            display: none;
        }

        /* Показываем мобильную */
        .mobile-version {
            display: block;
        }
    }

    /* Очень маленькие */
    @media (max-width: 360px) {
        .mobile-header {
            flex-direction: column;
            gap: 6px;
        }

        .mobile-header__btn {
            min-width: unset;
            width: 100%;
            padding: 4px 12px;
            font-size: 11px;
        }

        .mobile-header__btn--active::after {
            display: none;
        }

        .mobile-content__title {
            font-size: 18px;
        }

        .mobile-content__text {
            font-size: 10px;
            max-width: 160px;
        }

        .mobile-content {
            min-height: 200px;
            padding: 30px 15px;
        }
    }

    /* Для экранов от 601px до 768px - показываем десктоп */
    @media (min-width: 601px) and (max-width: 768px) {
        .desktop-version {
            display: block;
        }

        .mobile-version {
            display: none;
        }
    }
/* End */
/* /bitrix/components/sam/stories.list_custom/templates/custom/style.css?178730488821086 */
