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

/* ОСНОВНЫЕ КОНТЕЙНЕРЫ */
.wb-blog {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.wb-blog *,
.wb-blog .wb_content,
.wb-blog-wrapper,
.wb-blog-list,
.wb-blog-type-list,
.wb-blog-item {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

.wb-blog div[style*="overflow"],
.wb-blog div[style*="height"] {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.wb_content.wb-layout-vertical {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.article-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffeed0 !important;
}

div[class*="wb-blog"] {
    overflow: visible !important;
    max-height: none !important;
}

/* Адаптивная навигация для статей */
@media (max-width: 768px) {
    .article-navigation {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .article-navigation a {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Адаптивность для заголовков в шапке */
.wb-stl-pagetitle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

@media (max-width: 768px) {
    .wb-stl-pagetitle {
        font-size: 14px !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 480px) {
    .wb-stl-pagetitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
    }
}

/* Исправление изображений статей */
.blog-item-thumbnail {
    display: block !important;
    min-height: 200px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wb-blog-item {
    display: flex !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease !important;
    background: linear-gradient(135deg, #ff9500, #ffb347) !important;
    min-height: auto !important;
}

.wb-blog-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Исправление текста в карточках */
.wb-blog-item .caption {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
}

.wb-blog-item .caption .description {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
    word-wrap: break-word !important;
}

/* Предотвращение наложения текста на изображение */
.wb-blog-item {
    align-items: stretch !important;
}

.blog-item-thumbnail {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 0 !important;
    height: 100% !important;
    min-height: 200px !important;
}

/* Адаптивность для изображений статей */
@media (max-width: 768px) {
    .wb-blog-item {
        flex-direction: column !important;
    }
    
    .blog-item-thumbnail {
        width: 100% !important;
        height: 200px !important;
    }
}
