/* ===== ЗАГОЛОВОК С ИЗОБРАЖЕНИЕМ ===== */
.section-header-full {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 40px;
    overflow: hidden;
}

.section-header-image-wrapper {
    display: block;
    width: 100%;
    line-height: 0;
}

.section-header-image {
    width: 100%;
    height: auto;
    display: block;
}

.section-header-overlay {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 10px 50px;
}

.section-header-content {
    max-width: 50%;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.section-page {
    padding: 0 0 50px 0;
}

.section-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.section-sidebar {
    flex: 0 0 348px;
    position: sticky;
    top: 20px;
}

.sidebar-block {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sidebar-menu-item {
    margin-bottom: 3px;
    border: #DEE2E6 solid 1px;
    padding: 8px 16px;
    border-radius: 16px;
    position: relative;
    background: #fff;
    font-style: italic;
}

.sidebar-menu-item.active {
    padding-left: 25px;
}
.sidebar-menu-item.active::before {
    content: "•";
    position: absolute;
    left: 13px;
    top: 48%;
    transform: translateY(-50%);
    color: #333;
    font-size: 18px;
    line-height: 1;
}
.sidebar-link {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background: #f0f4ff;
    color: #0055cc;
}

.sidebar-menu-item.active .sidebar-link:hover {

}
.sidebar-menu-razdel {
    padding: 0;
}
.sidebar-menu-item-razdel {
    list-style: none;
}
.sidebar-link-razdel {
    font-size: 24px;
    line-height: 32px;
    display: block;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}
/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.section-content {
    flex: 1;
    min-width: 0;
}

.subsection-group {
    margin-bottom: 40px;
}

.subsection-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ===== СЕТКА ЭЛЕМЕНТОВ ===== */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.element-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.element-item {

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
}

/* Тень только у изображения при наведении */
.element-image-wrapper {
    width: 380px;
    height: 380px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.element-image {
    width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}
.element-image:hover {
    box-shadow: 0 0 20px var(--hover-color, #000000);
    transition: box-shadow 0.3s ease;
}

.element-content {
    width: 380px;
    padding: 16px 0 0 0;
    text-align: center;
    flex-shrink: 0;
}

.element-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.element-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-message {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .element-item {
        width: 100%;
        max-width: 530px;
        height: auto;
        aspect-ratio: 530 / 500;
        padding: 16px;
    }

    .element-image-wrapper {
        width: 80%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 380px;
    }

    .element-content {
        width: 80%;
        max-width: 380px;
    }
}

@media (max-width: 1024px) {
    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-header-overlay {
        padding: 20px 24px 30px;
    }

    .section-header-content {
        max-width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .section-wrapper {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }

    .section-sidebar {
        flex: 1 1 auto;
        position: relative;
        top: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
    }

    .sidebar-block {
        flex: 1;
        min-width: 120px;
        margin-bottom: 0;
    }

    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .element-item {
        width: 100%;
        height: auto;
        aspect-ratio: 530 / 500;
        padding: 12px;
    }

    .element-image-wrapper {
        width: 75%;
        max-width: 280px;
    }

    .element-content {
        width: 75%;
        max-width: 280px;
    }

    .element-image-wrapper:hover {
        box-shadow: 0 0 20px 12px var(--hover-color, #000000);
    }
}

@media (max-width: 480px) {
    .section-header-overlay {
        padding: 16px 16px 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-sidebar {
        flex-direction: column;
        gap: 12px;
    }

    .sidebar-block {
        min-width: auto;
    }

    .elements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .element-item {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 16px;
        margin: 0 auto;
    }

    .element-image-wrapper {
        width: 80%;
        max-width: 280px;
    }

    .element-content {
        width: 80%;
        max-width: 280px;
    }

    .element-image-wrapper:hover {
        box-shadow: 0 0 16px 10px var(--hover-color, #000000);
    }
}

.bx-newsdetail-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.detail-picture {
    display: block;
    width: 100%;
    line-height: 0; /* Убирает отступ снизу у картинки */
}

.detail-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}