﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 8px;
        }

/* ОБЩИЕ СТИЛИ для всех устройств */
.navbar-custom {
    background: #2d6b3d;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    min-height: 100px;
}

.navbar-custom .navbar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-custom .navbar-toggle {
    border: none;
    background: transparent;
    margin: 0;
}

.navbar-custom .navbar-collapse {
    padding: 0;
    flex: 1;
}

.navbar-custom .navbar-nav > li > a {
    color: white !important;
    transition: background 0.3s;
    font-size: 15px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
    background: #1a4d2a !important;
}

/* Значок электронной подписи */
.e-sign-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #4ca064;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    cursor: help;
    flex-shrink: 0;
}

.e-sign-icon::after {
    content: "⚡";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    color: white;
}

/* Контейнер меню такой же ширины как основной контент */
.navbar-custom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-header {
    float: none;
    margin: 0;
}

/* ПЕРЕОПРЕДЕЛЕНИЕ BOOTSTRAP ДЛЯ 992px */
@media (max-width: 992px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
}

/* СТИЛИ ТОЛЬКО ДЛЯ ДЕСКТОПА (min-width: 993px) */
@media (min-width: 993px) {
    .navbar-custom .navbar-nav > li > a {
        position: relative;
        padding-right: 20px;
    }
    
    .navbar-custom .navbar-nav > li > a .caret {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        border-top: 4px solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
    }
    
    .navbar-custom .navbar-nav {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin: 0;
    }
    
    .navbar-custom .navbar-nav > li {
        flex: 1;
        display: flex;
        justify-content: center;
        min-width: 80px;
        position: relative;
		border-left: 1px solid #1d971b42;
    }
    
    .navbar-custom .navbar-nav > li > a {
        padding: 40px 20px 40px 5px;
        border-right: 1px solid #3d8b4f;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        border: none !important;
        outline: none !important;
        width: 100%;
        flex: 1;
    }
    
    .navbar-custom .navbar-nav > li:last-child > a {
        border-right: none;
    }
    
    .navbar-custom .dropdown-menu {
        background: white;
        border: none;
        border-radius: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        min-width: 280px;
        max-width: 350px;
        width: auto;
        padding: 0;
        margin: 0;
        border-top: 3px solid #1a4d2a;
    }
    
    .navbar-custom .dropdown-menu > li > a {
        color: #1a4d2a !important;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s;
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .navbar-custom .dropdown-menu > li > a:hover {
        background: #e9f7ef !important;
        color: #1a4d2a !important;
    }
    
    .navbar-custom .dropdown-menu > li:last-child > a {
        border-bottom: none;
    }
    
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu > .dropdown-menu {
        top: -3px;
        left: 100%;
        margin-left: 0;
        border-radius: 0;
        min-width: 280px;
        max-width: 350px;
        width: auto;
        box-shadow: 3px 3px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav > li:nth-last-child(1) .dropdown-menu,
    .navbar-nav > li:nth-last-child(2) .dropdown-menu,
    .navbar-nav > li:nth-last-child(3) .dropdown-menu {
        left: auto;
        right: 0;
    }
    
    .navbar-nav > li:nth-last-child(1) .dropdown-submenu > .dropdown-menu,
    .navbar-nav > li:nth-last-child(2) .dropdown-submenu > .dropdown-menu,
    .navbar-nav > li:nth-last-child(3) .dropdown-submenu > .dropdown-menu {
        left: auto;
        right: 100%;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > a::after {
        content: '›';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #1a4d2a;
    }
    
    /* Скрыть кнопку меню в десктопе */
    .navbar-custom .navbar-toggle {
        display: none;
    }
}
/* СТИЛИ ТОЛЬКО ДЛЯ МОБИЛЬНЫХ (max-width: 992px) */
@media (max-width: 992px) {
    .navbar-custom {
        min-height: 80px;
    }
    
    .navbar-custom .container {
        padding-left: 10px;  /* Уменьшил отступы */
        padding-right: 10px;
        width: 100%;
    }
    
    .navbar-custom .navbar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 80px;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-custom .navbar-brand {
        height: 60px;
        padding: 10px 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        display: flex;
        align-items: center;
        /* Принудительно к левому краю */
        order: 1;
        flex-shrink: 0;
    }
    
    /* Кнопка меню - принудительно к правому краю */
    .navbar-custom .navbar-toggle {
        display: block !important;
        border: 2px solid white;
        background: transparent;
        border-radius: 4px;
        padding: 8px 15px;
        margin: 0 !important;
        margin-right: 0 !important;
        height: 40px;
        /* Принудительно к правому краю */
        order: 2;
        margin-left: auto !important;
    }
    
    .navbar-custom .navbar-toggle .icon-bar {
        display: none;
    }
    
    .navbar-custom .navbar-toggle span {
        color: white;
        font-size: 14px;
        font-weight: bold;
        letter-spacing: 0.5px;
        display: block !important;
        line-height: 1;
    }
    
    .navbar-custom .navbar-toggle:hover,
    .navbar-custom .navbar-toggle:focus {
        background-color: #1a4d2a;
    }
    
    /* Меню */
    .navbar-custom .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #2d6b3d;
        margin-top: 0;
        border-top: 1px solid #3d8b4f;
        padding: 0;
    }
    
    .navbar-custom .navbar-nav {
        margin: 0;
        width: 100%;
    }
    
    .navbar-custom .navbar-nav > li {
        width: 100%;
        float: none;
    }
    
    .navbar-custom .navbar-nav > li > a {
        padding: 15px 25px;
        border-right: none;
        border-bottom: 1px solid #3d8b4f;
        font-size: 16px;
        height: auto;
        text-align: left;
        justify-content: flex-start;
        position: relative;
        float: none;
    }
    
    .navbar-custom .dropdown > a .caret {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        border-top-color: white;
        border-bottom-color: white;
    }
    
    .navbar-custom .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        background: white !important;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .navbar-custom .dropdown-menu > li > a {
        color: #2d6b3d !important;
        padding: 12px 35px;
        border-bottom: 1px solid #e0e0e0;
        font-size: 14px;
        position: relative;
        background: white !important;
    }
    
    .navbar-custom .dropdown-menu > li > a:hover {
        background: #f5f5f5 !important;
        color: #1a4d2a !important;
    }
    
    .navbar-custom .dropdown-submenu .dropdown-menu {
        background: #f8f9fa !important;
        padding-left: 20px;
    }
    
    .navbar-custom .dropdown-submenu .dropdown-menu > li > a {
        color: #2d6b3d !important;
        padding: 10px 35px;
        border-bottom: 1px solid #e8e8e8;
        font-size: 13px;
        background: #f8f9fa !important;
    }
    
    .navbar-custom .dropdown-submenu .dropdown-menu > li > a:hover {
        background: #e9ecef !important;
        color: #1a4d2a !important;
    }
    
    .dropdown-submenu > a::after {
        display: none;
    }
    
    .navbar-custom .dropdown.open > a {
        background: #1a4d2a !important;
    }
    
    .navbar-custom .e-sign-icon {
        background: #2d6b3d;
        margin-left: 8px;
    }
    
    /* Переопределение Bootstrap для правильного выравнивания */
    .navbar-custom .navbar-header {
        float: none;
    }
    .navbar-custom .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-custom .navbar-collapse.collapse.in {
        display: block !important;
    }
}

/* Гарантируем что текст не будет вылазить */
.navbar-custom .navbar-nav > li > a span {
    max-width: 100%;
    display: block;
}

        /* Шапка с музыкальным фоновым изображением */
        .header {
            position: relative;
            color: white;
            padding: 10px 0;
            text-align: center;
            overflow: hidden;
            background: #1a4d2a;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('/public/images/test_fon4.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            filter: blur(2px) brightness(0.7);
            transform: scale(1.05);
            z-index: 1;
        }

        .header::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                45deg,
                rgba(26, 77, 42, 0.9) 0%,
                rgba(26, 77, 42, 0.7) 50%,
                rgba(26, 77, 42, 0.9) 100%
            );
            z-index: 2;
        }

