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

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #334155;
    line-height: 1.6;
}

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

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

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

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

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

/* --- Шапка (стиль маркетплейса) --- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-shadow: none;
    transition: transform 0.35s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.site-branding { flex-shrink: 0; }
.site-branding a { text-decoration: none; display: flex; align-items: center; }

/* Центр: поиск + город */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 720px;
}

.header-search {
    position: relative;
    flex: 1;
    min-width: 0;
}
.header-search--mobile { display: none; }

.header-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: none;
    border-radius: 10px;
    background: #f2f4f7;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: 0.2s;
}
.header-search-input::placeholder { color: #94a3b8; }
.header-search-input:focus {
    background: #eef1f5;
    box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.header-search-icon {
    position: absolute;
    right: 14px;
    left: auto;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.header-search-clear {
    position: absolute;
    right: 40px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.header-search-clear:hover { color: #64748b; }

.header-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    white-space: nowrap;
}
.header-city svg {
    width: 18px;
    height: 18px;
}
.header-city:hover { color: #0f766e; }

.header-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1100;
}
.header-search-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 300px;
    overflow-y: auto;
}
.header-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: 0.15s;
}
.header-search-item:hover { background: #f0fdf4; color: #15803d; }
.header-search-item-arrow { color: #94a3b8; font-size: 12px; }
.header-search-empty {
    padding: 14px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}
.header-search-all {
    display: block;
    padding: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    background: #fafafa;
}
.header-search-all:hover { background: #f0fdf4; }

/* Компактный поиск на страницах услуг — больше места меню */
body.service-page .header-center--compact {
    max-width: 280px;
    flex: 0 1 280px;
}
body.service-page .header-center--compact .header-search-input {
    font-size: 13px;
    padding-right: 38px;
}
@media (min-width: 1100px) {
    body.service-page .header-center--compact {
        max-width: 340px;
        flex: 0 1 340px;
    }
}
@media (max-width: 900px) {
    body.service-page .header-city {
        display: none;
    }
}

.header-mobile-panel { display: none; }

/* Правая часть: иконка + кнопки */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    transition: 0.15s;
    flex-shrink: 0;
}
.header-icon-btn svg { width: 20px; height: 20px; }
.header-icon-btn:hover,
.header-icon-btn.is-active {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
}

/* --- Меню (Desktop) --- */
@media (min-width: 901px) {
    .menu-toggle { display: none; }
    .header-mobile-panel { display: none !important; }

    .main-navigation { display: flex; align-items: center; }

    .main-navigation ul.menu-pills {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 6px;
    }

    .main-navigation ul.menu-pills li a {
        display: inline-flex;
        align-items: center;
        padding: 9px 14px;
        border-radius: 10px;
        background: #f2f4f7;
        color: #334155;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        border: none;
        transition: 0.15s;
    }

    .main-navigation ul.menu-pills li a:hover {
        background: #e8ebf0;
        color: #1e293b;
    }

    .main-navigation ul.menu-pills li.current-menu-item a {
        background: #dcfce7;
        color: #15803d;
    }

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

    /* Меню страницы услуги — компактнее, больше пунктов */
    .main-navigation--service {
        min-width: 0;
        max-width: 100%;
    }
    .main-navigation ul.menu-pills--service {
        flex-wrap: nowrap;
        gap: 4px;
    }
    .main-navigation ul.menu-pills--service li a {
        padding: 8px 11px;
        font-size: 12px;
    }
    .main-navigation ul.menu-pills--service li.menu-item-parent a {
        background: #eff6ff;
        color: #1d4ed8;
    }
    .main-navigation ul.menu-pills--service li.menu-item-parent a:hover {
        background: #dbeafe;
        color: #1e40af;
    }
    @media (max-width: 1100px) {
        .main-navigation ul.menu-pills--service li a {
            padding: 7px 9px;
            font-size: 11px;
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 900px) {
    .header-center,
    .header-actions { display: none; }

    .header-inner { padding: 0 16px; gap: 12px; }
    .header-logo { max-height: 32px; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        margin-left: auto;
    }
    .bar { background: #334155; width: 100%; height: 2px; border-radius: 2px; transition: 0.3s; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .header-mobile-panel {
        display: none;
        background: #fff;
        border-bottom: 1px solid #ebebeb;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .header-mobile-panel.is-open { display: block; }

    .header-search--mobile {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
    .header-search-dropdown--mobile {
        position: static;
        margin-top: 8px;
    }

    .header-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .header-mobile-link {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
        background: #f2f4f7;
        color: #334155;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }
    .header-mobile-link:hover { background: #e8ebf0; }

    .header-mobile-submenu { display: flex; flex-direction: column; gap: 4px; }
    .header-mobile-submenu-toggle {
        width: 100%;
        text-align: left;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }
    .header-mobile-submenu-toggle::after {
        content: ' ▾';
        opacity: 0.5;
    }
    .header-mobile-submenu-toggle.is-open::after {
        content: ' ▴';
    }
    .header-mobile-submenu-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-left: 8px;
    }
    .header-mobile-sublink {
        display: block;
        padding: 10px 14px;
        border-radius: 8px;
        background: #f8fafc;
        color: #475569;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
    }
    .header-mobile-sublink.is-current {
        background: #dcfce7;
        color: #15803d;
        font-weight: 700;
    }

    .header-mobile-socials {
        display: flex;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }
    .header-mobile-socials img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
}


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

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

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

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

/* ===========================
   5. ПОДВАЛ — портал (светлый) и услуги (тёмный)
   =========================== */
.site-footer {
    margin-top: auto;
    position: relative;
    width: 100%;
}
.site-footer-portal {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    color: #334155;
}
.site-footer-service {
    background: linear-gradient(165deg, #0f172a 0%, #111827 55%, #0b1220 100%);
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}
.site-footer-service::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, transparent 70%);
    pointer-events: none;
}
.footer-shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 20px 28px;
    position: relative;
    z-index: 1;
}
.footer-logo-link { display: inline-block; }
.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
}
.footer-logo-light { filter: brightness(0) invert(1); opacity: 0.95; }

/* —— Портал —— */
.footer-portal-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px 28px;
    align-items: start;
}
.footer-portal-tagline {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    max-width: 320px;
}
.footer-portal-contacts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-portal-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}
.footer-portal-contacts svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #16a34a;
}
.footer-portal-contacts a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}
.footer-portal-contacts a:hover { color: #16a34a; }
.footer-col-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}
.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav-list a,
.footer-nav-compact a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.footer-nav-list a:hover,
.footer-nav-compact a:hover { color: #16a34a; }
.footer-portal-cta p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}
.footer-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.footer-btn-primary:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.32);
}
.footer-cta-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

