/*
Theme Name: soligorsk
Theme URI: https://asoligorsk.by
Description: Чистая тема soligorsk
Version: 1.2
Author: soligorsk
*/

/* ===========================
   1. БАЗОВЫЕ СТИЛИ И СБРОС
   =========================== */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff; /* Приятный светло-серый фон страницы */
    color: #333;
    line-height: 1.6;
}

/* Исправление картинок */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* ===========================
   2. СЕТКА И КОНТЕЙНЕР
   =========================== */
/* Для страниц, где нужны белые поля (Блог, Сайдбары) */
.container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding: 40px;
}

/* Отступ контента сверху, чтобы не прятался под фиксированной шапкой */
.site-content-wrapper {
    min-height: 100vh;
}

/* ===========================
   3. HEADER & MENU (PREMIUM GLASS)
   =========================== */

/* --- Стеклянная Шапка --- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75); /* Полупрозрачный белый */
    backdrop-filter: blur(20px) saturate(180%); /* Эффект стекла */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Класс для скрытия шапки при скролле вниз (добавляется JS) */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Группировка Лого + Соцсети (Слева) */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* --- Логотип --- */
.site-branding a { text-decoration: none; display: flex; align-items: center; }
.custom-logo { height: 45px; width: auto; transition: 0.3s; }
.site-branding a:hover .custom-logo { transform: scale(1.05); }

/* Запасной текстовый лого, если нет картинки */
.text-logo { font-size: 24px; font-weight: 800; color: #333; letter-spacing: -1px; }
.text-logo .highlight { color: #27ae60; }

/* --- Соцсети в шапке (Круглые иконки) --- */
.header-socials {
    display: flex;
    gap: 12px;
    padding-left: 25px;
    border-left: 1px solid rgba(0,0,0,0.1); /* Вертикальная черта */
    height: 30px;
    align-items: center;
}

.header-socials a {
    display: block;
    line-height: 0;
}

.header-socials img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-socials a:hover img {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); /* Зеленое свечение */
}

/* --- Меню (Desktop) --- */
/* Этот стиль применяется для экранов шире 901px (ПК) */
@media (min-width: 901px) {
    
    .main-navigation ul {
        display: flex;
        margin: 0; padding: 0;
        list-style: none;
        gap: 5px; 
    }

    .main-navigation ul li { position: relative; }

    .main-navigation ul li a {
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        color: #444;
        padding: 10px 18px;
        border-radius: 50px;
        transition: all 0.3s ease;
        position: relative;
        letter-spacing: 0.5px;
        display: flex;border-left: 1px solid #b1b1b1;
        align-items: center; /* Выравнивание текста и стрелки */
        gap: 8px; /* Расстояние до стрелки */
    }

    /* Эффект при наведении (Hover) */
    .main-navigation ul li:hover > a {
        background: rgba(39, 174, 96, 0.1); /* Зеленый фон */
        color: #27ae60; /* Зеленый текст */
    }

    /* Активный пункт меню */
    .main-navigation ul li.current-menu-item > a {
        background: #27ae60;
        color: #fff;
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    }

    /* --- СТРЕЛОЧКИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА (Только ПК) --- */
    /* Добавляем стрелочку только родителям */
    .main-navigation ul li.menu-item-has-children > a::after {
        content: '';
        border: solid currentColor; /* Цвет берется от текста */
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 2.5px; /* Размер стрелки */
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.3s ease;
        opacity: 0.6;
    }

    /* При наведении стрелка поворачивается */
    .main-navigation ul li.menu-item-has-children:hover > a::after {
        transform: rotate(-135deg) translateY(-2px);
        opacity: 1;
    }
    
    /* Если активный пункт, стрелка становится белой */
    .main-navigation ul li.current-menu-item.menu-item-has-children > a::after {
        border-color: #fff;
    }

    /* --- ВЫПАДАЮЩЕЕ МЕНЮ (ПК) --- */
    .main-navigation ul .sub-menu {
        position: absolute;
        top: 100%; left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        min-width: 240px;
        width: max-content;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border-radius: 12px;
        padding: 10px;
        
        /* Скрыто по умолчанию */
        opacity: 0; visibility: hidden;
        transform: translateY(15px) scale(0.98);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        
        border: 1px solid rgba(255, 255, 255, 0.5);
        margin-top: 10px;
        z-index: 1001;
        
        display: flex; flex-direction: column; /* Вертикальный список */
    }

    /* Показываем при наведении */
    .main-navigation ul li:hover > .sub-menu {
        opacity: 1; visibility: visible;
        transform: translateY(0) scale(1);
    }

    .main-navigation ul .sub-menu li { margin: 0; width: 100%; }
    
    .main-navigation ul .sub-menu a {
        border-radius: 8px;
        margin-bottom: 2px;
        color: #555;
        text-transform: none;
        font-size: 15px;
        padding: 12px 20px;
        justify-content: flex-start;
    }
    
    /* Убираем стрелочку у вложенных ссылок, чтобы не дублировалась */
    .main-navigation ul .sub-menu a::after { content: none !important; }

    .main-navigation ul .sub-menu a:hover {
        background: #f4f6f8;
        color: #27ae60;
        transform: translateX(5px);
    }
}

/* ВАЖНОЕ ИСПРАВЛЕНИЕ: Ховер работает ТОЛЬКО на ПК (шире 901px) */
@media (min-width: 901px) {
    .main-navigation ul li a:hover {
        background: rgba(39, 174, 96, 0.1);
        color: #27ae60;
    }
}

/* Активный пункт меню (всегда зеленый) */
.main-navigation ul li.current-menu-item a {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
/* --- Выпадающее меню (Dropdown) --- */
/* --- Выпадающее меню (Dropdown) --- */
.main-navigation ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    
    /* Делаем список вертикальным */
    display: flex;
    flex-direction: column; /* Элементы строго друг под другом */
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px); /* Эффект стекла */
    -webkit-backdrop-filter: blur(15px);
    
    min-width: 260px; /* Ширина меню чуть больше, чтобы текст влезал */
    width: max-content; /* Автоширина по самому длинному слову */
    
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 15px; /* Отступ от шапки */
    z-index: 1001;
}

