/* 
 * CSS СТИЛИ ДЛЯ КАСТОМНЫХ ТИПОВ ЗАПИСЕЙ
 * Добавьте этот код в style.css вашей темы или создайте отдельный файл cpt-styles.css
 * ВАЖНО: Стили изолированы только для страниц CPT
 */

/* ========================================
 * ОСНОВНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
 * ======================================== */

:root {
    /* Основные цвета из дизайна */
    --cpt-main-bg: #131722;
    --cpt-darker-bg: #1e222d;
    --cpt-border-color: #2a2e39;
    --cpt-accent-color: #95ce5a;
    --cpt-secondary-accent: #5a95ce;
    --cpt-text-light: #d1d4dc;
    --cpt-text-lighter: #fff;
    --cpt-text-muted: #9ca3af;
    
    /* Статусы */
    --cpt-status-active: #26a69a;
    --cpt-status-warning: #ff9800;
    --cpt-status-danger: #ef5350;
    
    /* Рейтинги */
    --cpt-rating-low: #ef5350;
    --cpt-rating-medium: #ff9800;
    --cpt-rating-high: #26a69a;
    
    /* Дополнительные цвета */
    --cpt-gold: #ffd700;
    --cpt-silver: #c0c0c0;
    --cpt-bronze: #cd7f32;
    
    /* Обновленные цвета для плюсов и минусов под дизайн сайта */
    --cpt-pros-color: #26a69a;
    --cpt-pros-bg: #0f1419;
    --cpt-pros-border: #1e2d2a;
    --cpt-cons-color: #ef5350;
    --cpt-cons-bg: #0f1419;
    --cpt-cons-border: #2d1e1e;
}

/* ========================================
 * БАЗОВЫЕ СТИЛИ ТОЛЬКО ДЛЯ CPT СТРАНИЦ
 * ======================================== */

/* Применяем фон для страниц CPT */
.expert-review-page {
    background: #fcfcfc;
    color: #333;
    min-height: 100vh;
}

.expert-reviews-archive {
    color: var(--cpt-text-light);
    min-height: 100vh;
}

/* Контейнер только для CPT страниц */
.expert-review-page .container,
.expert-reviews-archive .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* ========================================
 * СТИЛИ ДЛЯ H1 ЗАГОЛОВКОВ
 * ======================================== */

/* Новые простые заголовки для обзоров */
.expert-review-page .expert-review-simple-header {
    background: #fcfcfc;
}

