/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org
Description: Чистая дочерняя тема для информационно-аналитической платформы Керамик Медиа. Оптимизирована под Pure WP-Core и LiteSpeed Cache.
Author: Konstantin Fadeev
Author URI: https://ceramic.media
Template: oceanwp
Version: 1.0.0
Text Domain: oceanwp-child
*/

/* ==========================================================================
   Ваши кастомные CSS-стили для улучшения эргономики каталога и страниц 
   Gutenberg добавляйте СЮДА (ниже этой строки):
   ========================================================================== */
/* ==========================================================================
   2. ДЕСКТОПНАЯ ВЕРСИЯ (В потоке Топ-бара — БЕЗ ЛЕТАЮЩИХ КООРДИНАТ)
   ========================================================================== */
.home #ceramicCurrentDate {
    /* ПОЛНЫЙ ОТКАЗ ОТ АБСОЛЮТНЫХ КООРДИНАТ */
    display: inline-block !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    
    /* Аккуратный отступ справа, чтобы оттолкнуться от текста СМИ */
    margin-right: 15px !important;
    margin-left: 0 !important;
    vertical-align: middle !important;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    
    /* Облегченный стиль для верхней панели */
    color: #333333 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Настройка цвета дня недели в Топ-баре */
.home #ceramicCurrentDate .date-wv {
    color: #002B7A !important;
    font-weight: 700;
    margin-right: 4px;
}


/* ==========================================================================
   ИНТЕРАКТИВНЫЙ БЛОК НОВОСТЕЙ В СТИЛЕ ТАСС (ДЛЯ CERAMIC.MEDIA) — PRO ВЕРСИЯ
   ========================================================================== */

