

/* Start:/local/templates/marina_new/components/bitrix/news.detail/news_detail/style.css?17891497582682*/
/**
 * CSS стили для навигации по содержанию
 * Добавьте эти стили в ваш основной CSS файл
 */

/* Подсветка целевого элемента после скролла */
.toc-highlight {
    background-color: rgba(255, 235, 59, 0.3) !important;
    border-left: 4px solid #ffc107 !important;
    padding-left: 8px !important;
    transition: all 0.3s ease !important;
    animation: toc-pulse 2s ease-in-out;
}

/* Анимация пульсации для подсветки */
@keyframes toc-pulse {
    0% {
        background-color: rgba(255, 235, 59, 0.5);
        transform: scale(1);
    }
    50% {
        background-color: rgba(255, 235, 59, 0.3);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(255, 235, 59, 0.3);
        transform: scale(1);
    }
}

/* Подсветка активной ссылки в содержании */
.toc-link-active {
    background-color: #e3f2fd !important;
    color: #1976d2 !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    transition: all 0.3s ease !important;
}

/* Стили для ссылок содержания при наведении */
[data-goto] {
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-goto]:hover {
    color: #1976d2 !important;
    text-decoration: underline !important;
}


/* Стили для заголовков с классами descr */
[class^="descr"] {
    scroll-margin-top: 100px; /* Отступ для скролла */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .toc-highlight {
        padding-left: 4px !important;
        border-left-width: 2px !important;
    }
    
    [class^="descr"] {
        scroll-margin-top: 80px;
    }
}

.spollers2__title {
    position: relative;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0,0,0,0);
}

.anchor__item .anchor_link {
    /*padding-left: 30px;*/
    font-weight: bold;
}

.anchor__item .anchor_link:hover {
    color: white!important;
    text-decoration: none!important;
}

@media (max-width: 768px) {
    .anchor__item .anchor_link {
        /*padding-left: 10px;*/
        display: inline-block;
        line-height: 1.2;
    }
    .block-description__right {
    width: 100%;
    }
    .block-description__text img {
        width: 100%;
        height: auto;
    }
    .spollers2 {
        gap: 12px;
        padding: 12px 0;
    }
}
/* End */


/* Start:/local/templates/marina_new/components/bitrix/news.list/news/style.css?17891497585837*/
/* news — новости на главной */

.mt-news-block {
  --mt-blue: #0088cc;
  --mt-green: #a2c347;
  --mt-pink: #e088b3;
  --mt-text: #2d2d2d;
  --mt-muted: #6b7280;
  --mt-radius: 14px;
  --mt-shadow: 0 4px 24px rgba(0, 40, 80, 0.08);
}

/* Фон секции как в референсе */
section.news {
  background: #f0f4f8;
  padding: 2.5rem 0 3rem;
}

section.news .news-wrapper {
  background: transparent;
}

/* Шапка: заголовок слева, «Все новости» справа */
section.news .news-section__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  section.news .news-section__head {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }
}

section.news .news-title.title-mb,
section.news .title.news-title {
  color: #1a3a52 !important;
  text-align: left;
  margin: 0 !important;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

section.news .mt-news-block {
  text-align: left;
}

/* Кнопка «Все новости» в шапке */
section.news .news-section__all.home-default__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	float: none !important;
	padding: 0.65rem 1.25rem !important;
	border-radius: 999px;
	border-width: 1px !important;
	border-color: rgba(0, 136, 204, 0.35) !important;
	color: #1a3a52 !important;
	background: #fff !important;
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
	box-shadow: none !important;
}

@media (min-width: 640px) {
  section.news .news-section__all.home-default__btn {
    align-self: center;
    flex-shrink: 0;
  }
}

section.news .news-section__all.home-default__btn:hover {
  border-color: var(--mt-blue) !important;
  color: var(--mt-blue) !important;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.15);
}

.mt-news-block__slider-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0;
}

@media (max-width: 767px) {
  .mt-news-block__slider-wrap {
    padding: 0 40px;
  }
}

.mt-news-block__slider.swiper {
  overflow: hidden;
  padding-bottom: 2.5rem;
}

.mt-news-block__slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.mt-news-block__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 136, 204, 0.35);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9fc 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 18px rgba(0, 80, 120, 0.18);
  color: var(--mt-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.mt-news-block__nav:hover {
  background: var(--mt-blue);
  color: #fff;
  border-color: var(--mt-blue);
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.4);
  transform: translateY(-50%) scale(1.04);
}

.mt-news-block__nav--prev {
  left: -51px;
}

.mt-news-block__nav--next {
  right: -51px;
}

.mt-news-block__nav svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.mt-news-block__nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.mt-news-block .swiper-pagination {
  bottom: 0 !important;
}

.mt-news-block .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 136, 204, 0.35);
  opacity: 1;
}

.mt-news-block .swiper-pagination-bullet-active {
  background: var(--mt-blue);
  width: 22px;
  border-radius: 6px;
}

/* Карточка новости */
.mt-news-block .news-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--mt-shadow);
  border: 1px solid rgba(0, 136, 204, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.mt-news-block .news-item:hover {
  box-shadow: 0 10px 36px rgba(0, 136, 204, 0.14);
  transform: translateY(-2px);
}

.mt-news-block .news-item__media {
  position: relative;
  aspect-ratio: 400 / 240;
  overflow: hidden;
  background: #e8eef3;
  border-radius: 15px 15px 0 0;
}

.mt-news-block .news-item__date-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: rgba(20, 35, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.mt-news-block .news-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.mt-news-block .news-item:hover .news-item__img {
  transform: scale(1.04);
}

.mt-news-block .news-item__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mt-news-block .news-item__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a3a52;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt-news-block .news-item__text {
  font-size: 0.875rem;
  color: var(--mt-muted);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  flex: 1;
}

.mt-news-block .news-item__text:empty {
  display: none;
}

.mt-news-block .news-item__link {
  z-index: 2;
}

/* End */
/* /local/templates/marina_new/components/bitrix/news.detail/news_detail/style.css?17891497582682 */
/* /local/templates/marina_new/components/bitrix/news.list/news/style.css?17891497585837 */