/* —— Услуги —— */
.footer-service-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.footer-service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 28px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.footer-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
    margin-bottom: 10px;
}
.footer-service-name {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    color: #e2e8f0;
}
.footer-contact-list a {
    color: #e2e8f0;
    text-decoration: none;
}
.footer-contact-list a:hover { color: #86efac; }
.footer-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-contact-icon svg { width: 18px; height: 18px; }
.footer-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.footer-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
    transition: 0.15s;
}
.footer-btn-call:hover {
    background: #22c55e;
    transform: translateY(-1px);
}
.footer-btn-call-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
}
.footer-btn-call-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-socials img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: transform 0.15s;
}
.footer-socials a:hover img { transform: scale(1.08); }
.footer-service-note {
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}
.footer-nav-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.footer-nav-compact a { color: #cbd5e1; font-size: 13px; }

/* —— Низ подвала —— */
.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
.footer-bottom-light {
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
}
.footer-bottom-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    position: relative;
    z-index: 1;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links {
    display: flex;
    gap: 16px;
}
.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
}
.footer-bottom-links a:hover { color: #cbd5e1; }

/* Кнопка наверх */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 100;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); background: #15803d; }
.scroll-top svg { width: 22px; height: 22px; }

@media (max-width: 992px) {
    .footer-portal-grid,
    .footer-service-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-service-card { order: 1; }
    .footer-service-side { order: 2; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 768px) {
    .footer-shell { padding: 36px 16px 24px; }
    .footer-btn-call { width: 100%; }
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Размер для шапки (те, что возле логотипа) */
.header-socials img {
    width: 35px !important; 
    height: 35px !important;
    object-fit: contain;
    margin: 0 5px;
}
/* Legacy glass footer — заменён на .site-footer-portal / .site-footer-service */
/* 1. Глобальный запрет горизонтальной прокрутки */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* 2. Правильный расчет ширины блоков */
/* Это гарантирует, что padding не будет добавляться к ширине 100% */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 3. Защита от гигантских картинок и иконок */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 4. Исправление для секций-контейнеров */
.container, 
.site-content-wrapper {
    max-width: 100vw; /* Не шире экрана */
    overflow-x: hidden; /* Обрезаем лишнее внутри секций */
}

/* 7. Если используются отрицательные отступы (margin), как мы делали ранее */
/* Это компенсирует вылеты блоков */
.row, .b24-contacts-grid {
    margin-right: 0 !important;
    margin-left: 0 !important;
}
/* 1. Бронируем место под главный баннер (убираем прыжок) */
.seo-hero-block-dynamic {
    min-height: 600px;
    background-color: #0f172a; /* Темный фон, пока качается картинка */
}

@media (max-width: 768px) {
    .seo-hero-block-dynamic {
        min-height: 400px; /* Примерная высота на мобилках */
    }
}

/* 2. Фиксируем размеры иконки верификации (галочки) */
.verified-badge img {
    width: 45px !important;
    height: 45px !important;
}

/* 3. Улучшаем контрастность текста (Спец. возможности) */
/* Делаем серые подписи темнее */
.card-title, .d-label, .msk-rev-loc, .review-date-label, .faq-header p {
    color: #526477 !important; /* Был слишком светлый серый */
}

/* Делаем описание в первом блоке чуть четче */
.seo-hero-desc {
    color: #f1f5f9 !important;
}

.hero-dark-section {
    position: relative;
    /* Глубокий темный фон */
    background: #0f172a; 
    background-image: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 90%);
    padding: 80px 20px;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Фоновое свечение (пятно справа) */
.hero-dark-section::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container-dark {
    max-width: 1290px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- ЛЕВАЯ ЧАСТЬ (ТЕКСТ) --- */
.dark-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 174, 96, 0.2); /* Темно-зеленый прозрачный */
    color: #4cd137; /* Яркий неон-зеленый */
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.1);
}

