/*
Theme Name: Gomel24 Pro
Version: 2.0
*/

/* 1. СБРОС И БАЗА */
:root {
    --primary-color: #d32f2f; /* Красный (как в лого) или синий #0073aa */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
}
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    max-width: 100%;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Основной шрифт */
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    background-color: #fff;
    padding-top: 1px; /* Отступ под фиксированную шапку */
}

*, *:before, *:after { box-sizing: border-box; }

/* Картинки и медиа */
img { max-width: 100%; height: auto; display: inline-block; }
iframe { max-width: 100%; }

/* 2. ТИПОГРАФИКА */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;  /* Заголовки */
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 30px;
    color: #222;
    line-height: 1.3;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5em; }

/* Списки */
ul, ol { margin: 0 0 1.5em 20px; padding: 0; }
li { margin-bottom: 0.5em; }

/* Ссылки */
a { color: #0073aa; text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-color); text-decoration: underline; }

/* 3. WORDPRESS ВЫРАВНИВАНИЕ (ВАЖНО!) */
/* Без этого картинки не будут стоять сбоку */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; text-align: center; }

/* Очистка потока */
.clearfix:after, body.site-gomel .g24-entry.entry-content:after { content: ""; display: table; clear: both; }

/* 4. СЕТКА (LAYOUT) */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Отступ между контентом и сайдбаром */
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Основная колонка */
.main-area {
    flex: 1; /* Занимает все свободное место */
    min-width: 0; /* Фикс для переполнения flex */
}

/* Сайдбар */
.sidebar-area {
    width: 300px; /* Фиксированная ширина сайдбара */
    flex-shrink: 0;
}

/* На мобильном сайдбар уходит вниз */
@media (max-width: 900px) {
    .sidebar-area { width: 100%; }
}

/* 5. ФОРМЫ И КНОПКИ (SiteOrigin Form Widgets) */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 10px;
}

button, input[type="submit"], .btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
}

button:hover, input[type="submit"]:hover {
    background: #b71c1c; /* Темнее при наведении */
    color: #fff;
    text-decoration: none;
}

/* Таблицы (если есть прайс) */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th, td { border: 1px solid #eee; padding: 12px; text-align: left; }
th { background: #f5f5f5; font-weight: 600; }

/* 6. ШАПКА (Взял твой прошлый код + улучшения) */
.site-header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: transform 0.3s;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }

/* Лого */
.site-branding img { max-width: 200px; height: auto; }

/* =========================================
   1. ШАПКА (HEADER) - ЧИСТЫЙ СТИЛЬ
   ========================================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* ВАЖНО: Fixed, чтобы она плавала */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    padding: 10px 0;
    transition: transform 0.3s ease-in-out; /* Плавность исчезновения */
}

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

/* Отступ для BODY, чтобы контент не залезал под шапку */
body {
    padding-top: 80px !important; /* Было 1px, нужно больше для фиксированной шапки */
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Лого слева, Меню справа */
    height: 60px; /* Фиксируем высоту шапки */
}

/* Логотип */
.site-branding {
    flex-shrink: 0;
    z-index: 1001;
}
.site-branding img {
    max-height: 50px; /* Ограничиваем высоту лого */
    width: auto;
}
.site-title-text {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
}

/* =========================================
   2. МЕНЮ (НА ПК)
   ========================================= */
.main-navigation {
    margin-left: auto; /* Прижимаем вправо */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* В ряд */
    align-items: center;
}