/* ВАЖНО: Показываем меню при наведении ТОЛЬКО НА ПК (ширина > 900px) */
@media (min-width: 901px) {
    .main-navigation ul li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Стили элементов списка */
.main-navigation ul .sub-menu li {
    margin: 0;
    width: 100%; /* Ссылка занимает всю ширину */
    display: block;
}

.main-navigation ul .sub-menu a {
    border-radius: 8px;
    margin-bottom: 2px;
    color: #444;
    text-transform: none; /* Обычный регистр букв */
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Текст слева */
    transition: 0.2s;
}

/* Эффект при наведении на пункт */
.main-navigation ul .sub-menu a:hover {
    background: rgba(39, 174, 96, 0.08); /* Очень легкий зеленый фон */
    color: #27ae60;
    padding-left: 25px; /* Легкий сдвиг вправо */
}

/* Стрелочка (кодом), если ты не добавлял её вручную в меню */
/* Если у тебя стрелочки уже есть в тексте меню, этот блок можно удалить */
.main-navigation ul .sub-menu a::before {
    content: ''; /* Пусто, если стрелки уже есть в тексте */
}

/* --- Мобильная адаптация Меню --- */
.menu-toggle { display: none; }

/* ===========================
   МОБИЛЬНОЕ МЕНЮ (STYLE & ANIMATION)
   =========================== */

@media (max-width: 900px) {
    /* Скрываем соцсети в шапке (они внизу) */
    .header-socials { display: none; }
    
    /* Кнопка Гамбургер */
    .menu-toggle {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 30px; height: 20px;
        background: transparent; border: none; padding: 0; cursor: pointer; z-index: 2000;
        margin-left: auto; /* Прижимаем вправо */
    }
    .bar { background: #333; width: 100%; height: 2px; border-radius: 2px; transition: 0.3s; }
    
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    /* Шторка меню */
    .main-navigation {
        position: fixed; top: 0; right: 0;
        width: 85%; max-width: 320px; height: 100vh;
        background: #f4f6f8; /* Светлый фон */
        padding-top: 90px;
        padding-bottom: 40px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex; flex-direction: column;
        overflow-y: auto; /* Если меню длинное, можно скроллить */
    }
    .main-navigation.toggled { transform: translateX(0); }
    
    .main-navigation ul { 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
        padding: 0 20px; 
        width: 100%;
        list-style: none;
        margin: 0;
    }

    /* --- СТИЛЬ КНОПОК МЕНЮ --- */
    .main-navigation ul li {
        width: 100%;
        position: relative;
    }

    .main-navigation ul li a { 
        font-size: 16px; 
        font-weight: 600;
        color: #333;
        background: #fff; /* Белая карточка */
        padding: 15px 20px;
        border-radius: 12px; /* Закругленные углы */
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
        display: flex;
        align-items: center;
        justify-content: space-between; /* Текст слева, стрелка справа */
        transition: 0.2s;
    }

    .main-navigation ul li a:active {
        transform: scale(0.98); /* Эффект нажатия */
        background: #eee;
    }

    /* --- СТРЕЛОЧКА --- */
    /* Добавляем стрелочку только тем пунктам, где есть дети */
    .main-navigation ul li.menu-item-has-children > a::after {
        content: '';
        border: solid #27ae60;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 3px;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-left: 10px;
    }

    /* Поворот стрелочки при открытии (класс .active добавляем JS-ом) */
    .main-navigation ul li.menu-item-has-children.submenu-open > a::after {
        transform: rotate(-135deg);
    }

    /* Выделяем родителя цветом, когда открыт */
    .main-navigation ul li.menu-item-has-children.submenu-open > a {
        color: #27ae60;
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    }

    /* --- ВЫПАДАЮЩЕЕ МЕНЮ (Анимация) --- */
    .main-navigation ul .sub-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
        
        /* Скрытое состояние */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        
        /* Плавная анимация */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: none;
    }

    /* Открытое состояние */
    .main-navigation ul li.menu-item-has-children.submenu-open > .sub-menu {
        max-height: 1000px; /* Достаточно большое число, чтобы влезло всё */
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Ссылки внутри подменю */
    .main-navigation ul .sub-menu a {
        background: transparent; /* Без фона */
        box-shadow: none;
        padding: 10px 15px 10px 30px; /* Отступ слева больше (лесенка) */
        font-size: 14px;
        color: #666;
        border-radius: 8px;
    }
    .main-navigation ul .sub-menu a:hover {
        color: #27ae60;
        background: rgba(39, 174, 96, 0.05);
    }
    /* Убираем стрелочку у вложенных ссылок */
    .main-navigation ul .sub-menu a::after { content: none; }


    /* --- ПОДВАЛ МЕНЮ (МОБИЛЬНЫЙ) --- */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: auto; /* Прижимаем к низу */
        padding-top: 30px;
        width: 100%;
    }

    .online-status {
        display: flex; align-items: center; gap: 10px;
        background: rgba(39, 174, 96, 0.1);
        padding: 8px 20px; border-radius: 30px; margin-bottom: 20px;
    }
    .status-text { font-size: 14px; font-weight: 700; color: #27ae60; text-transform: uppercase; }
    .pulsing-dot {
        width: 10px; height: 10px; background-color: #27ae60; border-radius: 50%;
        animation: pulse-green 2s infinite;
    }
    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
        100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
    }
    
    .mobile-socials-icons { display: flex; gap: 20px; }
    .mobile-socials-icons img { width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.2s; }
    .mobile-socials-icons a:active img { transform: scale(0.95); }
}

/* ===========================
   4. КОНТЕНТ И САЙДБАРЫ
   =========================== */
.content-area-sidebar {
    display: flex;
    gap: 40px;
}

.site-main-with-sidebar { width: 72%; }
.site-sidebar { width: 28%; }

/* Виджеты сайдбара */
.site-sidebar .widget-item {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.widget-title { margin-top: 0; font-size: 1.2rem; border-bottom: 2px solid #333; display: inline-block; padding-bottom: 5px; }

/* Адаптив сайдбаров */
@media (max-width: 1024px) {
    .container { width: 100%; padding: 20px; }
    .content-area-sidebar { flex-direction: column; }
    .site-main-with-sidebar, .site-sidebar { width: 100%; }
}

/* ===========================
   5. СОВРЕМЕННЫЙ ПОДВАЛ (GLASS DARK)
   =========================== */
.site-footer-modern {
    background: #111;
    background: linear-gradient(135deg, #1a1c20 0%, #0f1012 100%);
    color: #fff;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Эффект стекла (декор) */
.site-footer-modern::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: rgba(46, 204, 113, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.footer-inner-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Сетка подвала */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: #27ae60;
    border-radius: 2px;
}

/* Стили виджетов подвала */
.contact-item {
    display: flex; align-items: center; margin-bottom: 20px;
    background: rgba(255,255,255, 0.03); padding: 12px;
    border-radius: 10px; border: 1px solid rgba(255,255,255, 0.05); transition: 0.3s;
}
.contact-item:hover { background: rgba(255,255,255, 0.08); transform: translateX(5px); }

.contact-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(39, 174, 96, 0.2); color: #27ae60; border-radius: 50%; margin-right: 15px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: 12px; color: #888; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-weight: 600; color: #fff; }

.social-grid { display: flex; gap: 10px; margin-top: 20px; }
.social-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 80px; height: 80px; background: rgba(255,255,255,0.05);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); font-size: 10px; color: #aaa;
}
.social-card:hover { background: #fff; color: #111; transform: translateY(-3px); }
.social-icon svg { width: 24px; height: 24px; margin-bottom: 5px; }

.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 12px; }
.footer-menu a { display: flex; align-items: center; color: #ccc; font-size: 15px; padding-left: 0; transition: 0.3s; }
.menu-icon { margin-right: 10px; color: #27ae60; opacity: 0; transition: 0.3s; transform: translateX(-10px); }
.footer-menu a:hover { color: #fff; padding-left: 10px; }
.footer-menu a:hover .menu-icon { opacity: 1; transform: translateX(0); }

.company-logo { max-width: 180px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.8; }
.feature { display: flex; align-items: center; margin-bottom: 15px; }
.feature-icon { color: #27ae60; margin-right: 15px; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-title { font-weight: bold; margin: 0; color: #fff; line-height: 1.2; }
.feature-desc { font-size: 12px; color: #888; margin: 0; }
.company-desc { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #777; font-size: 13px; }
.company-desc a { color: #aaa; text-decoration: underline; }

/* Кнопка наверх */
.scroll-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: #27ae60; color: #fff; border: none; border-radius: 50%;
    cursor: pointer; box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 100;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); background: #2ecc71; }
.scroll-top svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================
   6. УМНАЯ ШИРИНА ДЛЯ LANDING PAGE
   =========================== */

/* Ограничиваем контент по центру (1300px), чтобы текст не лип к краям */
.site-content-fullwidth .entry-content > * {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* НО разрешаем строкам Page Builder быть на всю ширину (100%) */
.site-content-fullwidth .entry-content > .panel-grid,
.site-content-fullwidth .entry-content > .alignfull {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Картинки */
.entry-content img {
    height: auto;
    max-width: 100%;
}

/* ===========================
   7. СТАНДАРТНОЕ ВЫРАВНИВАНИЕ WP
   =========================== */
.alignright { float: right; margin-left: 30px; margin-bottom: 20px; margin-top: 5px; }
.alignleft { float: left; margin-right: 30px; margin-bottom: 20px; margin-top: 5px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 20px; }
.clear { clear: both; }

/* ===========================
   8. СПЕЦ. КЛАСС ДЛЯ ЦЕНТРОВКИ ИКОНОК В КОНТЕНТЕ
   =========================== */
/* Если ты используешь виджет с иконками в теле страницы */
.messengers-centered {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
.messengers-centered img {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
}
.messengers-centered .messenger-link:hover {
    transform: translateY(-5px);
}
/* ===========================
   МОБИЛЬНЫЕ "ФИШКИ" (СТАТУС + ИКОНКИ)
   =========================== */

/* Скрываем блок по умолчанию (на ПК) */
.mobile-menu-footer {
    display: none;
}

/* Анимация пульсации (зеленая волна) */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Настройки для мобильных экранов */
@media (max-width: 900px) {
    
    /* Показываем блок под меню */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 40px; /* Отступ от ссылок меню */
        padding-top: 30px;
        border-top: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }

    /* Блок статуса "На связи" */
    .online-status {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(39, 174, 96, 0.1); /* Светло-зеленая плашка */
        padding: 8px 20px;
        border-radius: 30px;
        margin-bottom: 20px;
    }

    .status-text {
        font-size: 14px;
        font-weight: 700;
        color: #27ae60;
        text-transform: uppercase;
    }

    /* Мигающая точка */
    .pulsing-dot {
        width: 10px;
        height: 10px;
        background-color: #27ae60;
        border-radius: 50%;
        animation: pulse-green 2s infinite; /* Бесконечная анимация */
    }

    /* Иконки соцсетей на мобильном */
    .mobile-socials-icons {
        display: flex;
        gap: 20px;
    }

    .mobile-socials-icons img {
        width: 45px; /* Чуть крупнее, чтобы удобно нажимать пальцем */
        height: 45px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: 0.2s;
    }

    .mobile-socials-icons a:active img {
        transform: scale(0.95); /* Эффект нажатия */
    }
}
/* Убираем задержку клика на мобильных */
.main-navigation a,
.menu-toggle {
    touch-action: manipulation;
}

/* Фикс для iOS, чтобы не залипал ховер */
@media (hover: none) {
    .main-navigation ul li a:hover {
        background: #fff; /* Убираем эффект наведения при таче */
        color: #333;
    }
    /* Оставляем цвет только для активного класса */
    .main-navigation ul li.menu-item-has-children.submenu-open > a {
        color: #27ae60;
        background: rgba(39, 174, 96, 0.05);
    }
}
/* --- Исправление иконок в мобильном меню --- */
.mobile-socials-icons {
    display: flex;       /* Выстраиваем в ряд */
    align-items: center; /* Выравниваем по вертикали */
    gap: 20px;           /* Расстояние между иконками */
    margin-top: 15px;    /* Отступ сверху */
}

.mobile-socials-icons a {
    text-decoration: none; /* Убираем подчеркивание ссылок */
    display: inline-block;
}

.mobile-socials-icons img {
    width: 40px !important;  /* Жестко задаем ширину */
    height: 40px !important; /* Жестко задаем высоту */
    object-fit: contain;     /* Чтобы картинка не сплющилась */
    display: block;
}

/* --- На всякий случай страховка для шапки (ПК) --- */
.header-socials img {
    max-width: 35px; /* Размер иконок в шапке */
    height: auto;
    margin: 0 5px;
}
/* --- 1. ЛОГИКА ОТОБРАЖЕНИЯ (Скрываем/Показываем) --- */

/* На КОМПЬЮТЕРЕ (экран шире 992px): Скрываем блок из меню */
@media (min-width: 992px) {
    .mobile-socials-icons {
        display: none !important;
    }
}

/* На ТЕЛЕФОНЕ (экран уже 992px): Показываем блок */
@media (max-width: 991px) {
    .mobile-socials-icons {
        display: flex !important; /* Включаем flex-режим */
        justify-content: center;  /* По центру */
        gap: 20px;                /* Отступ между иконками */
        margin-top: 20px;         /* Отступ сверху от ссылок меню */
        padding-top: 20px;
        border-top: 1px solid rgba(0,0,0,0.1); /* Легкая черточка разделитель */
    }
}

/* --- 2. РАЗМЕРЫ ИКОНОК (Чтобы не были огромными) --- */

/* Размер для мобильного меню */
.mobile-socials-icons img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

/* Размер для шапки (те, что возле логотипа) */
.header-socials img {
    width: 35px !important; 
    height: 35px !important;
    object-fit: contain;
    margin: 0 5px;
}
/* --- Глобальные стили подвала (Dark Glass) --- */
.glass-footer-section {
    position: relative;
    background: #0f172a; /* Глубокий темный цвет */
    /* Добавляем фоновый градиент для глубины */
    background-image: radial-gradient(circle at 0% 0%, #121212 0%, #1f2126 50%);
    padding: 50px 15px;
    color: #cbd5e1; /* Светло-серый текст */
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Декоративные пятна света на фоне (для эффекта стекла) */
.glass-footer-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15); /* Синее свечение */
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
}
.glass-footer-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(231, 76, 60, 0.1); /* Красное свечение */
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.footer-content-relative {
    position: relative;
    z-index: 1; /* Чтобы контент был над пятнами */
}

.footer-grid-glass {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Левая колонка чуть шире */
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

/* --- КОЛОНКА 1: КОНТАКТЫ (GLASS CARD) --- */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.03); /* Очень прозрачный фон */
    backdrop-filter: blur(16px);            /* Размытие фона */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Глубокая тень */
    transition: transform 0.3s;
}
.footer-contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Стилизация вывода шорткода внутри карточки */
.footer-dynamic-info {
    font-size: 16px;
    color: #fff;
}
.footer-dynamic-info strong {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
    color: #fff;
}
.footer-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-address {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.4;
}
.footer-phone a {
    color: #f1c40f; /* Золотой цвет для телефона */
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    transition: 0.3s;
}
.footer-phone a:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

/* Иконки соцсетей в подвале */
.footer-socials-mini {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.footer-socials-mini img {
    width: 38px;
    height: 38px;
    transition: transform 0.2s;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.footer-socials-mini img:hover {
    transform: scale(1.15);
}


/* --- КОЛОНКА 2: ПОРТАЛ (ЦЕНТР) --- */
.footer-portal-info {
    padding-top: 10px;
}
.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    opacity: 0.9;
}
.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
}
.portal-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-links a:hover {
    color: #3b82f6; /* Синий при наведении */
    padding-left: 5px;
}
.portal-links a::before {
    content: '›';
    font-size: 18px;
    color: #3b82f6;
    line-height: 0;
}


/* --- КОЛОНКА 3: КНОПКА (СПРАВА) --- */
.footer-cta-block {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 30px;
    border: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
}
.cta-heading {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.cta-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}
.btn-glass-add {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.btn-glass-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

/* --- КОПИРАЙТ --- */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}
.footer-copyright a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
}
.footer-copyright a:hover { color: #fff; }

/* АДАПТИВ */
@media (max-width: 992px) {
    .footer-grid-glass {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-contact-card {
        order: 1; /* Контакты всегда первые */
    }
    .footer-portal-info {
        order: 2;
        text-align: center;
    }
    .footer-cta-block {
        order: 3;
    }
    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-logo img { margin: 0 auto 20px; }
}