.expert-review-page .simple-title {
    text-align: left;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* Старые стили заголовков - удаляем или делаем скрытыми */
.expert-review-page .expert-review-header {
    display: none;
}

.expert-review-page .centered-title {
    display: none;
}

/* ========================================
 * НАВИГАЦИОННЫЕ КРОШКИ (ОБНОВЛЕННЫЕ)
 * ======================================== */

/* Навигационные крошки для всех страниц - убираем темный фон и границы */
.expert-review-page .breadcrumb-nav,
.expert-reviews-archive .breadcrumb-nav {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 12px;
    color: #666;
}

.expert-review-page .breadcrumb-nav a,
.expert-reviews-archive .breadcrumb-nav a {
    color: var(--cpt-accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.expert-review-page .breadcrumb-nav a:hover,
.expert-reviews-archive .breadcrumb-nav a:hover {
    color: #333;
}

.expert-review-page .breadcrumb-separator,
.expert-reviews-archive .breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* ========================================
 * БЛОК ИНФОРМАЦИИ ОБ АВТОРЕ (УВЕЛИЧЕННЫЙ И ИСПРАВЛЕННЫЙ)
 * ======================================== */

.article-meta-block {
    width: 100%;
    overflow: hidden;
}

.meta-info-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    padding: 12px 0px;
    font-size: 13px;
    color: #6c757d;
    justify-content: space-between;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.author-info,
.expert-info,
.author-expert-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ИСПРАВЛЕНИЕ 4: Идеальное выравнивание фото автора */
.author-avatar,
.expert-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img,
.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.author-details,
.expert-details {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meta-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.author-details a,
.expert-details a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.3s ease;
}

.author-details a:hover,
.expert-details a:hover {
    color: var(--cpt-accent-color);
}

.dates-info {
    margin-left: auto;
    flex-shrink: 0;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: right;
    white-space: nowrap;
}

.date-item time {
    font-size: 12px;
    color: #495057;
    font-weight: 600;
}

/* ========================================
 * СТИЛИ ДЛЯ ЭКСПЕРТНЫХ ОБЗОРОВ
 * ======================================== */

.expert-review-page .expert-review-main {
    margin-bottom: 40px;
}

/* Принудительные стили для текста, исключая блоки характеристик */
.expert-review-page .expert-review-content > p,
.expert-review-page .expert-review-content > div:not([class*="service"]):not([class*="block"]):not([class*="premium"]):not([class*="characteristics"]) p {
    color: #333 !important;
}

.expert-review-page .expert-review-content {
    color: #333;
}

.expert-review-page .expert-review-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.expert-review-page .expert-review-content p:nth-child(n+2) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333 !important;
}

.expert-review-page .expert-review-content h2:not(.service-title):not([class*="block"]):not([class*="service"]):not(.pros-cons-title),
.expert-review-page .expert-review-content h3:not(.service-title):not([class*="block"]):not([class*="service"]):not(.pros-cons-title),
.expert-review-page .expert-review-content h4:not(.service-title):not([class*="block"]):not([class*="service"]) {
    color: #333;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.expert-review-page .expert-review-content ul,
.expert-review-page .expert-review-content ol {
    color: #555;
    margin: 20px 0;
    padding-left: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.expert-review-page .expert-review-content table,
.expert-review-page .expert-review-content .recommended-block,
.expert-review-page .expert-review-content [class*="attention"],
.expert-review-page .expert-review-content [class*="example"],
.expert-review-page .expert-review-content [class*="history"],
.expert-review-page .expert-review-content [class*="idea"],
.expert-review-page .expert-review-content [class*="related"],
.expert-review-page .expert-review-content [class*="expert"],
.expert-review-page .expert-review-content [class*="risk"]:not(.risk-notice-block),
.expert-review-page .expert-review-content [class*="formula"],
.expert-review-page .expert-review-content [class*="term"],
.expert-review-page .expert-review-content [class*="code"],
.expert-review-page .expert-review-content .premium-attention-block,
.expert-review-page .expert-review-content .premium-example-block,
.expert-review-page .expert-review-content .premium-history-block,
.expert-review-page .expert-review-content .premium-idea-block,
.expert-review-page .expert-review-content .premium-related-block,
.expert-review-page .expert-review-content .premium-expert-block,
.expert-review-page .expert-review-content .premium-risk-block:not(.risk-notice-block),
.expert-review-page .expert-review-content .premium-formula-block,
.expert-review-page .expert-review-content .premium-term-block,
.expert-review-page .expert-review-content .premium-code-block,
.expert-review-page .expert-review-content .premium-card-group,
.expert-review-page .expert-review-content .review-cards-container,
.pros-cons-block,
.share-block,
.financial-disclaimer,
.author-full-block {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* single-post: блоки на полную ширину #primary (нет 1300px контейнера) */
.single-post .risk-notice-block,
.single-post .financial-disclaimer,
.single-post .surfearner-faq-section,
.single-post .tg-banner,
.single-post .author-full-block,
.single-post .share-sources-container {
    max-width: 100% !important;
}

/* === TOC sidebar: контент влево на широких экранах === */
@media (min-width: 1300px) {
    .expert-review-page .expert-review-content p:nth-child(n+2) {
        margin-left: 0;
    }
    .expert-review-page .expert-review-content h2:not(.service-title):not([class*="block"]):not([class*="service"]):not(.pros-cons-title),
    .expert-review-page .expert-review-content h3:not(.service-title):not([class*="block"]):not([class*="service"]):not(.pros-cons-title),
    .expert-review-page .expert-review-content h4:not(.service-title):not([class*="block"]):not([class*="service"]) {
        margin-left: 0;
    }
    .expert-review-page .expert-review-content ul,
    .expert-review-page .expert-review-content ol {
        margin-left: 0;
    }
    .expert-review-page .expert-review-content table,
    .expert-review-page .expert-review-content .recommended-block,
    .expert-review-page .expert-review-content [class*="attention"],
    .expert-review-page .expert-review-content [class*="example"],
    .expert-review-page .expert-review-content [class*="history"],
    .expert-review-page .expert-review-content [class*="idea"],
    .expert-review-page .expert-review-content [class*="related"],
    .expert-review-page .expert-review-content [class*="expert"],
    .expert-review-page .expert-review-content [class*="risk"]:not(.risk-notice-block),
    .expert-review-page .expert-review-content [class*="formula"],
    .expert-review-page .expert-review-content [class*="term"],
    .expert-review-page .expert-review-content [class*="code"],
    .expert-review-page .expert-review-content .premium-attention-block,
    .expert-review-page .expert-review-content .premium-example-block,
    .expert-review-page .expert-review-content .premium-history-block,
    .expert-review-page .expert-review-content .premium-idea-block,
    .expert-review-page .expert-review-content .premium-related-block,
    .expert-review-page .expert-review-content .premium-expert-block,
    .expert-review-page .expert-review-content .premium-risk-block:not(.risk-notice-block),
    .expert-review-page .expert-review-content .premium-formula-block,
    .expert-review-page .expert-review-content .premium-term-block,
    .expert-review-page .expert-review-content .premium-code-block,
    .expert-review-page .expert-review-content .premium-card-group,
    .expert-review-page .expert-review-content .review-cards-container,
    .expert-review-page .expert-review-content figure,
    .expert-review-page .expert-review-content .wp-block-image,
    .expert-review-page .risk-notice-block,
    .expert-review-page .pros-cons-block,
    .expert-review-page .share-block,
    .expert-review-page .financial-disclaimer,
    .expert-review-page .author-full-block {
        margin-left: 0 !important;
    }
    /* FAQ секция тоже левее */
    .expert-review-page .surfearner-faq-section {
        max-width: 900px;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    /* Баннеры (шорткоды) */
    .expert-review-page .tg-banner,
    .expert-review-page .j2t-banner,
    .expert-review-page .ib-tool-banner,
    .expert-review-page .ib-tools-combined {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    /* Блок источников + поделиться */
    .expert-review-page .share-sources-container {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

.expert-review-page .expert-review-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333 !important;
}

/* ========================================
 * БЛОК ПЛЮСОВ И МИНУСОВ (ОБНОВЛЕННЫЙ ДИЗАЙН)
 * ======================================== */

.pros-cons-block {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.pros-cons-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cpt-text-lighter);
    text-align: center;
    margin: 0;
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, var(--cpt-darker-bg) 0%, var(--cpt-main-bg) 100%);
    border-bottom: 1px solid var(--cpt-border-color);
    position: relative;
}

.pros-cons-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #95ce5a, #ef5350);
    border-radius: 3px 3px 0 0;
}

.pros-cons-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
}

.pros-section,
.cons-section {
    padding: 24px;
    position: relative;
    background: #fff;
}

.pros-section {
    border-right: 1px solid #e5e7eb;
}

.pros-title,
.cons-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.pros-title {
    border-bottom: 2px solid #95ce5a;
}

.cons-title {
    border-bottom: 2px solid #ef5350;
}

.pros-icon,
.cons-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pros-icon {
    background: #95ce5a;
}

.cons-icon {
    background: #ef5350;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-item,
.cons-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    transition: all 0.2s ease;
    color: #333;
}

.pros-item:hover {
    background: rgba(38, 166, 154, 0.12);
    border-color: rgba(38, 166, 154, 0.3);
    transform: translateX(2px);
}

.cons-item:hover {
    background: rgba(239, 83, 80, 0.12);
    border-color: rgba(239, 83, 80, 0.3);
    transform: translateX(-2px);
}

.pros-item::before,
.cons-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
}

.pros-item::before {
    content: '✓';
    color: #95ce5a;
    font-size: 16px;
}

.cons-item::before {
    content: '✗';
    color: #ef5350;
    font-size: 14px;
}

.pros-item:last-child,
.cons-item:last-child {
    margin-bottom: 0;
}

/* ========================================
 * БЛОК ШАРИНГА И ИСТОЧНИКОВ (ОБНОВЛЕННЫЙ И ИСПРАВЛЕННЫЙ)
 * ======================================== */

.share-sources-container {
    max-width: 900px;
    margin: 15px auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.share-sources-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.sources-section {
    flex: 0 0 auto;
}

/* ИСПРАВЛЕНИЕ 1: Убираем лишние тени с кнопки источники */
.sources-toggle {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none; /* Убираем тени */
}

.sources-toggle:hover {
    background: #f8f9fa;
    border-color: var(--cpt-accent-color);
    color: var(--cpt-accent-color);
    box-shadow: none; /* Убираем тени при ховере */
}

.sources-toggle.active {
    background: var(--cpt-accent-color);
    border-color: var(--cpt-accent-color);
    color: white;
    box-shadow: none; /* Убираем тени в активном состоянии */
}

.sources-toggle.active:hover {
    background: #78a93a;
    border-color: #78a93a;
    box-shadow: none; /* Убираем тени при ховере активной кнопки */
}

.sources-icon {
    transition: transform 0.3s ease;
}

.sources-toggle.active .sources-icon {
    transform: rotate(180deg);
}

.share-section {
    flex: 0 0 auto;
    text-align: right;
}

.share-section h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.vk {
    background: #4c75a3;
}

.share-button.copy-link {
    background: #6c757d;
}

.sources-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    margin-top: 0;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
}

.sources-content.expanded {
    max-height: 5000px;
    opacity: 1;
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.sources-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cpt-accent-color);
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: source-counter;
}

/* ИСПРАВЛЕНИЕ 6: Уменьшаем размер шрифта источников на десктопе */
.sources-list li {
    counter-increment: source-counter;
    margin-bottom: 12px;
    padding: 12px 0 12px 35px;
    position: relative;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px; /* Уменьшили с стандартного размера */
}

.sources-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sources-list li::before {
    content: counter(source-counter);
    position: absolute;
    left: 0;
    top: 12px;
    background: var(--cpt-accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.sources-list li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sources-list li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.sources-list li strong {
    color: #333;
    font-weight: 700;
}

.sources-list li em {
    font-style: italic;
    color: #555;
}

/* ========================================
 * УВЕДОМЛЕНИЕ О РИСКАХ (ОБНОВЛЕННЫЙ БЛОК)
 * ======================================== */

.risk-notice-block {
    max-width: 900px;
    margin: 20px 0 0;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
    margin-left: auto; margin-right: auto;
}

.risk-notice-block p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
    margin-bottom: 0 !important;
    text-align: justify;
}

.risk-notice-block p strong {
    color: #333;
    font-weight: 700;
}

/* ========================================
 * ДИСКЛЕЙМЕР (МИНИМАЛИСТИЧНЫЙ ДИЗАЙН)
 * ======================================== */

.financial-disclaimer {
    max-width: 900px;
    margin: 20px auto;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.financial-disclaimer h4 {
    font-size: 15px;
    color: #495057;
    margin: 0 0 8px;
    font-weight: 600;
}

.financial-disclaimer p {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
 * ПОЛНЫЙ БЛОК АВТОРА (ИСПРАВЛЕННЫЙ ДИЗАЙН)
 * ======================================== */

.author-full-block {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.author-card-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #95ce5a;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-content {
    flex: 1;
    min-width: 0;
}

.author-card-header {
    margin-bottom: 12px;
}

/* ИСПРАВЛЕНИЕ 5: Добавляем зеленую затухающую линию снизу для имени автора */
.author-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 8px;
}

.author-card-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #95ce5a 0%, rgba(149, 206, 90, 0.2) 100%);
    border-radius: 3px;
}

.author-card-position {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.author-card-bio {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
    margin: 0 0 16px;
    text-align: justify;
}

.author-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.all-posts-link {
    color: #fff;
    background: var(--cpt-accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.all-posts-link:hover {
    background: #78a93a;
    text-decoration: none;
}

.author-social-icons {
    display: none;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.telegram {
    background: #0088cc;
}

/* ========================================
 * ВСПЛЫВАЮЩИЕ ОКНА ДЛЯ АВТОРОВ (ИСПРАВЛЕННЫЕ)
 * ======================================== */

.author-hover-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.author-hover-trigger:hover {
    opacity: 0.8;
}

.author-tooltip {
    position: fixed;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 320px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.author-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.tooltip-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cpt-accent-color);
    flex-shrink: 0;
}

.tooltip-info {
    flex: 1;
    min-width: 0;
}

.tooltip-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.2;
}

.tooltip-position {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.tooltip-bio {
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.tooltip-profile-link {
    color: #fff;
    background: var(--cpt-accent-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tooltip-profile-link:hover {
    background: #78a93a;
}

.tooltip-social {
    display: flex;
    gap: 6px;
}

.tooltip-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tooltip-social-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.tooltip-social-link i.fab.fa-twitter {
    color: white;
}

.tooltip-social-link i.fab.fa-linkedin {
    color: white;
}

.tooltip-social-link i.fab.fa-telegram-plane {
    color: white;
}

.tooltip-social-link:has(.fa-twitter) {
    background: #1da1f2;
}

.tooltip-social-link:has(.fa-linkedin) {
    background: #0077b5;
}

.tooltip-social-link:has(.fa-telegram-plane) {
    background: #0088cc;
}

/* Резервные селекторы для браузеров без поддержки :has() */
.tooltip-social-link[href*="twitter"] {
    background: #1da1f2;
}

.tooltip-social-link[href*="linkedin"] {
    background: #0077b5;
}

.tooltip-social-link[href*="telegram"] {
    background: #0088cc;
}

/* ========================================
 * FAQ СЕКЦИИ (ИСПРАВЛЕННЫЕ С ОТСТУПАМИ ДЛЯ ПЕРВЫХ СТРОК)
 * ======================================== */

.surfearner-faq-section {
    margin: 50px 0 25px;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.surfearner-section-heading-wrapper {
    background: linear-gradient(135deg, #171d30 0%, #131722 100%);
    padding: 35px 40px 30px;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(42, 46, 57, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.surfearner-section-heading {
    position: relative;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 !important;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
    display: inline-block;
    z-index: 2;
    line-height: 1.3 !important;
}

.surfearner-section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #95ce5a, rgba(149, 206, 90, 0.2));
    border-radius: 3px;
}

.surfearner-faq-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f7f7f7;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.surfearner-faq-item {
    background: #fff;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-bottom: 0;
}

.surfearner-faq-item:first-child {
    border-radius: 0;
}

.surfearner-faq-item:last-child {
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
}

.surfearner-faq-item:only-child {
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
}

.surfearner-faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

.surfearner-faq-question:hover {
    background: #f2f2f2;
}

.surfearner-faq-icon {
    background: #e5e5e5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
    border: 1px solid #d6d6d6;
}

.surfearner-faq-answer {
    padding: 8px 20px 12px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #555;
    opacity: 0;
}

.surfearner-faq-answer p {
    margin: 0 0 14px 0 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    color: #555 !important;
    text-align: justify !important;
    text-indent: 20px !important;
}

.surfearner-faq-answer p:first-child {
    text-indent: 20px !important;
}

.surfearner-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

.surfearner-faq-answer ul, .surfearner-faq-answer ol {
    margin: 14px 0 !important;
    padding-left: 20px !important;
    color: #555 !important;
}

.surfearner-faq-answer li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-size: 15px !important;
}

/* ========================================
 * БЛОК ПОХОЖИХ СТАТЕЙ (ИСПРАВЛЕННАЯ КОНТРАСТНОСТЬ)
 * ======================================== */

.related-articles-section {
    margin: 50px 0;
    width: 100%;
}

.related-articles-header {
    text-align: center;
    margin-bottom: 30px;
}

.related-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 15px;
    position: relative;
}

.related-articles-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cpt-accent-color) 20%, var(--cpt-accent-color) 80%, transparent 100%);
    border-radius: 3px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-article-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.related-article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--cpt-accent-color);
    transform: translateY(-2px);
}

.related-article-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--cpt-accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.related-article-image {
    height: 180px;
    overflow: hidden;
}

/* ИСПРАВЛЕНИЕ: Фокусировка изображений на верхней части */
.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Фокусируемся на верхней части изображения */
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.related-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: var(--cpt-accent-color);
}

.related-article-excerpt {
    display: none;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.related-article-date {
    font-weight: 500;
}

/* ========================================
 * СТИЛИ ДЛЯ АРХИВНЫХ СТРАНИЦ
 * ======================================== */

.archive-page .archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: var(--cpt-darker-bg);
    border-radius: 12px;
    border: 1px solid var(--cpt-border-color);
}

.archive-page .archive-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--cpt-text-lighter);
    margin-bottom: 15px;
}

.archive-page .archive-description {
    font-size: 18px;
    color: var(--cpt-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-page .archive-filters {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--cpt-darker-bg);
    border-radius: 8px;
    border: 1px solid var(--cpt-border-color);
}

.archive-page .filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.archive-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-page .filter-group label {
    font-size: 14px;
    color: var(--cpt-text-light);
    font-weight: 600;
}

.archive-page .filter-select {
    padding: 8px 12px;
    background: var(--cpt-main-bg);
    border: 1px solid var(--cpt-border-color);
    border-radius: 6px;
    color: var(--cpt-text-light);
    font-size: 14px;
}

.archive-page .filter-select:focus {
    outline: none;
    border-color: var(--cpt-accent-color);
    box-shadow: 0 0 0 2px rgba(149, 206, 90, 0.2);
}

/* ========================================
 * КАРТОЧКИ ОБЗОРОВ
 * ======================================== */

.archive-page .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.archive-page .review-card {
    background: var(--cpt-darker-bg);
    border-radius: 12px;
    border: 1px solid var(--cpt-border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.archive-page .review-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--cpt-accent-color);
    transform: translateY(-2px);
}

.archive-page .review-card-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.archive-page .review-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--cpt-border-color);
    flex-shrink: 0;
}

.archive-page .review-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-page .review-card-info {
    flex: 1;
}

.archive-page .review-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.archive-page .review-card-title a {
    color: var(--cpt-text-lighter);
    text-decoration: none;
}

.archive-page .review-card-title a:hover {
    color: var(--cpt-accent-color);
}

.archive-page .review-card-category {
    display: inline-block;
    background: rgba(149, 206, 90, 0.2);
    color: var(--cpt-accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.archive-page .review-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-page .rating-stars {
    color: var(--cpt-gold);
    font-size: 14px;
}

.archive-page .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--cpt-text-light);
}

.archive-page .review-card-content {
    padding: 0 20px 15px;
}

.archive-page .review-card-excerpt {
    color: var(--cpt-text-muted);
    line-height: 1.5;
    margin: 0;
}

.archive-page .review-card-meta {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--cpt-text-muted);
    margin-bottom: 15px;
}

.archive-page .review-card-meta div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-page .review-card-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.archive-page .action-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.archive-page .primary-button {
    background: linear-gradient(135deg, var(--cpt-accent-color), #78a93a);
    color: #fff;
}

.archive-page .primary-button:hover {
    background: linear-gradient(135deg, #78a93a, var(--cpt-accent-color));
    transform: translateY(-2px);
}

.archive-page .action-button i {
    margin-right: 6px;
}

/* ========================================
 * ПАГИНАЦИЯ
 * ======================================== */

.archive-page .archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-page .page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.archive-page .page-numbers a,
.archive-page .page-numbers span {
    padding: 10px 15px;
    border: 1px solid var(--cpt-border-color);
    border-radius: 6px;
    color: var(--cpt-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-page .page-numbers a:hover {
    background: var(--cpt-accent-color);
    color: #fff;
    border-color: var(--cpt-accent-color);
}

.archive-page .page-numbers .current {
    background: var(--cpt-accent-color);
    color: #fff;
    border: 1px solid var(--cpt-accent-color);
}

.archive-page .page-numbers .dots {
    color: var(--cpt-text-muted);
    border: none;
    background: none;
}

/* ========================================
 * СООБЩЕНИЕ ОБ ОТСУТСТВИИ ПОСТОВ
 * ======================================== */

.archive-page .no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--cpt-darker-bg);
    border-radius: 12px;
    border: 1px solid var(--cpt-border-color);
}

.archive-page .no-posts-found h2 {
    font-size: 24px;
    color: var(--cpt-text-lighter);
    margin-bottom: 15px;
}

.archive-page .no-posts-found p {
    color: var(--cpt-text-muted);
    margin-bottom: 20px;
}

.archive-page .button-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cpt-accent-color), #78a93a);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.archive-page .button-primary:hover {
    background: linear-gradient(135deg, #78a93a, var(--cpt-accent-color));
    transform: translateY(-2px);
}

/* ========================================
 * СТИЛИ ДЛЯ ШОРТКОДОВ
 * ======================================== */

.expert-reviews-shortcode {
    margin: 20px 0;
}

.expert-reviews-shortcode .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-shortcode-card {
    background: var(--cpt-darker-bg);
    border-radius: 8px;
    border: 1px solid var(--cpt-border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-shortcode-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--cpt-accent-color);
    transform: translateY(-2px);
}

.review-shortcode-logo {
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid var(--cpt-border-color);
}

.review-shortcode-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-shortcode-content {
    padding: 20px;
}

.review-shortcode-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.review-shortcode-title a {
    color: var(--cpt-text-lighter);
    text-decoration: none;
}

.review-shortcode-title a:hover {
    color: var(--cpt-accent-color);
}

.review-shortcode-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.review-shortcode-rating .stars {
    color: var(--cpt-gold);
    font-size: 14px;
}

.review-shortcode-rating .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--cpt-text-light);
}

