/*
Theme Name: Pinsk24
Theme URI: https://pinsk24.by
Author: Ваше Имя
Description: Тема WordPress для справочника pinsk24.by
Version: 1.0
Text Domain: pinsk24
*/
/* 1. Блокируем любые попытки SiteOrigin добавить отрицательные margin через JS */
.siteorigin-panels-stretch, 
.panel-row-style, 
[data-stretch-type="full-width"], 
[data-stretch-type="full-width-stretch"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

/* 2. Убираем внутренние зазоры ячеек конструктора */
.panel-grid-cell {
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. Центрируем подвал (на случай, если он внутри SiteOrigin или под ним) */
.b24-footer-content, .msk-footer-container {
    margin: 0 auto !important;
    float: none !important;
    display: block !important;
}

/* 4. Запрет на горизонтальный скролл (финальный щит) */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

/* Фикс для блоков, которые могут распирать сайт (Hero, Footer, Контейнеры) */
.b24-hero-section, 
.seo-hero-block-dynamic, 
.b24-about-hero,
#b24-footer-live, 
.glass-footer-section,
.msk-site-footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Обрезаем всё, что пытается вылезти вправо */
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
}
/* 2. ИСПРАВЛЕНИЕ ВСЕХ ПОЛНОЭКРАННЫХ БЛОКОВ */
/* Заменяем vw на 100% для всех твоих главных секций */
.seo-hero-block-dynamic, 
.site-header, 
.glass-footer-section, 
.consultation-full-section,
#b24-footer-live {
    width: 100% !important; 
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. ФИКС ДЛЯ ДИНАМИЧЕСКОГО КОНТЕЙНЕРА (чтобы не косило) */
.seo-container-1290 {
    width: 100%;
    max-width: 1290px !important;
    margin: 0 auto !important;
    display: block;
}
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
html {
    scroll-behavior: smooth;
    /* Укажи здесь высоту своей шапки + 20px запаса */
    scroll-padding-top: 100px; 
}
.container {
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- ХЕДЕР (ОБЩЕЕ) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out; /* Плавность исчезновения */
}

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

/* Распорка, чтобы контент не прыгал под хедер. 
   Высоту нужно подбирать примерно под высоту вашего хедера */
.header-spacer {
    height: 55px; 
}

/* --- TOP BAR (САЙДБАР) --- */
.top-bar {
    background: #333;
    color: #fff;
    padding: 5px 0;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

/* --- ОСНОВНОЙ ХЕДЕР --- */
.main-header {
    padding: 15px 0;
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.site-branding a {
    text-decoration: none;
}

/* --- МЕНЮ (ДЕСКТОП) --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
}

.main-navigation ul li a:hover {
    color: #0073aa; /* Цвет при наведении */
}

/* Скрываем бургер на десктопе */
.menu-toggle {
    display: none;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ (до 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Уменьшаем распорку */
    .header-spacer {
        height: 60px; 
    }

    /* Показываем бургер */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
        transition: all 0.3s ease-in-out;
    }

    /* Анимация бургера в крестик */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Меню на мобильном */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Спрятано справа */
        width: 80%; /* Ширина шторки */
        max-width: 300px;
        height: 100vh;
        background: #fff;
        padding-top: 80px; /* Отступ сверху */
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 998;
    }

    /* Когда меню открыто */
    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
    }

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

    .main-navigation ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
    }
}

/* Настройка размера логотипа */
.b24-main-logo {
    display: block;
    max-height: 50px; /* Оптимальная высота для хедера */
    width: auto;      /* Ширина подстроится автоматически */
    object-fit: contain;
}
.b24-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    max-width: 100%; /* Чтобы не вылезали вправо */
}
/* Центрирование ссылки с логотипом */
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

/* На мобильных можно сделать чуть меньше, если нужно */
@media (max-width: 768px) {
    .b24-main-logo {
        max-height: 40px;
    }
}
#primary-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

#primary-menu li a {
    text-decoration: none;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.28s ease;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

/* Эффект при наведении */
#primary-menu li a:hover {
    background-color: #ecfeff;
    color: #0e7490;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(14, 116, 144, 0.12);
}
/* --- FOOTER PINSK24 --- */
:root {
    --b24-bg: #0a1526;
    --b24-glass: rgba(255, 255, 255, 0.035);
    --b24-glass-border: rgba(255, 255, 255, 0.1);
    --b24-accent: #06b6d4;
    --b24-accent-green: #2dd4bf;
    --b24-text-muted: #9ca3af;
    --b24-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#b24-footer-modern {
    position: relative;
    background: linear-gradient(180deg, #0a1526 0%, #0c1a2e 55%, #0a1526 100%);
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 72px 0 28px;
    overflow: hidden;
    border-top: 1px solid rgba(6, 182, 212, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Анимированные градиенты на фоне */
.footer-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow-1, .glow-2 {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(128px);
    opacity: 0.12;
    animation: p24_footerGlow 22s ease-in-out infinite alternate;
}

.glow-1 {
    background: var(--b24-accent);
    top: -12%;
    left: -8%;
}

.glow-2 {
    background: var(--b24-accent-green);
    bottom: -12%;
    right: -6%;
    animation-delay: -11s;
}

@keyframes p24_footerGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 35px) scale(1.05); }
}

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

.b24-footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Текстовый логотип */
.b24-footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}

.b24-footer-logo span { color: var(--b24-accent-green); }

.b24-footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    transition: var(--b24-transition);
}

