/*
Theme Name: Окна Минск Soft
Theme URI: https://example.com
Description: Тема для сайта окон в Минске и по РБ: светлая сине-белая палитра, стеклянная шапка, калькулятор и блоки под услуги.
Version: 1.3
Author: Окна Минск Soft
Text Domain: okna-minsk-soft
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.header-socials a:hover img {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(107, 143, 189, 0.3); /* Мягкое синее свечение */
}

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

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

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

    /* Эффект при наведении (Hover) */
    .main-navigation ul li:hover > a {
        background: rgba(107, 143, 189, 0.1); /* Светлый акцент */
        color: #6B8FBD; /* Акцентный текст */
    }

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

    /* Пункт «Кейсы» — отдельная кнопка в меню */
    .main-navigation ul li#menu-item-1818 > a {
        background: #6B8FBD;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(107, 143, 189, 0.35);
    }
    .main-navigation ul li#menu-item-1818:hover > a {
        background: #5A7FA8;
        color: #fff !important;
        box-shadow: 0 6px 20px rgba(107, 143, 189, 0.45);
    }
    .main-navigation ul li#menu-item-1818.current-menu-item > a {
        background: #4E7199;
        color: #fff !important;
    }
    .main-navigation ul li#menu-item-1818.menu-item-has-children > a::after {
        border-color: #fff;
        opacity: 0.95;
    }

    /* --- СТРЕЛОЧКИ ДЛЯ ВЫПАДАЮЩЕГО СПИСКА (Только ПК) --- */
    /* Добавляем стрелочку только родителям */
    .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: #6B8FBD;
        transform: translateX(5px);
    }
}

/* Стили hover уже определены выше в медиа-запросе @media (min-width: 901px) */

/* Активный пункт меню — стили выше в медиа-запросе */

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

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

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

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

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

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

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

    .main-navigation ul li#menu-item-1818 > a {
        background: #6B8FBD;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(107, 143, 189, 0.3);
    }
    .main-navigation ul li#menu-item-1818 > a:active {
        background: #5A7FA8;
        color: #fff !important;
    }
    .main-navigation ul li#menu-item-1818.menu-item-has-children > a::after {
        border-color: rgba(255, 255, 255, 0.95);
    }
    .main-navigation ul li#menu-item-1818.menu-item-has-children.submenu-open > a {
        background: #5A7FA8;
        color: #fff !important;
    }

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

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

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

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

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

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


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

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

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

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

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

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

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

/* Эффект стекла (декор) */
.site-footer-modern::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 220px; height: 220px;
    background: rgba(107, 143, 189, 0.18);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}
.site-footer-modern::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -40px;
    width: 280px; height: 280px;
    background: rgba(107, 143, 189, 0.12);
    filter: blur(90px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

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

/* ---------- Подвал: асимметричная сетка «Окна Минск 24» ---------- */
.footer-four-columns {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
}

.win-asym-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.55fr);
    gap: clamp(20px, 4vw, 36px);
    align-items: start;
}

.win-asym-logo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.win-asym-logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.win-asym-logo-slogan {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.win-asym-phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.win-asym-phone-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(107, 143, 189, 0.25);
    border-radius: 14px;
    color: #fff;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.win-asym-phone-card:hover {
    background: rgba(107, 143, 189, 0.12);
    border-color: rgba(107, 143, 189, 0.45);
    transform: translateY(-2px);
}