.header-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 25px;
    text-align: center;
}

.organization-abbr {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    color: white;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.organization-name {
    font-size: 28px;
    font-weight: 500;
    margin: 20px 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    color: white;
    letter-spacing: 0.8px;
}

.organization-subtitle {
    font-size: 18px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
    opacity: 0.9;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.welcome-text {
    font-size: 22px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    line-height: 1.3;
    color: white;
    letter-spacing: 1px;
    opacity: 0.95;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 25px 20px 20px;
    }
    
    .organization-abbr {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .organization-name {
        font-size: 22px;
        margin: 15px 0 8px 0;
        line-height: 1.2;
    }
    
    .organization-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .welcome-text {
        font-size: 19px;
        margin-top: 18px;
        padding-top: 18px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 20px 15px 15px;
    }
    
    .organization-abbr {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .organization-name {
        font-size: 18px;
        margin: 12px 0 6px 0;
    }
    
    .organization-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .welcome-text {
        font-size: 17px;
        margin-top: 15px;
        padding-top: 15px;
        letter-spacing: 0.5px;
    }
}

        /* Основной контент - 2 колонки с правильными отступами */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin: 40px 0 30px 0;
        }

        .left-column {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .right-column {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .section-block {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            border-top: 4px solid #1a4d2a;
        }

        .section-block h3 {
            color: #1a4d2a;
            margin-bottom: 20px;
            font-size: 22px;
            padding-bottom: 12px;
            border-bottom: 2px solid #4ca064;
        }

        .menu-item {
            background: #f8f9fa;
            padding: 18px;
            border-left: 4px solid #4ca064;
            transition: all 0.3s;
            cursor: pointer;
            border-radius: 6px;
        }

        .menu-item:hover {
            background: #e9f7ef;
            transform: translateX(8px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .menu-item h4 {
            color: #1a4d2a;
            margin-bottom: 5px;
            font-size: 16px;
        }

        /* Компактная фотогалерея на месте слайдера */
        .compact-gallery {
            height: 420px;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            margin: 5px 0;
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 4px;
            height: 100%;
        }
        
        .gallery-main {
            grid-column: span 2;
            grid-row: span 2;
            position: relative;
            overflow: hidden;
        }
        
        .gallery-side {
            position: relative;
            overflow: hidden;
        }
        
        .gallery-item {
            position: relative;
            cursor: pointer;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.03);
        }
        
        /* Плавные анимации смены изображений */
        .gallery-item img {
            transition: opacity 0.6s ease, transform 0.4s ease;
        }
        
        .gallery-item.fading img {
            opacity: 0.7;
            transform: scale(0.98);
        }
        
        .gallery-item.zooming img {
            opacity: 1;
            transform: scale(1.02);
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .compact-gallery {
                height: 300px;
            }
        }
        
        @media (max-width: 480px) {
            .compact-gallery {
                height: 250px;
            }
            
            .gallery-grid {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: 2fr 1fr 1fr;
            }
            
            .gallery-main {
                grid-column: span 2;
            }
        }

/* Новости горизонтально - 4 в ряд */
.news-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.news-card-horizontal {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-image-horizontal {
    width: 100%;
    height: 100px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 11px;
}

.news-content-horizontal {
    padding: 12px;
    flex-grow: 1;
}

.news-content-horizontal h4 {
    color: #1a4d2a;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.3;
}

.news-date-horizontal {
    color: #888;
    font-size: 10px;
    margin-top: 5px;
}

/* Адаптивность для 4 колонок */
@media (max-width: 1024px) {
    .news-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .news-grid-horizontal {
        grid-template-columns: 1fr;
    }
}

        /* Блок проблемы */
        .problem-alert {
            border: 1px solid #fff;
            margin: 20px 0;
            border-radius: 10px;
            text-align: center;
        }

        .problem-alert p {
            margin-bottom: 10px;
            font-size: 16px;
        }

        .report-btn {
            background: #1a4d2a;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 15px;
            font-size: 16px;
            transition: background 0.3s;
        }

        .report-btn:hover {
            background: #153e22;
        }

        .resources-section {
            background: transparent;
            padding: 0;
            margin: 30px 0;
        }

        .resources-section .section-block {
            background: transparent;
            box-shadow: none;
            border: none;
            padding: 0;
        }

        .resources-section h3 {
            color: #1a4d2a;
            margin-bottom: 20px;
            font-size: 22px;
            padding-bottom: 12px;
            border-bottom: 2px solid #4ca064;
        }

 .resources-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Фиксированная ширина для баннера */
    gap: 40px;
    align-items: start;
}

.victory-banner {
    text-align: center;
    color: #1a4d2a;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: none; /* Убираем тень */
    min-height: 280px;
    border: none; /* Убираем границу */
}

.victory-banner img {
    max-width: 100%;
    height: 100%; /* Занимаем всю высоту */
    object-fit: contain; /* Сохраняем пропорции */
    display: block;
}

/* Полезные ресурсы - квадратные значки 5 в ряд, 2 строки */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 в ряд вместо 4 */
    grid-template-rows: repeat(2, 1fr); /* 2 строки вместо 3 */
    gap: 15px;
    padding: 0;
    height: 100%;
    align-items: center;
}

.logo-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    transition: none;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    padding: 5px; /* Небольшой внутренний отступ */
}

/* Адаптивность для логотипов */
@media (max-width: 1200px) {
    .logos-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .resources-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .victory-banner {
        min-height: 280px;
        padding: 20px 12px;
    }
    
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .logo-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .resources-container {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    .logos-grid {
        height: auto;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

        .footer {
            background: #383838;
            color: white;
            padding: 40px 0 20px;
            margin-top: 50px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-section h4 {
            margin-bottom: 20px;
            font-size: 18px;
            color: #4ca064;
        }

        .contact-info {
            margin-bottom: 20px;
        }

        .contact-info p {
            margin-bottom: 8px;
            line-height: 1.8;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #4ca064;
        }

        .banner-space {
            background: #153e22;
            padding: 40px 20px;
            text-align: center;
            border-radius: 8px;
            border: 2px dashed #4ca064;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #4e4e4e;
            margin-top: 20px;
            color: #bdc3c7;
        }

        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
                margin: 30px 0 20px 0;
            }
            
            .news-grid-horizontal {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .resources-container {
                grid-template-columns: 1fr;
            }
            
            .logos-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }

            .menu-level-1 {
                flex-direction: column;
                height: auto;
            }

            .top-menu {
                height: auto;
                padding: 10px 0;
            }

            .menu-level-1 > li > a {
                height: 50px;
                border-right: none;
                border-bottom: 1px solid #3d8b4f;
            }

            .header {
                padding: 50px 0;
            }

            .organization-name {
                font-size: 28px;
            }

            .organization-subtitle {
                font-size: 16px;
            }

            .slider {
                height: 250px;
            }
        }

        @media (max-width: 480px) {
            .logos-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .organization-name {
                font-size: 24px;
            }
            
            .news-grid-horizontal {
                grid-template-columns: 1fr;
            }
        }	