/* Общий контейнер-обертка блока */
.tass-hero-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Двухколоночная сетка ТАСС */
.tass-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* --- ЛЕВЫЙ КРУПНЫЙ БЛОК (ГЛАВНАЯ НОВОСТЬ) --- */
.tass-main-hero-card {
    background: #ffffff;
    border-bottom: 4px solid #002B7A;
    display: flex;
    flex-direction: column;
    
    /* АРХИТЕКТУРНАЯ ГЛУБИНА: Мягкая многослойная тень и скругление краев */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 43, 122, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden; /* Срезает углы у внутренних элементов */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tass-main-hero-card:hover {
    transform: translateY(-4px); /* Легкое приподнятие карточки при наведении */
    box-shadow: 0 20px 40px rgba(0, 43, 122, 0.1);
}

.tass-hero-img-link {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
}

.tass-hero-img-link img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tass-main-hero-card:hover .tass-hero-img-link img {
    transform: scale(1.04);
}

/* Акцентная плашка «Главное» с легким благородным градиентом */
.tass-hero-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: linear-gradient(135deg, #e61a22, #b30d14); /* Градиент от ТАСС-красного к глубокому */
    color: #ffffff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 6px; /* Округлые края у плашки */
    box-shadow: 0 4px 10px rgba(230, 26, 34, 0.3);
}

.tass-hero-content {
    padding: 25px; /* Добавили отступы внутри карточки */
}

.tass-hero-meta {
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Метка «Обновлено» */
.tass-updated {
    color: #e61a22;
    font-weight: 700;
}

.tass-main-hero-card h2 {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 14px 0;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tass-main-hero-card h2 a {
    text-decoration: none;
    color: #111111;
    transition: color 0.2s;
}

.tass-main-hero-card h2 a:hover {
    color: #002B7A;
}

.tass-hero-excerpt {
    font-size: 14.5px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- ПРАВЫЙ СУБ-БЛОК (МЕНЕЕ АКТУАЛЬНЫЕ НОВОСТИ) --- */
.tass-sub-hero-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tass-sub-hero-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    background: #ffffff;
    
    /* АРХИТЕКТУРНАЯ ГЛУБИНА СВЕЖИХ НОВОСТЕЙ: карточки-блоки с округлением */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tass-sub-hero-card:hover {
    transform: translateX(4px); /* Элегантный сдвиг вправо при наведении */
    box-shadow: 0 8px 25px rgba(0, 43, 122, 0.06);
    border-color: #dbe2ef;
}

.tass-sub-img-link {
    width: 140px;
    height: 100px;
    overflow: hidden;
    background: #f0f0f0;
    display: block;
    border-radius: 6px; /* Округляем края картинок справа */
}

.tass-sub-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tass-sub-hero-card:hover .tass-sub-img-link img {
    transform: scale(1.05);
}

.tass-sub-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ссылка на рубрику с легким синим градиентным отливом для шрифта */
.tass-sub-category {
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(45deg, #002B7A, #0056f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tass-sub-hero-card h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tass-sub-hero-card h3 a {
    text-decoration: none;
    color: #222222;
    transition: color 0.2s;
}

.tass-sub-hero-card h3 a:hover {
    color: #002B7A;
}

.tass-sub-meta {
    font-size: 11px;
    color: #999999;
    margin-top: auto;
}

/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ И ПЛАНШЕТОВ --- */
@media (max-width: 959px) {
    .tass-hero-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .tass-main-hero-card h2 {
        font-size: 22px;
    }
    .tass-sub-hero-card {
        grid-template-columns: 120px 1fr;
    }
    .tass-sub-img-link {
        width: 120px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    .tass-sub-hero-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tass-sub-img-link {
        width: 100%;
        height: 160px;
    }
}
/* ==========================================================================
   КОМПАКТНАЯ ЭРГОНОМИКА КАРТОЧЕК С ПРИЖАТИЕМ ТЕКСТА (ТОЛЬКО ДЛЯ ЛЕНТЫ)
   ========================================================================== */

@media (min-width: 960px) {
    /* ХАК ИЗОЛЯЦИИ: Стили применяются только на Главной (.home) и в Ленте (.blog) */
    .home #blog-entries .blog-entry.grid-entry,
    .blog #blog-entries .blog-entry.grid-entry,
    .home .blog-entry.post,
    .blog .blog-entry.post {
        height: 400px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: linear-gradient(135deg, #ffffff 70%, #f4f7fc 100%) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 43, 122, 0.03) !important;
        border: none !important;
        overflow: hidden !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    /* Сжатие зоны картинки только внутри карточек ленты */
    .home #blog-entries .blog-entry-thumbnail,
    .blog #blog-entries .blog-entry-thumbnail,
    .home .blog-entry-img-link,
    .blog .blog-entry-img-link {
        height: 150px !important; 
        max-height: 150px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    /* Сжатие самой картинки только в ленте */
    .home #blog-entries .blog-entry-thumbnail img,
    .blog #blog-entries .blog-entry-thumbnail img {
        height: 150px !important;
        width: 100% !important;
        object-fit: cover !important; 
        border-radius: 12px 12px 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Подтягивание заголовка карточки в ленте */
    .home #blog-entries .blog-entry-title,
    .blog #blog-entries .blog-entry-title {
        padding: 12px 18px 4px 18px !important; 
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        height: 42px !important; 
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    /* Ограничение текста описания только в карточках ленты */
    .home .blog-entry-summary,
    .blog .blog-entry-summary {
        padding: 4px 18px !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        color: #555555 !important;
        height: 76px !important; 
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
    }

    /* Подвал карточки только в ленте */
    .home .blog-entry-bottom,
    .blog .blog-entry-bottom {
        margin-top: auto !important; 
        padding: 10px 18px 15px 18px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 11px !important;
        border: none !important;
        background: transparent !important;
    }
}

/* Зачистка внутренних контейнеров темы только на главной и в архивах */
.home #blog-entries .blog-entry-inner,
.blog #blog-entries .blog-entry-inner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

/* Анимация наведения только для карточек ленты */
.home #blog-entries .blog-entry.grid-entry:hover,
.blog #blog-entries .blog-entry.grid-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 43, 122, 0.08) !important;
}
.home #blog-entries .blog-entry.grid-entry:hover .blog-entry-thumbnail img,
.blog #blog-entries .blog-entry.grid-entry:hover .blog-entry-thumbnail img {
    transform: scale(1.03) !important;
}

/* --- ЮВЕЛИРНАЯ НАСТРОЙКА ЦВЕТА: СВЕТЛО-СВЕТЛО-СИНИЙ ФОН --- */
.ceramic-lead-synergy-widget {
    /* Мягкий, ультра-светлый арктический серо-синий градиент */
    background: linear-gradient(135deg, #eef3fc 0%, #e3ecfa 100%) !important;
    
    /* Сохраняем темный графит для идеальной читаемости текста */
    color: #222222 !important; 
    
    padding: 25px !important;
    border-radius: 12px !important;
    
    /* Мягкая тень, адаптированная под новый цвет подложки */
    box-shadow: 0 10px 30px rgba(0, 24, 102, 0.04) !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    margin-top: 5px;
    height: 100%;
    box-sizing: border-box !important;
    
    /* Тонкая, едва заметная синеватая B2B-рамка по краям */
    border: 1px solid #d4e2f7 !important;
}

/* Декоративный полукруг на фоне делаем чуть более синим, но прозрачным */
.ceramic-lead-synergy-widget::after {
    content: "";
    position: absolute;
    bottom: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(0, 24, 102, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

/* Строгая синяя плашка категории */
.ceramic-lead-synergy-widget .synergy-badge {
    align-self: flex-start;
    background: #001866 !important; /* Ваш фирменный темно-синий */
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 14px !important;
}

/* 1. СИНЮЮ КОЛОНКИ */
#footer, #footer-widgets, .footer-widgets {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    clear: both !important;
    background-color: #001866 !important;
    padding: 35px 0 20px 0 !important;
}

#footer-widgets .footer-box, #footer-widgets p, #footer-widgets li {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 8px !important;
}

#footer-widgets .widget-title {
    color: #ffffff !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 15px !important;
}

/* 2. БЕЛЫЙ ПОДВАЛ СМИ */
.ceramic-footer-wrapper {
    background-color: #ffffff !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 35px 20px 25px 20px !important;
    box-sizing: border-box !important;
    clear: both !important;
    display: block !important;
    border-top: 1px solid #e2e8f0 !important;
}

.ceramic-footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.ceramic-footer-legal-block {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    text-align: left !important;
    margin-bottom: 15px !important;
    align-items: stretch !important;
}

.ceramic-footer-legal-block p {
    font-size: 13.5px !important; 
    line-height: 1.5 !important;
    color: #222222 !important;
    margin: 0 0 10px 0 !important;
}

.ceramic-footer-legal-block p strong,
.ceramic-footer-legal-block p a {
    color: #001866 !important;
    font-weight: 600 !important;
}

/* СТРОГАЯ ЦЕНТРОВКА СТРОКИ ОИАЦ И ПЛАШКИ */
.ceramic-footer-bottom-flex {
    display: flex !important;
    justify-content: center !important; /* Центрируем всю строку по горизонтали */
    align-items: center !important; /* Выравниваем текст и плашку по одной оси */
    flex-wrap: wrap !important;
    gap: 15px !important; /* Зазор между текстом и плашкой */
    border-top: 1px solid rgba(0, 24, 102, 0.12) !important;
    padding-top: 20px !important;
    margin-top: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ceramic-footer-bottom-flex p {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #001866 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-align: center !important; /* Центрируем сам текст внутри строки */
    flex: initial !important; /* Отменяем растяжение, чтобы плашка встала рядом */
}

/* Размещение плашки 16+ строго справа от отцентрированного текста */
.ceramic-footer-bottom-flex div {
    border: 1px solid #001866 !important;
    color: #001866 !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    background: #f8fafc !important;
    white-space: nowrap !important;
    margin-left: 0 !important; /* Отменяем прижатие к правому краю */
    display: inline-block !important;
}

/* 3. СЕРАЯ ПЛАШКА КОПИРАЙТА */
.ceramic-copyright-bar {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    clear: both !important;
    display: block !important;
}

.ceramic-copyright-bar div {
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

#footer-bottom, .oceanwp-footer-bottom {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
}

@media (max-width: 959px) {
    .ceramic-footer-legal-block {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 767px) {
    .ceramic-footer-legal-block {
        grid-template-columns: 1fr !important;
    }
}
/* 1. Исправляем англослово "Filters" (заменяем на "Фильтры") */
.directorist-sidebar-fields .atbd_widget_title h4 {
    font-size: 0 !important; /* Прячем старое английское слово */
}
.directorist-sidebar-fields .atbd_widget_title h4::before {
    content: "Фильтры" !important; /* Принудительно выводим на русском */
    font-size: 18px !important; /* Возвращаем стандартный размер шрифта */
    font-weight: 600;
}

/* 2. Исправляем англослово "Pricing" (заменяем на "Диапазон цен") */
.directorist-sidebar-fields .directorist-search-field-label label {
    font-size: 0 !important; /* Прячем английское слово */
}
.directorist-sidebar-fields .directorist-search-field-label label::before {
    content: "Диапазон цен" !important; /* Выводим на русском */
    font-size: 14px !important;
    font-weight: 500;
}

/* 3. Убираем наложение английского текста автора поверх картинки завода */
.atbd_listing_image .atbd_auth_avatar {
    display: none !important; /* Полностью стираем этот мешающий блок */
}

/* Профессиональный b2b-формат для аналитических статей */
.single-post #content-wrap #content-area {
    width: 100% !important;
    float: none !important;
}

/* Центрирование текста на ПК и защитные B2B-отступы на смартфонах */
.single-post .entry-content, 
.single-post .entry-header,
.single-post .post-tags {
    max-width: 800px !important;    /* Ширина контента на компьютерах */
    margin-left: auto !important;     /* Центрирование текстового блока */
    margin-right: auto !important;    /* по центру экрана */
    padding-left: 20px !important;   /* Защитный левый отступ для мобильных */
    padding-right: 20px !important;  /* Защитный правый отступ для мобильных */
}

/* Ограничение ширины заглавной картинки записи */
.single-post .thumbnail {
    max-width: 1000px !important;
    margin: 0 auto 30px auto !important;
}


/* Профессиональное сжатие белого кармана перед футером на Главной */
.home #main,
.home #content-wrap,
.home #primary,
.home #main-content,
.home .site-content {
    padding-bottom: 0 !important; /* Срезаем внутренние отступы темы до нуля */
    margin-bottom: 0 !important;  /* Схлопываем внешнее пустое поле */
}

/* Обнуляем отступы пагинации, чтобы прижать подвал вплотную к кнопкам */
.home .oceanwp-pagination,
.home .pagination,
.home ul.page-numbers {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

/* Полная нейтрализация влияния скрытых технических виджетов и сайдбара */
.home #sidebar,
.home #sidebar-wrap,
.home .widget-area {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none !important;
}

/* Полное центрирование и скрытие боковой панели для страниц услуг */
.page-template-default.page .site-content #content-wrap #content-area {
    width: 100% !important;
    float: none !important;
}
.page-template-default.page .site-content #sidebar-wrap,
.page-template-default.page .site-content #sidebar {
    display: none !important;
    width: 0 !important;
}

/* Дизайн-система Посадочных страниц услуг Ceramic.Media */
.cm-b2b-landing-wrapper {
    max-width: 800px !important;
    margin: 40px auto !important;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: #1a202c;
    box-sizing: border-box;
}
.cm-landing-hero {
    border-bottom: 2px solid #001866;
    padding-bottom: 25px;
    margin-bottom: 35px;
}
.cm-landing-h1 {
    font-size: 28px !important;
    color: #001866 !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}
.cm-landing-lead {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}
.cm-landing-section-title {
    font-size: 14px;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 20px !important;
}
.cm-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
}
.cm-features-list li {
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.cm-check {
    color: #d97706;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}
.cm-landing-footer-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 24, 102, 0.02);
}
.cm-price-zone { display: flex; flex-direction: column; }
.cm-price-label { font-size: 11px; text-transform: uppercase; color: #718096; font-weight: bold; }
.cm-price-value { font-size: 22px; color: #001866; font-weight: 800; margin-top: 4px; }
.cm-cta-zone { text-align: right; }
.cm-cta-landing-btn {
    display: inline-block;
    background: #001866;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 13.5px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cm-cta-landing-btn:hover { background: #d97706; }
.cm-cta-subtext { font-size: 11px; color: #a0aec0; margin: 6px 0 0 0 !important; }

/* Стили встроенной анкеты для авторизованных резидентов */
.cm-auth-order-form-panel {
    background: #ffffff;
    border: 1px solid #001866;
    border-radius: 4px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0, 24, 102, 0.05);
}
.cm-form-row { margin-bottom: 18px; }
.cm-form-row label { display: block; font-size: 13px; font-weight: 700; color: #2d3748; margin-bottom: 6px; }
.cm-form-row input[type="text"], .cm-form-row textarea {
    width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 14px; box-sizing: border-box;
}
.cm-form-row input:focus, .cm-form-row textarea:focus { border-color: #001866; outline: none; }
.cm-submit-order-btn {
    background: #d97706; color: #ffffff; border: none; padding: 12px 24px; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase;
}
.cm-submit-order-btn:hover { background: #001866; }

@media (max-width: 767px) {
    .cm-landing-footer-box { flex-direction: column; gap: 20px; text-align: center; }
    .cm-cta-zone { text-align: center; width: 100%; }
}

/* Жесткий сброс принудительного изменения регистра букв в заголовках Ceramic Media */
h1.single-post-title, 
.single-post-title,
h1.entry-title,
.blog-entry-title a {
    text-transform: none !important;
}

/* ==========================================================================
   БЛОК СТРАНИЦЫ КОНТАКТОВ CERAMIC MEDIA (SWISS GRID & COMPLIANCE)
   ========================================================================== */

.cm-contacts-page { 
    margin: 40px auto; 
    color: #111; 
}

/* Двухколоночная швейцарская сетка */
.cm-contacts-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 50px; 
    align-items: start; 
}

.cm-section-title { 
    color: #001866; 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
}

.cm-info-block { 
    margin-bottom: 18px; 
    border-bottom: 1px solid #efefef; 
    padding-bottom: 10px; 
}

.cm-label { 
    display: block; 
    font-size: 13px; 
    color: #666; 
    text-transform: uppercase; 
    margin-bottom: 3px; 
}

.cm-value { 
    font-size: 18px; 
    color: #111; 
    font-weight: 500; 
    text-decoration: none; 
}

/* Строгие B2B-теги социальных сетей */
.cm-social-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 8px; 
}

.cm-social-tags a { 
    display: inline-block; 
    background: #f0f4f8; 
    color: #001866 !important; 
    padding: 6px 14px; 
    font-size: 13px; 
    font-weight: 600; 
    border-radius: 4px; 
    text-decoration: none !important; 
    border: 1px solid #d0daf0; 
    transition: all 0.2s ease; 
}

.cm-social-tags a:hover { 
    background: #001866; 
    color: #ffffff !important; 
    border-color: #001866; 
}

.cm-no-border { 
    border-bottom: none !important; 
    padding-bottom: 0 !important; 
    margin-bottom: 25px; 
}

/* Компактный спойлер юридических реквизитов */
.cm-requisites-wrapper { 
    background: #f8f9fa; 
    padding: 15px 20px; 
    border-radius: 8px; 
    margin-top: 15px; 
    text-align: left; 
}

.cm-legal-head { 
    font-size: 14px; 
    color: #333; 
    margin-bottom: 8px; 
    line-height: 1.4; 
}

.cm-spoiler-requisites { 
    border-top: 1px solid #d0daf0; 
    padding-top: 8px; 
}

.cm-spoiler-toggle { 
    font-size: 13px; 
    color: #001866; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
}

.cm-spoiler-toggle::-webkit-details-marker { 
    display: none; 
}

.cm-spoiler-content { 
    font-size: 13px; 
    color: #555; 
    line-height: 1.5; 
    margin-top: 8px; 
}

.cm-spoiler-content p { 
    margin: 2px 0; 
}

/* Форма «Связаться с редакцией» */
.cm-feedback-box { 
    background: #ffffff; 
    border: 1px solid #d0daf0; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    text-align: left; 
}

.cm-form-title { 
    color: #001866; 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
}

.cm-form-group { 
    margin-bottom: 12px; 
}

.cm-form-group input, 
.cm-form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    font-size: 14px; 
    transition: border 0.2s; 
    font-family: inherit; 
    color: #111; 
    background: #fff; 
}

.cm-form-group input:focus, 
.cm-form-group textarea:focus { 
    border-color: #001866; 
    outline: none; 
}

.cm-form-submit-btn { 
    width: 100%; 
    background: #001866; 
    color: #fff; 
    border: none; 
    padding: 12px; 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.cm-form-submit-btn:hover { 
    background: #000f44; 
}

/* Исправление и принудительный возврат квадратика чекбокса */
.cm-form-checkbox-group { 
    margin: 15px 0; 
    text-align: left; 
}

.cm-checkbox-label { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    cursor: pointer; 
}

.cm-checkbox-label input[type="checkbox"] { 
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px !important;
    cursor: pointer; 
    accent-color: #001866; 
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
}

.cm-checkbox-text { 
    font-size: 12px; 
    color: #4a5568; 
    line-height: 1.4; 
}

.cm-checkbox-text a { 
    color: #001866; 
    text-decoration: underline; 
    font-weight: 600; 
}

.cm-mini-yandex-link { 
    display: block; 
    text-align: center; 
    margin-top: 15px; 
    font-size: 14px; 
    color: #64748b; 
    text-decoration: none; 
    font-weight: 500; 
}

.cm-mini-yandex-link:hover { 
    color: #001866; 
    text-decoration: underline; 
}

/* Активный B2B Баннер Клуба */
.cm-banner-club-wide { 
    background: linear-gradient(135deg, #f0f4f8 0%, #e2eaf4 100%); 
    border-radius: 12px; 
    padding: 35px 40px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    margin-top: 30px; 
    text-align: left; 
}

.cm-banner-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 30px; 
}

.cm-banner-text h2 { 
    color: #001866; 
    font-size: 20px !important; 
    margin: 0 0 8px 0; 
    font-weight: 700; 
    text-transform: none !important;
    letter-spacing: normal !important;
}

.cm-banner-text p { 
    margin: 0; 
    color: #4a5568; 
    font-size: 15px; 
    line-height: 1.5; 
}

.cm-banner-btn { 
    background-color: #001866; 
    color: #ffffff !important; 
    padding: 14px 28px; 
    font-size: 15px; 
    font-weight: 600; 
    text-transform: uppercase; 
    border-radius: 6px; 
    text-decoration: none !important; 
    white-space: nowrap; 
    transition: background 0.2s; 
}

.cm-banner-btn:hover { 
    background-color: #000f44; 
}

/* Адаптивное перестроение сетки на экранах смартфонов */
@media (max-width: 768px) {
    .cm-contacts-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .cm-banner-content { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .cm-banner-btn { 
        width: 100%; 
        text-align: center; 
    }
}
/* Прячем коммерческие счетчики Обзоры и Listings в шапке автора */
.page-id-author-profile .directorist-author-meta-info-item,
.page-id-author-profile .directorist-info-item {
    display: none !important;
}

/* Принудительно показываем только имя и дату регистрации, если они в таких же блоках */
.page-id-author-profile .directorist-author-meta-info-item:first-child {
    display: inline-block !important;
}
/* 1. Скрываем неуместный американский плейсхолдер Eg. 100 внутри инпута цены */
.directorist-form-pricing-field input#price::placeholder,
.directorist-form-pricing-field input#price::-webkit-input-placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