.review-shortcode-excerpt {
    color: var(--cpt-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-shortcode-actions {
    text-align: center;
}

.shortcode-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--cpt-accent-color), #78a93a);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.shortcode-button:hover {
    background: linear-gradient(135deg, #78a93a, var(--cpt-accent-color));
    transform: translateY(-1px);
}

.shortcode-button i {
    margin-right: 6px;
}

/* ========================================
 * СТИЛИ ДЛЯ SERVICE CARD
 * ======================================== */

.service-card-shortcode {
    background: var(--cpt-darker-bg);
    border-radius: 8px;
    border: 1px solid var(--cpt-border-color);
    overflow: hidden;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.service-card-shortcode:hover {
    border-color: var(--cpt-accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.service-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--cpt-border-color);
    flex-shrink: 0;
}

.service-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-info {
    flex: 1;
}

.service-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.service-card-title a {
    color: var(--cpt-text-lighter);
    text-decoration: none;
}

.service-card-title a:hover {
    color: var(--cpt-accent-color);
}

.service-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-card-rating .stars {
    color: var(--cpt-gold);
    font-size: 12px;
}

.service-card-rating .rating-text {
    font-size: 12px;
    color: var(--cpt-text-light);
}

.service-card-excerpt {
    color: var(--cpt-text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.card-button {
    display: inline-block;
    padding: 6px 12px;
    background: var(--cpt-accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: #78a93a;
    transform: translateY(-1px);
}

/* ========================================
 * МОБИЛЬНАЯ АДАПТАЦИЯ (ИСПРАВЛЕННАЯ)
 * ======================================== */

/* Универсальные стили для убирания отступов на мобильных */
@media (max-width: 768px) {
    /* Убираем отступы со всей страницы */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Убираем отступы с основных контейнеров темы */
    #page, #content, .site-content, .main-content, .content-area, 
    .site-main, .primary, .container-fluid, .row, .col-md-12,
    .entry-content, .post-content, .single-post {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    /* Принудительное расширение на всю ширину для мобильных */
    body.single-expert_review,
.single-service_rating,
    html.single-expert_review,
.single-service_rating {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .expert-review-page {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .expert-review-page main,
    .expert-review-page main#main {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .expert-review-page .expert-review-simple-header {
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .expert-review-page .simple-title {
        font-size: 24px;
    }
    
    .expert-review-page .container,
    .expert-reviews-archive .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .expert-review-page .expert-review-content,
    .expert-review-page .expert-review-content p:nth-child(n+2),
    .expert-review-page .expert-review-content h2,
    .expert-review-page .expert-review-content h3,
    .expert-review-page .expert-review-content h4,
    .expert-review-page .expert-review-content ul,
    .expert-review-page .expert-review-content ol,
    .expert-review-page .expert-review-content table,
    .expert-review-page .expert-review-content .recommended-block,
    .expert-review-page .expert-review-content [class*="attention"],
    .expert-review-page .expert-review-content [class*="example"],
    .expert-review-page .expert-review-content [class*="history"],
    .expert-review-page .expert-review-content [class*="idea"],
    .expert-review-page .expert-review-content [class*="related"],
    .expert-review-page .expert-review-content [class*="expert"],
    .expert-review-page .expert-review-content [class*="risk"],
    .expert-review-page .expert-review-content [class*="formula"],
    .expert-review-page .expert-review-content [class*="term"],
    .expert-review-page .expert-review-content [class*="code"],
    .expert-review-page .expert-review-content .premium-attention-block,
    .expert-review-page .expert-review-content .premium-example-block,
    .expert-review-page .expert-review-content .premium-history-block,
    .expert-review-page .expert-review-content .premium-idea-block,
    .expert-review-page .expert-review-content .premium-related-block,
    .expert-review-page .expert-review-content .premium-expert-block,
    .expert-review-page .expert-review-content .premium-risk-block,
    .expert-review-page .expert-review-content .premium-formula-block,
    .expert-review-page .expert-review-content .premium-term-block,
    .expert-review-page .expert-review-content .premium-code-block,
    .pros-cons-block,
    .share-sources-container,
    .share-block,
    .financial-disclaimer,
    .author-full-block {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
    
    /* Блок раскрытия рисков на всю ширину экрана на мобильных */
    .risk-notice-block {
        max-width: 100% !important;
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 18px 15px !important;
        box-sizing: border-box;
    }
    
    /* Убираем ограничение ширины для текста статьи на мобильных */
    .expert-review-page .expert-review-content p,
    .expert-review-page .expert-review-content p:nth-child(n+2) {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    /* Плюсы и минусы в одну колонку на мобильных */
    .pros-cons-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .pros-section {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 20px !important;
    }
    
    .cons-section {
        padding-top: 20px !important;
    }
    
    /* ИСПРАВЛЕНИЕ 3: Скрываем заголовок "Поделиться обзором" на мобильных */
    .share-section h3 {
        display: none !important;
    }
    
    /* Центрирование заголовков на мобильных */
    .share-block h3,
    .related-articles-title {
        text-align: center !important;
    }
    
    /* Блок автора на мобильных - увеличиваем размеры */
    .article-meta-block {
        margin: 0 15px 15px !important;
        width: calc(100% - 30px) !important;
        border-radius: 6px;
    }
    
    .meta-info-container {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 10px 15px;
        align-items: center;
        justify-content: space-between;
        font-size: 11px;
    }
    
    .author-avatar,
    .expert-avatar {
        width: 26px;
        height: 26px;
    }
    
    .meta-label {
        font-size: 9px;
        display: inline !important; /* Показываем лейблы на мобильных для пояснения */
    }
    
    .author-details a,
    .expert-details a {
        font-size: 10px;
    }
    
    .dates-info {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .date-item {
        white-space: nowrap;
    }
    
    .date-item time {
        font-size: 9px;
    }
    
    /* Навигационные крошки на мобильных */
    .expert-review-page .breadcrumb-nav,
    .expert-reviews-archive .breadcrumb-nav {
        margin: 0 15px 15px !important;
        padding: 0 !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 10px !important;
    }
    
    /* Блоки контента на мобильных */
    .pros-cons-block {
        margin: 30px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 0 !important; /* Убираем внутренние отступы, они есть у секций */
    }
    
    .share-sources-container {
        margin: 15px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .share-sources-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sources-section {
        order: 2;
    }
    
    .share-section {
        order: 1;
        text-align: center;
    }
    
    .sources-content.expanded {
        padding: 15px;
    }
    
    .financial-disclaimer {
        margin: 15px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 15px !important;
    }
    
    /* ИСПРАВЛЕНИЕ 5: Сохраняем зеленую затухающую линию снизу для имени автора на мобильных */
    .author-full-block {
        margin: 25px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .author-card-name::after {
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, #95ce5a 0%, rgba(149, 206, 90, 0.2) 100%);
        border-radius: 2px;
    }
    
    .share-buttons {
        gap: 6px;
        justify-content: center;
    }
    
    .financial-disclaimer {
        padding: 10px !important;
        margin: 15px 10px !important;
        width: calc(100% - 20px) !important;
    }
    
    .share-button {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* Блок автора на мобильных - улучшенная адаптация */
    .author-full-block {
        margin: 25px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 15px !important;
    }
    
    .author-card-container {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        align-items: flex-start;
    }
    
    .author-card-avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        border: 2px solid #95ce5a;
    }
    
    .author-card-content {
        flex: 1;
        min-width: 0;
    }
    
    .author-card-name {
        font-size: 16px;
        margin-bottom: 2px;
        padding-bottom: 6px;
    }
    
    .author-card-position {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .author-card-bio {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
        text-align: justify;
    }
    
    .author-card-link {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .all-posts-link {
        font-size: 12px;
        padding: 6px 12px;
        flex-shrink: 0;
    }
    
    /* Размеры текста для мобильных */
    .risk-notice-block p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    .financial-disclaimer p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .financial-disclaimer h4 {
        font-size: 13px !important;
    }
    
    /* Блок поделиться и источники на мобильных */
    .share-sources-container {
        margin: 15px 15px !important;
        width: calc(100% - 30px) !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .share-sources-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .sources-section {
        order: 2;
        text-align: center;
    }
    
    .share-section {
        order: 1;
        text-align: center;
    }
    
    .sources-toggle {
        padding: 6px 12px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .sources-content.expanded {
        padding: 12px;
    }
    
    .sources-content h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .sources-list li {
        font-size: 11px !important;
        line-height: 1.4 !important;
        padding: 8px 0 8px 25px;
    }
    
    .sources-list li::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    /* FAQ размеры шрифта на мобильных */
    .surfearner-faq-answer p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    /* Всплывающие окна на мобильных */
    .author-tooltip {
        width: 280px;
        padding: 15px;
    }
    
    .tooltip-header {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .tooltip-avatar {
        width: 40px;
        height: 40px;
    }
    
    .tooltip-name {
        font-size: 14px;
    }
    
    .tooltip-bio {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .tooltip-footer {
        padding-top: 10px;
        gap: 8px;
    }
    
    .tooltip-profile-link {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .tooltip-social-link {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* FAQ секция на мобильных */
    .surfearner-faq-section {
        margin: 40px 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .surfearner-section-heading-wrapper {
        margin: 0 15px;
        border-radius: 12px 12px 0 0;
    }
    
    .surfearner-faq-container {
        margin: 0 15px;
        border-radius: 0 0 12px 12px;
    }
    
    .surfearner-section-heading-wrapper {
        padding: 25px 20px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .surfearner-section-heading {
        font-size: 22px;
    }
    
    .surfearner-faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }
    
    /* Блок похожих статей на мобильных */
    .related-articles-section {
        margin: 40px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .related-articles-header {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 15px;
        padding: 0;
        width: calc(100% - 30px);
    }
    
    .related-article-card {
        margin: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e0e0;
        width: 100%;
    }
    
    .related-articles-title {
        font-size: 24px;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .related-article-image {
        height: 200px;
    }
    
    .related-article-content {
        padding: 15px;
    }
    
    .related-article-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .related-article-excerpt {
    display: none;
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .related-article-meta {
        font-size: 11px;
    }
    
    /* Архивные страницы на мобильных */
    .archive-page .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .archive-page .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .archive-page .review-card-header {
        padding: 15px;
    }
    
    .archive-page .review-card-logo {
        width: 60px;
        height: 60px;
    }
    
    .expert-reviews-shortcode .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Универсальные стили для убирания отступов на очень маленьких экранах */
@media (max-width: 480px) {
    /* Убираем отступы со всей страницы */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Убираем отступы с основных контейнеров темы */
    #page, #content, .site-content, .main-content, .content-area, 
    .site-main, .primary, .container-fluid, .row, .col-md-12,
    .entry-content, .post-content, .single-post {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    /* Принудительное расширение на всю ширину для очень маленьких экранов */
    body.single-expert_review,
.single-service_rating,
    html.single-expert_review,
.single-service_rating {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .expert-review-page {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .expert-review-page main,
    .expert-review-page main#main {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .expert-review-page .expert-review-simple-header {
        padding: 10px !important;
    }
    
    .expert-review-page .simple-title {
        font-size: 20px;
    }
    
    .expert-review-page .container,
    .expert-reviews-archive .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .share-button {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    /* Блок автора на очень маленьких экранах */
    .article-meta-block {
        margin: 0 10px 15px !important;
        width: calc(100% - 20px) !important;
    }
    
    .meta-info-container {
        padding: 8px 12px;
        gap: 8px;
        font-size: 10px;
    }
    
    .author-avatar,
    .expert-avatar {
        width: 22px;
        height: 22px;
    }
    
    .author-details a,
    .expert-details a {
        font-size: 9px;
    }
    
    .meta-label {
        display: inline !important; /* Показываем лейблы на очень маленьких экранах для пояснения */
    }
    
    .date-item time {
        font-size: 8px;
    }
    
    /* Навигационные крошки */
    .expert-review-page .breadcrumb-nav,
    .expert-reviews-archive .breadcrumb-nav {
        margin: 0 10px 15px !important;
        padding: 0 !important;
        font-size: 9px !important;
        width: calc(100% - 20px) !important;
    }
    
    /* Все блоки контента */
    .pros-cons-block,
    .share-sources-container,
    .financial-disclaimer,
    .author-full-block {
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Блок уведомления о рисках растягивается на всю ширину */
    .risk-notice-block {
        max-width: 100% !important;
        width: 100% !important;
        margin: 15px 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
    }
    
    /* Убираем ограничение ширины для текста статьи на очень маленьких экранах */
    .expert-review-page .expert-review-content p,
    .expert-review-page .expert-review-content p:nth-child(n+2) {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    /* Плюсы и минусы в одну колонку на очень маленьких экранах */
    .pros-cons-content {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .pros-section {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
        padding: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .cons-section {
        padding: 15px !important;
        padding-top: 15px !important;
    }
    
    /* ИСПРАВЛЕНИЕ 3: Сохраняем скрытие заголовка "Поделиться обзором" */
    .share-section h3 {
        display: none !important;
    }
    
    /* Центрирование заголовков на очень маленьких экранах */
    .share-block h3,
    .related-articles-title {
        text-align: center !important;
    }
    
    .share-sources-container {
        padding: 0 !important;
        margin: 12px 10px !important;
        width: calc(100% - 20px) !important;
    }
    
    .share-sources-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .sources-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .share-button {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    /* Блок автора на очень маленьких экранах */
    .author-full-block {
        margin: 20px 10px !important;
        width: calc(100% - 20px) !important;
        padding: 12px !important;
    }
    
    .author-card-container {
        gap: 10px;
    }
    
    .author-card-avatar {
        width: 45px;
        height: 45px;
    }
    
    .author-card-name {
        font-size: 15px;
        padding-bottom: 5px;
    }
    
    /* ИСПРАВЛЕНИЕ 5: Сохраняем зеленую затухающую линию снизу на очень маленьких экранах */
    .author-card-name::after {
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, #95ce5a 0%, rgba(149, 206, 90, 0.2) 100%);
        border-radius: 2px;
    }
    
    .author-card-position {
        font-size: 11px;
    }
    
    .author-card-bio {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .all-posts-link {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    /* Размеры текста для очень маленьких экранов */
    .risk-notice-block p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .financial-disclaimer p {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    .financial-disclaimer h4 {
        font-size: 12px !important;
    }
    
    /* Блок поделиться и источники на очень маленьких экранах */
    .share-sources-container {
        margin: 12px 10px !important;
        width: calc(100% - 20px) !important;
    }
    
    .share-sources-row {
        gap: 10px;
    }
    
    .sources-toggle {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .sources-content.expanded {
        padding: 10px;
    }
    
    .sources-content h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .sources-list li {
        font-size: 10px !important;
        line-height: 1.3 !important;
        padding: 6px 0 6px 22px;
    }
    
    .sources-list li::before {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    /* FAQ размеры шрифта на очень маленьких экранах */
    .surfearner-faq-question {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .surfearner-faq-answer p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    /* Всплывающие окна на очень маленьких экранах */
    .author-tooltip {
        width: 260px;
        padding: 12px;
    }
    
    .tooltip-header {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .tooltip-avatar {
        width: 36px;
        height: 36px;
    }
    
    .tooltip-name {
        font-size: 13px;
    }
    
    .tooltip-position {
        font-size: 10px;
    }
    
    .tooltip-bio {
        font-size: 11px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .tooltip-footer {
        padding-top: 8px;
        gap: 6px;
    }
    
    .tooltip-profile-link {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .tooltip-social-link {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    /* FAQ секция */
    .surfearner-faq-section {
        margin: 30px 0 15px !important;
        width: 100% !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .surfearner-section-heading-wrapper {
        margin: 0 10px;
        padding: 20px 15px 15px;
    }
    
    .surfearner-faq-container {
        margin: 0 10px;
    }
    
    .pros-cons-block {
        padding: 0 !important; /* Убираем внутренние отступы на очень маленьких экранах */
    }
    
    .pros-title,
    .cons-title {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .pros-item,
    .cons-item {
        font-size: 13px !important;
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .pros-cons-title {
        font-size: 18px !important;
        padding: 18px 15px 12px !important;
    }
    
    .surfearner-section-heading-wrapper {
        padding: 20px 15px 15px;
    }
    
    .surfearner-section-heading {
        font-size: 20px;
    }
    
    .surfearner-faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    /* Блок похожих статей на маленьких экранах */
    .related-articles-section {
        margin: 30px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .related-articles-header {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .related-articles-grid {
        padding: 0;
        gap: 15px;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
    
    .related-articles-title {
        font-size: 20px;
    }
    
    .related-article-card {
        border-radius: 8px;
    }
    
    .related-article-image {
        height: 180px;
    }
    
    .related-article-content {
        padding: 12px;
    }
    
    .related-article-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .related-article-excerpt {
    display: none;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .related-article-meta {
        font-size: 10px;
    }
    
    .related-article-type {
        padding: 3px 6px;
        font-size: 9px;
        top: 8px;
        right: 8px;
    }
    
    /* Архивные страницы */
    .archive-page .archive-header {
        padding: 30px 15px;
    }
    
    .archive-page .archive-header h1 {
        font-size: 24px;
    }
    
    .archive-page .archive-description {
        font-size: 15px;
    }
    
    .archive-page .archive-filters {
        margin: 15px 0 25px;
        padding: 15px 10px;
    }
    
    .archive-page .reviews-grid {
        padding: 0;
        gap: 15px;
    }
}
/* 
 * ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ЛИПКОГО ОГЛАВЛЕНИЯ НА ДЕСКТОПЕ
 * Добавьте эти стили в конец файла cpt-styles.css
 */

/* ========================================
 * ЛИПКОЕ ОГЛАВЛЕНИЕ ДЛЯ ДЕСКТОПА
 * ======================================== */

/* Стили для липкого состояния оглавления на десктопе */
@media (min-width: 769px) {
    .toc-container.sticky-desktop {
        position: fixed !important;
        /* top задается динамически через JavaScript с учетом высоты меню */
        left: 0 !important;
        z-index: 998 !important; /* Чуть меньше чем у меню (обычно 999-1000) */
        width: 280px !important;
        max-width: 280px !important;
        margin: 0 !important;
        /* Убираем фон, границы и тени для прилипшего оглавления */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        animation: slideInFromLeft 0.3s ease-out !important;
    }
    
    /* Убираем фон с заголовка прилипшего оглавления */
    .toc-container.sticky-desktop .toc-header {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Убираем тени с кнопки-стрелки в прилипшем оглавлении и делаем её зеленой */
    .toc-container.sticky-desktop .toc-toggle {
        box-shadow: none !important;
        color: #95ce5a !important;
    }
    
    /* При hover стрелка остается зеленой */
    .toc-container.sticky-desktop .toc-header:hover .toc-toggle {
        color: #78a93a !important;
    }
    
    /* Когда оглавление развернуто, стрелка более яркая */
    .toc-container.sticky-desktop .toc-header[aria-expanded="true"] .toc-toggle {
        color: #95ce5a !important;
    }
    
    /* Убираем фон с контента прилипшего оглавления */
    .toc-container.sticky-desktop .toc-content {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #e0e0e0 !important;
        border-top: none !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Корректировка отступов для вложенных уровней в прилипшем оглавлении */
    .toc-container.sticky-desktop .toc-content li.toc-level-2 {
        padding-left: 24px;
    }
    
    .toc-container.sticky-desktop .toc-content li.toc-level-3 {
        padding-left: 40px !important;
    }
    
    .toc-container.sticky-desktop .toc-content li.toc-level-4 {
        padding-left: 56px !important;
    }
    
    /* Стили для счетчиков в прилипшем оглавлении */
    .toc-container.sticky-desktop .toc-content li:before {
        color: #95ce5a !important;
        font-weight: 600 !important;
    }
    
    /* Кастомный скроллбар для прилипшего оглавления */
    .toc-container.sticky-desktop .toc-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .toc-container.sticky-desktop .toc-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .toc-container.sticky-desktop .toc-content::-webkit-scrollbar-thumb {
        background: #95ce5a;
        border-radius: 3px;
    }
    
    .toc-container.sticky-desktop .toc-content::-webkit-scrollbar-thumb:hover {
        background: #78a93a;
    }
    
    /* Анимация появления слева */
    @keyframes slideInFromLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* Уменьшаем размер шрифта в липком состоянии для компактности */
    .toc-container.sticky-desktop .toc-title {
        font-size: 16px;
        color: #333 !important;
    }
    
    /* Максимальная высота будет динамически вычисляться */
    .toc-container.sticky-desktop .toc-content {
        font-size: 14px;
    }
    
    /* Когда оглавление свернуто в липком состоянии */
    .toc-container.sticky-desktop .toc-content.collapsed {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 10px !important;
    }
    
    /* Когда оглавление развернуто в липком состоянии */
    .toc-container.sticky-desktop .toc-content:not(.collapsed) {
        /* Вычисляем максимальную высоту с учетом отступов */
        max-height: calc(100vh - var(--toc-top-offset, 90px)) !important;
        opacity: 1 !important;
        overflow-y: auto !important;
        padding: 0 10px 10px !important;
    }
    
    .toc-container.sticky-desktop .toc-content a {
        font-size: 13px;
        padding: 1px 0 1px 3px;
        margin-left: 0;
        color: #333 !important;
        font-weight: 500;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
        display: block;
    }
    
    .toc-container.sticky-desktop .toc-content a:hover {
        color: #333 !important;
        background: rgba(0, 0, 0, 0.03);
        padding-left: 8px;
        border-left-color: rgba(149, 206, 90, 0.3);
    }
    
    /* Выделение текущего заголовка в прилипшем оглавлении */
    .toc-container.sticky-desktop .toc-content a.toc-current {
        color: #000 !important;
        font-weight: 700;
        background: rgba(149, 206, 90, 0.1);
        padding-left: 8px;
        border-left-color: #95ce5a;
    }
    
    /* Счетчики для текущего элемента становятся немного ярче */
    .toc-container.sticky-desktop .toc-content li:has(a.toc-current):before {
        color: #95ce5a !important;
        font-weight: 700 !important;
    }
    
    /* Резервный вариант для браузеров без поддержки :has() */
    .toc-container.sticky-desktop .toc-content li.has-current:before {
        color: #95ce5a !important;
        font-weight: 700 !important;
    }
    
    /* Анимация появления выделения */
    @keyframes highlightPulse {
        0% {
            background: rgba(149, 206, 90, 0.1);
        }
        50% {
            background: rgba(149, 206, 90, 0.2);
        }
        100% {
            background: rgba(149, 206, 90, 0.1);
        }
    }
    
    .toc-container.sticky-desktop .toc-content a.toc-current {
        animation: highlightPulse 1s ease-in-out;
    }
    
    /* Placeholder для сохранения места */
    .toc-placeholder {
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Убеждаемся что оглавление не перекрывается фиксированным меню */
    .main-menu-bar ~ * .toc-container.sticky-desktop,
    body:has(.main-menu-bar) .toc-container.sticky-desktop {
        /* Резервный отступ если JavaScript не сработал */
        top: 50px;
    }
}

/* Для очень больших экранов */
@media (min-width: 1440px) {
    .toc-container.sticky-desktop {
        width: 320px !important;
        max-width: 320px !important;
    }
}

/* Для средних экранов */
@media (min-width: 769px) and (max-width: 1200px) {
    .toc-container.sticky-desktop {
        width: 240px !important;
        max-width: 240px !important;
    }
    
    .toc-container.sticky-desktop .toc-title {
        font-size: 15px;
    }
    
    .toc-container.sticky-desktop .toc-content a {
        font-size: 12px;
    }
}

/* Для экранов между планшетом и десктопом */
@media (min-width: 769px) and (max-width: 1024px) {
    .toc-container.sticky-desktop {
        width: 220px !important;
        max-width: 220px !important;
    }
}

/* Убеждаемся, что липкое оглавление не появляется на мобильных */
@media (max-width: 768px) {
    .toc-container.sticky-desktop {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }
}

/* ========================================
 * ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ БЛОКА ПЛЮСОВ И МИНУСОВ
 * ======================================== */

.pros-cons-block {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible;
}

.pros-cons-title {
    font-size: 24px;
    font-weight: 700;
    color: #333 !important;
    text-align: center;
    margin: 0 0 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    position: relative;
}

.pros-cons-title::after {
    display: none;
}

.pros-cons-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: transparent !important;
}

.pros-section,
.cons-section {
    padding: 0;
    position: relative;
    background: transparent !important;
}

.pros-section {
    border-right: none !important;
}

.pros-title,
.cons-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

/* Мобильная адаптация для плюсов и минусов */
@media (max-width: 768px) {
    .pros-cons-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .pros-section {
        border-right: none !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    
    .cons-section {
        padding-top: 0 !important;
    }
}
/* Мобильные стили для блока мета-информации в CPT */
@media (max-width: 768px) {
    .single-expert_review .article-meta-block,
    .single-service_rating .article-meta-block,
    .expert-review-page .article-meta-block {
        padding: 8px 0;
    }
    
    .single-expert_review .meta-info-container,
    .single-service_rating .meta-info-container,
    .expert-review-page .meta-info-container {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 8px;
        padding: 0 10px;
        align-items: center;
    }
    
    /* Авторы в левой колонке */
    .single-expert_review .meta-info-item.author-info,
    .single-service_rating .meta-info-item.author-info,
    .single-expert_review .meta-info-item.expert-info,
    .single-service_rating .meta-info-item.expert-info,
    .single-expert_review .meta-info-item.author-expert-info,
    .single-service_rating .meta-info-item.author-expert-info,
    .expert-review-page .meta-info-item.author-info,
    .expert-review-page .meta-info-item.expert-info,
    .expert-review-page .meta-info-item.author-expert-info {
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
    }
    
    /* Даты в правой колонке */
    .single-expert_review .meta-info-item.dates-info,
    .single-service_rating .meta-info-item.dates-info,
    .expert-review-page .meta-info-item.dates-info {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        text-align: right;
        gap: 4px;
    }
    
    /* Если только один автор */
    .single-expert_review .meta-info-container:has(.author-expert-info):not(:has(.expert-info)),
    .single-service_rating .meta-info-container:has(.author-expert-info):not(:has(.expert-info)),
    .expert-review-page .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) {
        grid-template-rows: 1fr;
    }
    
    .single-expert_review .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .author-expert-info,
    .single-service_rating .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .author-expert-info,
    .expert-review-page .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .author-expert-info {
        align-self: center;
    }
    
    .single-expert_review .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info,
    .single-service_rating .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info,
    .expert-review-page .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info {
        grid-row: 1;
        justify-content: flex-start;
        gap: 4px;
    }
    
    /* Если два автора */
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info),
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info),
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) {
        grid-template-rows: auto auto;
        row-gap: 3px;
    }
    
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .author-info,
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .author-info,
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .author-info {
        grid-row: 1;
    }
    
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .expert-info,
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .expert-info,
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .expert-info {
        grid-row: 2;
    }
    
    /* Уменьшенные аватары */
    .single-expert_review .author-avatar,
    .single-service_rating .author-avatar,
    .single-expert_review .expert-avatar,
    .single-service_rating .expert-avatar,
    .expert-review-page .author-avatar,
    .expert-review-page .expert-avatar {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
    }
    
    .single-expert_review .author-avatar img,
    .single-service_rating .author-avatar img,
    .single-expert_review .expert-avatar img,
    .single-service_rating .expert-avatar img,
    .expert-review-page .author-avatar img,
    .expert-review-page .expert-avatar img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .single-expert_review .author-details,
    .single-service_rating .author-details,
    .single-expert_review .expert-details,
    .single-service_rating .expert-details,
    .expert-review-page .author-details,
    .expert-review-page .expert-details {
        flex: 1;
        min-width: 0;
        line-height: 1.1;
    }
    
    .single-expert_review .meta-label,
    .single-service_rating .meta-label,
    .expert-review-page .meta-label {
        display: inline;
        font-size: 9px;
        color: #999;
        line-height: 1.1;
        margin-right: 2px;
    }
    
    .single-expert_review .author-details a,
    .single-service_rating .author-details a,
    .single-expert_review .expert-details a,
    .single-service_rating .expert-details a,
    .expert-review-page .author-details a,
    .expert-review-page .expert-details a {
        font-size: 10px;
        line-height: 1.1;
        word-break: break-word;
    }
    
    /* Уменьшенные даты */
    .single-expert_review .date-item,
    .single-service_rating .date-item,
    .expert-review-page .date-item {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        white-space: nowrap;
        line-height: 1.1;
    }
    
    .single-expert_review .date-item .meta-label,
    .single-service_rating .date-item .meta-label,
    .expert-review-page .date-item .meta-label {
        font-size: 9px;
        color: #999;
        margin-right: 3px;
    }
    
    .single-expert_review .date-item time,
    .single-service_rating .date-item time,
    .expert-review-page .date-item time {
        font-size: 10px;
        color: #333;
        font-weight: 500;
    }
    
    /* Выравнивание дат с авторами при двух авторах */
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .dates-info,
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .dates-info,
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .dates-info {
        display: grid;
        grid-template-rows: 22px 22px;
        align-items: center;
        gap: 3px;
    }
    
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .date-item:first-child,
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .date-item:first-child,
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .date-item:first-child {
        grid-row: 1;
        align-self: center;
    }
    
    .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .date-item:last-child,
    .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .date-item:last-child,
    .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .date-item:last-child {
        grid-row: 2;
        align-self: center;
    }
    
    /* Для одного автора - даты в колонку справа */
    .single-expert_review .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info,
    .single-service_rating .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info,
    .expert-review-page .meta-info-container:has(.author-expert-info):not(:has(.expert-info)) .dates-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 3px;
    }
    
    /* Альтернативная раскладка для очень маленьких экранов */
    @media (max-width: 380px) {
        .single-expert_review .meta-info-container,
        .single-service_rating .meta-info-container,
        .expert-review-page .meta-info-container {
            grid-template-columns: 1fr;
            gap: 6px;
        }
        
        .single-expert_review .meta-info-item.author-info,
        .single-service_rating .meta-info-item.author-info,
        .single-expert_review .meta-info-item.expert-info,
        .single-service_rating .meta-info-item.expert-info,
        .single-expert_review .meta-info-item.author-expert-info,
        .single-service_rating .meta-info-item.author-expert-info,
        .expert-review-page .meta-info-item.author-info,
        .expert-review-page .meta-info-item.expert-info,
        .expert-review-page .meta-info-item.author-expert-info {
            grid-column: 1;
        }
        
        .single-expert_review .meta-info-item.dates-info,
        .single-service_rating .meta-info-item.dates-info,
        .expert-review-page .meta-info-item.dates-info {
            grid-column: 1;
            grid-row: auto;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 10px;
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid #e5e5e5;
            text-align: left;
        }
        
        .single-expert_review .date-item,
        .single-service_rating .date-item,
        .expert-review-page .date-item {
            justify-content: flex-start;
        }
        
        .single-expert_review .meta-info-container:has(.author-info):has(.expert-info) .dates-info,
        .single-service_rating .meta-info-container:has(.author-info):has(.expert-info) .dates-info,
        .expert-review-page .meta-info-container:has(.author-info):has(.expert-info) .dates-info {
            display: flex;
            grid-template-rows: none;
        }
    }
}
/* Компактные хлебные крошки в мобильной версии для CPT */
@media (max-width: 768px) {
    .single-expert_review .breadcrumb-nav,
    .single-service_rating .breadcrumb-nav,
    .expert-review-page .breadcrumb-nav {
        line-height: 1.4;
        padding: 8px 10px;
         padding-top: 10px !important; /* Отступ сверху внутри блока */
        margin-bottom: 5px !important; /* Добавлен минимальный отступ снизу */
        font-size: 11px;
        word-wrap: break-word;
    }
    
    .single-expert_review .breadcrumb-nav span,
    .single-service_rating .breadcrumb-nav span,
    .expert-review-page .breadcrumb-nav span {
        display: inline;
        line-height: 1.4;
    }
    
    .single-expert_review .breadcrumb-nav a,
    .single-service_rating .breadcrumb-nav a,
    .expert-review-page .breadcrumb-nav a {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .single-expert_review .breadcrumb-separator,
    .single-service_rating .breadcrumb-separator,
    .expert-review-page .breadcrumb-separator {
        margin: 0 3px;
        font-size: 10px;
    }
    
    /* Минимальный межстрочный интервал при переносе */
    .single-expert_review .breadcrumb-nav > span,
    .single-service_rating .breadcrumb-nav > span,
    .expert-review-page .breadcrumb-nav > span {
        margin-bottom: 3px;
        display: inline-block;
    }
}
/* ===========================================
   РЕЙТИНГОВЫЕ БЛОКИ - ПОЛНАЯ ШИРИНА
   =========================================== */
/* НОВЫЙ ДИЗАЙН РЕЙТИНГОВ - АККОРДЕОН
   Версия 3.0
   ==================================== */

.rating {
    margin: 2rem 0;
}

.rating__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating__title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7cb342;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(124, 179, 66, 0.3);
    flex-shrink: 0;
}

.rating__icon svg {
    width: 26px;
    height: 26px;
    color: #000;
}

.rating__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.rating__subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.rating__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #1e222d;
    border: 1px solid #2a2e39;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #d1d4dc;
}

.rating__badge-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7cb342;
    border-radius: 50%;
    font-size: 0.7rem;
    color: #000;
}

/* Карточка брокера — палитра Trading Simulator */
.broker {
    display: flex;
    background: #1e222d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid #2a2e39;
}

.broker:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-color: #2f3542;
}

.broker--expanded {
    border-color: rgba(124, 179, 66, 0.3);
}

/* Боковая полоса с номером */
.broker__sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #131722;
}

.broker__watermark {
    position: absolute;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.06;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 1;
}

.broker__ribbon {
    position: absolute;
    top: 10px;
    left: -24px;
    width: 80px;
    padding: 3px 0;
    background: linear-gradient(135deg, #7cb342 0%, #95ce5a 100%);
    color: #000;
    font-size: 0.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
}

.broker__sidebar::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, #2a2e39, transparent);
}

.broker__rank {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.15rem;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

.broker__rank-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

/* Золото */
.broker--gold .broker__rank {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}
.broker--gold .broker__rank-label {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.broker--gold .broker__watermark { color: #ffd700; opacity: 0.12; }

/* Серебро */
.broker--silver .broker__rank {
    background: linear-gradient(135deg, #e5e7eb 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.4));
}
.broker--silver .broker__rank-label {
    background: linear-gradient(135deg, #e5e7eb 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.broker--silver .broker__watermark { color: #c0c0c0; opacity: 0.12; }

/* Бронза */
.broker--bronze .broker__rank {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.broker--bronze .broker__rank-label {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.broker--bronze .broker__watermark { color: #cd7f32; opacity: 0.12; }

/* Основной контент */
.broker__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.broker__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.broker__header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.broker__logo {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #3b82f6;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.broker__info {
    flex: 1;
    min-width: 0;
}

.broker__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f3fa;
    margin: 0 0 0.2rem 0;
}

.broker__quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.broker__quick-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.broker__quick-value {
    color: #d1d4dc;
    font-weight: 500;
}

/* Рейтинг */
.broker__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.broker__score {
    font-size: 1.4rem;
    font-weight: 800;
    color: #7cb342;
    text-shadow: 0 0 20px rgba(124, 179, 66, 0.3);
}

.broker__stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.broker__reviews {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.broker__reviews:hover {
    color: #d1d4dc;
}

/* Кнопки */
.broker__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.broker__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: #7cb342;
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
    white-space: nowrap;
}

.broker__btn:hover {
    transform: translateY(-2px);
    background: #95ce5a;
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
    color: #000;
}

.broker__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.broker__btn:hover svg {
    transform: translateX(3px);
}

.broker__toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262b36;
    border: 1px solid #2a2e39;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.broker__toggle:hover {
    background: #2d3341;
    color: #f0f3fa;
}

.broker__toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.broker--expanded .broker__toggle {
    background: rgba(124, 179, 66, 0.15);
    border-color: rgba(124, 179, 66, 0.3);
    color: #7cb342;
}

.broker--expanded .broker__toggle svg {
    transform: rotate(180deg);
}

/* Раскрывающийся контент */
.broker__details {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #2a2e39;
    animation: brokerSlideDown 0.3s ease;
}

.broker--expanded .broker__details {
    display: block;
}

@keyframes brokerSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Метрики */
.broker__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
}

.broker__metric {
    text-align: center;
    padding: 1.25rem 1rem;
    background: #262b36;
    border-radius: 6px;
    border: 1px solid #2a2e39;
    position: relative;
    overflow: hidden;
}

.broker__metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7cb342, #95ce5a);
}

.broker__metric-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 179, 66, 0.15);
    border-radius: 6px;
    color: #7cb342;
}

.broker__metric-icon svg {
    width: 18px;
    height: 18px;
}

.broker__metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f3fa;
    margin-bottom: 0.25rem;
}

.broker__metric-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Теги */
.broker__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.broker__tag {
    padding: 0.35rem 0.75rem;
    background: #262b36;
    border: 1px solid #2a2e39;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #d1d4dc;
}

.broker__tag--highlight {
    background: rgba(124, 179, 66, 0.15);
    border-color: rgba(124, 179, 66, 0.3);
    color: #7cb342;
}

/* Описание */
.broker__description {
    font-size: 0.85rem;
    color: #d1d4dc;
    line-height: 1.6;
    padding: 1rem;
    background: #131722;
    border-radius: 6px;
    border-left: 3px solid #7cb342;
}

.broker__more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.broker__more-link:hover {
    color: #93c5fd;
}

.broker__more-link svg {
    width: 14px;
    height: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .rating__header {
        flex-direction: column;
        text-align: center;
    }
    
    .broker {
        flex-direction: column;
    }
    
    .broker__sidebar {
        width: 100%;
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .broker__sidebar::after {
        display: none;
    }
    
    .broker__rank {
        font-size: 1.5rem;
    }
    
    .broker__header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .broker__info {
        flex: 1 1 calc(100% - 70px);
        order: 1;
    }
    
    .broker__logo {
        order: 0;
    }
    
    .broker__rating {
        flex-direction: row;
        gap: 0.5rem;
        order: 2;
        padding: 0;
    }
    
    .broker__actions {
        width: 100%;
        order: 3;
        justify-content: space-between;
    }
    
    .broker__btn {
        flex: 1;
        justify-content: center;
    }
    
    .broker__metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
 * HERO-БАННЕР ДЛЯ CPT РЕЙТИНГОВ
 * ======================================== */

.rating-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0d1117 0%, #131722 40%, #1a1f2e 100%);
    margin: 0 -20px;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(149, 206, 90, 0.15);
}

.rating-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(149, 206, 90, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(90, 149, 206, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.rating-hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.rating-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 20px 20px;
}

/* Хлебные крошки внутри баннера */
.rating-hero-breadcrumbs {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 14px;
}

.rating-hero-breadcrumbs a {
    color: var(--rating-accent-color) !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.rating-hero-breadcrumbs a:hover {
    color: var(--rating-accent-color) !important;
    opacity: 1;
}

.rating-hero-breadcrumbs .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3) !important;
}

.rating-hero-breadcrumbs > span > span:not(:has(a)) {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Заголовок внутри баннера */
.rating-hero-banner .simple-title {
    color: #fff !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

/* Мета-блок внутри баннера */
.rating-hero-banner .article-meta-block {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.rating-hero-banner .meta-info-container {
    padding: 0 !important;
}

.rating-hero-banner .meta-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

.rating-hero-banner .author-details a,
.rating-hero-banner .expert-details a {
    color: #fff !important;
}

.rating-hero-banner .author-details a:hover,
.rating-hero-banner .expert-details a:hover {
    color: var(--rating-accent-color) !important;
}

.rating-hero-banner .author-avatar,
.rating-hero-banner .expert-avatar {
    border-color: rgba(149, 206, 90, 0.3) !important;
}

.rating-hero-banner .date-item time {
    color: rgba(255, 255, 255, 0.85) !important;
}

.rating-hero-banner .dates-info .meta-label {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Адаптив */
@media (max-width: 768px) {
    .rating-hero-banner {
        margin: 0 -15px;
    }

    .rating-hero-content {
        padding: 14px 15px 16px;
    }

    .rating-hero-banner .simple-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .rating-hero-banner .meta-info-container {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .rating-hero-banner .dates-info {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rating-hero-banner .simple-title {
        font-size: 19px;
    }

    .rating-hero-breadcrumbs {
        font-size: 11px;
    }
}

/* ========================================
 * ФИКС HERO-БАННЕРА — высокая специфичность
 * ======================================== */

/* Full-width: вырываем баннер из контейнера */
.expert-review-page .container .rating-hero-banner {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: linear-gradient(135deg, #0d1117 0%, #131722 40%, #1a1f2e 100%) !important;
    border-bottom: 1px solid rgba(149, 206, 90, 0.15) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Заголовок H1 — принудительно белый */
.expert-review-page .rating-hero-banner .simple-title,
.expert-review-page .rating-hero-banner h1.simple-title,
.rating-hero-banner h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    opacity: 1 !important;
}

/* Фикс: прозрачный фон для header внутри баннера */
.expert-review-page .rating-hero-banner .expert-review-simple-header,
.rating-hero-banner .expert-review-simple-header {
    background: transparent !important;
    background-color: transparent !important;
}

.rating-hero-banner .article-meta-block,
.rating-hero-banner .meta-info-container {
    background: transparent !important;
    background-color: transparent !important;
}

.rating-hero-banner .breadcrumb-nav {
    background: transparent !important;
    background-color: transparent !important;
}

/* === Обёртка для TradingView виджетов === */
.tv-chart-wrapper {
    width: 100%;
    background: var(--wallet-card-bg, #1e222d);
    border: 1px solid var(--wallet-border, #2a2e39);
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    }

.tv-chart-wrapper .tv-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wallet-border, #2a2e39);
}

.tv-chart-wrapper .tv-chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wallet-text, #d1d4dc);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-chart-wrapper .tv-chart-title i {
    color: var(--wallet-accent, #95ce5a);
    font-size: 14px;
}

.tv-chart-wrapper .tv-chart-badge {
    font-size: 11px;
    color: var(--wallet-text-light, #9ca3af);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid var(--wallet-border, #2a2e39);
}

.tv-chart-wrapper .tv-chart-body {
    padding: 0;
}

.tv-chart-wrapper .tv-chart-body .tradingview-widget-container {
    margin: 0;
}

.tv-chart-wrapper .tv-chart-footer {
    padding: 8px 20px;
    border-top: 1px solid var(--wallet-border, #2a2e39);
    font-size: 12px;
    color: var(--wallet-text-light, #9ca3af);
    text-align: center;
}

.tv-chart-wrapper .tv-chart-footer a {
    color: var(--wallet-accent, #95ce5a);
    text-decoration: none;
}

.tv-chart-wrapper .tv-chart-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .tv-chart-wrapper .tv-chart-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 12px 15px;
    }

    .tv-chart-wrapper .tv-chart-title {
        font-size: 14px;
    }
}

/* ========================================
 * МЕТОДОЛОГИЯ — раскрывающийся блок
 * ======================================== */
.methodology-collapsible {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 0 auto 1.5em;
    max-width: 900px;
}
.methodology-collapsible .mc-header {
    background: linear-gradient(135deg, #1a1f2e, #2a3040);
    padding: 18px 24px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.methodology-collapsible .mc-header:hover {
    background: linear-gradient(135deg, #1f2536, #303848);
}
.methodology-collapsible .mc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    padding-right: 40px;
}
.methodology-collapsible .mc-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.methodology-collapsible .mc-chevron {
    width: 24px;
    height: 24px;
    color: #95ce5a;
    transition: transform 0.35s ease;
    position: absolute;
    top: 18px;
    right: 24px;
}
.methodology-collapsible.mc-open .mc-chevron {
    transform: rotate(180deg);
}
.methodology-collapsible .mc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
}
.methodology-collapsible.mc-open .mc-body {
    max-height: 5000px;
    transition: max-height 0.8s ease;
}
.methodology-collapsible .mc-body-inner {
    padding: 24px 28px 28px;
}
.methodology-collapsible .mc-body-inner h3 {
    text-align: center;
}
.methodology-collapsible .mc-body-inner p,
.methodology-collapsible .mc-body-inner ol,
.methodology-collapsible .mc-body-inner ul,
.methodology-collapsible .mc-body-inner table {
    font-size: 0.95rem;
    line-height: 1.7;
}
@media (min-width: 1300px) {
    .methodology-collapsible {
        margin-left: 0;
        margin-right: auto;
    }
}
@media (max-width: 768px) {
    .methodology-collapsible .mc-header {
        padding: 14px 18px;
    }
    .methodology-collapsible .mc-title {
        font-size: 1rem;
    }
    .methodology-collapsible .mc-body-inner {
        padding: 18px 16px 20px;
    }
    .methodology-collapsible .mc-chevron {
        top: 14px;
        right: 18px;
    }
}

/* Fix: figure and wp-block-image should respect content area width */
.expert-review-page .expert-review-content figure,
.expert-review-page .expert-review-content .wp-block-image,
.service-rating-page .rating-content figure,
.service-rating-page .rating-content .wp-block-image,
.entry-content figure,
.entry-content .wp-block-image {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1300px) {
    .expert-review-page .expert-review-content figure,
    .expert-review-page .expert-review-content .wp-block-image,
    .service-rating-page .rating-content figure,
    .service-rating-page .rating-content .wp-block-image {
        margin-left: 0 !important;
    }
}
