

/* Start:/local/templates/redteslamak/components/bitrix/breadcrumb/teslamak_breadcrumbs/style.css?17776633181172*/
.teslamak-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    font-family: inherit;
}

.teslamak-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

.teslamak-breadcrumbs__item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.teslamak-breadcrumbs__item a:hover {
    color: var(--brand-red, #ED3237);
}

.teslamak-breadcrumbs__separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.teslamak-breadcrumbs__item--active span[itemprop="name"] {
    color: var(--brand-dark, #333);
    font-weight: 500;
    
    /* Обрезка длинного текста */
    display: inline-block;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@media (max-width: 768px) {
    .teslamak-breadcrumbs {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .teslamak-breadcrumbs__item--active span[itemprop="name"] {
        max-width: 200px; /* На мобильных обрезаем еще сильнее */
    }
}
/* End */


/* Start:/local/templates/redteslamak/components/bitrix/news.detail/modern_news_with_sidebar/style.css?17777397096217*/
/* Стили исключительно для нового шаблона новости с сайдбаром */
.news-with-sidebar-container {
    font-family: inherit;
    padding-bottom: 60px;
}

.news-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 30px;
}

/* Основная колонка контента */
.news-sidebar-main {
    min-width: 0; /* предотвращает вылезание длинных ссылок из грида */
}

.news-detail-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-dark, #333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.article-category {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--brand-red, #ED3237);
    font-weight: 600;
}

.news-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
}

.news-main-image-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #999;
}

.article-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-text-body p {
    margin-bottom: 15px;
}

.article-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Галерея в основной колонке */
.news-sidebar-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-sidebar-gallery h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-dark, #333);
}

.news-sidebar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.news-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-gallery-item:hover img {
    transform: scale(1.05);
}

/* Боковая колонка (сайдбар) */
.news-sidebar-aside {
    flex-shrink: 0;
}

.news-sidebar-widget {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 230px; 
}

.news-sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-dark, #333);
}

.news-sidebar-placeholder {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Стили для Vanilla JS Lightbox (Галерея без Fancybox) */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.news-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.news-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    user-select: none;
}

.news-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s ease;
}

.news-lightbox-close:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev,
.news-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 100000;
}

.news-lightbox-prev:hover,
.news-lightbox-next:hover {
    color: var(--brand-red, #ED3237);
}

.news-lightbox-prev { left: 20px; }
.news-lightbox-next { right: 20px; }

/* Мобильная адаптация */
@media (max-width: 992px) {
    .news-sidebar-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-sidebar-widget {
        position: static;
        padding: 25px;
    }
    
    .news-detail-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-with-sidebar-container {
        padding-bottom: 40px;
    }

    .news-sidebar-grid {
        gap: 25px;
    }

    .news-detail-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .news-main-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .article-text-body {
        font-size: 15px;
    }

    .news-sidebar-gallery h2 {
        font-size: 22px;
    }

    .news-sidebar-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .news-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .news-lightbox-prev,
    .news-lightbox-next {
        padding: 10px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .news-with-sidebar-container {
        padding-bottom: 30px;
    }

    .news-sidebar-grid {
        margin-top: 20px;
        gap: 20px;
    }

    .news-detail-content h1 {
        font-size: 22px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .news-sidebar-gallery h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .news-sidebar-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-sidebar-widget {
        padding: 20px;
    }

    .news-sidebar-widget h3 {
        font-size: 18px;
    }

    .related-news {
        margin-top: 40px;
    }

    .related-news h2 {
        font-size: 20px;
    }

    .news-lightbox-content {
        max-width: 95%;
    }

    .news-lightbox-prev { left: 5px; }
    .news-lightbox-next { right: 5px; }
}
/* End */
/* /local/templates/redteslamak/components/bitrix/breadcrumb/teslamak_breadcrumbs/style.css?17776633181172 */
/* /local/templates/redteslamak/components/bitrix/news.detail/modern_news_with_sidebar/style.css?17777397096217 */
