

/* Start:/local/templates/apicenna/components/bitrix/news.list/main_slider_sinner3d_2026/style.css?17923940405001*/
.stb-catalog-cta {
    position: relative;
    z-index: 5;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 28px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #ed1c24;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
    display: none;
}

.stb-catalog-cta:hover,
.stb-catalog-cta:focus-visible {
    background: #c91018;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .stb-catalog-cta {
        display: flex;
        min-height: 46px;
        margin-top: 20px;
        padding: 11px 22px;
        font-size: 15px;
    }
}

/* ==========================================================================
   Главный баннер: максимальная высота не более 100% высоты экрана
   ========================================================================== */
.s-top-banner {
    max-height: 100vh !important;
    max-height: 100dvh !important;
    max-height: 100svh !important;
    overflow: hidden;
}

.s-top-banner .stb-block .stb-slider .swiper-slide {
    max-height: 100vh !important;
    max-height: 100dvh !important;
    max-height: 100svh !important;
    overflow: hidden;
}

/* ПК — баннер заходит под шапку (header.abs), поэтому без вычитания */
@media (min-width: 1025px) {
    .s-top-banner {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: 100svh !important;
    }
    .s-top-banner .stb-block .stb-slider .swiper-slide {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: 100svh !important;
    }
}

/* Мобильный — баннер под шапкой, без вычитания */
@media (max-width: 767px) {
    .s-top-banner {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: 100svh !important;
    }
    .s-top-banner .stb-block .stb-slider .swiper-slide {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: 100svh !important;
    }
}

/* ==========================================================================
   Главный баннер: картинка stb-s-img — 100% высоты минус шапка, прижата к низу
   Изображение всегда видно полностью (не обрезается за экран)
   ========================================================================== */
@media (min-width: 1025px) {
    .s-top-banner .stb-block .stb-slider .swiper-slide .stb-s-img {
        position: absolute !important;
        bottom: 0 !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 110px) !important;
        height: calc(100dvh - 110px) !important;
        height: calc(100svh - 110px) !important;
        max-height: calc(100vh - 110px) !important;
        max-height: calc(100dvh - 110px) !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        pointer-events: none;
        z-index: 1;
    }
    .s-top-banner .stb-block .stb-slider .swiper-slide .stb-s-img picture,
    .s-top-banner .stb-block .stb-slider .swiper-slide .stb-s-img img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        display: block !important;
    }
    /* only-image — фон белый, чтобы contain не оставлял прозрачности */
    .s-top-banner .stb-block .stb-slider .swiper-slide.only-image {
        background: #fff !important;
    }
    .s-top-banner .stb-block .stb-slider .swiper-slide.only-image .stb-s-img {
        background: #fff;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .s-top-banner .stb-block .stb-slider .swiper-slide .stb-s-img {
        height: calc(100vh - 110px) !important;
        height: calc(100dvh - 110px) !important;
        max-height: calc(100vh - 110px) !important;
        bottom: 0 !important;
        top: auto !important;
    }
}

@media (max-width: 767px) {
    .s-top-banner .stb-block .stb-slider .swiper-slide .stb-s-img {
        height: calc(100dvh - 85px) !important;
        height: calc(100svh - 85px) !important;
        height: calc(100vh - 85px) !important;
        max-height: calc(100dvh - 85px) !important;
        bottom: 0 !important;
        top: auto !important;
        object-position: bottom center !important;
    }
}

/* End */


/* Start:/local/templates/apicenna/components/bitrix/catalog.section/top_products4/style.css?17918610883025*/
.s-catalog {
    padding-bottom: 20px!important;
}


.s-catalog .def-btn-wrap {
    margin-bottom: 50px!important;
}


@media (min-width: 1024px) {
    .my-container-slider {
    box-sizing: border-box;
    margin: 0 auto;    
    max-width: 1920px;
    width: calc(100% - 170px);
		position: relative;
	}
}

@media (max-width: 500px) {
    .catalog-item .ci-text .cit-name {
       min-height:auto !important; 
    }
}


/* Адаптив: на маленьких экранах уберите или скройте */
@media (max-width: 1023px) {
	.my-container-slider {
		padding: 0 15px;
	}
	.s-catalog .def-btn-wrap {
    margin-bottom: 25px!important;
}
}
@media (max-width: 768px) {
    .s-catalog {
        padding-top: 20px!important;
    }
}


.new-products-slider {
  position: relative;
  overflow: visible;
}

.splide__arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 40%;
  left: -60px;
  right: -60px;
  transform: translateY(-50%);
  width: calc(100% + 120px);
  z-index: 10;
}

.my-container-slider .splide__arrow {
  width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 50%;    
    border: 1px solid #ff4d4d;
	border: 1px solid rgba(0,0,0,.2);
    margin: 0;
    padding: 0;
    transition: all .5s ease;
	display: flex;
  align-items: center;
  justify-content: center;
	transform: translateY(-50%);
   right: auto;
  cursor: pointer;
}

