
/* =========================================
   УНИВЕРСАЛЬНАЯ ТАБЛИЦА УСЛУГ
   ========================================= */

table.service-table {
    width: 100% !important;
    border: 1px solid #dfe3e8 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

/* Все ячейки */
table.service-table tr td,
table.service-table tr th {
    padding: 16px 18px !important;
    border: 0 !important;
    border-right: 1px solid #e5e8ec !important;
    border-bottom: 1px solid #e5e8ec !important;
    background: #ffffff !important;
}

/* Последняя колонка */
table.service-table tr td:last-child,
table.service-table tr th:last-child {
    border-right: 0 !important;
}

/* Последняя строка */
table.service-table tr:last-child td,
table.service-table tr:last-child th {
    border-bottom: 0 !important;
}


/* =========================================
   ПЕРВАЯ СТРОКА — ЗАГОЛОВОК
   ========================================= */

table.service-table tr:first-child td,
table.service-table tr:first-child th {
    background: #09328b !important;
    color: #ffffff !important;
    border-color: #09328b !important;
}


/* =========================================
   СКРУГЛЕНИЕ ВНЕШНИХ УГЛОВ
   ========================================= */

/* Верхний левый */
table.service-table tr:first-child td:first-child,
table.service-table tr:first-child th:first-child {
    border-top-left-radius: 10px !important;
}

/* Верхний правый */
table.service-table tr:first-child td:last-child,
table.service-table tr:first-child th:last-child {
    border-top-right-radius: 10px !important;
}

/* Нижний левый */
table.service-table tr:last-child td:first-child,
table.service-table tr:last-child th:first-child {
    border-bottom-left-radius: 10px !important;
}

/* Нижний правый */
table.service-table tr:last-child td:last-child,
table.service-table tr:last-child th:last-child {
    border-bottom-right-radius: 10px !important;
}

/* =========================================
   ЭФФЕКТ ПРИ НАВЕДЕНИИ
   ========================================= */

table.service-table tr:not(:first-child) {
    transition: background-color 0.2s ease;
}

table.service-table tr:not(:first-child):hover td {
    background-color: #f7f9fc !important;
}



@media (max-width: 500px) {

    /* Размер текста в заголовках таблицы */
    table.service-table .zag6 {
        font-size: 15px !important;
    }

    /* Размер основного текста таблицы */
    table.service-table .txt_min4 {
        font-size: 13px !important;
    }

    /* Компактные отступы внутри ячеек */
    table.service-table tr td,
    table.service-table tr th {
        padding: 9px 10px !important;
        line-height: 1.3 !important;
    }

    /* Убираем лишние отступы у абзацев */
    table.service-table p {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Горизонтальная прокрутка */
    .cmsl_adaptive_table_wrap1 {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Таблица шире экрана — появляется горизонтальный скролл */
    table.service-table {
        width: 620px !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Разрешаем перенос текста */
    table.service-table span {
        white-space: normal !important;
    }
}
