<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Title");
?>/* ===== ФІКС ШАБЛОНУ BITRIX ДЛЯ ЦІЄЇ СТОРІНКИ ===== */
/* ховаємо порожню ліву колонку */
#left-side.col_3,
#left-side {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* розтягуємо праву колонку на всю ширину */
#content .col_9,
.col_9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
/* якщо батьківський контейнер використовує сітку */
#content.col_12,
#content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* ===== ОСНОВНИЙ БЛОК ===== */
.custom-news-page {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 24px 40px;
}
.custom-news-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}
/* ===== ЛІВЕ МЕНЮ ===== */
.custom-news-sidebar {
    width: 260px;
    min-width: 260px;
    background: #f3f3f3;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}
.custom-news-sidebar__title {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-style: italic;
    color: #2d4fa3;
    font-weight: 700;
}
.custom-news-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-news-sidebar__link {
    display: block;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    color: #1f1f1f !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}
.custom-news-sidebar__link:hover {
    background: #e9eefc;
    transform: translateX(2px);
}
.custom-news-sidebar__link.is-active {
    background: #2d4fa3;
    color: #ffffff !important;
}
/* ===== ПРАВА ЧАСТИНА ===== */
.custom-news-content {
    flex: 1 1 auto;
    min-width: 0;
}
/* ===== ЗАГОЛОВОК ===== */
.custom-news-page__header {
    width: 100%;
    margin: 0 0 30px 0;
}
.custom-news-page__heading-row {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}
.custom-news-page__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    color: #2d4fa3;
    white-space: nowrap;
}
.custom-news-page__heading-line {
    flex: 1 1 auto;
    height: 1px;
    background: #bcc6dc;
    margin-top: 6px;
}
.custom-news-page__heading-dash {
    width: 170px;
    border-bottom: 1px dashed #8d8d8d;
    margin-top: 10px;
}
/* ===== СПИСОК НОВИН ===== */
.custom-news-list {
    width: 100%;
}
.custom-news-card {
    display: block;
    width: 100%;
    margin: 0 0 18px 0;
    padding: 26px 28px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    color: #1f1f1f !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}
.custom-news-card__title {
    margin: 0 0 18px 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}
.custom-news-card__meta {
    text-align: right;
    font-size: 15px;
    color: #8c765e;
}
.custom-news-card__separator {
    padding: 0 8px;
}
/* ===== СТАТТЯ ===== */
.custom-news-article {
    width: 100%;
    padding: 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
.custom-news-article__title {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 700;
}
.custom-news-article__meta {
    font-size: 15px;
    color: #8c765e;
    margin-bottom: 24px;
}
.custom-news-article__content {
    font-size: 18px;
    line-height: 1.7;
}
.custom-news-article__back-link {
    display: inline-block;
    margin-top: 18px;
    color: #2d4fa3 !important;
    font-weight: 700;
    text-decoration: none;
}
.custom-news-article__back-link:hover {
    text-decoration: underline;
}
/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .custom-news-layout {
        flex-direction: column;
    }
    .custom-news-sidebar {
        width: 100%;
        min-width: 100%;
    }
    #content .col_9,
    .col_9 {
        width: 100% !important;
    }
}
@media (max-width: 768px) {
    .custom-news-page {
        padding: 15px 14px 30px;
    }
    .custom-news-page__title {
        font-size: 28px;
    }
    .custom-news-page__heading-dash {
        width: 120px;
    }
    .custom-news-card {
        padding: 18px;
        border-radius: 12px;
    }
    .custom-news-card__title {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .custom-news-card__meta {
        font-size: 14px;
    }
    .custom-news-article {
        padding: 18px;
        border-radius: 12px;
    }
    .custom-news-article__title {
        font-size: 22px;
    }
    .custom-news-article__content {
        font-size: 16px;
    }
.custom-news-page #left-side.col_3 {
    display: none !important;
}
.custom-news-page .col_9 {
    width: 100% !important;
}
.custom-news-article__content {
    width: 100%;
    max-width: 100%;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}
.custom-news-article__image {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.custom-news-article__image img {
    width: 100%;
    max-width: 33.33%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
<style>
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
}
</style>
}<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>