.hero-title-dark {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.accent-neon {
    color: #4cd137;
    position: relative;
    white-space: nowrap;
}
/* Подчеркивание */
.accent-neon::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #4cd137, transparent);
    z-index: -1;
    opacity: 0.4;
}

.hero-desc-dark {
    font-size: 18px;
    color: #94a3b8; /* Светло-серый для текста */
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 550px;
}

/* Список преимуществ */
.dark-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dark-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 16px;
}
.check-icon-dark {
    width: 24px; height: 24px;
    background: #27ae60;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.4);
}

/* Кнопка */
.btn-main-dark {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: #fff !important;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}
.btn-main-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
    background: linear-gradient(90deg, #2980b9, #3498db);
}

/* --- ПРАВАЯ ЧАСТЬ (GLASS CARDS) --- */
.hero-visual-right {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Общий стиль стеклянных карточек */
.glass-card {
    position: absolute;
    /* Эффект стекла */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Блик сверху */
    
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 280px;
}

/* Внутренности карточек */
.g-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
.g-avatar { width: 50px; height: 50px; border-radius: 50%; opacity: 0.8; }
.g-lines { flex: 1; }
.g-line { height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 6px; }
.g-line.short { width: 60%; }

/* --- ИСПРАВЛЕННАЯ АНИМАЦИЯ (БЕЗ СКАЧКОВ) --- */
/* Мы используем отдельные keyframes для каждой карточки, чтобы трансформация не сбрасывалась */

/* 1. ГЛАВНАЯ КАРТОЧКА (Центр) */
.gc-main {
    z-index: 3;
    top: 50%; left: 50%;
    /* Исходная позиция задается через translate(-50%, -50%) в анимации */
    animation: floatMain 6s ease-in-out infinite;
}
@keyframes floatMain {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

/* 2. ЗАДНЯЯ КАРТОЧКА 1 (Справа, наклон) */
.gc-bg-1 {
    z-index: 2;
    top: 30%; right: 20px;
    animation: floatBg1 7s ease-in-out infinite; /* Разное время для хаоса */
}
@keyframes floatBg1 {
    0%, 100% { transform: scale(0.9) rotate(5deg) translateY(0px); }
    50% { transform: scale(0.9) rotate(5deg) translateY(-12px); }
}

/* 3. ЗАДНЯЯ КАРТОЧКА 2 (Слева, наклон) */
.gc-bg-2 {
    z-index: 1;
    bottom: 30%; left: 20px;
    animation: floatBg2 8s ease-in-out infinite;
}
@keyframes floatBg2 {
    0%, 100% { transform: scale(0.9) rotate(-5deg) translateY(0px); }
    50% { transform: scale(0.9) rotate(-5deg) translateY(-10px); }
}

/* Зеленый бейдж */
.g-badge {
    background: rgba(39, 174, 96, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* АДАПТИВ */
@media (max-width: 992px) {
    .hero-container-dark {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .dark-features {
        align-items: center; /* Центр списка на мобиле */
    }
    .hero-visual-right { display: none; } /* Скрываем анимацию на телефоне */
    .hero-dark-section { padding: 140px 20px; min-height: auto; }
    .hero-title-dark { font-size: 32px; }
}
/* Обёртка всего блока */
.as-services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fafb; /* Очень светлый фон подложки */
    border-radius: 12px;
}

/* Поиск */
.as-search-container {
    position: relative;
    margin-bottom: 40px;
    max-width: 100%;
}

.as-search-input {
    width: 100%;
    padding: 18px 25px;
    padding-right: 55px;
    font-size: 16px;
    background-color: #ffffff; /* Белый фон поиска */
    border: 1px solid #e5e7eb; /* Светло-серая рамка */
    border-radius: 10px;
    color: #1f2937;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Важно для отступов */
}

.as-search-input:focus {
    border-color: #22c55e; /* Зеленый акцент */
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.as-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    pointer-events: none;
}

/* Заголовки категорий */
.as-cat-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111827; /* Темный цвет заголовка */
    margin-bottom: 20px;
    margin-top: 50px;
    padding-left: 15px;
    border-left: 6px solid #22c55e; /* Зеленая линия */
    line-height: 1.2;
}

/* Сетка услуг */
.as-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Карточка услуги */
.as-service-item {
    display: block;
    background-color: #ffffff; /* Белая карточка */
    color: #374151; /* Темно-серый текст */
    text-decoration: none !important;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.as-service-item:hover {
    background-color: #ffffff;
    border-color: #22c55e; /* Зеленая рамка при наведении */
    color: #22c55e; /* Зеленый текст */
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1); /* Зеленоватая тень */
}

/* Скрытие элементов */
.as-hidden {
    display: none !important;
}

/* Адаптив */
@media (max-width: 600px) {
    .as-services-grid {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
    }
    .as-cat-title {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
}
.popular-services-section {
    padding: 60px 0;
    background: #0f172a; /* Темный фон для контраста */
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}
.section-title-light {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.section-desc-light {
    font-size: 16px;
    color: #94a3b8;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.pop-card {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.pop-card:hover {
    transform: translateY(-5px);
}

/* Картинка фона */
.pop-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.pop-card:hover .pop-bg {
    transform: scale(1.1);
}

/* Градиент поверх картинки */
.pop-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

/* Текст */
.pop-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    box-sizing: border-box;
}
.pop-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}
.pop-sub {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- 2. БЛОК "КАК ЭТО РАБОТАЕТ" (СВЕТЛЫЙ) --- */
.steps-section {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.section-title-dark {
    font-size: 32px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.step-item {
    position: relative;
}
/* Линия между шагами */
.step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 20px;
    right: -30px;
    font-size: 30px;
    color: #e2e8f0;
    font-weight: 300;
}

.step-icon {
    width: 80px; height: 80px;
    background: #f0f8ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px auto;
    color: #3498db;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.15);
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}
.step-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

/* --- 3. SEO ТЕКСТ (СЕРЫЙ) --- */
.seo-main-text-section {
    padding: 60px 0;
    background: #f8f9fa;
}
.seo-text-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.seo-h2 {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}
.seo-p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* АДАПТИВ */
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .step-item:not(:last-child)::after {
        content: '↓';
        top: auto; bottom: -35px; right: 50%; transform: translateX(50%);
    }
    .section-title-light, .section-title-dark { font-size: 26px; }
}
/* --- КАТАЛОГ СОЛИГОРСК LIGHT STYLE --- */
.as-catalog-wrapper {
    padding: 80px 0;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
}

.as-catalog-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.as-catalog-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Поиск */
.as-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.as-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.4;
}

#asCatalogSearch {
    width: 100%;
    padding: 20px 25px 20px 55px;
    border-radius: 50px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#asCatalogSearch:focus {
    border-color: #22c55e;
    background: #fff;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

/* Сетка каталога */
.as-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.as-letter-block {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.as-letter-block:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.as-letter-title {
    font-size: 32px;
    font-weight: 900;
    color: #22c55e;
    border-bottom: 2px solid #f8fafc;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.as-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-links-list li {
    margin-bottom: 12px;
}

.as-links-list a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.as-links-list a:hover {
    color: #22c55e;
    padding-left: 5px;
}

.as-links-list a::before {
    content: '→';
    font-size: 12px;
    opacity: 0.3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .as-catalog-header h2 { font-size: 24px; }
    .as-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
    .as-letter-block { padding: 20px; }
}
    .as-dual-section { padding: 80px 0; background: #fff; font-family: 'Inter', sans-serif; }
    .as-dual-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .as-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

    .as-side-card {
        padding: 45px;
        border-radius: 32px;
        position: relative;
        overflow: hidden;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* СТОРОНА КЛИЕНТА */
    .as-client-card { background: #f8fafc; border: 1px solid #e2e8f0; }
    .as-client-card:hover { border-color: #3b82f6; transform: translateY(-5px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.05); }

    /* СТОРОНА ПАРТНЕРА */
    .as-partner-card { background: #0f172a; color: #fff; }
    .as-partner-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(15, 23, 42, 0.3); }

    .as-card-tag {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    .tag-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .tag-white { background: rgba(255, 255, 255, 0.1); color: #fff; }

    .as-side-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
    .as-side-card p { font-size: 15px; opacity: 0.8; margin-bottom: 25px; }

    .as-side-list { list-style: none; padding: 0; margin-bottom: 30px; }
    .as-side-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
    .as-side-list i { color: #22c55e; }

    .as-side-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 28px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        transition: 0.3s;
        width: fit-content;
    }
    .btn-blue { background: #3b82f6; color: #fff; }
    .btn-light { background: #fff; color: #0f172a; }
    .as-side-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

    @media (max-width: 992px) { .as-dual-grid { grid-template-columns: 1fr; } }
    .as-faq-section { background: #0f172a; padding: 100px 20px; font-family: 'Inter', sans-serif; }
    .as-faq-container { max-width: 800px; margin: 0 auto; }
    .as-faq-title { text-align: center; color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 50px; }

    .as-faq-item { 
        background: rgba(255,255,255,0.03); 
        border: 1px solid rgba(255,255,255,0.08); 
        border-radius: 16px; 
        margin-bottom: 12px; 
        overflow: hidden; 
    }
    .as-faq-trigger { 
        width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; 
        align-items: center; background: none; border: none; color: #fff; 
        font-size: 17px; font-weight: 700; cursor: pointer; text-align: left;
    }
    .as-faq-icon { color: #22c55e; font-size: 20px; transition: 0.3s; }
    .as-faq-content { max-height: 0; overflow: hidden; transition: 0.4s ease-out; }
    .as-faq-inner { padding: 0 25px 20px; color: #94a3b8; font-size: 15px; line-height: 1.6; }

    .as-faq-item.active { border-color: #22c55e; background: rgba(34, 197, 94, 0.05); }
    .as-faq-item.active .as-faq-icon { transform: rotate(45deg); }
    .as-faq-item.active .as-faq-content { max-height: 500px; }
    /* Скрываем стандартный заголовок внутри шорткода только на этой странице */
    .as-catalog-header h2 { 
        display: none !important; 
    }
    
    .as-sitemap-h1 {
        font-size: 32px;
        font-weight: 800;
        color: #0f172a;
        text-align: center;
        margin-bottom: 8px;
        padding-top: 80px;
        letter-spacing: -0.02em;
    }

/* Blog */
.blog-layout-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 96px 20px 64px;
}
.blog-layout-archive {
    max-width: 1080px;
}
.blog-main-full {
    width: 100%;
    min-width: 0;
}
.blog-content-area {
    align-items: flex-start;
    gap: 32px;
}
.blog-main { min-width: 0; }
.blog-sidebar {
    position: sticky;
    top: 88px;
}
.blog-page-header {
    margin-bottom: 28px;
    padding-bottom: 4px;
}
.blog-page-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.blog-page-desc {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}
.blog-empty {
    margin: 0;
    padding: 32px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}
.blog-grid-archive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    border: 1px solid #e8edf3;
    height: 100%;
}
.blog-card-archive:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border-color: #bbf7d0;
}
.blog-card-media-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.blog-card-horizontal {
    flex-direction: row;
    min-height: 180px;
}
.blog-card-horizontal .blog-card-img {
    width: 260px;
    min-width: 260px;
    height: auto;
    min-height: 180px;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: #bbf7d0;
}
.blog-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}
.blog-card-archive .blog-card-img {
    height: 210px;
    width: 100%;
}
.blog-card-img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}
.blog-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.blog-card-meta time,
.blog-card-meta .blog-views {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.blog-card-meta .blog-category-badge {
    flex-shrink: 0;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.35;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.blog-card-title a:hover { color: #16a34a; }
.blog-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-body time {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}
.blog-card-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.3;
}
.blog-card-body p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-read-more {
    margin-top: 14px;
    color: #16a34a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    align-self: flex-start;
}
.blog-read-more:hover { text-decoration: underline; }
.blog-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.blog-card-body .blog-views { margin-bottom: 0; }
body.blog.archive {
    background: #f1f5f9;
}
body.blog.archive .site-content-fullwidth {
    background: transparent;
}
.blog-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 24px;
}
.blog-single-meta .blog-single-date { margin-bottom: 0; }
.blog-widget-post-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.blog-widget-post-top .blog-views { font-size: 11px; color: #94a3b8; }

/* Homepage blog block */
.home-blog-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 56px 0 48px;
    border-top: 1px solid #e2e8f0;
}
.home-blog-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.home-blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.home-blog-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #16a34a;
    margin-bottom: 8px;
}
.home-blog-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.home-blog-subtitle {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    max-width: 520px;
}
.home-blog-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.home-blog-all-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.home-blog-all-link:hover {
    border-color: #86efac;
    color: #15803d;
    background: #f0fdf4;
}
.home-blog-nav { display: flex; gap: 8px; }
.home-blog-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 18px;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.home-blog-nav-btn:hover:not(:disabled) {
    border-color: #22c55e;
    color: #15803d;
    background: #f0fdf4;
}
.home-blog-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.home-blog-scroller-wrap {
    margin: 0 -20px;
    padding: 0 20px;
}
.home-blog-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, calc(25% - 15px));
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.home-blog-scroller::-webkit-scrollbar { height: 6px; }
.home-blog-scroller::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.home-blog-card {
    scroll-snap-align: start;
    min-width: 0;
}
.home-blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.home-blog-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    border-color: #bbf7d0;
}
.home-blog-card-media {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    background-size: cover;
    background-position: center;
}
.home-blog-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.55) 100%);
}
.home-blog-card-views {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}
.home-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 20px;
}
.home-blog-card-body time {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.home-blog-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-blog-card-body p {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-blog-card-more {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}
@media (min-width: 1100px) {
    .home-blog-scroller {
        grid-auto-columns: calc(25% - 15px);
        overflow-x: visible;
    }
    .home-blog-nav { display: none; }
}
@media (max-width: 768px) {
    .home-blog-section { padding: 40px 0 32px; }
    .home-blog-scroller { grid-auto-columns: minmax(260px, 82vw); }
    .home-blog-header-actions { width: 100%; justify-content: space-between; }
}

.blog-breadcrumbs {
    margin: 0 0 16px;
    padding: 0;
}
.blog-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    margin: 0;
    padding: 10px 14px;
    list-style: none !important;
    list-style-type: none !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}
.blog-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    list-style: none !important;
}
.blog-breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
}
.blog-breadcrumbs-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.blog-breadcrumbs-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.blog-breadcrumbs-current {
    color: #0f172a;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: min(100%, 520px);
}
.blog-rubric-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.blog-rubric-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.15s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.blog-rubric-link:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.blog-rubric-link.is-active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.blog-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}
.blog-category-auto { background: #dbeafe; color: #1d4ed8; }
.blog-category-remont { background: #dcfce7; color: #15803d; }
.blog-category-dom-i-byt { background: #ffedd5; color: #c2410c; }
.blog-category-badge:hover { filter: brightness(0.96); }
.blog-single-header-top { margin-bottom: 10px; }
.blog-card-meta-row { margin-bottom: 6px; }
.blog-widget-rubrics a.is-active {
    color: #16a34a;
    font-weight: 700;
}
.home-blog-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.home-blog-card-category-auto { color: #1d4ed8; }
.home-blog-card-category-remont { color: #15803d; }
.home-blog-card-category-dom-i-byt { color: #c2410c; }
.home-blog-card-media { position: relative; }
.blog-single-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.25;
}
.blog-single-date {
    display: block;
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}
.blog-single-hero {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 28px;
}
.blog-back-link { margin-top: 40px; }
.blog-back-link a { color: #2980b9; text-decoration: none; font-weight: 600; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-post-content p { line-height: 1.7; color: #334155; margin-bottom: 1em; }
.blog-post-content h2 {
    scroll-margin-top: 88px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2em 0 0.75em;
    padding-top: 0.25em;
}
.blog-post-content h3 {
    scroll-margin-top: 88px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5em 0 0.5em;
}
.blog-post-content ul,
.blog-post-content ol { margin: 0 0 1em; padding-left: 1.4em; color: #334155; line-height: 1.65; }
.blog-post-content li { margin-bottom: 0.35em; }

/* Article lead & TOC */
.blog-lead {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 1.5em;
    padding: 16px 18px;
    background: #f8fafc;
    border-left: 4px solid #22c55e;
    border-radius: 0 10px 10px 0;
}
.blog-toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.blog-toc-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blog-toc-item a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: 0.15s;
}
.blog-toc-item a:hover { background: #f0fdf4; color: #15803d; }
.blog-toc-level-3 { padding-left: 14px; }
.blog-toc-level-3 a { font-weight: 500; font-size: 13px; }
.blog-widget-toc-sticky { position: sticky; top: 88px; }
.blog-toc-list-sidebar .blog-toc-item a { font-size: 13px; padding: 5px 8px; }

/* Quotes */
.blog-quote {
    margin: 1.75em 0;
    padding: 18px 22px 16px 20px;
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
    border-radius: 0 12px 12px 0;
}
.blog-quote p {
    margin: 0 0 8px !important;
    font-size: 1.05rem;
    font-style: italic;
    color: #166534;
    line-height: 1.55;
}
.blog-quote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: #64748b;
}
.blog-quote-tip { border-left-color: #3b82f6; background: #eff6ff; }
.blog-quote-tip p { color: #1e40af; }

/* Tables */
.blog-table-wrap {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.blog-table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.blog-table th,
.blog-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
    line-height: 1.45;
}
.blog-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}
.blog-table tbody tr:hover { background: #fafafa; }
.blog-table-compact th,
.blog-table-compact td { padding: 9px 12px; }

/* Callouts */
.blog-callout {
    margin: 2em 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.blog-callout-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}
.blog-callout p { margin: 0 0 14px !important; color: #475569; }
.blog-callout-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #bbf7d0;
}
.blog-callout-cta .blog-callout-title { color: #166534; }
.blog-callout-tip {
    background: #fffbeb;
    border-color: #fde68a;
}
.blog-callout-tip .blog-callout-title { color: #92400e; }
.blog-callout-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.15s;
}
.blog-callout-btn:hover { background: #15803d; }
.blog-disclaimer {
    margin-top: 2em;
    font-size: 13px;
    color: #94a3b8;
}
.blog-faq {
    margin: 1.5em 0 2em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    background: #f8fafc;
}
.blog-faq-q {
    margin: 0 0 8px !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.blog-faq-a p {
    margin: 0 !important;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}
.blog-related {
    margin: 2em 0;
    padding: 18px 20px;
    background: #f1f5f9;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}
.blog-related-title {
    margin: 0 0 10px !important;
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}
.blog-related ul {
    margin: 0 !important;
    padding-left: 1.2em !important;
}
.blog-related li { margin-bottom: 6px; }
.blog-figure {
    margin: 1.5em 0;
    text-align: center;
}
.blog-figure-right {
    float: right;
    max-width: 48%;
    margin: 0 0 16px 20px;
}
.blog-figure-left {
    float: left;
    max-width: 48%;
    margin: 0 20px 16px 0;
}
.blog-figure-wide {
    max-width: 100%;
    margin: 1.75em auto;
}
.blog-figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.blog-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}
@media (max-width: 640px) {
    .blog-figure-right,
    .blog-figure-left {
        float: none;
        max-width: 100%;
        margin: 0 0 16px;
    }
}
.blog-checklist { list-style: none; padding-left: 0 !important; }
.blog-checklist li {
    position: relative;
    padding-left: 28px;
}
.blog-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
}
.blog-single-hero-wrap { margin: 0 0 24px; }
.blog-single-header { margin-bottom: 8px; }

@media (max-width: 1024px) {
    .blog-widget-toc-sticky { display: none; }
}
@media (min-width: 1025px) {
    .blog-main .blog-toc { display: none; }
}

/* Blog sidebar widgets */
.blog-sidebar-inner { display: flex; flex-direction: column; gap: 20px; }
.blog-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.blog-widget-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 10px;
    border-bottom: 2px solid #22c55e;
    display: inline-block;
}
.blog-widget-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-widget-posts li.is-active a {
    background: #f0fdf4;
    border-color: #86efac;
}
.blog-widget-posts a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    padding: 10px;
    margin: -10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.2s;
}
.blog-widget-posts a:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.blog-widget-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}
.blog-widget-post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.blog-widget-post-meta time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}
.blog-widget-post-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    line-height: 1.35;
}
.blog-widget-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-widget-links li { margin-bottom: 8px; }
.blog-widget-links li:last-child { margin-bottom: 0; }
.blog-widget-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.15s;
}
.blog-widget-links a:hover {
    background: #f0fdf4;
    color: #15803d;
}
.blog-widget-cta p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
}
.blog-widget-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #22c55e;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}
.blog-widget-btn:hover { background: #16a34a; }

@media (max-width: 1024px) {
    .blog-sidebar { position: static; }
    .blog-grid-archive { grid-template-columns: 1fr; }
    .blog-card-horizontal { flex-direction: column; }
    .blog-card-horizontal .blog-card-img {
        width: 100%;
        min-width: 0;
        height: 200px;
    }
}
@media (max-width: 768px) {
    .blog-layout-wrap { padding: 88px 16px 48px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-page-title { font-size: 26px; }
    .blog-single-title { font-size: 26px; }
    .blog-rubric-nav { gap: 6px; }
    .blog-rubric-link { padding: 8px 12px; font-size: 13px; }
}

/* Sitemap catalog (service pages only) */
.sitemap-catalog {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: 'Inter', sans-serif;
}
.sitemap-quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.sitemap-quick-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}
.sitemap-quick-link:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #15803d;
}
.sitemap-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.sitemap-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
}
.sitemap-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.4;
    pointer-events: none;
}
.sitemap-search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}
.sitemap-search-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.sitemap-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}
.sitemap-search-clear:hover { background: #f1f5f9; color: #64748b; }
.sitemap-stats {
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
}
.sitemap-stats strong { color: #0f172a; font-weight: 700; }

/* 3 колонки — блоки текут сверху вниз без пустот */
.sitemap-columns {
    column-count: 3;
    column-gap: 56px;
}
.sitemap-letter-section {
    break-inside: avoid;
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}
.sitemap-letter-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 28px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
    letter-spacing: 0.02em;
}
.sitemap-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sitemap-link-item {
    margin-bottom: 6px;
    line-height: 1.45;
}
.sitemap-link-item:last-child { margin-bottom: 0; }
.sitemap-links-list a {
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
}
.sitemap-links-list a:hover {
    color: #16a34a;
}
.sitemap-empty {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
}
.sitemap-empty-reset {
    margin-top: 12px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.sitemap-empty-reset:hover { background: #16a34a; }

@media (max-width: 992px) {
    .sitemap-columns { column-count: 2; column-gap: 40px; }
}
@media (max-width: 600px) {
    .sitemap-columns { column-count: 1; }
    .sitemap-quick-nav { gap: 8px; }
    .sitemap-quick-link { padding: 8px 16px; font-size: 13px; }
    .as-sitemap-h1 { font-size: 26px; padding-top: 90px; }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    pointer-events: none;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}
.cookie-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.cookie-banner-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}
.cookie-banner-text strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}
.cookie-banner-text a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    transition: 0.15s;
}
.cookie-btn-accept {
    background: #22c55e;
    color: #fff;
}
.cookie-btn-accept:hover { background: #16a34a; }
.cookie-btn-link {
    background: #f2f4f7;
    color: #475569;
}
.cookie-btn-link:hover { background: #e8ebf0; color: #1e293b; }

@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-btn { flex: 1; }
}

/* Legal / cookie policy page */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    color: #334155;
    line-height: 1.7;
}
.legal-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.legal-page-updated {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 32px;
}
.legal-page h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 12px;
}
.legal-page p { margin: 0 0 14px; }
.legal-page a { color: #16a34a; font-weight: 600; }
.legal-list {
    margin: 0 0 16px;
    padding-left: 22px;
}
.legal-list li { margin-bottom: 6px; }
.cookie-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
}
.cookie-type-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.cookie-type-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #0f172a;
}
.cookie-type-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.5;
}
.cookie-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #ecfdf5;
    color: #15803d;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}