

/* Start:/local/templates/main/components/bitrix/news/news_complex/style.css?17654277182192*/
/* Общие стили для новостей */
.news-filters .filter-select {
    cursor: pointer;
    transition: all 0.2s;
}

.news-filters .filter-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Карточки новостей */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.news-card .card-img-wrapper {
    overflow: hidden;
}

.news-card .card-img-top {
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Детальная страница */
.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
}

.news-detail-content table {
    width: 100%;
    margin: 1.5rem 0;
}

/* Галерея */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.375rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-filters .row > div {
        margin-bottom: 1rem;
    }
    
    .news-card .card-img-wrapper {
        height: 180px !important;
    }
    
    .news-detail-content {
        font-size: 1rem;
    }
}

/* Пагинация */
.bx-pagination {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.bx-pagination .bx-paginate {
    margin: 0 2px;
}

.bx-pagination a,
.bx-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
}

.bx-pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.bx-pagination .bx-active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
/* End */


/* Start:/local/templates/main/components/bitrix/news/news_complex/bitrix/news.detail/news_detail/style.css?177426422810800*/
.intro2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Основной контейнер контента новости */
.news-detail-content {
    font-size: 1.0rem;
    /* 18px */
    line-height: 1.8;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
}

/* ========== Главная картинка страницы ========== */
.news-detail-picture {
    height: 400px;
    overflow: hidden;
}

.news-detail-picture img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .news-detail-picture {
        height: 250px !important;
    }
}

/* ========== Галерея ========== */
/* ===== обычный стиль ========= */
.news-detail-gallery {

    overflow: hidden;
}

.news-detail-gallery img {
    object-fit: cover;
}


/* ========== ТЕКСТ И АБЗАЦЫ ========== */
.news-detail-content p {
    font-size: 1.0rem;
    line-height: 1.5;
    margin-bottom: 1.5em;
    hyphens: auto;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}


/* ========== ЗАГОЛОВКИ ========== */
.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.news-detail-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    margin-top: 0;
}

.news-detail-content h2 {
    font-size: 1.75rem;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.news-detail-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.news-detail-content h4 {
    font-size: 1.25rem;
    color: var(--secondary);
}

.news-detail-content h5 {
    font-size: 1.125rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-detail-content h6 {
    font-size: 1rem;
    color: var(--secondary);
    font-style: italic;
}

/* ========== СПИСКИ ========== */
.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.news-detail-content ul {
    list-style-type: none;
}


.news-detail-content ul li {
    margin: 10px 0;
    color: var(--text-color);
    list-style: inside;
    font-weight: 400;
    font-size: 1.0rem;
    list-style-type: none;
    position: relative;
    padding-left: 15px;
}

.news-detail-content ul li:before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 100px;
    position: absolute;
    top: 11px;
    left: 0;
    background: var(--primary);
}

.news-detail-content ol li {
    margin: 10px 0;
    color: var(--text-color);
    list-style: inside;
    font-weight: 400;
    font-size: 1.0rem;
    position: relative;
    list-style-type: decimal;
    padding-left: 15px;
}

.news-detail-content ol li::marker {
    font-weight: 700;
    color: var(--primary);
}

.news-detail-content li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.news-detail-content li:last-child {
    margin-bottom: 0;
}

/* Вложенные списки */
.news-detail-content ul ul,
.news-detail-content ol ol,
.news-detail-content ul ol,
.news-detail-content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

.news-detail-content ul ul {
    list-style-type: circle;
}

.news-detail-content ul ul ul {
    list-style-type: square;
}

/* ========== ФОРМАТИРОВАНИЕ ТЕКСТА ========== */
.news-detail-content strong,
.news-detail-content b {
    font-weight: 700;
    color: var(--secondary);
}

.news-detail-content em,
.news-detail-content i {
    font-style: italic;
    color: var(--text-color);
}

.news-detail-content u {
    text-decoration: underline;
    text-decoration-color: var(--text-color);
    text-decoration-thickness: 2px;
}

.news-detail-content s,
.news-detail-content strike {
    text-decoration: line-through;
    color: #888;
}

.news-detail-content mark {
    background-color: #fff3cd;
    color: var(--primary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.news-detail-content small {
    font-size: 0.875em;
    color: #666;
}

.news-detail-content sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
}

.news-detail-content sub {
    font-size: 0.75em;
    vertical-align: sub;
    line-height: 0;
}

/* ========== ЦИТАТЫ ========== */
.news-detail-content blockquote {
    border-left: 4px solid #007bff;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.news-detail-content blockquote p {
    margin-bottom: 0.5em;
}

.news-detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.news-detail-content blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #777;
    font-style: normal;
    text-align: right;
}

.news-detail-content blockquote cite::before {
    content: "— ";
}

/* ========== КОД И ПРЕФОРМАТИРОВАННЫЙ ТЕКСТ ========== */
.news-detail-content code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.news-detail-content pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.news-detail-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

/* ========== ТАБЛИЦЫ ========== */
.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-detail-content table caption {
    caption-side: bottom;
    text-align: left;
    padding: 0.5em;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.news-detail-content th {
    background-color: #007bff;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.news-detail-content td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
}

.news-detail-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.news-detail-content tr:hover {
    background-color: #e9ecef;
}

.news-detail-content th:first-child,
.news-detail-content td:first-child {
    border-left: 1px solid #dee2e6;
}

.news-detail-content th:last-child,
.news-detail-content td:last-child {
    border-right: 1px solid #dee2e6;
}

.news-detail-content tr:last-child td {
    border-bottom: 2px solid #007bff;
}

/* ========== ИЗОБРАЖЕНИЯ ========== */
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-content img.align-left {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
    max-width: 50%;
}

.news-detail-content img.align-right {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
    max-width: 50%;
}

.news-detail-content img.align-center {
    margin-left: auto;
    margin-right: auto;
}

.news-detail-content figure {
    margin: 1.5em 0;
    text-align: center;
}

.news-detail-content figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* ========== ССЫЛКИ ========== */
.news-detail-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: bold;
}

.news-detail-content a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== РАЗДЕЛИТЕЛИ ========== */
.news-detail-content hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2em 0;
}

