/* ========================================
   ИТОГОВЫЕ СТИЛИ ДЛЯ ГИБКОГО БЛОКА СТАТЬИ
   Унифицированные шрифты с темой (Literata + Inter)
   + Performance, Accessibility и Управляемый TOC
   ОБНОВЛЕНО: Убраны автогенерируемые блоки
======================================== */

/* ДОБАВЛЕНО: Skip links для keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 99999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* ДОБАВЛЕНО: Переменные шрифтов и цветов для консистентности с темой */
.sborisov-article {
    --article-heading-font: 'Literata', Georgia, serif;
    --article-body-font: 'Inter', system-ui, -apple-system, sans-serif;
    --article-primary-color: #3a7a9f;
    --article-accent-color: #C65D00;
    --article-focus-color: #005fcc;
    --article-focus-outline: 3px;
}

/* ДОБАВЛЕНО: Performance оптимизация с layout containment */
.sborisov-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--article-body-font);
    font-feature-settings: 'kern' on, 'liga' on, 'calt' on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #696462;
    /* ДОБАВЛЕНО: Layout containment для производительности */
    contain: layout style;
}

/* ИСПРАВЛЕНО: Все заголовки используют Literata */
.sborisov-article h1,
.sborisov-article h2,
.sborisov-article h3,
.sborisov-article h4,
.sborisov-article h5,
.sborisov-article h6 {
    font-family: var(--article-heading-font);
    font-feature-settings: 'kern' on, 'liga' on, 'calt' on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #5a5855;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    /* ДОБАВЛЕНО: Улучшенный focus для заголовков-ссылок */
    scroll-margin-top: 2rem;
}

