/* ==========================================================================
   1. ИМПОРТ ШРИФТОВ И СИСТЕМНЫЙ СТИКЕР ФУТЕРА
   ========================================================================== */
@import url('https://googleapis.com');

/* Прижимаем футер к низу экрана, не ломая стандартную сетку контента */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.site-interface {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

main {
    flex: 1 0 auto;
}

/* ==========================================================================
   2. КОМПАКТНАЯ ШАПКА И МЕНЮ
   ========================================================================== */
.header {
    background: #1b3c22 !important;
    background-image: linear-gradient(135deg, #1b3c22 0%, #112515 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 10px 0 !important; /* Уменьшенная высота шапки */
    border-bottom: 2px solid #7ea172; /* Тонкая салатовая полоса */
}

.brand-title a {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 1.3rem;
}

/* Убираем подчеркивания логотипа */
.navbar-brand a, .navbar-brand a:hover, .brand-title a, .brand-title a:hover {
    text-decoration: none !important;
}

/* Компактные кнопки меню */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 4px 12px !important;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.navbar-nav .active .nav-link {
    background: #7ea172 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. ТОЧЕЧНЫЕ НАСТРОЙКИ КОНТЕНТА И СТРАНИЦ
   ========================================================================== */
/* Скрываем дублирующее слово "Контакт" */
.com-contact__pills h3, .com-contact h3, div.com-contact h3 {
    display: none !important;
}

/* Выравнивание галереи плагина (для вкладки Фото) */
.sigProContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   4. МАКСИМАЛЬНО ТОНКИЙ И ОТЦЕНТРИРОВАННЫЙ ФУТЕР
   ========================================================================== */
footer {
    flex-shrink: 0;
    margin-top: auto !important; /* Выталкивает подвал в самый низу экрана */
    background: #112515 !important;
    color: rgba(255,255,255,0.6) !important;
    padding: 12px 0 !important; /* Тонкая аккуратная линия */
    font-size: 0.85rem;
    text-align: center !important; /* Выравнивание всего текста строго по центру */
}

/* Центрируем внутренние блоки кода, если используется flex-разметка */
footer .container-footer, 
footer div {
    display: block !important;
    text-align: center !important;
    justify-content: center !important;
}

/* Обнуляем внутренние маргины текстов футера для минимальной высоты */
footer p, footer div, footer span {
    margin: 0 auto !important;
    padding: 2px 0 !important;
    line-height: 1.4 !important;
}

footer a {
    color: #7ea172 !important;
}
