

/* Start:/bitrix/components/sam/stories.list_custom/templates/custom/style.css?177565000211699*/
.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%;
    }
}
/* End */
/* /bitrix/components/sam/stories.list_custom/templates/custom/style.css?177565000211699 */