/* ДОБАВЛЕНО: Focus стили для заголовков с ID (для TOC навигации) */
.sborisov-article h1[id]:target,
.sborisov-article h2[id]:target,
.sborisov-article h3[id]:target,
.sborisov-article h4[id]:target {
    background: rgba(0, 95, 204, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin-left: -12px;
    margin-right: -12px;
    transition: background-color 0.3s ease;
}

/* ИСПРАВЛЕНО: Все параграфы используют Inter */
.sborisov-article p {
    font-family: var(--article-body-font);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* УПРОЩЕНО: Улучшенные стили для article header (без author meta) */
.article-header {
    margin-bottom: 60px;
    text-align: center;
    /* ДОБАВЛЕНО: Content visibility для больших заголовков */
    content-visibility: auto;
}

.article-header h1,
.article-hero h2 {
    font-family: var(--article-heading-font);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.article-hero + .article-hero {
    margin-top: -40px;
}

.article-hero + .article-hero h2 {
    margin-top: 0;
}

/* ИСПРАВЛЕНО: Подзаголовок */
.subtitle,
.article-subtitle {
    font-family: var(--article-body-font);
    font-style: italic;
    margin-bottom: 40px;
    padding: 0 20px;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   УПРАВЛЯЕМЫЙ TABLE OF CONTENTS СЕКЦИЯ
======================================== */

/* ОБНОВЛЕНО: Стили для управляемого TOC секции */
.toc-section-wrapper {
    margin: 40px 0;
    /* ДОБАВЛЕНО: Performance оптимизация */
    contain: layout style paint;
}

/* ИСПРАВЛЕНО: Улучшенные стили для управляемого Table of Contents */
.article-toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 0; /* Убрано внешнее margin - управляется wrapper */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    /* ДОБАВЛЕНО: Performance оптимизация */
    contain: layout style paint;
    transition: box-shadow 0.3s ease;
}

.article-toc:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Стили для summary (заголовок аккордеона) */
.article-toc summary {
    list-style: none; /* Убираем стандартный треугольник браузера */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--article-heading-font);
    font-weight: 600;
    font-size: 1.2em;
    color: #495057;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

/* Убираем стандартные маркеры summary в разных браузерах */
.article-toc summary::-webkit-details-marker {
    display: none;
}

.article-toc summary::marker {
    content: '';
}

.article-toc summary:hover {
    background: rgba(0, 124, 186, 0.05);
    color: #007cba;
}

.article-toc summary:focus-visible {
    outline: var(--article-focus-outline) solid var(--article-focus-color);
    outline-offset: -2px;
    background: rgba(0, 95, 204, 0.1);
}

/* Элементы внутри summary */
.toc-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.toc-text {
    flex: 1;
}

.toc-count {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 400;
    font-family: var(--article-body-font);
}

.toc-arrow {
    font-size: 1.2em;
    color: var(--article-accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

/* Анимация стрелки при открытии */
.article-toc[open] .toc-arrow {
    transform: rotate(180deg);
    color: #007cba;
}

/* Контейнер для содержимого TOC */
.toc-content {
    padding: 0 25px 25px 25px;
    /* ДОБАВЛЕНО: Плавная анимация появления */
    animation: toc-slide-down 0.3s ease-out;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Анимация раскрытия содержимого */
@keyframes toc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Список TOC */
.toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
    position: relative;
}

.toc-list li::before {
    content: '→';
    color: var(--article-accent-color);
    font-weight: bold;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toc-list li:hover::before {
    opacity: 1;
}

/* Уровни вложенности (только до H3) */
.toc-level-1 { margin-left: 0; }
.toc-level-2 { margin-left: 25px; }

/* Ссылки TOC */
.toc-link {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    padding: 6px 10px;
    display: inline-block;
    margin: -6px -10px;
    position: relative;
    z-index: 1;
}

.toc-link:hover {
    color: #005a87;
    text-decoration: underline;
    background: rgba(0, 124, 186, 0.1);
}

/* ДОБАВЛЕНО: Улучшенный focus для TOC ссылок */
.toc-link:focus-visible {
    outline: var(--article-focus-outline) solid var(--article-focus-color);
    outline-offset: 2px;
    background: rgba(0, 95, 204, 0.1);
    text-decoration: underline;
}

/* ДОБАВЛЕНО: Активная ссылка (если добавить JS для отслеживания позиции) */
.toc-link.active {
    background: rgba(0, 124, 186, 0.15);
    color: #005a87;
    font-weight: 600;
}

/* ========================================
   ОСНОВНЫЕ ЭЛЕМЕНТЫ СТАТЬИ
======================================== */

/* ИСПРАВЛЕНО: Вводная цитата */
.intro-quote {
    background: #fff;
    border-left: 4px solid var(--article-accent-color);
    padding: 20px 30px 20px 30px;
    margin: 30px 0;
    font-family: var(--article-body-font);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
    /* ДОБАВЛЕНО: Performance optimization */
    contain: layout style;
}

.intro-quote p {
    margin-bottom: 10px;
    font-family: inherit;
}

.intro-quote p:last-child {
    margin-bottom: 0;
}

/* ИСПРАВЛЕНО: Заголовки секций */
.sborisov-article h2 {
    font-family: var(--article-heading-font);
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.sborisov-article h3,
.section-heading {
    font-family: var(--article-heading-font);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

.sborisov-article h4 {
    font-family: var(--article-heading-font);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #444;
}

/* ИСПРАВЛЕНО: Выделенный блок */
.highlight-box {
    background: #FFF9F5;
    border: 1px solid var(--article-accent-color);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(198, 93, 0, 0.1);
    font-family: var(--article-body-font);
    /* ДОБАВЛЕНО: Performance optimization */
    contain: layout style;
}

.highlight-box p {
    margin-bottom: 15px;
    font-family: inherit;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* ИСПРАВЛЕНО: Список истощения */
.exhaustion-list {
    background: #fff;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: var(--article-body-font);
    contain: layout style;
}

.exhaustion-list li {
    margin-bottom: 15px;
    padding-left: 10px;
    font-family: inherit;
    line-height: 1.6;
}

/* ИСПРАВЛЕНО: Диалоговая секция */
.dialog-section {
    background: #f0f0f0;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
    font-family: var(--article-body-font);
    font-style: italic;
    line-height: 1.6;
    contain: layout style;
}

/* ИСПРАВЛЕНО: Внутренние мысли */
.inner-thoughts {
    color: #666;
    font-family: var(--article-body-font);
    font-style: italic;
    background: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
    contain: layout style;
}

/* ИСПРАВЛЕНО: Разделитель с изображением - оставляем LiteSpeed Cache управлять изображениями */
.section-divider {
    text-align: center;
    margin: 60px 0;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider img,
.section-divider .section-divider-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    /* УБРАНО: will-change и transform оптимизации - пусть LiteSpeed Cache управляет */
    aspect-ratio: 16/10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-divider img:hover,
.section-divider .section-divider-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ОСТАВЛЕНО: Только базовые стили для lazy loading (совместимы с LiteSpeed) */
.section-divider img[loading="lazy"],
.section-divider .section-divider-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #f0f0f0;
    min-height: 200px;
}

.section-divider img[loading="lazy"].loaded,
.section-divider .section-divider-image[loading="lazy"].loaded,
.section-divider img.litespeed-loaded,
.section-divider .section-divider-image.litespeed-loaded {
    opacity: 0.9;
    min-height: auto;
    background: transparent;
}

/* ========================================
   CTA БЛОК С GPU УСКОРЕНИЕМ
======================================== */

/* ИСПРАВЛЕНО: CTA блок с GPU ускорением для анимаций */
.cta-mid {
    background: linear-gradient(135deg, var(--article-accent-color) 0%, #E87A00 100%);
    color: white;
    padding: 40px;
    margin: 60px -20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(198, 93, 0, 0.3);
    font-family: var(--article-body-font);
    /* ДОБАВЛЕНО: Performance optimization */
    contain: layout style;
}

.cta-mid h3 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--article-heading-font);
}

.cta-mid p {
    font-size: 18px;
    margin-bottom: 30px;
    font-family: inherit;
    line-height: 1.5;
}

/* Контейнер для кнопок */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ДОБАВЛЕНО: GPU ускорение для кнопок */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--article-body-font);
    font-weight: 600;
    font-size: 16px;
    min-width: 200px;
    text-align: center;
    /* ДОБАВЛЕНО: GPU ускорение и оптимизация анимаций */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backface-visibility: hidden;
}

/* Первая кнопка (теперь "Получить консультацию" на белом фоне) */
.cta-button-primary {
    background: white;
    color: var(--article-accent-color);
}

.cta-button-primary:hover {
    transform: translateY(-3px) translateZ(0);
    text-decoration: none;
    color: var(--article-accent-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ДОБАВЛЕНО: Улучшенный focus для кнопок */
.cta-button-primary:focus-visible {
    outline: var(--article-focus-outline) solid #ffffff;
    outline-offset: 2px;
    transform: translateY(-2px) translateZ(0);
}

/* Вторая кнопка (теперь "Узнать, как вернуть силы" прозрачная) */
.cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--article-accent-color);
    transform: translateY(-3px) translateZ(0);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-button-secondary:focus-visible {
    outline: var(--article-focus-outline) solid #ffffff;
    outline-offset: 2px;
    transform: translateY(-2px) translateZ(0);
}

/* ========================================
   СПЕЦИАЛЬНЫЕ БЛОКИ
======================================== */

/* ИСПРАВЛЕНО: Более специфичные селекторы для quote-highlight */
.sborisov-article .quote-highlight,
article.sborisov-article .quote-highlight,
.wp-block-sborisov-flexible-article .quote-highlight {
    font-family: var(--article-body-font) !important;
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    color: var(--article-accent-color) !important;
    text-align: center !important;
    margin: 50px 0 !important;
    font-weight: 500 !important;
    font-style: normal !important;
    padding: 20px !important;
    border: none !important;
    background: rgba(198, 93, 0, 0.05) !important;
    border-radius: 8px !important;
    display: block !important;
    contain: layout style;
}

/* Убираем стили с вложенных элементов внутри quote-highlight */
.sborisov-article .quote-highlight p,
.sborisov-article .quote-highlight span,
.sborisov-article .quote-highlight div {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    text-align: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

/* ИСПРАВЛЕНО: Московский контекст */
.moscow-context {
    background: #F5F5F5;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    border-left: 4px solid #50C878;
    font-family: var(--article-body-font);
    contain: layout style;
}

.moscow-context p {
    font-family: inherit;
}

.moscow-context ul {
    margin-top: 15px;
    font-family: inherit;
}

.moscow-context li {
    margin-bottom: 10px;
    font-family: inherit;
    line-height: 1.6;
}

/* ИСПРАВЛЕНО: Заметка психолога - БЕЗ contain для корректной работы псевдоэлемента */
.therapist-note {
    background: #FFF;
    border: 2px solid var(--article-accent-color);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    font-family: var(--article-body-font);
    /* ИСПРАВЛЕНО: Убрано contain: layout style; - мешает псевдоэлементу */
}

.therapist-note::before {
    content: "💭 Из практики психолога";
    position: absolute;
    top: -15px;
    left: 30px;
    background: #FFF;
    padding: 0 15px;
    color: var(--article-accent-color);
    font-family: var(--article-body-font);
    font-weight: 600;
    font-size: 14px;
    /* ДОБАВЛЕНО: Убеждаемся что псевдоэлемент видим */
    z-index: 1;
    white-space: nowrap;
}

.therapist-note p {
    font-family: inherit;
}

.therapist-note ul {
    margin-top: 15px;
    font-family: inherit;
}

.therapist-note li {
    margin-bottom: 10px;
    font-family: inherit;
    font-style: italic;
    line-height: 1.6;
}

/* ИСПРАВЛЕНО: Трансформационная сетка */
.transformation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    contain: layout;
}

.transformation-card {
    background: white;
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: var(--article-body-font);
    contain: layout style;
    /* ДОБАВЛЕНО: Hover эффекты с GPU ускорением */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.transformation-card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transformation-card h4 {
    color: var(--article-accent-color);
    margin-bottom: 15px;
    font-family: var(--article-heading-font);
}

.transformation-card p {
    font-family: inherit;
    line-height: 1.6;
}

/* ========================================
   ОБЩИЕ ЭЛЕМЕНТЫ
======================================== */

/* ИСПРАВЛЕНО: Общие стили для списков */
.sborisov-article ul,
.sborisov-article ol {
    margin: 20px 0;
    padding-left: 30px;
    font-family: var(--article-body-font);
}

.sborisov-article li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: inherit;
}

/* Сброс стилей темы для специфичных элементов */
.sborisov-article * {
    box-sizing: border-box;
}

/* Дополнительные правила сброса для quote-highlight */
.sborisov-article .quote-highlight * {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
    line-height: inherit;
}

/* ДОБАВЛЕНО: Поддержка WebP и современных форматов изображений (совместимо с LiteSpeed) */
.section-divider picture {
    display: block;
    text-align: center;
}

.section-divider source,
.section-divider img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   ACCESSIBILITY И МЕДИА-ЗАПРОСЫ
======================================== */

/* ДОБАВЛЕНО: Поддержка prefers-reduced-motion для accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cta-button {
        will-change: auto;
        transform: none;
    }
    
    .transformation-card {
        will-change: auto;
    }
    
    /* ДОБАВЛЕНО: Поддержка prefers-reduced-motion для TOC */
    .toc-content {
        animation: none;
    }
    
    .toc-arrow {
        transition: none;
    }
    
    .article-toc[open] .toc-arrow {
        transform: none;
    }
}

/* ДОБАВЛЕНО: Высококонтрастный режим */
@media (prefers-contrast: high) {
    .sborisov-article {
        --article-primary-color: #000000;
        --article-accent-color: #000000;
        --article-focus-color: #000000;
    }
    
    .cta-button-primary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .cta-button-secondary {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
    
    .highlight-box,
    .therapist-note,
    .moscow-context {
        border-width: 3px;
    }
}

/* ДОБАВЛЕНО: Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .section-divider img {
        opacity: 0.8;
    }
    
    .section-divider img:hover {
        opacity: 1;
    }
}

/* ДОБАВЛЕНО: Улучшенные focus indicators для всех интерактивных элементов */
.sborisov-article a:focus-visible,
.sborisov-article button:focus-visible,
.sborisov-article [tabindex]:focus-visible {
    outline: var(--article-focus-outline) solid var(--article-focus-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ДОБАВЛЕНО: Content visibility для performance больших секций */
/* ИСПРАВЛЕНО: Убрали therapist-note из-за конфликта с псевдоэлементом */
.highlight-box,
.moscow-context,
.transformation-grid,
.exhaustion-list {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* ========================================
   АДАПТИВНОСТЬ С УЛУЧШЕННЫМИ СТИЛЯМИ
======================================== */

@media (max-width: 768px) {
    .transformation-grid { 
        grid-template-columns: 1fr; 
    }
    
    .cta-mid { 
        margin: 40px 0; 
        padding: 30px 20px;
    }
    
    /* Адаптивность для мобильных устройств */
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .article-header h1,
    .article-hero h2 {
        font-size: 2rem;
        font-family: var(--article-heading-font);
    }
    
    .sborisov-article {
        padding: 15px;
    }
    
    /* ДОБАВЛЕНО: Мобильные стили для управляемого TOC */
    .toc-section-wrapper {
        margin: 30px 0;
    }
    
    .article-toc {
        border-radius: 8px;
    }
    
    .article-toc summary {
        padding: 15px 20px;
        font-size: 1.1em;
        gap: 8px;
    }
    
    .toc-content {
        padding: 0 20px 20px 20px;
    }
    
    .toc-list {
        font-size: 0.95rem;
    }
    
    .toc-level-2 { margin-left: 15px; }
    
    .toc-count {
        font-size: 0.8em;
    }
    
    /* Улучшенные touch targets для мобильных */
    .toc-link {
        padding: 10px 12px;
        margin: -8px -12px;
        min-height: 44px; /* Минимальный размер для touch */
        display: flex;
        align-items: center;
    }
    
    /* Адаптивные стили для quote-highlight */
    .sborisov-article .quote-highlight {
        font-size: 1.3rem !important;
        margin: 30px 0 !important;
        padding: 15px !important;
        font-family: var(--article-body-font) !important;
    }
    
    /* ДОБАВЛЕНО: Адаптивные изображения на мобильных */
    .section-divider {
        margin: 40px 0;
        min-height: 150px;
    }
    
    .section-divider img,
    .section-divider .section-divider-image {
        border-radius: 8px;
        max-width: 100%;
    }
    
    /* Адаптивные шрифты для мобильных */
    .sborisov-article p {
        font-size: 1.25rem;
        line-height: 1.7;
    }
    
    .sborisov-article h2 {
        font-size: 1.75rem;
    }
    
    .sborisov-article h3 {
        font-size: 1.5rem;
    }
}

/* ДОБАВЛЕНО: Стили для оптимизации производительности */
@media (max-width: 480px) {
    .section-divider img,
    .section-divider .section-divider-image {
        border-radius: 6px;
        min-height: 120px;
    }
    
    .sborisov-article p {
        font-size: 1.375rem;
        line-height: 1.8;
    }
    
    .toc-section-wrapper {
        margin: 25px 0;
    }
    
    .article-toc {
        border-radius: 6px;
    }
    
    .article-toc summary {
        padding: 12px 15px;
        font-size: 1em;
        gap: 6px;
    }
    
    .toc-content {
        padding: 0 15px 15px 15px;
    }
    
    .toc-list {
        font-size: 0.9rem;
    }
    
    .toc-count {
        display: none; /* Скрываем счетчик на очень маленьких экранах */
    }
    
    .toc-link {
        padding: 12px 10px;
        margin: -10px -10px;
        font-size: 0.9rem;
    }
    
    .skip-link {
        left: 4px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* ДОБАВЛЕНО: Fallback для старых браузеров */
@supports not (font-feature-settings: 'kern') {
    .sborisov-article,
    .sborisov-article * {
        text-rendering: optimizeLegibility;
    }
}

/* ДОБАВЛЕНО: Print стили */
@media print {
    .skip-link,
    .cta-mid,
    .article-toc,
    .toc-section-wrapper {
        display: none;
    }
    
    .sborisov-article {
        color: #000;
        background: #fff;
    }
    
    .cta-button {
        background: transparent;
        color: #000;
        border: 1px solid #000;
    }
}