.my-container-slider .splide__arrow--next::after, .my-container-slider .splide__arrow--next::before, .my-container-slider .splide__arrow--prev::after, .my-container-slider .splide__arrow--prev::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 8px;
    background: url(/img/swiper-prev.svg);
    transition: all .5s ease;	
}
.my-container-slider .splide__arrow--next::after, .my-container-slider .splide__arrow--next::before {
    background: url(/img/swiper-next.svg);
}
.my-container-slider .splide__arrow--next{right: -5px;}
.my-container-slider .splide__arrow--prev{left:-5px;}

/* === s-catalog catalog-slider: пропорциональный ci-img при масштабе === */
/* Перебивает глобальное .catalog-item .ci-img{height:330px!important} из main.css.
   Только для двух слайдеров главной (myCustomSlider/myCustomSlider2), остальной сайт не тронут. */
.s-catalog.catalog-slider .my-container-slider .catalog-item .ci-img {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.s-catalog.catalog-slider .my-container-slider .catalog-item .ci-img img {
    width: 90% !important;
    height: 90% !important;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain !important;
    display: block;
    flex: 0 0 auto;
}
/* End */


/* Start:/local/templates/apicenna/components/bitrix/news.list/Sinner3dNewsListHomePages/style.css?17852496303959*/
.news-block {
  padding: 80px 0;
}
.news-block .container {
  max-width: 1770px;
  margin: 0 auto;
  padding: 0 16px;
}
.news-block .btn-news {
  text-align: center;
}
/* === Flex-контейнер (вместо grid) === */
.news-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 auto 50px auto;
  max-width: 1920px;
  padding: 0 16px;
}
/* === МОБИЛЬНЫЕ: 2 карточки в ряд (до 767px) === */
.news-card {
  flex: 1 1 calc(50% - 12px); /* 2 колонки: (100% - gap) / 2 */
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* === Планшеты (768–1199px): тоже 2 колонки === */
@media (min-width: 768px) {
  .news-card {
    flex: 1 1 calc(50% - 12px);
  }
}
/* === Десктопы (от 1200px): 4 колонки === */
@media (min-width: 1200px) {
  .news-card {
    flex: 1 1 calc(25% - 18px);
  }
}
/* === Стили карточки — без изменений === */
.news-image {
  width: 100%;

  position: relative;
  overflow: hidden;
}
.news-image img, .news-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #f0f0f0;
}
.category-bar {
  background: #ff4d4d;
  color: white;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff4d4d;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 1;
  z-index: 10;
}
.date-badge span:first-child {
  font-size: 1.125rem;
}
.date-badge span:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
}
.news-title {
  padding: 16px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 400;
  color: #022035;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;min-height: 105px;
}
.news-title a {
  color: inherit;
  text-decoration: none;
}
.news-title a:hover {
  color: #0290f5;
  text-decoration: none;
}
@media (max-width: 767px) {
  .date-badge {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
  .date-badge span:first-child {
    font-size: 0.9rem;
  }
  .date-badge span:last-child {
    font-size: 0.65rem;
  }
  .news-block .container {
    padding: 0;
  }
  .news-flex {
    gap: 10px;
	  padding: 0 10px;
  }
  .news-block .rating-title {
    margin-bottom: 30px;
  }
  .news-image {
    width: 100%;
    height: auto;
  }
  .category-bar { 
    font-size: 0.5rem;
	
    padding: 10px;
  }
  .news-title {
    font-size: 0.75rem;	 
    padding: 10px;
	   -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
	  
  }
}
.news-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0;
}

.news-content > .category-bar {
  margin-top: 0px;
}

/* На мобильных — выравниваем высоту */
@media (max-width: 767px) {
  .news-content {
    padding: 0  0px 10px 0px;
  }

  .news-content > .category-bar {
    margin-top: 0px;
    font-size: 0.5rem;
    padding: 6px 10px;
  }

  .news-title {
    font-size: 0.75rem;
    padding: 0 10px;
    margin: 6px 0 0;
    -webkit-line-clamp: 3; /* ← ВАЖНО: оставляем 3 строки даже на мобиле */
    line-height: 1.3;
	min-height: 46px;
  }
}

@media (max-width: 767px) {
  .news-image {
    height: 0;
    padding-top: 100%; /* = квадрат 1:1 */
    position: relative;
  }

  .news-image img,
  .news-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* End */
/* /local/templates/apicenna/components/bitrix/news.list/main_slider_sinner3d_2026/style.css?17923940405001 */
/* /local/templates/apicenna/components/bitrix/catalog.section/top_products4/style.css?17918610883025 */
/* /local/templates/apicenna/components/bitrix/news.list/Sinner3dNewsListHomePages/style.css?17852496303959 */
