

/* Start:/bitrix/templates/empty/components/bitrix/catalog.section.list/section_list/style.min.css?17576610506236*/
.bx_catalog_line{margin-bottom:30px}.bx_catalog_line .bx_catalog_line_category_title{padding-bottom:14px;border-bottom:1px solid #e5e5e5;font-size:24px}.bx_catalog_line .bx_catalog_line_category_title a{color:#000;text-decoration:none}.bx_catalog_line .bx_catalog_line_ul{padding:0}.bx_catalog_line .bx_catalog_line_ul li{margin-bottom:20px;list-style:none}.bx_catalog_line .bx_catalog_line_ul li:before{content:''!important}.bx_catalog_line .bx_catalog_line_img{position:relative;display:block;float:left;overflow:hidden;margin-right:40px;width:125px;height:125px;border:1px solid #ccc;border-radius:2px;background-position:center;background-size:contain;background-repeat:no-repeat;-webkit-background-size:contain}.bx_catalog_line .bx_catalog_line_title{margin-bottom:10px;padding:0;vertical-align:top;line-height:18px}.bx_catalog_line .bx_catalog_line_title a{color:#4c7da6;font-size:18px}.bx_catalog_line .bx_catalog_line_title a:hover{text-decoration:none}.bx_catalog_line .bx_catalog_line_title span{font-size:16px}.bx_catalog_line .bx_catalog_line_description{color:#3f3f3f;font-size:13px;line-height:16px}@media(max-width:639px){.bx-touch .bx_catalog_line .bx_catalog_line_img{margin-right:10px;width:50px;height:50px}.bx-touch .bx_catalog_line .bx_catalog_line_title{margin-bottom:5px;line-height:14px}.bx-touch .bx_catalog_line .bx_catalog_line_title a{font-size:14px}.bx-touch .bx_catalog_line .bx_catalog_line_description{font-size:11px}}.bx_catalog_line .bx_catalog_line_img,.bx_catalog_line .bx_catalog_line_title,.bx_catalog_line .bx_catalog_line_title a,.bx_catalog_line .bx_catalog_line_description{transition:all .3s ease}.bx_catalog_text{margin-bottom:30px}.bx_catalog_text .bx_catalog_text_category_title{padding-bottom:14px;border-bottom:1px solid #e5e5e5;font-size:24px}.bx_catalog_text .bx_catalog_text_category_title a{color:#000;text-decoration:none}.bx_catalog_text .bx_catalog_text_ul{padding:0}.bx_catalog_text .bx_catalog_text_ul li{float:left;margin:0 10px 10px;list-style:none}.bx_catalog_text .bx_catalog_text_ul li:before{content:''!important}.bx_catalog_text .bx_catalog_text_title{margin:0;padding:0;vertical-align:top;font-size:14px;line-height:14px}.bx_catalog_tile .bx_catalog_tile_title a{display:inline-block;overflow:hidden;max-width:100%;color:#4c7da6;-ms-text-overflow:ellipsis;text-overflow:ellipsis;font-size:14px}.bx_catalog_text .bx_catalog_text_title a:hover{text-decoration:none}.bx_catalog_text .bx_catalog_text_title span{font-size:12px}@media(max-width:639px){.bx-touch .bx_catalog_text .bx_catalog_line_title{margin-bottom:5px;line-height:12px}.bx-touch .bx_catalog_text .bx_catalog_line_title a{font-size:12px}}.bx_catalog_text .bx_catalog_line_title,.bx_catalog_text .bx_catalog_line_title a{transition:all .3s ease}.bx_catalog_tile{margin-bottom:30px}.bx_catalog_tile .bx_catalog_tile_category_title{padding-bottom:14px;border-bottom:1px solid #e5e5e5;font-size:24px}.bx_catalog_tile .bx_catalog_tile_category_title a{color:#000;text-decoration:none}.bx_catalog_tile .bx_catalog_tile_ul{padding:0}.bx_catalog_tile .bx_catalog_tile_ul li{float:left;box-sizing:border-box;margin-bottom:20px;padding:0 10px;width:12.5%;list-style:none;text-align:center}.bx_catalog_tile .bx_catalog_tile_ul li:before{content:''!important}.bx_catalog_tile .bx_catalog_tile_ul li:nth-child(8n+1){clear:both}.bx_catalog_tile .bx_catalog_tile_img{position:relative;display:block;overflow:hidden;margin:0 auto;width:78px;height:78px;border:1px solid #ccc;border-radius:2px;background-color:#fff;background-position:center;background-size:contain;background-repeat:no-repeat;-webkit-background-size:contain}.bx_catalog_tile .bx_catalog_tile_title{margin-top:5px;margin-bottom:10px;padding:0;vertical-align:top;line-height:14px}.bx_catalog_tile .bx_catalog_tile_title a{color:#4c7da6;font-size:14px}.bx_catalog_tile .bx_catalog_tile_title a:hover{text-decoration:none}.bx_catalog_tile .bx_catalog_tile_title span{font-size:12px}@media(max-width:980px){.bx_catalog_tile .bx_catalog_tile_ul li{width:20%}.bx_catalog_tile .bx_catalog_tile_ul li:nth-child(8n+1){clear:none}.bx_catalog_tile .bx_catalog_tile_ul li:nth-child(5n+1){clear:both}}@media(max-width:639px){.bx-touch .bx_catalog_tile .bx_catalog_tile_title{margin-bottom:5px;line-height:14px}.bx-touch .bx_catalog_tile .bx_catalog_tile_title{line-height:10px}.bx-touch .bx_catalog_tile .bx_catalog_tile_title a{font-size:11px}}@media(min-width:480px) and (max-width:639px){.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li{width:25%}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(8n+1){clear:none}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(5n+1){clear:none}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(4n+1){clear:both}}@media(max-width:479px){.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li{width:33.3%}.bx-touch .bx_catalog_tile .bx_catalog_tile_img{width:100%;height:80px}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(8n+1){clear:none}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(5n+1){clear:none}.bx-touch .bx_catalog_tile .bx_catalog_tile_ul li:nth-child(3n+1){clear:both}}.bx_catalog_tile .bx_catalog_tile_title,.bx_catalog_tile .bx_catalog_tile_title a,.bx_catalog_tile .bx_catalog_tile_ul li,.bx_catalog_tile .bx_catalog_tile_img{transition:all .3s ease}.bx_sitemap{margin-bottom:30px}.bx_sitemap .bx_sitemap_title{padding-bottom:14px;border-bottom:1px solid #e5e5e5;font-size:24px}.bx_sitemap .bx_sitemap_title a{color:#000;text-decoration:none}.bx_sitemap .bx_sitemap_ul li{padding:0;line-height:14px}.bx_sitemap .bx_sitemap_ul li:before{content:''!important}.bx_sitemap .bx_sitemap_li_title{display:inline-block;margin:0;margin-bottom:10px;padding:0;vertical-align:top;font-weight:normal;line-height:13px}.bx_sitemap .bx_sitemap_li_title a{color:#4c7da6;white-space:nowrap;font-size:13px}.bx_sitemap .bx_sitemap_li_title a:hover{text-decoration:none}.bx_sitemap .bx_sitemap_li_title span{font-size:11px}@media(max-width:639px){.bx-touch .bx_sitemap .bx_catalog_line_title{margin-bottom:5px;line-height:12px}.bx-touch .bx_sitemap .bx_catalog_line_title a{font-size:12px}}.bx_sitemap .bx_catalog_line_title,.bx_sitemap .bx_catalog_line_title a{transition:all .3s ease}
/* End */


/* Start:/bitrix/templates/empty/components/bitrix/news/news/bitrix/news.detail/.default/style.css?175766105013588*/
/* --- Общий стиль контента новости (приоритет) --- */
.news-detail-content {
    background: #fff;
    border-radius: 7px;
    padding: 30px 28px 38px 28px;
    box-shadow: 0 3px 30px rgba(24,62,122,0.06);
    max-width: 780px;
    box-sizing: border-box;
}

.news-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px; /* основное содержимое + реклама */
    gap: 40px;
    max-width: 1200px;
    margin: 24px auto;
    padding: 20px;
    box-sizing: border-box;
}