.b24-footer-logo:hover img {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.b24-tagline {
    color: var(--b24-text-muted);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Контакты */
.b24-contact-hub {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--b24-transition);
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    background: var(--b24-glass);
    border: 1px solid var(--b24-glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--b24-transition);
}

.contact-item:hover .contact-icon-box {
    background: var(--b24-accent);
    transform: rotate(-10deg);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.contact-info small {
    display: block;
    color: var(--b24-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info a, .contact-info span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.b24-messenger-wrap {
    margin-top: 24px;
}

.b24-messenger-wrap .b24-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.b24-messenger-wrap .b24-social-item img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: var(--b24-transition);
}

.b24-messenger-wrap .b24-social-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

/* Навигация (плитки) */
.footer-h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nav-tile {
    background: var(--b24-glass);
    border: 1px solid var(--b24-glass-border);
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--b24-transition);
    backdrop-filter: blur(12px);
}

.nav-tile:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.tile-icon { font-size: 20px; }
.tile-text { color: #fff; font-size: 14px; font-weight: 500; }

/* Бизнес карточка */
.b24-business-glass-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid var(--b24-glass-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(15px);
}

.glass-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--b24-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: b24_pulseDot 2s infinite;
}

@keyframes b24_pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.b24-business-glass-card h5 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.b24-business-glass-card p {
    font-size: 14px;
    color: var(--b24-text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.b24-cta-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--b24-transition);
}

.b24-cta-footer:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--b24-accent-green);
    color: #fff;
}

