/* ========================================================
   SEO Boost PRO - Premium Unified Design System (Perfect Grid)
   ======================================================== */

/* 1. ЕДИНАЯ КАРТОЧКА ДЛЯ ВСЕХ БЛОКОВ */
.sb-tldr, 
.sb-pros, 
.sb-cons, 
.sb-toc, 
.sb-rev-box, 
.sb-faq details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px; 
    border-left-style: solid;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    display: block;
}

/* 2. ЦВЕТ ПОЛОСКИ ДЛЯ КАЖДОГО БЛОКА */
.sb-toc { border-left-color: #6366f1; }       /* Фиолетовый */
.sb-tldr { border-left-color: #3b82f6; }      /* Синий */
.sb-pros { border-left-color: #10b981; }      /* Зеленый */
.sb-cons { border-left-color: #ef4444; }      /* Красный */
.sb-rev-box { border-left-color: #f59e0b; }   /* Оранжевый */
.sb-faq details { border-left-color: #8b5cf6; } /* Пурпурный */

/* 3. ЗАГОЛОВКИ (Каркас) */
.sb-title, 
.sb-toc-title, 
.sb-faq summary {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center; 
}

/* 4. ИДЕАЛЬНЫЕ ИКОНКИ (Скрываем HTML, рисуем CSS) */
.sb-title i, 
.sb-toc-title i { 
    display: none !important; 
}

.sb-toc-title::before { content: "\f0ca"; font-family: FontAwesome, sans-serif; color: #6366f1; } 
.sb-tldr .sb-title::before { content: "\f0e7"; font-family: FontAwesome, sans-serif; color: #3b82f6; } 
.sb-pros .sb-title::before { content: "\f058"; font-family: FontAwesome, sans-serif; color: #10b981; } 
.sb-cons .sb-title::before { content: "\f057"; font-family: FontAwesome, sans-serif; color: #ef4444; } 
.sb-rev-box .sb-title::before { content: "\f086"; font-family: FontAwesome, sans-serif; color: #f59e0b; } 
.sb-faq summary::before { content: "\f059"; font-family: FontAwesome, sans-serif; color: #8b5cf6; } 

.sb-toc-title::before,
.sb-title::before,
.sb-faq summary::before {
    display: inline-flex !important;
    justify-content: center !important; 
    align-items: center !important;
    width: 24px !important;      
    height: 24px !important;
    font-size: 16px !important;  
    margin-right: 12px !important; 
    flex-shrink: 0 !important;
}

/* 5. ИДЕАЛЬНЫЕ ОТСТУПЫ ДЛЯ СПИСКОВ */
.sb-content ul, 
.sb-toc ul { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

.sb-tldr .sb-content ul { padding-left: 20px; list-style: disc; } 
.sb-toc ul { padding-left: 20px; list-style: disc; } 
.sb-tldr .sb-content li, .sb-toc li { margin-bottom: 8px; }

.sb-list-item { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 12px; 
}
.sb-list-item:last-child { margin-bottom: 0; }

.sb-icon {
    flex-shrink: 0;
    width: 24px;         
    display: inline-flex;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
    margin-right: 12px;  
}
.sb-pros .sb-icon i { color: #10b981; }
.sb-cons .sb-icon i { color: #ef4444; }

/* 6. FAQ */
.sb-faq { margin: 25px 0; }
.sb-faq details { padding: 0; } 
.sb-faq summary { 
    padding: 20px 25px; 
    margin: 0; 
    cursor: pointer; 
    outline: none; 
    border-bottom: 1px solid transparent; 
}
.sb-faq details[open] summary { border-bottom-color: #e2e8f0; margin-bottom: 15px; } 
.sb-faq .sb-faq-body { padding: 0 25px 20px 61px; }

/* 7. ОТЗЫВЫ */
.sb-rev-item { 
    background: #f8fafc; 
    border: 1px solid #edf2f7; 
    padding: 15px; 
    margin-bottom: 15px; 
    border-radius: 6px; 
}
.sb-rev-item:last-child { margin-bottom: 0; }

.sb-rev-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}
.sb-rev-header strong { font-size: 15px; color: #2d3748; }
.sb-rev-item p { margin: 0; line-height: 1.6; color: #4a5568; }

/* 8. ТОВАРЫ */
.sb-prod { 
    display: flex; 
    align-items: center; 
    border: 1px solid #e2e8f0; 
    padding: 15px; 
    margin: 25px 0; 
    border-radius: 8px; 
    background: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    transition: 0.2s; 
}
.sb-prod:hover { 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border-color: #cbd5e1; 
}
.sb-prod img { 
    border-radius: 6px; 
    max-width: 90px; 
    border: 1px solid #eee; 
    margin-right: 20px; 
}
.sb-prod-title { 
    display: block; 
    font-weight: 700; 
    font-size: 16px; 
    color: #2d3748; 
    text-decoration: none; 
    margin-bottom: 8px; 
}
.sb-prod-price { font-size: 18px; color: #2b6cb0; font-weight: 600; }

/* ========================================================
   8.5 HOWTO (ИНСТРУКЦИЯ / ШАГИ)
   ======================================================== */
.sb-howto-step {
    display: flex;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}
.sb-howto-step:hover {
    border-color: #cbd5e1;
}
.sb-howto-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #4ade80; /* Зеленый круг как на макете */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 20px;
    margin-top: 2px;
}
.sb-howto-body {
    flex-grow: 1;
}
.sb-howto-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.sb-howto-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.sb-howto-desc p:last-child {
    margin-bottom: 0;
}

/* ========================================================
   9. НОВОЕ: ЛЕНИВАЯ ЗАГРУЗКА YOUTUBE (FACADE)
   ======================================================== */
.sb-youtube { 
    margin: 25px 0; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    position: relative; 
    background: #000; 
}
.sb-yt-facade { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    aspect-ratio: 16 / 9; 
}
.sb-yt-facade img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.8; 
    transition: 0.3s; 
}
.sb-yt-facade:hover img { opacity: 1; }
.sb-yt-play { 
    position: absolute; 
    width: 68px; 
    height: 48px; 
    background-color: rgba(33,33,33,0.8); 
    border-radius: 12px; 
    border: none; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
}
.sb-yt-facade:hover .sb-yt-play { background-color: #ff0000; }
.sb-yt-play i { color: #fff; font-size: 24px; }

/* ========================================================
   10. НОВОЕ: ТАБЛИЦА СРАВНЕНИЙ (SEMANTIC TABLE)
   ======================================================== */
.sb-compare-wrap { 
    margin: 25px 0; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    overflow-x: auto; 
    background: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}
.sb-compare-table { 
    width: 100%; 
    min-width: 600px; 
    border-collapse: collapse; 
    font-size: 14px; 
}
.sb-compare-table th, 
.sb-compare-table td { 
    padding: 15px; 
    border-bottom: 1px solid #e2e8f0; 
    border-right: 1px solid #e2e8f0; 
}
.sb-compare-table th:last-child, 
.sb-compare-table td:last-child { 
    border-right: none; 
}
.sb-compare-table th { 
    background: #f8fafc; 
    font-weight: normal; 
    min-width: 150px; 
}
.sb-compare-table tbody tr:hover { background-color: #f1f5f9; }
.sb-cmp-title { font-weight: 700; margin-bottom: 5px; font-size: 15px; }
.sb-cmp-title a { color: #2d3748; text-decoration: none; }
.sb-cmp-price { color: #2b6cb0; font-weight: bold; }
.sb-cmp-empty { color: #cbd5e1; }
.sb-cmp-img { border-radius: 4px; margin-bottom: 10px; }

/* 11. ФУНКЦИИ: ПЕРЕЛИНКОВКА И ГАЛЕРЕЯ */
.sb-entity-link {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sb-entity-link:hover {
    color: #1d4ed8;
    text-decoration-style: solid;
    background: #eff6ff;
    border-radius: 2px;
}

.sb-gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.sb-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   12. READ MORE (Кнопка "Читать далее" для категорий)
   ======================================================== */
.sb-readmore-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.sb-readmore-container.sb-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}
.sb-readmore-container.sb-expanded::after {
    display: none;
}
.sb-readmore-btn-wrap {
    margin-top: 10px;
}
.sb-rm-btn {
    display: block !important;      
    width: 100% !important;
    padding: 5px 15px !important;   
    background: #e9e9e9 !important; 
    color: #555 !important;         
    border: 1px solid #e9e9e9 !important; 
    border-radius: 3px !important;  
    font-size: 13px !important;
    line-height: 1.4 !important;    
    font-weight: 400 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
}
.sb-rm-btn:hover {
    background: #dfdfdf; 
    color: #333;
}
.sb-rm-btn i {
    margin-right: 5px;   
    color: #666;
}
.sb-rm-btn:focus {
    outline: none;
}

/* ========================================================
   13. ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ======================================================== */
.sb-star-active { color: #fbbf24; }
.sb-star-inactive { color: #e2e8f0; }

.sb-gallery-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.sb-gallery-img { max-width: 30%; border-radius: 6px; border: 1px solid #e2e8f0; }

.sb-prod-img-wrap { flex-shrink: 0; }
.sb-prod-old-price { color: #a0aec0; font-size: 13px; text-decoration: line-through; }
.sb-prod-special-price { color: #e53e3e; font-weight: bold; }