.news-detail-article {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 24px auto 24px auto;
    padding: 30px 28px 38px 28px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 3px 30px rgba(24,62,122,0.06);
}

.news-detail-content {
    width: 100%;
}

.news-detail-title, h1.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #183e7a;
    line-height: 1.2;
}

.news-detail-date {
    color: #7a7a7a;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Для .news-detail-image-wrap и вложенных img задаём стили из второго блока (приоритет) */
.news-detail-image-wrap {
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: transparent; /* прозрачный фон */
    box-shadow: none; /* убираем тень */
    border: none; /* убираем рамку */
    transition: transform 0.3s ease; /* можно оставить плавное появление эффекта */
    cursor: pointer;
}

.news-detail-image-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: none; /* убрать рамку */
    object-fit: contain; /* показать всё изображение без обрезки */
    transition: transform 0.3s ease;
}

/* При ховере на обертке масштабируем картинку */
.news-detail-image-wrap:hover {
    transform: none; /* убрать смещение при наведении */
    box-shadow: none; /* убедиться, что тень не появляется */
}

.news-detail-image-wrap:hover img {
    transform: none; /* убрать масштабирование */
}

/* Подписи к изображениям */
.news-image-caption {
    color: #7a7a7a;
    font-size: 0.85rem;
    text-align: right;
    margin-top: -18px;
    margin-bottom: 24px;
    font-style: italic;
}