.win-asym-phone-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.win-asym-operator-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.win-asym-phone-number {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.win-asym-operator-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.win-asym-phone-call {
    color: #6B8FBD;
    flex-shrink: 0;
    opacity: 0.9;
}

.win-asym-socials-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.win-asym-socials-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.win-asym-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.win-asym-social-link:hover {
    background: rgba(107, 143, 189, 0.2);
    border-color: rgba(107, 143, 189, 0.4);
    transform: translateY(-3px);
}
.win-asym-social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.win-asym-info {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.win-asym-worktime {
    display: flex;
    align-items: center;
    gap: 8px;
}
.win-asym-worktime svg { flex-shrink: 0; color: #6B8FBD; }

.win-asym-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    transition: color 0.2s;
}
.win-asym-email:hover { color: #9BB8D9; }
.win-asym-email svg { flex-shrink: 0; color: #6B8FBD; }

/* Правая колонка: три вертикальных блока */
.win-asym-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.win-asym-block {
    background: rgb(152 228 255 / 4%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 20px 20px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.win-asym-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.win-asym-block-title svg {
    color: #6B8FBD;
    flex-shrink: 0;
}

.win-asym-services-grid,
.win-asym-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.win-asym-services-col,
.win-asym-nav-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.win-asym-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.win-asym-service-link:hover {
    background: rgba(107, 143, 189, 0.12);
    border-color: rgba(107, 143, 189, 0.25);
    color: #fff;
}
.win-asym-service-arrow {
    color: #6B8FBD;
    font-weight: 700;
    opacity: 0.85;
    transition: transform 0.2s;
}
.win-asym-service-link:hover .win-asym-service-arrow {
    transform: translateX(4px);
}

.win-asym-nav-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.win-asym-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.win-asym-nav-bullet {
    color: #6B8FBD;
    font-weight: 700;
}
.win-asym-nav-highlight {
    font-weight: 600;
    color: #9BB8D9 !important;
}

.win-asym-block-dev .win-asym-dev-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.win-asym-dev-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.win-asym-dev-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s;
}
.win-asym-dev-link:hover {
    color: #9BB8D9;
}
.win-asym-dev-arrow {
    display: inline-flex;
    color: #6B8FBD;
}
.win-asym-dev-icon {
    color: rgba(107, 143, 189, 0.45);
    flex-shrink: 0;
}

.win-asym-copyright {
    text-align: center;
    margin: 28px 0 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .win-asym-grid {
        grid-template-columns: 1fr;
    }
    .win-asym-phones {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .win-asym-services-grid,
    .win-asym-nav-grid {
        grid-template-columns: 1fr;
    }
    .win-asym-phones {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

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

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

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

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

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

/* Картинки */
.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-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 143, 189, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(107, 143, 189, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 143, 189, 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(107, 143, 189, 0.1); /* Светлая акцентная плашка */
        padding: 8px 20px;
        border-radius: 30px;
        margin-bottom: 20px;
    }

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

    /* Мигающая точка */
    .pulsing-dot {
        width: 10px;
        height: 10px;
        background-color: #6B8FBD;
        border-radius: 50%;
        animation: pulse-accent 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: #6B8FBD;
        background: rgba(107, 143, 189, 0.05);
    }
}
/* ===========================
   HERO SECTION STYLES
   =========================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 550px; /* Фиксированная высота для десктопа */
    height: 75vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Фон наложения */
.hero-overlay-light {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.95) 0%,   
        rgba(255,255,255,0.90) 45%,   
        rgba(255,255,255,0.6) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1300px; width: 100%; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 2;
}

.hero-grid-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Сетка */
    gap: 50px;
    align-items: center;
}

/* --- ЛЕВАЯ ЧАСТЬ --- */
.hero-title.text-dark {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px;
    color: #222;
}
.highlight-city {
    color: #6B8FBD; background: rgba(107, 143, 189, 0.1); 
    padding: 2px 12px; border-radius: 8px; display: inline-block;
}
.type-effect::after { content: '|'; color: #6B8FBD; animation: blink 1s infinite; margin-left: 2px; }

.hero-subtitle.text-gray {
    font-size: 1.15rem; line-height: 1.6; color: #555; margin-bottom: 40px; max-width: 550px;
}

/* Кнопки */
.hero-buttons { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }

.btn-primary {
    background: #6B8FBD; color: #fff; padding: 15px 30px; border-radius: 50px;
    font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 20px rgba(107, 143, 189, 0.3); transition: 0.3s;
}
.btn-primary:hover { background: #5A7FA8; transform: translateY(-3px); color: #fff; }
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline-dark {
    background: transparent; border: 2px solid #333; color: #333;
    padding: 15px 30px; border-radius: 50px; font-weight: 700; font-size: 14px;
    text-transform: uppercase; text-decoration: none; transition: 0.3s;
}
.btn-outline-dark:hover { background: #333; color: #fff; transform: translateY(-3px); }

/* Галочки */
.hero-features { display: flex; gap: 20px; font-weight: 600; font-size: 14px; color: #333; }
.h-feature { display: flex; align-items: center; gap: 6px; }
.hf-check { 
    background: #6B8FBD; color: #fff; width: 18px; height: 18px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; 
}

/* --- ПРАВАЯ ЧАСТЬ (VERTICAL CAROUSEL) --- */
.hero-visual {
    position: relative;
    height: 450px; /* Высота видимой области карусели */
    display: flex; justify-content: center; align-items: center;
}

/* Обертка с градиентными масками */
.vertical-carousel-wrapper {
    position: relative;
    width: 320px;
    height: 100%;
    overflow: hidden;
    /* Градиентные маски, чтобы скрыть обрезку сверху и снизу */
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.vertical-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Анимация движения */
    animation: scrollVertical 25s linear infinite; 
    /* Пауза при наведении мышкой */
}
.vertical-track:hover {
    animation-play-state: paused;
}

/* Сама карточка */
.v-card-glass {
    flex-shrink: 0; /* Не сжимать */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    transform: translateZ(0); /* Для GPU ускорения */
}

.v-card-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 143, 189, 0.15);
    cursor: default;
}

.vc-icon {
    width: 50px; height: 50px;
    background: rgba(107, 143, 189, 0.1); color: #6B8FBD;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.vc-icon svg { width: 28px; height: 28px; }

.vc-content h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #222; }
.vc-content p { font-size: 13px; color: #666; margin: 0; line-height: 1.3; }

/* АНИМАЦИЯ ПРОКРУТКИ */
@keyframes scrollVertical {
    0% { transform: translateY(-50%); } /* Начинаем, когда лента сдвинута вверх */
    100% { transform: translateY(0); }  /* Едем вниз к началу */
}
/* Если нужно снизу-вверх, поменяй значения местами (0 -> -50%) */

/* АНИМАЦИИ ПОЯВЛЕНИЯ */
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; } 
.delay-2 { animation-delay: 0.4s; } 
.delay-3 { animation-delay: 0.6s; }

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 900px) {
    .hero-section { height: auto; padding: 120px 0 60px; text-align: center; }
    .hero-grid-split { grid-template-columns: 1fr; gap: 40px; }
    .hero-title.text-dark { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-features { justify-content: center; }
    
    /* На мобилке карусель чуть ниже */
    .hero-visual { height: 350px; }
    .vertical-carousel-wrapper { width: 100%; max-width: 340px; }
}
/* =========================
   PROCESS TIMELINE STYLES
   ========================= */

.process-section {
    padding: 100px 0;
    background: #fff; /* Белый фон для чистоты */
    color: #333;
    overflow: hidden;
}

.proc-container {
    max-width: 1300px; margin: 0 auto; padding: 0 20px;
}

/* ЗАГОЛОВОК */
.proc-header { text-align: center; margin-bottom: 80px; }
.proc-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: #222; }
.proc-title .highlight-text { color: #6B8FBD; }
.proc-subtitle { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto; }

/* ТАЙМЛАЙН КОНТЕЙНЕР */
.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 40px; /* Место под кружочки */
}

/* ЛИНИИ (ФОН И ЗАПОЛНЕНИЕ) */
.line-bg, .line-fill {
    position: absolute;
    top: 30px; /* Центр иконки */
    left: 0;
    height: 4px;
    border-radius: 4px;
}
.line-bg {
    width: 100%;
    background: #f0f0f0;
    z-index: 0;
}
.line-fill {
    width: 0%; /* Изначально 0 */
    background: #6B8FBD;
    z-index: 1;
    transition: width 2s cubic-bezier(0.25, 1, 0.5, 1); /* Плавное заполнение */
}
/* Класс, который добавит JS */
.process-timeline.active .line-fill { width: 100%; }


/* ШАГ */
.proc-step {
    position: relative;
    width: 18%; /* 5 шагов по ~20% */
    text-align: center;
    z-index: 2;
    opacity: 0; transform: translateY(30px); /* Для анимации появления */
    transition: 0.6s ease;
}

.proc-step.visible {
    opacity: 1; transform: translateY(0);
}

/* ИКОНКА И НОМЕР */
.step-icon-wrap {
    position: relative;
    width: 60px; height: 60px;
    margin: 0 auto 30px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 4px solid #f0f0f0; /* Серая рамка сначала */
    border-radius: 50%;
    transition: 0.5s;
    transition-delay: 0.3s; /* Ждем пока линия дойдет */
}
/* Когда активно */
.proc-step.visible .step-icon-wrap {
    border-color: #6B8FBD;
    box-shadow: 0 0 0 8px rgba(107, 143, 189, 0.1);
    transform: scale(1.1);
}

.step-num {
    position: absolute;
    top: -30px; left: 50%; transform: translateX(-50%);
    font-size: 14px; font-weight: 800; color: #ccc;
    transition: 0.4s;
}
.proc-step.visible .step-num { color: #6B8FBD; top: -35px; }

.step-icon {
    width: 24px; height: 24px; color: #aaa;
    transition: 0.4s;
}
.step-icon svg { width: 100%; height: 100%; }
.proc-step.visible .step-icon { color: #6B8FBD; }


/* КАРТОЧКА С ТЕКСТОМ (Стекло) */
.glass-card {
    background: #f9f9f9;
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.proc-step.visible .glass-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.glass-card:hover {
    border-color: #6B8FBD;
    transform: translateY(-5px);
}

.glass-card h3 {
    font-size: 1.1rem; font-weight: 700; margin: 0 0 10px;
    color: #222;
}
.glass-card p {
    font-size: 0.85rem; line-height: 1.5; color: #666; margin: 0;
}
.glass-card strong { color: #6B8FBD; }

/* ЗАДЕРЖКИ АНИМАЦИИ (ЧТОБЫ ШЛИ ПО ОЧЕРЕДИ) */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.6s; } /* Ждем заполнения линии */
.delay-3 { transition-delay: 1.0s; }
.delay-4 { transition-delay: 1.4s; }
.delay-5 { transition-delay: 1.8s; }


/* КНОПКА ВНИЗУ */
.proc-cta { text-align: center; margin-top: 60px; }
.btn-proc {
    display: inline-block; padding: 16px 40px;
    background: #6B8FBD; color: #fff;
    border-radius: 50px; font-weight: 700; text-decoration: none; text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(107, 143, 189, 0.3);
}
.btn-proc:hover { background: #5A7FA8; transform: translateY(-3px); }


/* АДАПТИВ (ВЕРТИКАЛЬНАЯ ЛЕНТА НА МОБИЛЬНОМ) */
@media (max-width: 992px) {
    .process-timeline {
        flex-direction: column;
        padding-top: 0;
        padding-left: 30px; /* Место под линию слева */
    }

    /* Линия становится вертикальной */
    .line-bg, .line-fill {
        width: 4px;
        height: 100%;
        top: 0; left: 0; /* Слева */
    }
    .line-fill {
        height: 0%; width: 4px;
        transition: height 2.5s ease;
    }
    .process-timeline.active .line-fill { height: 100%; width: 4px; }

    /* Шаги друг под другом */
    .proc-step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
        transform: translateX(20px); /* Выезд справа */
        transition-delay: 0s !important; /* Убираем долгие задержки, на моб лучше быстрее */
    }
    .proc-step.visible { transform: translateX(0); }

    /* Иконка слева на линии */
    .step-icon-wrap {
        margin: 0 20px 0 -30px; /* Сдвигаем влево на линию */
        flex-shrink: 0;
        width: 50px; height: 50px;
        background: #fff;
    }
    .step-num { display: none; } /* Номер можно убрать или подвинуть */

    .glass-card { width: 100%; padding: 20px; }
}
/* =========================
   SEO TEXT SECTION STYLES
   ========================= */

.seo-text-section {
    padding: 80px 0;
    background: #fff;
    color: #333;
}

.seo-container {
    max-width: 1300px; margin: 0 auto; padding: 0 20px;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Тексту больше места */
    gap: 60px;
    align-items: center;
}

/* --- ТЕКСТОВАЯ ЧАСТЬ --- */
.seo-title {
    font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 25px; color: #222;
}
.seo-title .highlight-text {
    color: #6B8FBD; position: relative;
    display: inline-block;
}

.seo-body p {
    font-size: 1rem; line-height: 1.7; margin-bottom: 20px; color: #555;
}
.seo-body strong { color: #222; font-weight: 700; }

.seo-subtitle {
    font-size: 1.4rem; font-weight: 700; margin: 30px 0 20px; color: #222;
}

/* СПИСОК ПРЕИМУЩЕСТВ */
.seo-benefits-list {
    list-style: none; padding: 0; margin: 0 0 30px 0;
}
.seo-benefits-list li {
    display: flex; gap: 15px; margin-bottom: 15px;
}

.sb-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: #6B8FBD; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 3px; /* Выравнивание по первой строке */
}
.sb-icon svg { width: 14px; height: 14px; }

.sb-text { font-size: 1rem; line-height: 1.5; color: #555; }
.sb-text strong { color: #333; font-weight: 700; }

/* CTA Block внутри текста */
.seo-cta-box {
    background: #f4f8f6;
    border-left: 4px solid #6B8FBD;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}
.seo-cta-box p { margin: 0; font-weight: 600; color: #333; }

/* --- ВИЗУАЛЬНАЯ ЧАСТЬ (ФОТО) --- */
.seo-visual {
    position: relative;
    display: flex; justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible; /* Чтобы плашка торчала */
    max-width: 450px;
}

.image-wrapper img {
    width: 100%; height: auto;
    border-radius: 20px;
    display: block;
    position: relative; z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Плашка опыта */
.experience-badge {
    position: absolute;
    bottom: 40px; left: -30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 3;
    display: flex; align-items: center; gap: 15px;
    animation: floatBadge 4s ease-in-out infinite;
}

.eb-years {
    font-size: 2.5rem; font-weight: 900; color: #6B8FBD; line-height: 1;
}
.eb-text {
    font-size: 0.9rem; font-weight: 600; color: #333; line-height: 1.2;
}

/* Декор сзади (рамка) */
.image-decor {
    position: absolute;
    top: 20px; right: -20px;
    width: 100%; height: 100%;
    border: 2px solid #6B8FBD;
    border-radius: 20px;
    z-index: 1;
    opacity: 0.3;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .seo-text-section { padding: 50px 0; }
    .seo-grid { grid-template-columns: 1fr; gap: 40px; }
    .seo-visual { order: -1; /* Фото сверху на мобильном */ }
    .image-wrapper { max-width: 100%; }
    .image-wrapper img { max-height: 400px; object-fit: cover; object-position: top; }
    .experience-badge { left: 20px; bottom: 20px; }
}
/* =========================
   DARK FAQ & GEO SECTION
   ========================= */

.dark-info-section {
    position: relative;
    padding: 60px 0;
    background: #0f1115; /* Темный фон */
    color: #fff;
    overflow: hidden;
}

/* Фон (Glow) */
.di-glow {
    position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(107, 143, 189, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}
@keyframes pulseGlow { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }

.di-container {
    max-width: 1350px; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 2;
}

.di-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 60px;
    align-items: start; /* Выравнивание по верху */
}

.di-title {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 30px;
}
.di-subtitle {
    color: #aaa; margin-bottom: 30px; font-size: 0.95rem; line-height: 1.5;
}
.highlight-text { color: #6B8FBD; border-bottom: 2px solid rgba(107, 143, 189, 0.3); }

/* --- FAQ STYLES --- */
.faq-wrapper { display: flex; flex-direction: column; gap: 15px; }

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); }
.faq-item.active { border-color: #6B8FBD; background: rgba(107, 143, 189, 0.05); }

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 1.05rem;
}
.faq-icon {
    font-size: 24px; color: #6B8FBD; font-weight: 300; transition: 0.3s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    color: #ccc; font-size: 0.95rem; line-height: 1.6;
}
.faq-item.active .faq-answer { padding-bottom: 20px; }

/* --- GEO STYLES --- */
.geo-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.geo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s;
}
.geo-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); }
.geo-card.wide { grid-column: span 2; }

.geo-region {
    font-size: 1rem; color: #fff; margin: 0 0 15px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.geo-links {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.geo-links a {
    font-size: 13px; color: #aaa;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: 0.2s;
}
.geo-links a:hover {
    color: #fff; background: #6B8FBD;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .di-grid { grid-template-columns: 1fr; gap: 50px; }
    .geo-grid-wrapper { grid-template-columns: 1fr; }
    .geo-card.wide { grid-column: span 1; }
}
/* =========================
   PLATFORMS SECTION STYLES
   ========================= */

.platforms-section {
    position: relative;
    padding: 100px 0;
    background: #0f1115; /* Темный фон */
    color: #fff;

    overflow: hidden;
}

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

/* ЗАГОЛОВОК */
.plt-header { text-align: center; margin-bottom: 60px; }
.plt-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.plt-title .highlight-text { 
    background: linear-gradient(90deg, #ffcc00, #4285f4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.plt-subtitle { font-size: 1.1rem; color: #aaa; max-width: 600px; margin: 0 auto; }

/* СЕТКА КАРТОЧЕК */
.plt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* КАРТОЧКА ОБЩИЕ СТИЛИ */
.plt-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.plt-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* КОНТЕНТ ВНУТРИ */
.plt-content { position: relative; z-index: 2; }

.plt-top { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.plt-top h3 { font-size: 1.8rem; font-weight: 800; margin: 0; }

.plt-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 24px;
    background: #fff;
}
.yandex-icon { color: #000; }
.google-icon { color: #4285f4; }

.plt-desc { font-size: 1.05rem; color: #ccc; line-height: 1.5; margin-bottom: 30px; min-height: 50px; }

/* СПИСОК ПРЕИМУЩЕСТВ */
.plt-features { list-style: none; padding: 0; margin: 0; }
.plt-features li { display: flex; gap: 15px; margin-bottom: 20px; }
.plt-features li:last-child { margin-bottom: 0; }

.plt-features strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.plt-features span { display: block; font-size: 0.9rem; color: #999; line-height: 1.4; }

/* ГАЛОЧКИ */
.check-y { color: #ffcc00; font-weight: 900; font-size: 1.2rem; }
.check-g { color: #4285f4; font-weight: 900; font-size: 1.2rem; }

/* ФОНОВЫЕ ЛОГОТИПЫ (SVG) */
.bg-logo-yandex, .bg-logo-google {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 250px; height: 250px;
    opacity: 0.05;
    transition: 0.5s;
    z-index: 1;
    transform: rotate(-10deg);
}
.bg-logo-yandex { color: #ffcc00; }
.bg-logo-google { color: #4285f4; }

/* ХОВЕР ЭФФЕКТЫ (СВЕЧЕНИЕ) */
.plt-overlay-color {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; z-index: 0;
    transition: 0.5s;
}
.y-grad { background: radial-gradient(circle at top right, rgba(255, 204, 0, 0.15), transparent 60%); }
.g-grad { background: radial-gradient(circle at top right, rgba(66, 133, 244, 0.15), transparent 60%); }

/* YANDEX HOVER */
.plt-card.yandex:hover .bg-logo-yandex { opacity: 0.2; transform: rotate(0) scale(1.1); }
.plt-card.yandex:hover .plt-overlay-color { opacity: 1; }
.plt-card.yandex:hover { border-color: #ffcc00; box-shadow: 0 10px 40px rgba(255, 204, 0, 0.1); }

/* GOOGLE HOVER */
.plt-card.google:hover .bg-logo-google { opacity: 0.2; transform: rotate(0) scale(1.1); }
.plt-card.google:hover .plt-overlay-color { opacity: 1; }
.plt-card.google:hover { border-color: #4285f4; box-shadow: 0 10px 40px rgba(66, 133, 244, 0.1); }


/* --- FOOTER / SYNERGY BOX --- */
.synergy-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
}
.sb-info h3 { font-size: 1.5rem; margin: 0 0 10px; color: #fff; }
.sb-info p { margin: 0; color: #ccc; line-height: 1.5; }

.btn-plt {
    flex-shrink: 0;
    background: #6B8FBD; color: #fff;
    padding: 16px 32px; border-radius: 50px;
    font-weight: 700; text-decoration: none; text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(107, 143, 189, 0.2);
}
.btn-plt:hover { background: #5A7FA8; transform: translateY(-3px); }

/* АДАПТИВ */
@media (max-width: 900px) {
    .plt-grid { grid-template-columns: 1fr; gap: 30px; }
    .synergy-box { flex-direction: column; text-align: center; }
    .btn-plt { width: 100%; text-align: center; }
}
/* =========================
   LIGHT REVIEWS STYLES
   ========================= */

.reviews-light-section {
    padding: 100px 0;
    background: #f8f9fc;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* ANIMATED BLOBS */
.rev-blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    opacity: 0.6; z-index: 0;
    animation: floatBlob 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.blob-1 { top: -50px; left: -50px; width: 400px; height: 400px; background: #D9E6F2; }
.blob-2 { bottom: -50px; right: -50px; width: 500px; height: 500px; background: #e8e8e8; animation-delay: -5s; }
@keyframes floatBlob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 40px) scale(1.1); } }

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

.rev-header { text-align: center; margin-bottom: 60px; }
.rev-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; color: #222; }
.rev-title .highlight-text { color: #6B8FBD; }
.rev-subtitle { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* GRID (3 columns) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* CARD */
.rev-card {
    background: #fff; border-radius: 20px; padding: 30px;
    display: flex; flex-direction: column;
    transition: 0.3s; border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: 100%; /* Одинаковая высота */
}
.rev-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107, 143, 189, 0.15);
    border-color: rgba(107, 143, 189, 0.3);
}

.rev-top { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.rev-stars { color: #ffc107; letter-spacing: 2px; }
.rev-date { color: #999; font-size: 0.85rem; font-weight: 500; }

.rev-client { font-size: 1.2rem; font-weight: 700; margin: 0 0 15px; color: #222; }
.rev-text { font-size: 0.95rem; line-height: 1.6; color: #555; flex-grow: 1; margin-bottom: 25px; font-style: italic; }

/* AUTHOR AVATARS */
.rev-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid #eee; padding-top: 20px; }
.ra-avatar {
    width: 40px; height: 40px; background: #6B8FBD; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.ra-avatar.color-2 { background: #9b59b6; }
.ra-avatar.color-3 { background: #e67e22; }
.ra-avatar.color-4 { background: #34495e; }
.ra-avatar.color-5 { background: #e91e63; }
.ra-avatar.color-6 { background: #3498db; }

.ra-info { display: flex; flex-direction: column; }
.ra-info strong { font-size: 0.95rem; color: #333; }
.ra-info span { font-size: 0.8rem; color: #888; }

/* FOOTER & BUTTON */
.rev-footer { text-align: center; }
.btn-rev {
    background: transparent; border: 2px solid #6B8FBD; color: #6B8FBD;
    padding: 14px 35px; border-radius: 50px;
    font-weight: 700; cursor: pointer; text-transform: uppercase;
    transition: 0.3s; font-size: 14px;
}
.btn-rev:hover { background: #6B8FBD; color: #fff; box-shadow: 0 10px 30px rgba(107, 143, 189, 0.2); }

/* MODAL */
.rev-modal-overlay {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.rev-modal-box {
    background: #fff; width: 90%; max-width: 450px;
    padding: 40px; border-radius: 20px;
    text-align: center; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: zoomInRev 0.3s;
}
@keyframes zoomInRev { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.rev-modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #aaa; transition: 0.3s; }
.rev-modal-close:hover { color: #000; }
.rev-modal-box h3 { color: #222; font-size: 1.8rem; margin: 0 0 10px; }
.rev-modal-box p { color: #666; margin-bottom: 25px; font-size: 0.9rem; }

.rm-input, .rm-textarea {
    width: 100%; background: #f9f9f9; border: 1px solid #eee;
    padding: 15px; border-radius: 10px; color: #333;
    margin-bottom: 15px; outline: none; font-family: inherit;
}
.rm-input:focus, .rm-textarea:focus { border-color: #6B8FBD; background: #fff; }
.rm-textarea { height: 100px; resize: none; }

.rm-stars-select { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; color: #666; }
.stars-rating span { font-size: 24px; cursor: pointer; color: #ddd; transition: 0.2s; }
.stars-rating span.active, .stars-rating span:hover { color: #ffc107; }

.rm-btn {
    width: 100%; padding: 15px; background: #6B8FBD; color: #fff; border: none;
    border-radius: 50px; font-weight: 700; cursor: pointer;
    text-transform: uppercase; transition: 0.3s;
}
.rm-btn:hover { background: #5A7FA8; }

/* ADAPTIVE */
@media (max-width: 900px) {
    .reviews-grid { 
        grid-template-columns: 1fr;
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px;
    }
    .rev-card { min-width: 85vw; scroll-snap-align: center; }
}
/* ========================
   LIGHT ANIMATED SECTION
   ======================== */

.light-animated-services {
    position: relative;
    padding: 80px 0 120px; /* Отступ снизу больше из-за волны */
    background: #f8f9fc; /* Очень легкий серо-голубой оттенок */
    overflow: hidden;
}

/* --- АНИМАЦИЯ ФОНА (BLOBS) --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    animation: floatBlob 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.blob-1 {
    top: -50px; left: -50px; width: 400px; height: 400px;
    background: #E8F0F8; /* Очень светлый голубой */
}
.blob-2 {
    bottom: 0; right: -50px; width: 500px; height: 500px;
    background: #e8e8e8; /* Светло-серый */
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

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

/* ЗАГОЛОВОК */
.ls-title {
    text-align: center; font-size: 2.5rem; font-weight: 800; color: #222;
    margin-bottom: 50px;
}
.highlight-text { color: #6B8FBD; position: relative; display: inline-block; }
/* Подчеркивание заголовка */
.highlight-text::after {
    content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px;
    background: rgba(107, 143, 189, 0.15); z-index: -1; transform: skewX(-10deg);
}

/* СЕТКА */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* КАРТОЧКА */
.ls-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Очень мягкая тень */
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ховер эффект карточки */
.ls-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(107, 143, 189, 0.1);
    border-color: rgba(107, 143, 189, 0.2);
}

.ls-card-title {
    font-size: 1.4rem; font-weight: 700; color: #333; margin: 0 0 15px; line-height: 1.2;
}

.ls-price {
    font-size: 1rem; color: #666; font-weight: 500;
    display: inline-block; background: #f4f6f8; padding: 6px 12px; border-radius: 8px;
    transition: 0.3s;
}

/* Стрелочка */
.ls-arrow {
    position: absolute; bottom: 25px; right: 25px;
    width: 35px; height: 35px;
    border-radius: 50%; background: #f4f6f8;
    display: flex; align-items: center; justify-content: center;
    color: #999; transition: 0.3s;
}
.ls-arrow svg { width: 20px; height: 20px; }

/* Ховер на элементы */
.ls-card:hover .ls-price { background: #6B8FBD; color: #fff; }
.ls-card:hover .ls-arrow { background: #6B8FBD; color: #fff; transform: translateX(5px); }

/* --- ОСОБАЯ КАРТОЧКА SEO --- */
.ls-card.seo-accent-card {
    border: 2px solid #6B8FBD; /* Акцентная рамка */
}
.ls-card.seo-accent-card .ls-price.free-text {
    background: rgba(107, 143, 189, 0.1);
    color: #6B8FBD;
    font-weight: 700;
}
.ls-card.seo-accent-card:hover .ls-price.free-text {
    background: #6B8FBD; color: #fff;
}

/* --- ВОЛНА (SVG DIVIDER) --- */
.wave-divider {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0;
    transform: rotate(180deg); /* Перевернули, чтобы смотрела вниз */
}
.wave-divider svg {
    position: relative; display: block;
    width: calc(130% + 1.3px); height: 80px;
}
.wave-divider .shape-fill { fill: #ffffff; } /* Цвет следующего блока (обычно белый) */

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ --- */
.fade-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* АДАПТИВ */
@media (max-width: 768px) {
    .ls-grid { grid-template-columns: 1fr; }
    .ls-card { min-height: auto; flex-direction: row; align-items: center; padding: 20px; }
    .ls-arrow { position: relative; bottom: auto; right: auto; background: transparent; }
    .ls-card-title { font-size: 1.1rem; margin-bottom: 5px; }
    .ls-price { font-size: 0.9rem; }
}
/* CSS СТИЛИ (ОБНОВЛЕННЫЕ) */
.calc-section { width: 100%; padding: 60px 0 100px; background: #fff; color: #333; }
.calc-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Header & Grid */
.calc-header { margin-bottom: 40px; }
.calc-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: #222; }
.highlight-text { color: #6B8FBD; }
.calc-subtitle { font-size: 1.1rem; color: #666; max-width: 600px; line-height: 1.5; }
.calc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }

/* Tabs */
.calc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.c-tab { padding: 10px 24px; border-radius: 50px; background: #f4f6f8; color: #555; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.3s; border: 1px solid transparent; }
.c-tab:hover { background: #e0e4e8; }
.c-tab.active { background: #6B8FBD; color: #fff; box-shadow: 0 5px 15px rgba(107, 143, 189, 0.25); }
.c-tab-content { display: none; animation: fadeInCalc 0.4s ease; }
.c-tab-content.active { display: block; }
@keyframes fadeInCalc { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Items */
.c-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; margin-bottom: 15px; background: #fff; border: 1px solid #eee; border-radius: 16px; cursor: pointer; transition: all 0.2s; }
.c-item:hover { border-color: #6B8FBD; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transform: translateX(5px); }
.c-name { font-size: 16px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 8px; }
.c-info { display: flex; flex-direction: column; gap: 5px; }
.c-controls { display: flex; align-items: center; gap: 20px; }
.c-price { font-weight: 700; font-size: 16px; color: #333; }
.c-price.free { color: #6B8FBD; }
.c-desc-mobile { display: none; font-size: 13px; color: #6B8FBD; font-weight: 600; }
/* Подсказки: overflow visible — иначе обрезаются; текст ПОД иконкой — не уходит под fixed-шапку (z-index:1000) */
.calc-section .calc-left,
.calc-section .c-tab-content { overflow: visible; }
.calc-section .c-item {
    overflow: visible;
    position: relative;
    z-index: 0;
}
.calc-section .c-item:has(.c-tooltip-icon:hover),
.calc-section .c-item:has(.c-tooltip-icon:focus),
.calc-section .c-item:has(.c-tooltip-icon.is-open) {
    z-index: 10;
}
.c-tooltip-icon {
    width: 20px; height: 20px; border-radius: 50%; background: #eee; color: #888; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; position: relative; cursor: help; flex-shrink: 0;
    outline: none;
}
.c-tooltip-text {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 32px));
    background: #222;
    color: #fff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 3;
}
.c-tooltip-icon:hover .c-tooltip-text,
.c-tooltip-icon:focus .c-tooltip-text,
.c-tooltip-icon.is-open .c-tooltip-text {
    opacity: 1;
    visibility: visible;
}
.c-tooltip-icon.is-open .c-tooltip-text { pointer-events: auto; }

/* Switch */
.c-switch { position: relative; width: 50px; height: 28px; }
.c-switch input { opacity: 0; width: 0; height: 0; }
.c-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.c-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .c-slider { background-color: #6B8FBD; }
input:checked + .c-slider:before { transform: translateX(22px); }

/* Sticky Right Column */
.calc-right { position: sticky; top: 40px; }
.calc-summary-card { background: #fff; padding: 40px 30px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; overflow: hidden; border: 1px solid #f0f0f0; text-align: center; }
.csc-header h3 { margin: 0 0 5px; font-size: 1.4rem; color: #222; }
.csc-header p { margin: 0; color: #888; font-size: 0.9rem; }
.csc-total { margin: 30px 0; color: #6B8FBD; font-weight: 900; }
.csc-total .currency { font-size: 1.5rem; vertical-align: top; margin-right: 5px; }
.csc-total #totalSum { font-size: 3.5rem; line-height: 1; }
.csc-divider { height: 1px; background: #eee; margin: 0 20px 20px; }
.csc-body { margin-bottom: 25px; color: #666; font-size: 14px; line-height: 1.5; }
.btn-calc-submit { display: inline-flex; justify-content: center; align-items: center; width: 100%; padding: 18px; background: #6B8FBD; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 50px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; position: relative; z-index: 2; box-shadow: 0 10px 20px rgba(107, 143, 189, 0.3); }
.btn-calc-submit:hover { background: #5A7FA8; transform: translateY(-2px); }

/* Socials */
.calc-socials-block { margin-top: 30px; position: relative; z-index: 2; }
.cs-text { font-size: 13px; color: #999; margin-bottom: 12px; font-weight: 500; }
.cs-icons { display: flex; justify-content: center; gap: 15px; }
.cs-link img { width: 40px; height: 40px; transition: 0.3s; }
.cs-link:hover img { transform: scale(1.1); }
.calc-decor-bg, .calc-panda-bg { position: absolute; bottom: -20px; right: -20px; width: 150px; opacity: 0.1; pointer-events: none; z-index: 1; filter: grayscale(100%); }

/* Modal */
.c-modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.c-modal-box { background: #fff; width: 90%; max-width: 400px; padding: 40px; border-radius: 20px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: zoomIn 0.3s; }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.c-modal-close { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #aaa; transition: 0.3s; z-index: 5; }
.c-modal-close:hover { color: #000; }
.c-modal-icon { width: 60px; height: 60px; background: rgba(107, 143, 189, 0.1); color: #6B8FBD; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon { background: #6B8FBD; color: #fff; }
.c-modal-icon svg { width: 30px; height: 30px; }
.c-modal-input { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 12px; font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 20px; transition: 0.3s; outline: none; font-family: 'Montserrat', sans-serif; letter-spacing: 0.5px; }
.c-modal-input:focus { border-color: #6B8FBD; }
.c-modal-btn { width: 100%; padding: 16px; background: #6B8FBD; color: #fff; border: none; border-radius: 50px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.c-modal-btn:hover { background: #5A7FA8; }
.c-policy { font-size: 11px; color: #999; margin-top: 15px; }

/* АДАПТИВ */
@media (max-width: 992px) {
    .calc-grid { grid-template-columns: 1fr; gap: 30px; }
    .calc-right { position: relative; top: 0; }
    .csc-total #totalSum { font-size: 3rem; }
}
@media (max-width: 600px) {
    .c-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .c-controls { width: 100%; justify-content: space-between; }
    .c-price { display: none; }
    .c-desc-mobile { display: block; margin-top: 5px; }
    .calc-header h2 { font-size: 2rem; }
    .c-modal-input { font-size: 16px; }
}
/* =========================
   SINGLE POST WITH SIDEBAR (FIXED)
   ========================= */

.single-page-wrapper {
    background: #f9f9f9;
    padding: 60px 0 100px;
    color: #333;
}

/* 1. ИЗМЕНИЛ ШИРИНУ НА 1300px */
.sp-container {
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 20px;
}

/* 2. ИСПРАВИЛ СЕТКУ ДЛЯ STICKY */
.sp-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    /* Убрал align-items: start, чтобы колонки были одной высоты */
    align-items: stretch; 
}

/* --- СТАТЬЯ --- */
.sp-content {
    background: #fff;
    padding: 60px; /* Чуть больше воздуха внутри */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    /* Важно: если тут есть overflow:hidden, sticky сломается. Проверь! */
}

.article-header { margin-bottom: 30px; text-align: center; } /* Центрируем заголовок */
.article-meta {
    font-size: 13px; color: #999; margin-bottom: 15px;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
}
.article-meta .cat { color: #6B8FBD; margin-left: 10px; }

.article-title {
    font-size: 2.8rem; line-height: 1.2; font-weight: 800; color: #222; margin: 0;
}

.article-image {
    margin-bottom: 40px; border-radius: 16px; overflow: hidden;
    max-height: 500px; /* Ограничим высоту фото, чтобы не было гигантским */
}
.article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ТИПОГРАФИКА */
.article-body { font-size: 18px; line-height: 1.7; color: #444; }
.article-body p { margin-bottom: 25px; }
.article-body h2 { font-size: 2rem; margin: 50px 0 25px; font-weight: 800; color: #222; }
.article-body h3 { font-size: 1.5rem; margin: 40px 0 20px; font-weight: 700; }
.article-body ul { margin-bottom: 25px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 30px 0; }
.article-body a { color: #6B8FBD; text-decoration: underline; }
.article-body blockquote {
    border-left: 4px solid #6B8FBD; padding: 20px 30px;
    background: #f4f6f8; font-style: italic; margin: 40px 0; border-radius: 0 10px 10px 0;
}

/* --- САЙДБАР (ИСПРАВЛЕНО) --- */
.sp-sidebar {
    /* Родительский блок растягивается на всю высоту сетки */
    height: 100%; 
}

.sidebar-sticky {
    /* Сам липкий элемент */
    position: -webkit-sticky; /* Для Safari */
    position: sticky; 
    top: 100px; /* Отступ сверху при прилипании */
    z-index: 10;
}

.sb-widget {
    background: #fff; padding: 30px;
    border-radius: 20px; margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.sb-widget h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px; color: #222; }

/* Виджет CTA */
.cta-widget {
    background: #222; color: #fff; text-align: center;
    background-image: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(107, 143, 189, 0.2), transparent 55%);
    background-size: cover;
}
.cta-widget h3 { color: #fff; margin-bottom: 10px; }
.cta-widget p { font-size: 0.95rem; color: #ccc; margin-bottom: 20px; line-height: 1.5; }
.btn-sb {
    display: inline-block; padding: 14px 30px;
    background: #6B8FBD; color: #fff; text-decoration: none;
    border-radius: 50px; font-weight: 700; font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(107, 143, 189, 0.3);
}
.btn-sb:hover { background: #5A7FA8; transform: translateY(-3px); }

/* Виджет Контакты */
.sb-contacts { display: flex; flex-direction: column; gap: 15px; }
.sb-link {
    display: flex; align-items: center; gap: 12px;
    color: #444; text-decoration: none; font-weight: 600; font-size: 15px;
    transition: 0.2s; padding: 10px; background: #f9f9f9; border-radius: 10px;
}
.sb-link span { font-size: 20px; }
.sb-link:hover { color: #6B8FBD; background: #EEF4FA; transform: translateX(5px); }

/* Виджет Посты */
.sb-posts-list { display: flex; flex-direction: column; gap: 20px; }
.sb-post-item {
    display: flex; gap: 15px; text-decoration: none; align-items: center;
    transition: 0.2s;
}
.sb-post-item:hover .sb-post-info h4 { color: #6B8FBD; }

.sb-post-img {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 12px; overflow: hidden;
    background: #f0f0f0;
}
.sb-post-img img { width: 100%; height: 100%; object-fit: cover; }

.sb-post-info h4 {
    font-size: 14px; font-weight: 700; color: #333; margin: 0 0 5px;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sb-date { font-size: 11px; color: #999; }

/* АДАПТИВ */
@media (max-width: 1100px) {
    .sp-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-sidebar { 
        order: 2; /* Сайдбар под статьей */
        height: auto; 
    }
    .sidebar-sticky { position: static; } /* Отключаем sticky на мобилке */
    .sp-content { padding: 30px 20px; }
    .article-title { font-size: 2rem; }
    .article-image { max-height: 300px; }
}
/* --- Оформление статей (Modern Blog) --- */

/* Вводный текст (Лид) */
.lead-text {
    font-size: 1.15em;
    line-height: 1.6;
    color: #222;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Блок содержания */
.article-toc {
    background: #f4f6f8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid #6B8FBD;
}
.article-toc h3 { margin-top: 0; font-size: 1.2rem; }
.article-toc ul { margin-bottom: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 8px; }
.article-toc a { text-decoration: none; color: #333; font-weight: 600; border-bottom: 1px solid transparent; }
.article-toc a:hover { color: #6B8FBD; border-color: #6B8FBD; }

/* Цитаты и Pro Tips */
blockquote {
    background: #EEF4FA; /* Светлый сине-серый фон */
    padding: 20px 25px;
    border-radius: 10px;
    border-left: none; /* Убираем стандартную линию, делаем свою */
    position: relative;
    margin: 30px 0;
}
blockquote::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: #6B8FBD;
    border-radius: 4px 0 0 4px;
}
blockquote p { margin: 0; }
blockquote a { font-weight: 700; color: #6B8FBD; }

/* Разделитель */
.article-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 50px 0;
}

/* Ссылки внутри текста */
.article-body a {
    color: #6B8FBD;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: 0.2s;
}
.article-body a:hover {
    background: #6B8FBD;
    color: #fff;
    text-decoration: none;
}

/* Блок заключения (CTA) */
.article-conclusion {
    background: #222;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 50px;
    background-image: radial-gradient(ellipse 100% 70% at 80% 20%, rgba(107, 143, 189, 0.12), transparent 50%);
}
.article-conclusion h3 { color: #fff; font-size: 1.8rem; margin-top: 0; }
.article-conclusion p { color: #ccc; margin-bottom: 25px; }

.btn-article-cta {
    display: inline-block;
    padding: 14px 35px;
    background: #6B8FBD;
    color: #fff !important; /* Force цвет текста */
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-article-cta:hover {
    background: #5A7FA8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 143, 189, 0.3);
}
/* Плавный скролл для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Отступ для якорей (чтобы меню не закрывало заголовок) */
/* Если у вас фиксированная шапка 80px, ставьте тут 100px или 120px */
:target {
    scroll-margin-top: 100px; 
}

/* Для мобильных устройств можно сделать отступ меньше */
@media (max-width: 768px) {
    :target {
        scroll-margin-top: 80px;
    }
}
/* =========================
   FIX MOBILE OVERFLOW
   ========================= */

@media (max-width: 768px) {
    
    /* 1. Запрещаем горизонтальный скролл у всей страницы */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 2. Ограничиваем контейнеры статьи */
    .single-page-wrapper, 
    .sp-container, 
    .sp-grid,
    .sp-content {
        max-width: 100%;
        box-sizing: border-box; /* Чтобы отступы не расширяли блок */
    }

    /* 3. Уменьшаем отступы внутри статьи на телефоне */
    .sp-content {
        padding: 30px 15px !important; /* Было больше, делаем компактнее */
    }

    /* 4. Картинки и Видео - строго по ширине экрана */
    .article-body img,
    .article-body iframe,
    .article-body video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 5. ТАБЛИЦЫ (Самая частая причина) */
    /* Делаем таблицу скроллящейся внутри, не ломая сайт */
    .article-body table {
        display: block;
        width: 100%;
        overflow-x: auto; /* Горизонтальная прокрутка только у таблицы */
        -webkit-overflow-scrolling: touch;
    }

    /* 6. Длинные слова (например, ссылки) переносим принудительно */
    .article-body {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* Исправляем отступы у цитат на мобильном */
    .article-body blockquote {
        margin: 20px 0;
        padding: 15px;
    }
} 

/* =========================
   INVERTED MONOLITH STYLES
   ========================= */

.monolith-portfolio-inverted {
    width: 100%;
    background: #fff;
}

.mpi-header {
    text-align: center; padding: 60px 20px 40px;
    max-width: 800px; margin: 0 auto;
}
.mpi-header h2 { font-size: 2.5rem; font-weight: 800; margin: 0 0 10px; color: #222; }
.mpi-header .highlight-text { color: #6B8FBD; }
.mpi-header p { color: #888; font-size: 1rem; margin: 0; line-height: 1.55; max-width: 640px; margin-left: auto; margin-right: auto; }

/* СЕТКА БЕЗ ОТСТУПОВ */
.mpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    width: 100%;
    margin: 0; padding: 0; gap: 0;
}

/* ЭЛЕМЕНТ */
.mpi-item {
    position: relative;
    display: block;
    height: 450px;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
    background: #000;
}

/* КАРТИНКА (Видна, но под стеклом) */
.mpi-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* ОВЕРЛЕЙ (СТЕКЛО) - ВИДИМ ПО УМОЛЧАНИЮ */
.mpi-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* ЭФФЕКТ МАТОВОГО СТЕКЛА */
    background: rgba(20, 20, 20, 0.65); /* Темный фон */
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); /* Сильное размытие */
    
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 30px;
    transition: all 0.5s ease;
}

/* ИНФО БЛОК (Заголовок, описание) */
.mpi-info {
    transition: all 0.4s ease;
    transform: translateY(0);
    opacity: 1; /* Виден по умолчанию */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.mpi-cat {
    display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: #6B8FBD; font-weight: 700; margin-bottom: 15px;
    text-align: center;
}
.mpi-title {
    font-size: 1.8rem; font-weight: 800; margin: 0 0 15px; color: #fff;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: break-word;
}
.mpi-desc {
    font-size: 1rem; color: #ccc; margin: 0 auto; max-width: 300px;
    text-align: center;
}

/* КНОПКА (СКРЫТА ПО УМОЛЧАНИЮ) */
.mpi-btn-wrapper {
    position: absolute; /* Абсолют, чтобы быть по центру */
    top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    opacity: 0; /* Скрыта */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mpi-btn {
    display: inline-block;
    padding: 14px 35px;
    border: 2px solid #6B8FBD;
    background: #6B8FBD; color: #fff;
    border-radius: 50px;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================
   HOVER ЭФФЕКТЫ (МАГИЯ)
   ============================ */

/* 1. Картинка чуть зумится */
.mpi-item:hover img {
    transform: scale(1.1);
}

/* 2. Стекло исчезает (становится прозрачным) */
.mpi-item:hover .mpi-overlay {
    background: rgba(0,0,0,0.2); /* Легкое затемнение для контраста кнопки */
    backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
}

/* 3. Текст исчезает (уезжает вверх) */
.mpi-item:hover .mpi-info {
    opacity: 0;
    transform: translateY(-30px);
}

/* 4. Кнопка появляется */
.mpi-item:hover .mpi-btn-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================
   ПОСЛЕДНИЙ БЛОК (СТАТИЧНЫЙ)
   ============================ */
.mpi-item.last-item .static-green {
    background: rgba(107, 143, 189, 0.95); /* Акцент всегда */
    backdrop-filter: none;
}
.mpi-item.last-item:hover .static-green {
    background: rgba(30, 30, 30, 0.95); /* Темнеет при наведении */
}
.mpi-item.last-item .mpi-info { opacity: 1 !important; transform: none !important; margin-bottom: 20px;}
.mpi-item.last-item .mpi-cat { color: #fff; opacity: 0.7; }
.mpi-item.last-item .mpi-btn-wrapper.show-always {
    position: relative; top: auto; left: auto; transform: none; opacity: 1;
    align-self: center;
}
.mpi-btn.white { background: #fff; color: #6B8FBD; border-color: #fff; }

/* АДАПТИВНОСТЬ */
@media (max-width: 1100px) {
    .mpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mpi-grid { grid-template-columns: 1fr; }
    .mpi-item { height: 320px; }
    
    /* Нет hover: текст по правому краю; на ПК — по центру (базовые стили выше) */
    .mpi-overlay {
        align-items: flex-end;
        justify-content: flex-end;
        text-align: right;
        padding: 24px 20px 40px;
    }
    .mpi-info {
        opacity: 1;
        transform: translateY(0);
        padding-bottom: 0;
        text-align: right;
    }
    .mpi-cat,
    .mpi-title {
        text-align: right;
    }
    .mpi-btn-wrapper { display: none; } /* Убираем кнопку на моб, чтобы не мешала тексту */
    .mpi-desc { display: none; } /* Скрываем описание на моб, только заголовок */
    .mpi-item.last-item .mpi-btn-wrapper.show-always { align-self: flex-end; }
}
/* =========================
   CASE STUDY STYLES (LAPTOP ONLY)
   ========================= */

.case-study-wrapper {
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

/* --- HEADER --- */
.cs-header { padding: 80px 0 40px; text-align: center; }

.cs-meta { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.cs-tag { 
    background: #f4f6f8; color: #555; padding: 6px 14px; 
    border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; 
}

.cs-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #222; }
.highlight-text { color: #6B8FBD; }
.cs-subtitle { font-size: 1.2rem; color: #666; max-width: 800px; margin: 0 auto 40px; }

.btn-live-site {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border-radius: 50px;
    background: #6B8FBD; color: #fff; text-decoration: none;
    font-weight: 700; transition: 0.3s;
}
.btn-live-site:hover { background: #5A7FA8; transform: translateY(-3px); }
.btn-live-site svg { width: 18px; height: 18px; }

/* --- MOCKUP SECTION (ONLY LAPTOP) --- */
.cs-mockup-section { padding: 40px 0 80px; background: #f9f9f9; border-radius: 30px; margin: 0 20px; }
.mockup-grid {
    display: flex; justify-content: center; /* Центрируем */
}

/* НОУТБУК */
.browser-mockup {
    width: 100%; 
    max-width: 950px; /* Ширина ноутбука */
    background: #fff; 
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
    overflow: hidden; 
    border: 1px solid #e0e0e0;
    display: flex; flex-direction: column;
}

.browser-header {
    background: #f0f0f0; padding: 12px 15px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0; z-index: 2;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green, .dot.accent { background: #7FA3CC; }

.browser-address {
    margin-left: 15px; background: #fff; flex-grow: 1;
    padding: 4px 10px; border-radius: 4px; font-size: 11px; color: #555; text-align: center;
}
.browser-address a { text-decoration: none; color: inherit; }

/* --- VIEWPORT ДЛЯ IFRAME (SCALING LOGIC) --- */
.browser-viewport {
    width: 100%;
    height: 550px; /* Высота окна на ПК */
    overflow: hidden;
    position: relative;
    background: #fff;
}

.browser-viewport iframe {
    /* ПК ВЕРСИЯ: Симуляция монитора 1600px+ */
    width: 175.44%; 
    height: 175.44%;
    transform: scale(0.57);
    transform-origin: 0 0;
    border: none;
    display: block;
}

.mockup-hint { text-align: center; margin-top: 40px; font-size: 0.9rem; color: #999; }

/* --- INFO GRID --- */
.cs-info { padding: 80px 0; }
.info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    border-bottom: 1px solid #eee; padding-bottom: 60px;
}
.info-item h3 { font-size: 1.1rem; color: #999; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.info-item p { font-size: 1.15rem; font-weight: 600; line-height: 1.5; margin: 0; }
.info-item.highlight p { color: #6B8FBD; font-size: 1.25rem; }

/* --- PROCESS --- */
.cs-process { padding: 80px 0; }
.cs-sec-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 60px; text-align: center; }

.process-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.proc-card {
    background: #f9f9f9; padding: 40px; border-radius: 20px;
    position: relative; overflow: hidden; transition: 0.3s;
}
.proc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.pc-num {
    font-size: 4rem; font-weight: 900; color: rgba(107, 143, 189, 0.1);
    position: absolute; top: 20px; right: 20px; line-height: 1;
}
.proc-card h4 { font-size: 1.4rem; font-weight: 700; margin: 0 0 15px; position: relative; color: #222; }
.proc-card p { font-size: 1rem; color: #555; line-height: 1.6; margin: 0; position: relative; }

/* --- REVIEW --- */
.cs-review { padding: 0 0 100px; }
.review-box {
    background: #EEF4FA; border: 1px solid #6B8FBD;
    padding: 60px; border-radius: 30px;
    text-align: center; position: relative; max-width: 900px; margin: 0 auto;
}
.rb-quote {
    font-size: 6rem; color: #6B8FBD; opacity: 0.3; line-height: 0;
    position: absolute; top: 40px; left: 40px; font-family: serif;
}
.rb-text { font-size: 1.2rem; font-style: italic; line-height: 1.6; color: #333; margin-bottom: 30px; position: relative; z-index: 2; }
.rb-author strong { display: block; color: #6B8FBD; }
.rb-author span { color: #888; font-size: 0.9rem; }

/* --- CTA --- */
.cs-cta { padding-bottom: 100px; }
.cta-inner {
    background: #0f1115; color: #fff;
    text-align: center; padding: 60px 20px; border-radius: 30px;
    background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(107, 143, 189, 0.15), transparent 50%);
}
.cta-inner h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-inner p { font-size: 1.1rem; color: #aaa; margin-bottom: 30px; }
.btn-case-order {
    display: inline-block; padding: 16px 40px;
    background: #6B8FBD; color: #fff; text-decoration: none;
    border-radius: 50px; font-weight: 700;
    transition: 0.3s;
}
.btn-case-order:hover { background: #5A7FA8; box-shadow: 0 10px 30px rgba(107, 143, 189, 0.3); }

/* ANIMATION */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ADAPTIVE */
@media (max-width: 1100px) {
    .mockup-grid { gap: 30px; flex-direction: column; align-items: center; }
    .browser-viewport iframe { pointer-events: none; }
}

@media (max-width: 900px) {
    .cs-title { font-size: 2.2rem; }
    .info-grid, .process-list { grid-template-columns: 1fr; }
    .review-box { padding: 40px 20px; }
    .rb-quote { top: 20px; left: 10px; }
    
    /* --- МОБИЛЬНАЯ АДАПТАЦИЯ ФРЕЙМА --- */
    .browser-viewport {
        height: 400px; 
    }
    .browser-viewport iframe {
        /* На мобильном - аккуратная мобильная версия сайта */
        width: 133.33%; 
        height: 133.33%;
        transform: scale(0.75); 
    }
}
/* =========================
   CASES PAGE STYLES
   ========================= */

.cases-page-wrapper {
    color: #333; background: #fff;
}

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

/* --- HERO & FILTERS --- */
.cp-hero { padding: 80px 0 60px; text-align: center; }

.cp-label {
    display: inline-block; background: #f0f2f5; color: #6B8FBD;
    padding: 6px 14px; border-radius: 50px; font-weight: 700;
    font-size: 13px; text-transform: uppercase; margin-bottom: 20px;
}

.cp-title {
    font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #222;
}
.cp-title .highlight-text { color: #6B8FBD; position: relative; }
.cp-title .highlight-text::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px; background: rgba(107, 143, 189, 0.15); z-index: -1; transform: skewX(-10deg); }

.cp-subtitle { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto 50px; line-height: 1.6; }

.cp-portfolio-note {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 22px 26px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    background: #f8faf9;
    border: 1px solid #e8eee9;
    border-radius: 16px;
}

/* Фильтры */
.cp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-btn {
    border: 1px solid #eee; background: #fff;
    padding: 12px 25px; border-radius: 50px;
    font-size: 14px; font-weight: 600; color: #555;
    cursor: pointer; transition: 0.3s;
    font-family: inherit;
}
.filter-btn:hover { border-color: #6B8FBD; color: #6B8FBD; }
.filter-btn.active { background: #6B8FBD; border-color: #6B8FBD; color: #fff; box-shadow: 0 5px 15px rgba(107, 143, 189, 0.2); }

/* --- GRID SECTION --- */
.cp-grid-section { padding-bottom: 100px; min-height: 600px; }

.cases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}

/* КАРТОЧКА */
.case-card { display: block; text-decoration: none; transition: 0.3s; }
.case-card:hover .cc-title { color: #6B8FBD; }

.cc-image {
    position: relative; border-radius: 20px; overflow: hidden;
    height: 230px; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.cc-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.case-card:hover .cc-image img { transform: scale(1.05); }

.cc-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.case-card:hover .cc-overlay { opacity: 1; }

.cc-btn {
    background: #fff; color: #222; padding: 12px 25px; border-radius: 50px;
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    transform: translateY(20px); transition: 0.4s;
}
.case-card:hover .cc-btn { transform: translateY(0); }

/* Инфо */
.cc-tags { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cc-tags span {
    font-size: 11px; text-transform: uppercase; font-weight: 700; color: #999;
    background: #f5f5f5; padding: 4px 10px; border-radius: 6px;
}
/* Тег для стартапов */
.tag-startup { background: #6B8FBD !important; color: #fff !important; }

.cc-title { font-size: 1.5rem; font-weight: 800; color: #222; margin: 0 0 10px; transition: 0.3s; }
.cc-desc { font-size: 0.95rem; color: #666; line-height: 1.5; margin: 0; }

/* Скрытие при фильтрации */
.case-card.hide { display: none; }
.case-card.show { animation: popIn 0.5s ease; }

@keyframes popIn { from{opacity:0; transform:scale(0.95);} to{opacity:1; transform:scale(1);} }

/* --- CTA FOOTER --- */
.cp-cta { padding-bottom: 80px; }
.cta-box {
    background: #0f1115; color: #fff;
    border-radius: 30px; padding: 60px 40px; text-align: center;
    background-image: radial-gradient(ellipse 100% 70% at 100% 0%, rgba(107, 143, 189, 0.14), transparent 55%);
    position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; position: relative; z-index: 2; }
.cta-box p { font-size: 1.1rem; color: #aaa; margin-bottom: 30px; position: relative; z-index: 2; }

.btn-case-order {
    display: inline-block; padding: 16px 40px;
    background: #6B8FBD; color: #fff; border-radius: 50px; font-weight: 700; text-decoration: none;
    transition: 0.3s; position: relative; z-index: 2;
    box-shadow: 0 10px 25px rgba(107, 143, 189, 0.3);
}
.btn-case-order:hover { background: #5A7FA8; transform: translateY(-3px); }

/* АНИМАЦИЯ */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* АДАПТИВ */
@media (max-width: 1000px) {
    .cases-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cp-title { font-size: 2.5rem; }
}
@media (max-width: 600px) {
    .cases-grid { grid-template-columns: 1fr; }
    .cp-filters { gap: 8px; }
    .filter-btn { font-size: 13px; padding: 10px 18px; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 2rem; }
}
/* =========================
   NARROW CTA STRIP STYLES
   ========================= */

.cta-narrow-strip {
    position: relative;
    width: 100%;
    padding: 40px 0; /* Узкий отступ сверху и снизу */
    background: #0f1115; /* Темный фон */
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05); /* Тонкая линия сверху для стиля */
}

/* АНИМИРОВАННЫЙ ФОН */
.ns-glow {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    animation: moveStripGlow 10s infinite alternate ease-in-out;
}
.glow-1 { top: -200px; left: 0; background: #6B8FBD; }
.glow-2 { bottom: -200px; right: 0; background: #1a4d3a; animation-delay: -5s; }

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

/* КОНТЕЙНЕР */
.ns-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 2;
}

.ns-flex {
    display: flex;
    justify-content: space-between; /* Текст слева, иконки справа */
    align-items: center;
}

/* ЛЕВАЯ СТОРОНА (ТЕКСТ) */
.ns-title {
    color: #fff; font-size: 1.8rem; font-weight: 700; margin: 0 0 5px;
    line-height: 1.2;
}
.ns-subtitle {
    color: #aaa; font-size: 1rem; margin: 0; font-weight: 400;
}

/* ПРАВАЯ СТОРОНА (ИКОНКИ) */
.ns-socials {
    display: flex; gap: 15px;
}

/* КРУГЛЫЕ ИКОНКИ */
.ns-icon {
    position: relative;
    width: 55px; height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05); /* Прозрачный фон */
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}
.ns-icon img {
    width: 28px; height: 28px;
    transition: 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* Эффекты при наведении */
.ns-icon:hover { transform: translateY(-3px) scale(1.1); }

/* Telegram Hover */
.ns-icon.tg:hover { background: rgba(0, 136, 204, 0.2); border-color: #0088cc; box-shadow: 0 0 15px rgba(0, 136, 204, 0.5); }
/* Viber Hover */
.ns-icon.vb:hover { background: rgba(115, 96, 242, 0.2); border-color: #7360f2; box-shadow: 0 0 15px rgba(115, 96, 242, 0.5); }
/* WhatsApp Hover */
.ns-icon.wa:hover { background: rgba(37, 211, 102, 0.2); border-color: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }

/* TOOLTIP (Всплывашка) */
.tooltip {
    position: absolute; bottom: -35px; left: 50%; transform: translateX(-50%);
    background: #fff; color: #222; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 4px;
    opacity: 0; visibility: hidden; transition: 0.3s; pointer-events: none;
    white-space: nowrap;
}
.tooltip::before {
    content: ''; position: absolute; top: -4px; left: 50%; margin-left: -4px;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-bottom: 4px solid #fff;
}
.ns-icon:hover .tooltip { opacity: 1; visibility: visible; bottom: -40px; }

/* АНИМАЦИЯ ПОЯВЛЕНИЯ */
.fade-left { opacity: 0; transform: translateX(-30px); transition: 0.8s ease; }
.fade-right { opacity: 0; transform: translateX(30px); transition: 0.8s ease; }
.visible { opacity: 1; transform: translateX(0); }

/* АДАПТИВ (МОБИЛЬНЫЙ) */
@media (max-width: 768px) {
    .ns-flex { flex-direction: column; text-align: center; gap: 25px; }
    .ns-title { font-size: 1.5rem; }
    .ns-subtitle { font-size: 0.95rem; }
    .ns-socials { gap: 20px; }
    .ns-icon { width: 50px; height: 50px; }
    .tooltip { display: none; } /* На телефоне тултипы не нужны */.h-feature {
    display: flex;
    gap: 6px;
    flex-wrap: wrap !important;
    justify-content: space-evenly;
}
}
/* =========================
   BLOG CAROUSEL STYLES
   ========================= */

.blog-carousel-section {
    padding: 80px 0;
    background: #fff;
    color: #333;
    overflow: hidden;
}

.bc-container {
    max-width: 1300px; margin: 0 auto; padding: 0 20px;
}

/* HEADER */
.bc-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px;
}
.bc-title {
    font-size: 2.5rem; font-weight: 800; margin: 0; color: #222;
}
.bc-title .highlight-text { color: #6B8FBD; }

/* NAV BUTTONS */
.bc-nav { display: flex; gap: 15px; }
.bc-btn {
    width: 50px; height: 50px;
    border-radius: 50%; border: 1px solid #eee;
    background: #fff; color: #222;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.bc-btn:hover {
    background: #6B8FBD; border-color: #6B8FBD; color: #fff;
    transform: scale(1.1);
}

/* TRACK (CAROUSEL) */
.bc-track-wrapper {
    overflow: hidden; /* Скрываем скроллбар */
    margin: 0 -20px; padding: 20px; /* Компенсация теней */
}

.bc-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    /* Скрываем скроллбар визуально */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.bc-track::-webkit-scrollbar { display: none; }

.bc-loader { width: 100%; text-align: center; color: #999; padding: 40px; }

/* POST CARD */
.post-card {
    min-width: 350px; /* Ширина карточки */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107, 143, 189, 0.15);
    border-color: rgba(107, 143, 189, 0.3);
}

/* IMAGE */
.pc-img-wrap {
    height: 220px; overflow: hidden; position: relative;
}
.pc-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.post-card:hover .pc-img { transform: scale(1.1); }

/* CONTENT */
.pc-content {
    padding: 25px;
    display: flex; flex-direction: column; flex-grow: 1;
}
.pc-date {
    font-size: 12px; color: #999; text-transform: uppercase;
    margin-bottom: 10px; font-weight: 600; letter-spacing: 1px;
}
.pc-title {
    font-size: 1.2rem; font-weight: 700; color: #222;
    margin: 0 0 15px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-link {
    margin-top: auto;
    font-size: 14px; font-weight: 700; color: #6B8FBD;
    display: flex; align-items: center; gap: 5px;
    transition: 0.3s;
}
.pc-link svg { width: 16px; height: 16px; transition: 0.3s; }
.post-card:hover .pc-link svg { transform: translateX(5px); }

/* FOOTER */
.bc-footer { text-align: center; margin-top: 20px; }
.btn-all-posts {
    display: inline-block; padding: 14px 35px;
    border: 2px solid #6B8FBD; color: #6B8FBD; background: transparent;
    border-radius: 50px; font-weight: 700; text-decoration: none;
    transition: 0.3s;
}
.btn-all-posts:hover { background: #6B8FBD; color: #fff; }

/* ANIMATION */
.fade-up-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-up-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ADAPTIVE */
@media (max-width: 768px) {
    .bc-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .bc-nav { align-self: flex-end; }
    .bc-title { font-size: 2rem; }
    .post-card { min-width: 280px; }
}
	/* Добавь это в стиль */
.pc-img-wrap {
    height: 220px; 
    overflow: hidden; 
    position: relative;
    background: #f4f6f8; /* Цвет фона, если картинки нет */
    display: flex; 
    align-items: center; 
    justify-content: center;
}
/* Если картинки совсем нет, показываем заглушку красиво */
.pc-img-wrap img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.6s ease;
}
/* Если грузится заглушка (логотип), делаем его не на весь экран, а аккуратно */
.pc-img-wrap img.is-placeholder {
    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}
/* Секция LIGHT ANIMATED SECTION уже определена выше - удален дубликат */
/* =========================
   MODERN MODAL STYLES (UPDATED)
   ========================= */

.cm-overlay {
    display: none;
    position: fixed; z-index: 99999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.cm-overlay.active { display: flex; opacity: 1; }

.cm-box {
    background: #fff;
    width: 90%; max-width: 380px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-top: 50px;
}
.cm-overlay.active .cm-box { transform: translateY(0) scale(1); }

/* Логотип в модальном окне контактов */
.cm-brand-wrapper, .cm-panda-wrapper {
    position: absolute; top: -60px; left: 0; width: 100%;
    display: flex; justify-content: center; pointer-events: none;
}
.cm-brand-circle, .cm-panda-circle {
    width: 100px; height: 100px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    border: 5px solid #fff;
    overflow: hidden;
}
.cm-brand-circle img, .cm-panda-circle img {
    width: 100%; height: 100%; object-fit: cover;
    transform: translateY(5px);
}

.cm-close {
    position: absolute; top: 15px; right: 15px;
    background: #f0f2f5; border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #666; cursor: pointer; transition: 0.2s; z-index: 5;
}
.cm-close:hover { background: #e0e0e0; color: #000; transform: rotate(90deg); }
.cm-close svg { width: 20px; height: 20px; }

.cm-content { padding: 10px 30px 40px; text-align: center; }
.cm-content h3 { font-size: 1.6rem; margin: 0 0 10px; font-weight: 800; color: #222; }
.cm-content p { font-size: 1rem; color: #666; margin-bottom: 25px; line-height: 1.5; }

/* BUTTONS */
.cm-links { display: flex; flex-direction: column; gap: 12px; }

.cm-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-radius: 16px;
    text-decoration: none; font-weight: 600; font-size: 15px; color: #fff;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cm-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cm-btn:active { transform: scale(0.98); }

/* ICON BOX FIX */
.cm-icon-box {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
}
/* Картинки (PNG) */
.cm-icon-box img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Тень для логотипов */
}
/* Вектор (Телефон) */
.cm-icon-box svg { width: 26px; height: 26px; }

.cm-arrow { opacity: 0.6; font-size: 18px; transition: 0.3s; }
.cm-btn:hover .cm-arrow { opacity: 1; transform: translateX(5px); }

/* Colors */
.telegram { background: linear-gradient(135deg, #229ED9 0%, #1a8cc4 100%); }
.whatsapp { background: linear-gradient(135deg, #25D366 0%, #1ebc59 100%); }
.viber    { background: linear-gradient(135deg, #7360F2 0%, #5f4bc9 100%); }
.phone    { background: linear-gradient(135deg, #333333 0%, #111111 100%); }

/* Animation */
.cm-overlay.active .fade-in-btn {
    animation: fadeInUpBtn 0.5s ease forwards;
    animation-delay: var(--d);
    opacity: 0; transform: translateY(20px);
}
@keyframes fadeInUpBtn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
    .cm-box { padding: 30px 20px; }
    .cm-btn { font-size: 15px; }
}
/* Статус Онлайн */
.cm-status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.status-text {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* Пульсирующая точка */
.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #6B8FBD; /* Фирменный мягкий синий */
    border-radius: 50%;
    position: relative;
    display: block;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #6B8FBD;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
/* =========================
   BLOG PAGE STYLES
   ========================= */

.blog-page-container {
    max-width: 1200px; margin: 0 auto; padding: 60px 20px 100px;
}

/* HEADER */
.blog-header { text-align: center; margin-bottom: 60px; }
.bh-title { font-size: 3rem; font-weight: 800; margin-bottom: 15px; color: #222; }
.highlight-text { color: #6B8FBD; position: relative; display: inline-block; }
.highlight-text::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px; background: rgba(107, 143, 189, 0.15); z-index: -1; }
.bh-subtitle { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto; }

/* --- HERO POST (Первая статья) --- */
.hero-post {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
    align-items: center; margin-bottom: 80px;
    background: #fff; border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    overflow: hidden; border: 1px solid #f0f0f0;
    transition: 0.3s; text-decoration: none; color: inherit;
}
.hero-post:hover { transform: translateY(-5px); box-shadow: 0 25px 70px rgba(107, 143, 189, 0.15); border-color: rgba(107, 143, 189, 0.3); }

.hp-img-wrap { 
    height: 450px; overflow: hidden; position: relative; background: #f4f6f8; 
    display: flex; align-items: center; justify-content: center;
}
.hp-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.hero-post:hover .hp-img { transform: scale(1.05); }

.hp-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hp-date { font-size: 13px; text-transform: uppercase; color: #999; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px; }
.hp-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #222; transition: 0.3s; }
.hero-post:hover .hp-title { color: #6B8FBD; }
.hp-excerpt { font-size: 1rem; line-height: 1.6; color: #555; margin-bottom: 30px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-link { font-weight: 700; color: #6B8FBD; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 14px; }

/* --- GRID POSTS (Остальные) --- */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.grid-post {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #f0f0f0;
    transition: 0.3s; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
}
.grid-post:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #6B8FBD; }

.gp-img-wrap { 
    height: 240px; overflow: hidden; position: relative; background: #f4f6f8;
    display: flex; align-items: center; justify-content: center;
}
.gp-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.grid-post:hover .gp-img { transform: scale(1.1); }

/* Заглушка (логотип) должна быть по центру и не растянута */
.hp-img.is-placeholder, .gp-img.is-placeholder {
    width: 50%; height: auto; object-fit: contain; opacity: 0.5;
}

.gp-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.gp-date { font-size: 12px; color: #999; font-weight: 600; margin-bottom: 10px; }
.gp-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 15px; color: #222; transition: 0.3s; }
.grid-post:hover .gp-title { color: #6B8FBD; }
.gp-excerpt { font-size: 0.9rem; color: #666; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gp-footer { border-top: 1px solid #eee; padding-top: 15px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.gp-read { font-size: 13px; font-weight: 700; color: #6B8FBD; }

/* ACTIONS */
.blog-actions { text-align: center; margin-top: 60px; }
.btn-load-more {
    background: #fff; border: 2px solid #6B8FBD; color: #6B8FBD;
    padding: 14px 40px; border-radius: 50px; font-weight: 700; font-size: 14px;
    cursor: pointer; text-transform: uppercase; transition: 0.3s;
}
.btn-load-more:hover { background: #6B8FBD; color: #fff; }

.loader-spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid #6B8FBD;
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite; margin: 0 auto 20px;
    display: none; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ADAPTIVE */
@media (max-width: 992px) {
    .hero-post { grid-template-columns: 1fr; }
    .hp-img-wrap { height: 300px; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .blog-header { text-align: left; }
    .bh-title { font-size: 2.2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .hp-title { font-size: 1.5rem; }
}