.main-navigation ul li {
    margin-left: 25px;
    position: relative;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.main-navigation ul li a:hover {
    color: #d32f2f; /* Красный при наведении */
}

/* Кнопка Бургера (СКРЫТА НА ПК) */
.menu-toggle {
    display: none; /* Важно! */
}

/* =========================================
   3. МОБИЛЬНОЕ МЕНЮ (ДО 992px)
   ========================================= */
@media (max-width: 992px) {
    
    /* Показываем кнопку бургера */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent; /* Убираем красный фон */
        border: 2px solid #333;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        padding: 0;
        cursor: pointer;
        z-index: 1002;
        margin-left: auto;
    }

    /* Рисуем иконку (полоски) */
    .hamburger-box {
        position: relative;
        width: 24px;
        height: 18px;
    }
    .hamburger-inner, 
    .hamburger-inner::before, 
    .hamburger-inner::after {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #333;
        position: absolute;
        transition: 0.3s;
    }
    .hamburger-inner { top: 50%; margin-top: -1px; }
    .hamburger-inner::before { content: ''; top: -8px; }
    .hamburger-inner::after { content: ''; bottom: -8px; }

    /* Анимация крестика при открытии */
    .menu-toggle.active .hamburger-inner { background: transparent; }
    .menu-toggle.active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
    .menu-toggle.active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }

    /* Само меню (выпадающее) */
    .main-navigation {
        display: none; /* Скрыто по умолчанию */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        border-top: 1px solid #eee;
    }

    /* Класс .toggled добавляется через JS при клике */
    .main-navigation.toggled {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .main-navigation ul {
        display: block; /* Вертикально */
    }

    .main-navigation ul li {
        margin: 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 7. ВИДЖЕТЫ САЙДБАРА */
.widget { margin-bottom: 30px; background: #fff; padding: 0px; border: 0px solid #eee; border-radius: 5px; }
.widget-title { font-size: 1.1rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 15px; display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { border-bottom: 1px solid #f5f5f5; padding: 8px 0; }
.widget ul li a { color: #555; }
.widget ul li a:hover { color: var(--primary-color); }
/* =========================================
   ФИКС ПОДВАЛА + ФОН (Deep Space Green)
   ========================================= */

.site-footer {
    /* Глубокий темный фон */
    background-color: #050505 !important;
    
    /* Цветные пятна (Зеленоватое слева, Синеватое справа) */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 188, 156, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 40%) !important;
        
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    border: none !important;
    position: relative;
    z-index: 10;
}

/* Сброс стандартных белых виджетов */
.site-footer .widget, 
.site-footer .footer-widgets,
.site-footer .widget-area,
.site-footer .container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Копирайт */
.site-info {
    max-width: 1400px;
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    color: #555 !important;
    text-align: center;
}
/* =========================================
   FIX: СПИСКИ И КНОПКА (HERO & FOOTER)
   ========================================= */

/* 1. Исправляем списки в Hero-блоке (Галочки) */
.g24-check-list li {
    padding-left: 40px !important; /* Больше места для галочки */
    margin-bottom: 20px !important;
    border-bottom: none !important; /* Убираем линию снизу */
    display: flex; /* Чтобы иконка и текст были ровно */
    align-items: center;
}

/* Позиционирование самой галочки */
.g24-check-list li::before {
    top: auto !important; /* Сброс */
    left: 0 !important;
    position: absolute !important;
    width: 28px !important;     /* Чуть больше размер */
    height: 28px !important;
    line-height: 28px !important;
    font-size: 16px !important;
}

/* 2. Исправляем списки в Подвале (Точки) */
.g24-ul li, 
.footer-widgets li {
    padding-left: 25px !important;
    border-bottom: none !important; /* Убираем лишние линии */
}
.g24-ul li::before {
    top: 8px !important; /* Выравниваем точку по высоте текста */
    left: 0 !important;
}

/* 3. НОВАЯ КНОПКА "СТЕКЛО" (GLASS BUTTON) */
.g24-glass-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    
    /* Эффект стекла */
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Границы и свечение */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5); /* Блик сверху */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    color: #fff !important;
    padding: 18px 45px;
    border-radius: 50px; /* Овальная */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Ховер эффект кнопки */
.g24-glass-btn-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255,255,255,0.1);
    transform: translateY(-3px);
    border-color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.g24-glass-btn-hero svg {
    stroke: #fff;
    transition: 0.3s;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}
body.site-gomel .g24-entry.entry-content {
    margin-top: 20px;
}
/* =========================================
   FIX: СПИСКИ СРАВНЕНИЯ (Чтобы не налезало)
   ========================================= */

/* 1. Сам пункт списка (Текст) */
.g24-compare-list li {
    position: relative !important;
    padding-left: 35px !important; /* ОТОДВИГАЕМ ТЕКСТ ВПРАВО */
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
    list-style: none !important;
    display: block !important;
}

/* 2. Иконка (Крестик или Галочка) */
.g24-compare-list li::before {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important; /* Выравниваем по верху строки */
    
    /* Размеры иконки */
    width: 24px; 
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

/* Цвет Крестика */
.list-bad li::before {
    content: '✕'; 
    color: #f44336; 
}

/* Цвет Галочки */
.list-good li::before {
    content: '✓'; 
    color: #00e676; 
    
    /* Можно добавить зеленый кружок для красоты (опционально) */
    /* background: rgba(0, 230, 118, 0.15); border-radius: 50%; */
}

/* Убираем лишние бордеры, если тема их добавляет */
.g24-compare-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Очень легкая линия */
    padding-bottom: 10px;
}
.g24-card-premium .g24-compare-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Линия на темном фоне */
}
/* Настройка размера логотипа */
.site-branding img, 
.custom-logo-link img {
    max-width: 200px; /* Ширина логотипа */
    height: auto;     /* Высота подстроится сама */
    display: block;
}

/* На мобильном можно сделать поменьше */
@media (max-width: 768px) {
    .site-branding img,
    .custom-logo-link img {
        max-width: 150px;
    }
}
/* Анимация бургера */
.hamburger-box { position: relative; display: inline-block; width: 30px; height: 24px; }
.hamburger-inner { 
    display: block; top: 50%; margin-top: -2px; 
    width: 30px; height: 3px; background-color: #333; border-radius: 3px; position: absolute; transition: 0.2s;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: ""; display: block; width: 30px; height: 3px; background-color: #333; border-radius: 3px; position: absolute; transition: 0.2s;
}
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* Крестик при открытии */
.menu-toggle.active .hamburger-inner { background-color: transparent; }
.menu-toggle.active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }
/* =========================================
   ИКОНКИ МЕССЕНДЖЕРОВ В ШАПКЕ
   ========================================= */

/* 1. Десктопная версия (справа от лого) */
.header-messengers.desktop-only {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px; /* Отступ от логотипа */
    margin-right: auto; /* Отодвигает меню вправо */
}

.h-icon-link img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    display: block;
}