/* Bottom Bar */
.b24-footer-bottom {
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    margin-top: 8px;
    padding: 22px 18px 0;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.04) 0%, transparent 45%, rgba(45, 212, 191, 0.05) 100%);
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.copyright {
    color: var(--b24-text-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1.55;
    max-width: 52ch;
}

.copyright strong { color: #ecfeff; font-weight: 700; }

.footer-bottom-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.footer-bottom-nav a {
    color: var(--b24-text-muted);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--b24-transition);
}

.footer-bottom-nav a:hover { color: #5eead4; }

/* Responsive */
@media (max-width: 992px) {
    .b24-footer-main-grid {
        grid-template-columns: 1fr 1fr;
    }
    .branding-section { grid-column: span 2; }
}

@media (max-width: 600px) {
    .b24-footer-main-grid { grid-template-columns: 1fr; }
    .branding-section { grid-column: span 1; }
    .footer-nav-grid { grid-template-columns: 1fr; }
    .b24-footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom-nav { justify-content: center; }
}

@media (max-width: 400px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }
}
 /* Основной контейнер */
        .b24-stats-wrapper {
            background-color: #0f172a; /* Темный фон */
            border-top: 1px solid rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 15px 0; /* Чуть меньше отступы, чтобы было компактнее */
            width: 100%;
            position: relative;
            z-index: 10;
        }

        .b24-stats-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 50px; /* Расстояние между группами */
            font-family: 'Segoe UI', Roboto, sans-serif;
        }

        /* Группа (Точка + Текст) */
        .b24-stat-box {
            display: flex;
            align-items: center;
            gap: 12px; /* Отступ от точки до цифры */
        }

        /* Точки */
        .b24-pulse-dot {
            width: 8px; height: 8px;
            background-color: #25d366; /* Зеленый */
            border-radius: 50%;
            box-shadow: 0 0 10px #25d366;
            animation: statsPulse 2s infinite;
            flex-shrink: 0;
        }
        
        .b24-static-dot {
            width: 8px; height: 8px;
            background-color: #3b82f6; /* Синий */
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
            flex-shrink: 0;
        }

        @keyframes statsPulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.3); opacity: 0.6; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Текстовый блок (ТЕПЕРЬ В СТРОКУ) */
        .b24-stat-text {
            display: flex;
            align-items: baseline; /* Выравнивание по нижней линии текста */
            gap: 8px; /* Расстояние между цифрой и словами */
            color: #fff;
        }

        /* Цифра */
        .b24-stat-num {
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
        }

        /* Описание */
        .b24-stat-desc {
            font-size: 12px;
            text-transform: uppercase;
            color: #64748b; /* Серый цвет для текста */
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* Разделитель */
        .b24-stat-sep {
            width: 1px; height: 20px;
            background: rgba(255,255,255,0.1);
        }

        /* Адаптив для телефонов */
        @media (max-width: 600px) {
            .b24-stats-inner { gap: 20px; }
            .b24-stat-desc { font-size: 10px; } /* Чуть меньше текст на мобилках */
            .b24-stat-num { font-size: 16px; }
        }
 .b24-home-hero {
        /* Делаем фон более темным и насыщенным */
        background: #0b0e14;
        background: linear-gradient(135deg, #05070a 0%, #0b0e14 100%);
        min-height: 85vh;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        font-family: 'Inter', sans-serif;
        padding: 60px 0;
    }

    /* Добавляем темную подложку за текстом для 100% читаемости */
    .b24-hero-content::before {
        content: '';
        position: absolute;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
        top: -25%;
        left: -50%;
        z-index: -1;
    }

    .b24-hero-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        align-items: center;
        z-index: 10;
    }

    .b24-hero-content {
        animation: fadeInLeft 1s ease-out;
        position: relative;
    }

    .b24-hero-content h1 {
        font-size: clamp(2.5rem, 5vw, 4.2rem);
        line-height: 1.1;
        font-weight: 900;
        color: #ffffff; /* Чистый белый */
        margin-bottom: 25px;
        /* Тень для объема, чтобы текст не сливался */
        text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .b24-hero-content h1 span {
        color: #22c55e;
        display: block;
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }

    .b24-hero-content p {
        font-size: 1.25rem;
        color: #f1f5f9; /* Очень светлый серо-белый для контраста */
        margin-bottom: 35px;
        max-width: 600px;
        line-height: 1.6;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Преимущества */
    .b24-features-list {
        list-style: none;
        padding: 0;
        margin-bottom: 45px;
    }

    .b24-features-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #ffffff; /* Белый текст */
        margin-bottom: 18px;
        font-size: 1.15rem;
        font-weight: 500;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .b24-feat-icon {
        width: 28px;
        height: 28px;
        background: #22c55e;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    }

    /* Кнопка */
    .b24-main-btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: #22c55e;
        color: #fff;
        padding: 20px 45px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 800;
        font-size: 19px;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    }

    .b24-main-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 20px 40px rgba(34, 197, 94, 0.6);
        background: #16a34a;
    }

    /* ПРАВАЯ ЧАСТЬ: ЛЕВИТИРУЮЩИЕ КАРТОЧКИ */
    .b24-hero-visual {
        position: relative;
        height: 500px;
    }

    .floating-card {
        position: absolute;
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 22px;
        border-radius: 22px;
        width: 240px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        animation: float 6s infinite ease-in-out;
    }

    .card-1 { top: 5%; left: 0; animation-delay: 0s; }
    .card-2 { top: 35%; right: 0; animation-delay: 1.5s; }
    .card-3 { bottom: 5%; left: 15%; animation-delay: 3s; }

    .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
    
    .floating-card strong { color: #fff; font-size: 16px; display: block; }
    .floating-card span { color: #cbd5e1; font-size: 13px; }
    .rating { color: #fbbf24; font-size: 13px; margin-top: 10px; display: block; }

    @keyframes float {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-25px) rotate(3deg); }
    }

    @keyframes fadeInLeft {
        from { opacity: 0; transform: translateX(-40px); }
        to { opacity: 1; transform: translateX(0); }
    }

    @media (max-width: 992px) {
        .b24-hero-container { grid-template-columns: 1fr; text-align: center; }
        .b24-hero-content p { margin: 0 auto 30px; }
        .b24-features-list { display: inline-block; text-align: left; }
        .b24-hero-visual { height: 400px; order: -1; }
        .floating-card { width: 200px; }
    }
/* --- СТИЛИ ДЛЯ КАТАЛОГА [bobr_services] --- */
.b24-catalog-section {
    background: #f8fafc;
    padding: 80px 0;
}
.b24-catalog-header {
    text-align: center;
    margin-bottom: 50px;
}
.b24-catalog-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}
.b24-main-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.b24-main-search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
}
.b24-search-icon-fixed {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
.b24-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.b24-letter-group {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.b24-group-header {
    font-size: 24px;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.b24-service-list {
    list-style: none;
    padding: 0;
}
.b24-service-list li {
    margin-bottom: 8px;
}
.b24-service-list a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: 0.2s;
}
.b24-service-list a:hover {
    color: #22c55e;
    padding-left: 5px;
}
    .b24-v2-section {
        padding: 80px 0;
        background-color: #f1f5f9;
        /* Легкий паттерн на фоне */
        background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
        background-size: 20px 20px;
        font-family: 'Inter', sans-serif;
        position: relative;
    }

    .b24-v2-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .b24-v2-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }

    /* ОБЩИЙ СТИЛЬ КАРТОЧЕК */
    .b24-v2-card {
        background: #fff;
        border-radius: 24px;
        padding: 40px;
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.02);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .b24-v2-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    }

    /* КАРТОЧКА 1: ВЕРИФИКАЦИЯ */
    .card-verified {
        border-top: 5px solid #22c55e;
    }

    .b24-v2-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #dcfce7;
        color: #166534;
        padding: 6px 14px;
        border-radius: 50px;
        font-size: 11px;
        font-weight: 800;
        width: fit-content;
        margin-bottom: 20px;
    }

    .b24-v2-badge .pulse {
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        animation: b24-glow 1.5s infinite;
    }

    .b24-v2-card h3 {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 20px;
        color: #0f172a;
    }

    .b24-v2-list {
        list-style: none;
        padding: 0;
        margin: 0 0 20px;
    }

    .b24-v2-list li {
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
    }

    .b24-v2-list li span { color: #64748b; }
    .b24-v2-list li strong { color: #0f172a; text-align: right; }

    /* КАРТОЧКА 2: ГРАФИК */
    .card-schedule h3 { color: #3b82f6; }
    
    .b24-v2-time-row {
        background: #f8fafc;
        padding: 12px 18px;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .b24-v2-payments {
        margin-top: auto;
        padding-top: 20px;
        display: flex;
        gap: 15px;
    }

    .pay-tag {
        font-size: 12px;
        background: #f1f5f9;
        padding: 5px 10px;
        border-radius: 6px;
        color: #475569;
    }

    /* КАРТОЧКА 3: МОЩНАЯ АКЦИЯ */
    .card-promo-v2 {
        background: #0f172a;
        color: #fff;
        border: none;
        background-image: radial-gradient(circle at top right, rgba(34, 197, 94, 0.15), transparent);
    }

    .card-promo-v2 h3 { color: #fff; }

    .b24-v2-promo-badge {
        background: #22c55e;
        color: #fff;
        padding: 5px 15px;
        border-radius: 8px;
        font-weight: 900;
        width: fit-content;
        margin-bottom: 15px;
    }

    .b24-v2-promo-price {
        font-size: 56px;
        font-weight: 900;
        color: #22c55e;
        margin: 15px 0;
        line-height: 1;
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }

    .b24-v2-promo-footer {
        font-size: 12px;
        color: #94a3b8;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px;
        margin-top: auto;
    }

    @keyframes b24-glow {
        0% { transform: scale(0.95); opacity: 1; }
        50% { transform: scale(1.2); opacity: 0.5; }
        100% { transform: scale(0.95); opacity: 1; }
    }

    @media (max-width: 768px) {
        .b24-v2-grid { grid-template-columns: 1fr; }
    }
   .b24-price-section {
        padding: 80px 0;
        background-color: #ffffff;
        background-image: radial-gradient(#e2e8f0 0.8px, transparent 0.8px);
        background-size: 24px 24px;
        font-family: 'Inter', sans-serif;
    }

    .b24-price-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Заголовок и подзаголовок */
    .b24-price-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .b24-price-header h2 {
        font-size: clamp(26px, 5vw, 36px);
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

    .b24-price-subtitle {
        font-size: 16px;
        color: #64748b;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.5;
    }

    .b24-table-card {
        background: #fff;
        border-radius: 24px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 15px 35px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .b24-price-table {
        width: 100%;
        border-collapse: collapse;
    }

    /* ЭФФЕКТ ЗЕБРЫ (Легкое чередование) */
    .b24-price-table tr:nth-child(even) {
        background-color: #fcfdfe;
    }

    /* АНИМАЦИЯ ПРИ НАВЕДЕНИИ */
    .b24-price-table tr {
        transition: all 0.3s ease;
    }

    .b24-price-table tr:hover {
        background-color: #f0fdf4 !important; /* Нежный зеленый фон */
        transform: scale(1.005); /* Едва заметное увеличение */
    }

    .b24-price-table th {
        background: #f8fafc;
        padding: 22px 25px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        text-align: left;
        border-bottom: 2px solid #e2e8f0;
    }

    .b24-price-table td {
        padding: 20px 25px;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .b24-service-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .b24-service-name {
        font-weight: 700;
        color: #0f172a;
        font-size: 17px;
    }

    .b24-service-desc {
        font-size: 14px;
        color: #64748b;
        line-height: 1.5;
    }

    .b24-price-value {
        font-weight: 800;
        color: #16a34a;
        font-size: 20px;
        white-space: nowrap;
        text-align: right;
    }

    /* ПРЕДУПРЕЖДЕНИЕ */
    .b24-price-notice {
        margin-top: 30px;
        padding: 20px;
        background: #fffbeb;
        border-left: 4px solid #fbbf24;
        border-radius: 12px;
        display: flex;
        gap: 15px;
        font-size: 14px;
        color: #92400e;
    }

    /* МОБИЛЬНАЯ ВЕРСИЯ */
    @media (max-width: 650px) {
        .b24-price-table thead { display: none; }
        
        .b24-price-table tr {
            display: block;
            padding: 20px 0;
            border-bottom: 1px solid #eee;
        }

        /* На мобилке отключаем увеличение, оставляем только цвет */
        .b24-price-table tr:hover {
            transform: none;
        }

        .b24-price-table td {
            display: block;
            width: 100% !important;
            box-sizing: border-box;
            padding: 10px 20px;
            border: none;
            text-align: left !important;
        }

        .b24-price-value {
            font-size: 22px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .b24-price-value::before {
            content: "Цена:";
            color: #94a3b8;
            font-size: 14px;
            font-weight: 500;
        }
    }
<style>
    .b24-cta-v3 {
        background-color: #0f172a;
        /* Текстура диагональных линий как на фото */
        background-image: repeating-linear-gradient(45deg, rgba(255,255,255, 0.03) 0px, rgba(255,255,255, 0.03) 1px, transparent 1px, transparent 10px);
        padding: 80px 0;
        position: relative;
        overflow: hidden;
        font-family: 'Inter', sans-serif;
    }

    /* Фоновое свечение */
    .b24-cta-v3::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
        z-index: 1;
        pointer-events: none;
    }

    .b24-cta-v3-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 5;
    }

    .b24-cta-v3-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
    }

    /* ЛЕВАЯ ЧАСТЬ */
    .b24-cta-v3-info {
        flex: 1;
        min-width: 300px;
    }

    .b24-cta-v3-badge {
        display: inline-block;
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
        padding: 6px 15px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        border: 1px solid rgba(34, 197, 94, 0.3);
        margin-bottom: 25px;
    }

    .b24-cta-v3-info h2 {
        font-size: clamp(26px, 5vw, 42px);
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .b24-cta-v3-info p {
        font-size: 18px;
        color: #94a3b8;
        max-width: 500px;
        margin-bottom: 35px;
    }

    .b24-cta-v3-hint {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #fff;
        font-weight: 700;
        font-size: 18px;
    }

    .b24-cta-v3-hint span {
        color: #22c55e;
        font-size: 24px;
        animation: b24_arrow 1.5s infinite;
    }

    /* ПРАВАЯ ЧАСТЬ (КАРТОЧКА) */
    .b24-cta-v3-glass {
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 40px;
        border-radius: 30px;
        width: 100%;
        max-width: 450px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        text-align: center;
    }

    .b24-cta-v3-status {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #94a3b8;
        margin-bottom: 15px;
    }

    .b24-cta-v3-status .dot {
        width: 10px;
        height: 10px;
        background: #22c55e;
        border-radius: 50%;
        box-shadow: 0 0 10px #22c55e;
        animation: b24_pulse 2s infinite;
    }

    .b24-cta-v3-phone {
        display: block;
        font-size: clamp(24px, 4vw, 36px);
        font-weight: 900;
        color: #fff;
        text-decoration: none;
        margin-bottom: 25px;
        transition: 0.3s;
    }

    .b24-cta-v3-phone:hover { color: #22c55e; }

    .b24-cta-v3-sep {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        margin-bottom: 25px;
    }

    /* Стилизация шорткода мессенджеров внутри блока */
    .b24-cta-v3-socials {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    /* АНИМАЦИИ */
    @keyframes b24_pulse {
        0% { transform: scale(0.9); opacity: 1; }
        70% { transform: scale(1.5); opacity: 0; }
        100% { transform: scale(0.9); opacity: 0; }
    }

    @keyframes b24_arrow {
        0% { transform: translateX(0); }
        50% { transform: translateX(10px); }
        100% { transform: translateX(0); }
    }

    /* АДАПТИВНОСТЬ */
    @media (max-width: 992px) {
        .b24-cta-v3-flex { flex-direction: column; text-align: center; }
        .b24-cta-v3-info p { margin: 0 auto 30px; }
        .b24-cta-v3-hint { justify-content: center; }
        .b24-cta-v3-glass { max-width: 100%; }
    }
/* --- RELATED SERVICES PREMIUM STYLE --- */
.b24-footer-related-section {
    padding: 80px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.b24-footer-related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b24-related-head {
    text-align: center;
    margin-bottom: 50px;
}

.b24-related-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    color: #22c55e;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.b24-related-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
}

.b24-related-title span { color: #64748b; font-weight: 400; }

/* СЕТКА: 5 колонок на ПК (чтобы 10 штук легли в 2 ряда) */
.b24-related-grid-premium {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.b24-related-card-premium {
    position: relative;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.b24-related-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.6s;
}

.b24-related-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

.b24-related-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
}

.b24-related-cat {
    font-size: 10px;
    text-transform: uppercase;
    background: #22c55e;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.b24-related-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #fff;
}

.b24-related-link-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

/* Эффекты при наведении */
.b24-related-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.b24-related-card-premium:hover .b24-related-img {
    transform: scale(1.1);
}

.b24-related-card-premium:hover .b24-related-link-icon {
    opacity: 1;
    transform: translateX(0);
}

/* АДАПТИВНОСТЬ */

/* Планшеты: 3 колонки */
@media (max-width: 1024px) {
    .b24-related-grid-premium { grid-template-columns: repeat(3, 1fr); }
}

/* Мобильные: 2 колонки (как просил) */
@media (max-width: 768px) {
    .b24-related-grid-premium { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .b24-related-card-premium { height: 180px; border-radius: 15px; }
    .b24-related-name { font-size: 14px; }
    .b24-related-content { padding: 12px; }
    .b24-related-link-icon { display: none; } /* Скрываем стрелку на мобиле для чистоты */
    .b24-related-title { font-size: 24px; }
}
    .b24-rev-v5-section {
        padding: 80px 0;
        background-color: #ffffff;
        background-image: radial-gradient(#e2e8f0 0.8px, transparent 0.8px);
        background-size: 24px 24px;
        font-family: 'Inter', -apple-system, sans-serif;
    }

    .b24-rev-v5-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .b24-rev-v5-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 40px;
        align-items: start;
    }

    /* СЕТКА И КАРТОЧКИ */
    .b24-rev-v5-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 25px;
    }

    .b24-rev-v5-card {
        background: #fff;
        padding: 30px;
        border-radius: 24px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 10px 30px rgba(0,0,0,0.03);
        transition: 0.3s;
    }

    .b24-rev-v5-card:hover {
        transform: translateY(-5px);
        border-color: #22c55e;
        box-shadow: 0 20px 40px rgba(34, 197, 94, 0.08);
    }

    .b24-rev-v5-user { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    
    .b24-rev-v5-avatar {
        width: 50px; height: 50px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 800; font-size: 20px;
    }

    .av-b { background: #3b82f6; } .av-g { background: #10b981; }
    .av-o { background: #f59e0b; } .av-p { background: #8b5cf6; }

    .b24-rev-v5-stars { color: #fbbf24; margin-bottom: 12px; letter-spacing: 2px; }
    .b24-rev-v5-text { font-size: 15px; color: #475569; line-height: 1.6; margin-bottom: 15px; }
    .b24-rev-v5-date { font-size: 12px; color: #94a3b8; text-align: right; }

    /* --- СТИЛИЗАЦИЯ ФОРМЫ (ШОРТКОДА) --- */
    .b24-form-container {
        background: #fff;
        padding: 40px;
        border-radius: 30px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 25px 50px rgba(0,0,0,0.05);
        position: sticky;
        top: 20px;
    }

    .b24-form-head {
        font-size: 24px;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 10px;
    }

    /* Поля ввода */
    .b24-f-inp {
        width: 100%;
        padding: 14px 18px;
        margin-bottom: 15px;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        font-family: inherit;
        font-size: 15px;
        transition: 0.3s;
        box-sizing: border-box;
    }

    .b24-f-inp:focus {
        outline: none;
        border-color: #22c55e;
        background: #f0fdf4;
    }

    textarea.b24-f-inp { min-height: 100px; resize: vertical; }

    /* Звезды в форме */
    .b24-stars-row {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 5px;
        margin-bottom: 20px;
    }

    .b24-stars-row input { display: none; }
    .b24-stars-row label {
        font-size: 28px;
        color: #e2e8f0;
        cursor: pointer;
        transition: 0.2s;
    }

    .b24-stars-row label:hover,
    .b24-stars-row label:hover ~ label,
    .b24-stars-row input:checked ~ label {
        color: #fbbf24;
    }

    /* Кнопка */
    .b24-f-btn {
        width: 100%;
        background: #22c55e;
        color: #fff;
        border: none;
        padding: 16px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
        transition: 0.3s;
    }

    .b24-f-btn:hover { background: #16a34a; transform: translateY(-2px); }

    /* Уведомления */
    .b24-f-alert {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 15px;
        font-size: 14px;
        display: none;
    }
    .b24-f-ok { background: #dcfce7; color: #166534; }
    .b24-f-err { background: #fee2e2; color: #991b1b; }

    @media (max-width: 1024px) {
        .b24-rev-v5-layout { grid-template-columns: 1fr; }
        .b24-form-container { position: static; max-width: 100%; }
    }
   .b24-steps-v6-section {
        padding: 80px 0;
        background: #fff;
        font-family: 'Inter', sans-serif;
    }

    .b24-steps-v6-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .b24-steps-v6-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .b24-steps-v6-header h2 {
        font-size: clamp(26px, 5vw, 36px);
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 15px;
    }

    /* СЕТКА ЭТАПОВ */
    .b24-steps-v6-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        position: relative;
    }

    /* Линия-соединитель между этапами (только для ПК) */
    .b24-steps-v6-grid::before {
        content: '';
        position: absolute;
        top: 45px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: #e2e8f0;
        z-index: 1;
    }

    .b24-step-v6-item {
        position: relative;
        z-index: 5;
        text-align: center;
    }

    /* Круг с номером */
    .b24-step-v6-circle {
        width: 90px;
        height: 90px;
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 25px;
        font-size: 28px;
        font-weight: 900;
        color: #0f172a;
        transition: all 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    }

    .b24-step-v6-item:hover .b24-step-v6-circle {
        border-color: #22c55e;
        color: #22c55e;
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
    }

    /* Состояние "В процессе" (зеленая точка) */
    .b24-step-v6-item:nth-child(1) .b24-step-v6-circle {
        background: #f0fdf4;
        border-color: #22c55e;
    }

    .b24-step-v6-item h3 {
        font-size: 18px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 12px;
    }

    .b24-step-v6-item p {
        font-size: 14px;
        color: #64748b;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* АДАПТИВНОСТЬ */
    @media (max-width: 992px) {
        .b24-steps-v6-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
        .b24-steps-v6-grid::before { display: none; }
    }

    @media (max-width: 600px) {
        .b24-steps-v6-grid { grid-template-columns: 1fr; }
        .b24-step-v6-item {
            display: flex;
            text-align: left;
            align-items: flex-start;
            gap: 20px;
        }
        .b24-step-v6-circle {
            width: 60px; height: 60px; min-width: 60px;
            font-size: 20px;
            margin: 0;
        }
    }
/* ============================================================
   ОБЩИЙ ХЕДЕР И КОНТЕЙНЕР
   ============================================================ */

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

/* Логотип */
.site-branding .b24-main-logo,
.b24-main-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ============================================================
   МЕССЕНДЖЕРЫ В ШАПКЕ
   ============================================================ */
.header-msg-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-msg-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: 0.3s;
}
/* ============================================================
   ФИКС ХЕДЕРА: ОБНУЛЕНИЕ И ОСНОВА
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.header-hidden { transform: translateY(-100%); }
.header-spacer { height: 80px; } /* Распорка под шапкой */
.main-header { height: 50px; display: flex; align-items: center; }

/* ============================================================
   ПК ВЕРСИЯ (МЕНЮ И МЕССЕНДЖЕРЫ)
   ============================================================ */
#site-navigation { display: flex; align-items: center; gap: 20px; }

/* Убираем все стандартные отступы WP меню */
.main-navigation ul { 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    display: flex; 
    gap: 10px; 
}
.main-navigation li { position: relative; margin: 0 !important; padding: 0 !important; }

.main-navigation a {
    text-decoration: none !important;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 10px;
    display: block;
    transition: color 0.25s ease, background 0.25s ease;
}
.main-navigation a:hover { color: #0e7490; background: rgba(14, 116, 144, 0.06); }

/* Выпадашка на ПК */
.main-navigation .menu-item-has-children > a { padding-right: 25px; }
.main-navigation .menu-item-has-children > a::after {
    content: '▼'; font-size: 10px; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); transition: 0.3s;
}
.main-navigation li:hover > a::after { transform: translateY(-50%) rotate(180deg); color: #0e7490; }

.main-navigation ul li ul.sub-menu {
    position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
    box-shadow: 0 12px 32px rgba(14, 116, 144, 0.12); border: 1px solid rgba(14, 116, 144, 0.12); border-radius: 12px; padding: 10px 0 !important;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 100;display: flow;
}
.main-navigation li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(5px); }
.main-navigation ul li ul.sub-menu a { text-transform: none; font-size: 13px; padding: 10px 20px; }

/* Мессенджеры ПК */
.header-msg-wrap { display: flex; align-items: center; gap: 10px; margin-right: 10px; }
.h-msg-item img { width: 32px; height: 32px; object-fit: contain; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (Адаптация)
   ============================================================ */
@media (max-width: 992px) {
    /* Фикс бургера (теперь линии точно будут) */
    .menu-toggle {
        display: flex !important; flex-direction: column; justify-content: center; align-items: center;
        width: 44px; height: 44px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
        cursor: pointer; z-index: 10001; padding: 0; position: relative;
    }
    .menu-toggle .bar {
        display: block; width: 22px; height: 2px; background: #0f172a; margin: 3px 0; border-radius: 2px;
    }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Шторка меню */
    .main-navigation {
        position: fixed !important; top: 0; right: -100%; width: 300px; height: 100vh;
        background: #fff; z-index: 10000; padding: 100px 20px 40px !important;
        display: flex !important; flex-direction: column !important; align-items: center !important;
        transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        visibility: hidden;
    }
    .main-navigation.toggled { right: 0; visibility: visible; }

    /* Ссылки в мобильном меню */
    .main-navigation ul {
        flex-direction: column !important; align-items: center !important; 
        width: 100% !important; margin: 0 0 30px 0 !important; gap: 10px !important;
    }
    .main-navigation li { width: 100%; text-align: center; }
    .main-navigation a { font-size: 18px !important; padding: 12px 0 !important; width: 100%; }

    /* Выпадашка в мобилке: по умолчанию скрыта, открывается по тапу на пункт со стрелкой */
    .main-navigation ul li ul.sub-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        width: 100%;
        border-radius: 12px;
        margin: 0 !important;
        padding: 0 !important;
        transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
    }
    .main-navigation ul li.sub-menu-open > ul.sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin: 5px 0 !important;
        padding: 10px 0 !important;
    }
    .main-navigation .menu-item-has-children > a::after {
        display: inline-block;
        transition: transform 0.25s ease;
    }
    .main-navigation ul li.sub-menu-open.menu-item-has-children > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Мессенджеры в мобилке (прижаты к низу) */
    .header-msg-wrap {
        order: 2; margin: auto 0 0 0 !important; padding: 25px 0 0 0;
        border-top: 1px solid #f1f5f9; width: 100%; justify-content: center;
    }
    .h-msg-item img { width: 48px; height: 48px; }
    
    /* Блокировка скролла */
    body.menu-open { overflow: hidden; }
}

/* ========== Страница 404 — Pinsk24 (отдельная композиция) ========== */
.p24-notfound {
    --p24-nf-bg: #040c18;
    --p24-nf-card: rgba(12, 24, 42, 0.72);
    --p24-nf-line: rgba(6, 182, 212, 0.35);
    --p24-nf-mint: #5eead4;
    --p24-nf-cyan: #22d3ee;
    position: relative;
    min-height: min(88vh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px 56px;
    background: var(--p24-nf-bg);
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

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

/* Фон: три «орбиты» + сетка + линия сканера */
.p24-nf__scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.p24-nf__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.p24-nf__orb--a {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    background: radial-gradient(circle at 30% 30%, #0891b2 0%, transparent 70%);
    top: -18%;
    left: -12%;
    animation: p24_nf_orbit_a 28s ease-in-out infinite alternate;
}

.p24-nf__orb--b {
    width: min(45vw, 380px);
    height: min(45vw, 380px);
    background: radial-gradient(circle at 60% 40%, #0d9488 0%, transparent 65%);
    bottom: -14%;
    right: -8%;
    animation: p24_nf_orbit_b 32s ease-in-out infinite alternate;
}

.p24-nf__orb--c {
    width: min(30vw, 220px);
    height: min(30vw, 220px);
    background: radial-gradient(circle, rgba(94, 234, 212, 0.5) 0%, transparent 70%);
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: p24_nf_pulse_c 6s ease-in-out infinite;
}

.p24-nf__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 11px,
            rgba(34, 211, 238, 0.04) 11px,
            rgba(34, 211, 238, 0.04) 12px
        ),
        repeating-linear-gradient(
            72deg,
            transparent,
            transparent 19px,
            rgba(13, 148, 136, 0.035) 19px,
            rgba(13, 148, 136, 0.035) 20px
        );
    mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 15%, transparent 72%);
}

.p24-nf__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 120%;
    top: -10%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(34, 211, 238, 0.03) 48%,
        rgba(34, 211, 238, 0.08) 50%,
        rgba(34, 211, 238, 0.03) 52%,
        transparent 100%
    );
    animation: p24_nf_scan 7.5s linear infinite;
    opacity: 0.65;
}

@keyframes p24_nf_orbit_a {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(28px, 40px) rotate(8deg); }
}

@keyframes p24_nf_orbit_b {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-32px, -22px) scale(1.06); }
}

@keyframes p24_nf_pulse_c {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes p24_nf_scan {
    0% { transform: translateY(-12%); }
    100% { transform: translateY(12%); }
}

.p24-nf__shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

.p24-nf__card {
    margin: 0 auto;
    padding: 36px 32px 32px;
    border-radius: 20px;
    background: var(--p24-nf-card);
    border: 1px solid rgba(94, 234, 212, 0.12);
    box-shadow:
        0 0 0 1px rgba(8, 145, 178, 0.15) inset,
        0 24px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.p24-nf__head { text-align: center; }

.p24-nf__kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--p24-nf-mint);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.08);
}

.p24-nf__eyebrow {
    margin: 0 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.p24-nf__code-wrap {
    margin: 0 0 18px;
    line-height: 0.82;
}

.p24-nf__code {
    display: inline-block;
    position: relative;
    font-size: clamp(4rem, 22vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    color: transparent;
    position: relative;
    -webkit-text-stroke: 1.5px rgba(226, 232, 240, 0.85);
    text-shadow:
        0 0 40px rgba(34, 211, 238, 0.35),
        0 12px 32px rgba(0, 0, 0, 0.5);
}

.p24-nf__code::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(118deg, #f8fafc 12%, var(--p24-nf-cyan) 42%, var(--p24-nf-mint) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.22;
    pointer-events: none;
}

.p24-nf__title {
    margin: 0 0 20px;
    font-size: clamp(1.25rem, 4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.p24-nf__lead {
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #cbd5e1;
    text-align: left;
}

.p24-nf__list {
    margin: 0 0 28px;
    padding: 0 0 0 1.15rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #a8b4c8;
}

.p24-nf__list li { margin-bottom: 8px; }

.p24-nf__list a {
    color: var(--p24-nf-mint);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.p24-nf__list a:hover { color: #ccfbf1; }

.p24-nf__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.p24-nf__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.p24-nf__btn--primary {
    color: #042f2e !important;
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 45%, #14b8a6 100%);
    border: 1px solid rgba(167, 243, 208, 0.5);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.p24-nf__btn--primary:hover,
.p24-nf__btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.45);
    outline: none;
}

.p24-nf__btn--ghost {
    color: #e2e8f0 !important;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--p24-nf-line);
}

.p24-nf__btn--ghost:hover,
.p24-nf__btn--ghost:focus-visible {
    border-color: var(--p24-nf-cyan);
    color: #fff !important;
    outline: none;
}

@media (max-width: 520px) {
    .p24-notfound { padding: 28px 14px 44px; min-height: 80vh; }
    .p24-nf__card { padding: 28px 20px 24px; border-radius: 16px; }
    .p24-nf__foot { flex-direction: column; }
    .p24-nf__btn { width: 100%; }
}

/* ========== Карта сайта Pinsk24 [pinsk24_sitemap] ========== */
.p24-smap {
    --p24-smap-hero: #0a0f18;
    --p24-smap-accent: #22c55e;
    --p24-smap-muted: #94a3b8;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0 0 2rem;
    width: 100%;
    max-width: 100%;
}

.p24-smap__hero {
    background: var(--p24-smap-hero);
    color: #f8fafc;
    text-align: center;
    padding: 48px 20px 40px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.p24-smap__title {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.p24-smap__intro {
    margin: 0 auto 28px;
    max-width: 560px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--p24-smap-muted);
}

.p24-smap__search-row {
    max-width: 640px;
    margin: 0 auto;
}

.p24-smap__search-inner {
    position: relative;
    display: block;
}

.p24-smap__search {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 52px 16px 20px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.p24-smap__search::placeholder {
    color: rgba(148, 163, 184, 0.85);
}

.p24-smap__search:focus {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(255, 255, 255, 0.09);
}

.p24-smap__search-ico {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.65;
    pointer-events: none;
}

.p24-smap__body {
    background: #fff;
    padding: 28px 18px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.p24-smap__quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.p24-smap__quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155 !important;
    text-decoration: none !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.p24-smap__quick-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

.p24-smap__quick-ico {
    font-size: 16px;
    line-height: 1;
}

/* Колонки CSS: блоки букв идут потоком без пустых «ячеек» как в display:grid */
.p24-smap__grid {
    column-count: 3;
    column-gap: 32px;
    column-fill: balance;
}

.p24-smap__col {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    vertical-align: top;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.p24-smap__letter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    min-height: 1.35em;
}

.p24-smap__letter-char {
    flex: 0 0 auto;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--p24-smap-accent);
    letter-spacing: -0.02em;
}

.p24-smap__letter-rule {
    flex: 1 1 auto;
    height: 1px;
    background: #e5e7eb;
    min-width: 0;
}

.p24-smap__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p24-smap__list li {
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.45;
}

.p24-smap__link {
    font-size: 14px;
    color: #1e293b !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.p24-smap__link:hover {
    color: #15803d !important;
    border-bottom-color: rgba(34, 197, 94, 0.35);
}

.p24-smap__empty {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin: 24px 0;
}

.p24-smap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .p24-smap__grid {
        column-count: 2;
        column-gap: 24px;
    }
}

@media (max-width: 600px) {
    .p24-smap__grid {
        column-count: 1;
        column-gap: 0;
    }
    .p24-smap__hero {
        padding: 36px 16px 32px;
    }
    .p24-smap__quick {
        flex-direction: column;
        align-items: stretch;
    }
    .p24-smap__quick-btn {
        justify-content: center;
    }
}

/* [pinsk24_sitemap_compact] — только поиск + список */
.p24-smap--compact {
    margin-bottom: 1.25rem;
}

.p24-smap__compact-search {
    margin-bottom: 18px;
}

.p24-smap__search-inner--compact {
    max-width: 640px;
}

.p24-smap__search--compact {
    padding: 14px 48px 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
}

.p24-smap__search--compact::placeholder {
    color: #94a3b8;
}

.p24-smap__search--compact:focus {
    border-color: rgba(34, 197, 94, 0.4);
    background: #fff;
}

.p24-smap__body--onlylist {
    padding: 0;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== Блог: список, запись, сайдбар, шорткод [pinsk24_posts_grid] ========== */
.p24-blog-shell {
    background: #f1f5f9;
    padding: 36px 0 56px;
    min-height: 48vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.p24-blog-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(300px, 30%);
    gap: 36px 40px;
    align-items: start;
}

.p24-blog-page-head {
    margin-bottom: 28px;
}

.p24-blog-page-head__title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.p24-blog-page-head__sub {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 52ch;
}

.p24-blog-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Карточка списка (горизонтальная) */
.p24-blog-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.p24-blog-card:hover {
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.p24-blog-card__media {
    flex: 0 0 40%;
    max-width: 360px;
    min-height: 200px;
    position: relative;
    background: #e2e8f0;
}

.p24-blog-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.p24-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p24-blog-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.p24-blog-card__body {
    flex: 1;
    padding: 22px 24px 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.p24-blog-card__meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.p24-blog-card__meta-sep { opacity: 0.6; }

.p24-blog-card__cat {
    color: #22c55e !important;
    font-weight: 600;
    text-decoration: none !important;
}

.p24-blog-card__cat:hover { text-decoration: underline !important; }

.p24-blog-card__title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.p24-blog-card__title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.p24-blog-card__title a:hover { color: #15803d !important; }

.p24-blog-card__excerpt {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p24-blog-card__more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #0d9488 !important;
    text-decoration: none !important;
    align-self: flex-start;
}

.p24-blog-card__more:hover { color: #0f766e !important; }

/* Пагинация */
.p24-blog-pagination {
    margin-top: 32px;
    padding-top: 8px;
}

.p24-blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.p24-blog-pagination a.page-numbers,
.p24-blog-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.p24-blog-pagination a.page-numbers:hover {
    border-color: #22c55e;
    color: #15803d !important;
}

.p24-blog-pagination span.page-numbers.current {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff !important;
}

.p24-blog-empty {
    color: #64748b;
    font-size: 1rem;
}

/* Сайдбар */
.p24-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.p24-blog-widget {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.p24-blog-widget__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.p24-blog-also-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p24-blog-also-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.p24-blog-also-item__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.p24-blog-also-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p24-blog-also-item__thumb--ph span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.p24-blog-also-item__text { min-width: 0; }

.p24-blog-also-item__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #2563eb !important;
    text-decoration: none !important;
    margin-bottom: 4px;
}

.p24-blog-also-item__title:hover { color: #1d4ed8 !important; text-decoration: underline !important; }

.p24-blog-also-item__date {
    font-size: 12px;
    color: #94a3b8;
}

/* CTA */
.p24-blog-widget--cta {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    text-align: center;
    padding: 26px 20px;
}

.p24-blog-cta__emoji {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.p24-blog-cta__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.p24-blog-cta__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
}

.p24-blog-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    background: #22c55e;
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s;
}

.p24-blog-cta__btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Одиночная запись */
.p24-blog-shell--single {
    padding-top: 28px;
}

.p24-single-article {
    background: transparent;
    min-width: 0;
}

.p24-single-head {
    margin-bottom: 20px;
}

.p24-single-head__meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.p24-single-head__sep { opacity: 0.6; }

.p24-single-head__cat {
    color: #22c55e !important;
    font-weight: 600;
    text-decoration: none !important;
}

.p24-single-head__title {
    margin: 0;
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

.p24-single-featured {
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.p24-single-featured__img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.p24-single-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px 26px 32px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.p24-single-content > *:first-child { margin-top: 0; }
.p24-single-content h2,
.p24-single-content h3 {
    color: #0f172a;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.p24-single-content p { margin: 0 0 1em; }
.p24-single-content a { color: #0d9488; text-decoration: underline; text-underline-offset: 2px; }
.p24-single-content a:hover { color: #0f766e; }

.p24-single-pages {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.p24-single-foot {
    margin-top: 28px;
}

.p24-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.p24-single-tags__link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569 !important;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none !important;
}

.p24-single-tags__link:hover { background: #e2e8f0; color: #0f172a !important; }

.p24-single-nav {
    padding: 20px 0 0;
    border-top: 1px solid #e2e8f0;
}

.p24-single-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p24-single-nav a {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: border-color 0.2s;
}

.p24-single-nav a:hover { border-color: #22c55e; }

.p24-single-nav__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.p24-single-nav__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a !important;
}

/* Шорткод сетки: 5 × 2 (макс. 10 записей) */
.p24-posts-grid-sc {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
    margin: 1rem 0;
}

.p24-posts-grid-sc__item {
    margin: 0;
    min-width: 0;
}

.p24-posts-grid-sc__link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.p24-posts-grid-sc__link:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.p24-posts-grid-sc__thumb {
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    overflow: hidden;
}

.p24-posts-grid-sc__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p24-posts-grid-sc__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
}

.p24-posts-grid-sc__title {
    margin: 0;
    padding: 12px 12px 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p24-posts-grid-sc__date {
    display: block;
    padding: 0 12px 14px;
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .p24-posts-grid-sc {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .p24-blog-inner {
        grid-template-columns: 1fr;
    }
    .p24-blog-sidebar {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .p24-blog-card {
        flex-direction: column;
    }
    .p24-blog-card__media {
        max-width: none;
        width: 100%;
        min-height: 200px;
    }
    .p24-blog-card__body {
        padding: 18px 18px 20px;
    }
    .p24-posts-grid-sc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .p24-posts-grid-sc {
        grid-template-columns: 1fr;
    }
}