/* Текст новости */
.news-detail-text {
    font-size: 1.14rem;
    line-height: 1.65;
    margin-bottom: 24px;
    color: #232323;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-detail-text p {
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-detail-text a {
    color: #1679fa;
    text-decoration: underline;
}

.news-detail-text a:hover {
    text-decoration: none;
}

/* Блок подписки */
.subscribe-block {
    background: #1679fa;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 22px rgba(22, 121, 250, 0.12);
    flex-wrap: wrap;
    gap: 15px;
}

.subscribe-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.subscribe-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    color: white;
    font-size: 1.4rem;
    opacity: 0.9;
    transition: opacity 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
}

/* Блок "поделиться" */
.news-detail-share {
    margin: 30px 0;
}

/* Кнопка "Вернуться ко всем новостям" */
.news-detail-back-btn {
    padding: 13px 28px 13px 18px;
    background-color: #183e7a;
    color: #fff;
    font-size: 1.07rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(22,121,250,0.12);
    transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
}

.news-detail-back-btn:hover,
.news-detail-back-btn:focus {
    background-color: #235bb3;
    box-shadow: 0 6px 28px rgba(22,121,250,0.15);
    color: #fff;
    text-decoration: none;
}

/* Сайдбар */
.news-detail-sidebar {
    width: 350px;
    flex-shrink: 0;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Рекламный контейнер */
.ad-banner-container {
    background: transparent; /* убрать фон */
    border: none;             /* убрать рамку */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ad-banner-container img {
    border: none;
    border-radius: 12px;
    background: transparent;
    object-fit: cover;
}

/* Видео контейнер */
.video-embed-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(24,62,122,0.1);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 12px;
}

/* --- Стили галереи (соединены и доработаны под приоритет) --- */
.news-detail-gallery {
    margin: 30px 0;
}

.news-detail-gallery h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Переписан hover для .news-detail-image-wrap с img уже выше */

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid #fff;
}

.modal-close:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
}

#modalCaption {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    max-width: 80%;
    border-radius: 5px;
}

/* Скроллбар для модального окна */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Адаптивность для галереи и прочего --- */
@media (max-width: 1024px) {
    .news-detail-container,
    .news-detail-article {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 15px 20px;
        margin: 15px auto;
        max-width: 720px;
        box-sizing: border-box;
    }

    .news-detail-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        order: 2;
    }

    .ad-banner-container {
        position: static !important;
        width: 100% !important;
        max-width: 350px;
        min-height: 250px;
        height: auto !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .ad-banner-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .news-detail-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .news-detail-text {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .news-detail-date {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .news-detail-content {
        padding: 20px 15px 25px 15px;
        box-shadow: 0 2px 15px rgba(24,62,122,0.04);
        border-radius: 7px;
    }

    .video-embed-container {
        max-width: 100%;
    }

    .video-embed-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 720px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-image {
        height: 150px;
    }

    .news-detail-container,
    .news-detail-article {
        max-width: 100%;
        padding: 10px 15px;
        gap: 12px;
        margin: 0 auto;
    }

    .news-detail-sidebar {
        margin-top: 15px;
        padding: 0 10px;
        max-width: 100%;
    }

    .ad-banner-container {
        max-width: 100%;
        min-height: 200px;
        border-radius: 8px;
        box-shadow: none;
        height: auto !important;
    }

    .news-detail-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .news-detail-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .news-detail-date {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .news-detail-content {
        padding: 15px 12px 20px 12px;
        box-shadow: none;
        border-radius: 5px;
    }

    .video-embed-container iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }

    #modalCaption {
        font-size: 14px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 1.3rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 6px;
    }

    .news-detail-text {
        font-size: 0.9rem !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-detail-date {
        font-size: 0.75rem !important;
        margin-bottom: 10px;
    }

    .news-detail-content {
        padding: 12px 10px 15px 10px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .news-detail-sidebar {
        margin-top: 20px !important;
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ad-banner-container {
        max-width: 100% !important;
        min-height: 150px !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        height: auto !important;
    }

    .video-embed-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important;
        overflow: hidden !important;
        margin-bottom: 24px !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 15px rgba(24,62,122,0.1) !important;
    }

    .video-embed-container iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        border-radius: 12px !important;
    }
}

/* Запрет прокрутки body при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* End */
/* /bitrix/templates/empty/components/bitrix/catalog.section.list/section_list/style.min.css?17576610506236 */
/* /bitrix/templates/empty/components/bitrix/news/news/bitrix/news.detail/.default/style.css?175766105013588 */