.h-icon-link:hover img {
    transform: scale(1.1);
}

/* 2. Мобильная версия (внутри выпадающего меню) */
.mobile-messengers {
    display: none; /* Скрыто на ПК */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-messengers span {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mob-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mob-icons-row img {
    width: 40px;
    height: 40px;
}

/* --- АДАПТИВ --- */
@media (max-width: 992px) {
    /* Скрываем десктопные иконки на планшетах и телефонах */
    .header-messengers.desktop-only {
        display: none;
    }

    /* Показываем мобильный блок внутри меню */
    .mobile-messengers {
        display: block;
    }
}

/* 1. Включаем плавную прокрутку для всей страницы */
html {
    scroll-behavior: smooth;
}

/* 2. Делаем отступ, чтобы фиксированная шапка не перекрывала заголовок */
/* Перечислите здесь ID всех ваших секций (цены, отзывы, контакты и т.д.) */
#prices, 
#reviews, 
#contacts, 
#faq {
    /* Высота вашей шапки (60px) + отступ (20px) = 80px */
    scroll-margin-top: 85px; 
}
/* --- ИСПРАВЛЕНИЕ ГАЛОЧЕК (Сдвиг текста) --- */

/* 1. Сдвигаем сам текст вправо */
.g24-ios-list li {
    padding-left: 45px !important; /* Главное исправление: место под иконку */
    position: relative !important;
    list-style: none !important; /* Убираем стандартные точки темы */
    margin-bottom: 20px !important; /* Отступ между строками */
    display: block !important;
}

/* 2. Настраиваем иконку (чтобы она была слева и не прыгала) */
.g24-ios-list li::before {
    content: ''; 
    position: absolute !important; 
    left: 0 !important; 
    top: 2px !important; /* Чуть подравняли по высоте первой строки */
    width: 28px !important; 
    height: 28px !important;
    
    /* Ваша зеленая галочка (SVG код) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334c759'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important; /* Чтобы иконка влезала полностью */
}
/* --- ПОДКЛЮЧЕНИЕ ШРИФТА INTER (LOCAL) v20 --- */

/* 300 - Light */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-300.woff2') format('woff2');
}

/* 400 - Regular (Обратите внимание: у вас в списке нет 400, я использую 300 или 500 как замену, или загрузите 400 отдельно) */
/* Если файла 400 нет, браузер возьмет 300 или 500, но лучше дозагрузить файл 400 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-300.woff2') format('woff2'); /* ВРЕМЕННО ссылаюсь на 300, пока вы не зальете 400 */
}

/* 500 - Medium */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
}

/* 600 - SemiBold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}

/* 700 - Bold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
}

/* 800 - ExtraBold */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-800.woff2') format('woff2');
}

/* 900 - Black */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/inter-v20-cyrillic_latin-900.woff2') format('woff2');
}