/* ============================================================
   СТИЛИ ДЛЯ ТАБЛИЦ — ГРАДИЕНТ + ПРОЗРАЧНОСТЬ
   ============================================================ */

/* --- ОСНОВНЫЕ СТИЛИ ТАБЛИЦ --- */
table:not(.no-style) {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin: 20px 0;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* --- ЗАГОЛОВКИ ТАБЛИЦ — ГРАДИЕНТ + ПРОЗРАЧНОСТЬ --- */
table:not(.no-style) thead th,
table:not(.no-style) th {
    background: linear-gradient(135deg, rgba(26,54,93,0.10) 0%, rgba(26,54,93,0.03) 100%) !important;
    color: #1a365d !important;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    border: none !important;
    border-bottom: 2px solid rgba(26,54,93,0.12) !important;
}

/* --- ЯЧЕЙКИ ТАБЛИЦ --- */
table:not(.no-style) td {
    padding: 12px 18px;
    border: 1px solid #e9ecef;
    color: #333;
    vertical-align: top;
    background: #ffffff;
}

/* --- СТРОКИ ТАБЛИЦ (ЗЕБРА) --- */
table:not(.no-style) tbody tr:nth-child(even) {
    background: #f8f9fa;
}

table:not(.no-style) tbody tr:nth-child(even) td {
    background: #f8f9fa;
}

/* --- ПРИ НАВЕДЕНИИ --- */
table:not(.no-style) tbody tr:hover td {
    background: #f0f4ff !important;
    transition: background 0.2s ease;
}

/* --- ПЕРВАЯ КОЛОНКА (ЗАГОЛОВКИ СТРОК) --- */
table:not(.no-style) tbody th {
    background: #f0f4ff;
    font-weight: 600;
    color: #1a365d;
    padding: 12px 18px;
    border: 1px solid #e9ecef;
}

/* --- ОСОБЫЕ СТРОКИ (ГРУППИРОВКА) --- */
table:not(.no-style) tr.section-header td {
    background: #f0f4ff;
    font-weight: 700;
    color: #1a365d;
    padding: 10px 18px;
    border-top: 2px solid #1a365d;
    border-bottom: 1px solid #1a365d;
}

/* --- ВАЖНЫЕ ЗНАЧЕНИЯ (мощность, цена) --- */
table:not(.no-style) td.highlight {
    font-weight: 700;
    color: #c83240;
}

/* --- ЗАГОЛОВКИ С ОБЪЕДИНЕНИЕМ (colspan) --- */
table:not(.no-style) th[colspan] {
    background: linear-gradient(135deg, rgba(26,54,93,0.10) 0%, rgba(26,54,93,0.03) 100%) !important;
    color: #1a365d !important;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border: none !important;
    border-bottom: 2px solid rgba(26,54,93,0.12) !important;
}

/* --- АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) --- */
@media (max-width: 768px) {
    table:not(.no-style) {
        font-size: 13px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    table:not(.no-style) thead th,
    table:not(.no-style) th {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    table:not(.no-style) td {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .table-wrap table:not(.no-style) {
        min-width: 480px;
        font-size: 12px;
    }
}

/* --- ОБЕРТКА ДЛЯ ТАБЛИЦЫ --- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.table-wrap table:not(.no-style) {
    margin: 0;
    border-radius: 12px;
    box-shadow: none;
}

/* --- ПРИМЕЧАНИЕ ПОД ТАБЛИЦЕЙ --- */
.table-note {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 8px;
    padding: 0 5px;
}

/* ============================================================
   СТИЛИ БЛОКА ССЫЛОК
   ============================================================ */
.internal-links-block {
    background: linear-gradient(135deg, rgba(26,54,93,0.05) 0%, rgba(26,54,93,0.01) 100%) !important;
    border-left: 4px solid rgba(200,50,64,0.3) !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

.internal-links-block a {
    pointer-events: auto !important;
    cursor: pointer !important;
    color: #1a365d !important;
    text-decoration: none !important;
}

.internal-links-block a:hover {
    color: #c83240 !important;
    text-decoration: underline !important;
}

.internal-links-block .links-wrap a,
.internal-links-block .links-small a,
.internal-links-block .links-tiny a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
}