

/* Start:/bitrix/components/sam/stories.list_custom/templates/custom/style.css?178410195316774*/
.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%;
    }
}



.lbg {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/lbg.jpg');
}

.rbg {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/rbg.jpg');
}

.lbg.act {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/lbga.jpg');
}

.rbg.act {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/rbga.jpg');
}

@media (max-width: 768px) {
.lbg {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/mobile/lbg.jpg');
}

.rbg {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/mobile/rbg.jpg');
}

.lbg.act {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/mobile/lbga.jpg');
}

.rbg.act {
  background-image: url('/bitrix/components/sam/stories.list_custom/templates/custom/./img/mobile/rbga.jpg');
}

  .video-text-blue {
    width: 75%;
  }

  .video-title-blue {
    width: 70%;
  }
}

/* ===== КАРТОЧКИ ===== */
.video-card {
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.video-btn.act{
  pointer-events: none; /* отключает клики и наведение */
  cursor: default;
}
.video-card .video-btn:hover, .video-btn.act {
  color: #fff;
  border-color: #00A4FF;
}
/* Десктоп */
@media (min-width: 769px) {
  .video-card {
    height: 450px;
    background-size: 100% auto;
  }
}

/* Мобилка */
@media (max-width: 768px) {
  .video-card {
    min-height: 380px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .video-card {
    min-height: 320px;
    border-radius: 14px;
  }
}

/* ===== КОНТЕНТ ===== */
.video-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .video-content {
    padding: 28px 24px;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .video-content {
    padding: 24px 18px;
  }
}

/* Центрирование для первой карточки */
.video-card-center .video-content {
  justify-content: center;
}

.video-card-start .video-content {
  justify-content: flex-start;
}

/* Прижатие вниз для второй карточки */
.video-card-bottom .video-content {
  justify-content: flex-end;
}

@media (max-width: 768px) {

  .video-card-center .video-content,
  .video-card-bottom .video-content {
    justify-content: center !important;
  }
}

/* ===== ЗАГОЛОВКИ ===== */
.video-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .video-title {
    font-size: 24px;
    line-height: 110%;
    margin-bottom: 12px;
  }

  .video-card-bottom {
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .video-title {
            width: 100%;
    font-size: 22.84px;
  }

  .video-card-bottom {
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
  }

  .video-title.video-title-light {
    width: 80%;
  }
}

.video-title-light {
  color: #fff;
}

.video-title-blue {
  color: #00A4FF;
}

/* ===== ТЕКСТ ===== */
.video-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .video-text {
    font-size: 12px;
    line-height: 140%;
    margin-bottom: 12px;
  }

  .video-btn.video-btn-blue,
  .video-btn.video-btn-light {
    width: auto;
  }
}

@media (max-width: 480px) {
  .video-text.video-text-light {
    width: 75%;
  }

  .video-text {
    width: 88%;
    font-size: 11.42px;
    margin-bottom: 12px;
  }
}

.video-text-light {
  color: #fff;
}

.video-text-blue {
  color: #00A4FF;
}

/* ===== КНОПКИ ===== */
.video-btn {
  display: flex;
  align-items: center;
  padding: 20px 23px;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .video-btn {
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .video-btn {
    width: 68%;
    padding: 14px 16px;
    font-size: 15px;
  }
}

.video-btn-light {
  color: #fff;
  border-color: #FFFFFF;
}

.video-btn-blue {
  color: #00A4FF;
  border-color: #00A4FF;
}

.video-btn:hover,.video-btn:focus,.video-btn.act {
  opacity: 1;
  background: #00A4FF;
  border: 1px solid;
  border-color: #00A4FF;
  color: #fff;
}

/* ===== ИКОНКИ В КНОПКАХ ===== */
.video-btn-icon {
  margin-left: 40px;
}

.video-btn:hover>.video-btn-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .video-btn-icon {
    margin-left: 16px;
    width: 20px;
    height: auto;
  }
}

/* ===== УБИРАЕМ ПЕРЕНОСЫ НА МОБИЛКАХ ===== */
@media (max-width: 768px) {

  .video-text br,
  .video-title br {
    display: none;
  }
}
/* End */
/* /bitrix/components/sam/stories.list_custom/templates/custom/style.css?178410195316774 */
