

/* 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 */
/* /local/templates/marina_new/components/bitrix/news.detail/news_detail/style.css?17891497582682 */