/* ========== СПЕЦИАЛЬНЫЕ КЛАССЫ ========== */
/* Выделенный текст */
.news-detail-content .highlight {
    background-color: #fff3cd;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    border-left: 3px solid #ffc107;
}

/* Уведомления */
.news-detail-content .alert {
    padding: 1em;
    border-radius: 6px;
    margin: 1.5em 0;
    border-left: 4px solid;
}

.news-detail-content .alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.news-detail-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.news-detail-content .alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.news-detail-content .alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* ========== СПЕЦИАЛЬНЫЕ ТЕГИ ========== */
/* Адрес */
.news-detail-content address {
    font-style: normal;
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 6px;
    border-left: 4px solid #6c757d;
    margin: 1.5em 0;
}

/* Определения */
.news-detail-content dl {
    margin: 1.5em 0;
}

.news-detail-content dt {
    font-weight: 700;
    color: #222;
    margin-top: 1em;
}

.news-detail-content dd {
    margin-left: 1.5em;
    color: #555;
    margin-bottom: 0.5em;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .news-detail-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .news-detail-content h1 {
        font-size: 1.75rem;
    }

    .news-detail-content h2 {
        font-size: 1.5rem;
    }

    .news-detail-content h3 {
        font-size: 1.25rem;
    }


    .news-detail-content table {
        font-size: 0.9em;
    }

    .news-detail-content th,
    .news-detail-content td {
        padding: 8px 10px;
    }

    .news-detail-content img.align-left,
    .news-detail-content img.align-right {
        float: none;
        max-width: 100%;
        margin: 1em 0;
    }
}

@media (max-width: 576px) {
    .news-detail-content {
        font-size: 0.9375rem;
    }

    .news-detail-content h1 {
        font-size: 1.5rem;
    }

    .news-detail-content h2 {
        font-size: 1.25rem;
    }

    .news-detail-content ul,
    .news-detail-content ol {
        padding-left: 1.5em;
    }

    .news-detail-content blockquote {
        padding: 0.75em 1em;
        margin-left: 0.5em;
        margin-right: 0.5em;
    }
}
/* End */
/* /local/templates/main/components/bitrix/news/news_complex/style.css?17654277182192 */
/* /local/templates/main/components/bitrix/news/news_complex/bitrix/news.detail/news_detail/style.css?177426422810800 */
