 .table-container {
    overflow-x: auto; /* Горизонтальная прокрутка */
    margin: 20px 0;
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #3fa80d #f1f1f1; /* Для Firefox */
    /*border: 1px solid #ddd;*/
    border-radius: 5px;
}

/* Стили для скроллбара в Webkit-браузерах */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 5px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #3fa80d;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #2d7a0a;
}

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    min-width: 700px; /* Немного увеличим минимальную ширину */
}

.characteristics-table thead th {
    background-color: #3fa80d;
    color: #fff;
    padding: 12px;
    text-align: center;
    text-align: -webkit-center;
    border: 1px solid #2d7a0a;
    font-weight: bold;
}

.characteristics-table tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    text-align: -webkit-left;
    line-height: 1.4;
}

.characteristics-table tbody td:not(:first-child) {
    text-align: center;
    text-align: -webkit-center;
}

.characteristics-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.characteristics-table tr:hover {
    background-color: #f1f1f1;
}

.characteristics-table tbody .position__right {
    text-align: right;
    text-align: -webkit-right;
    font-style: italic;
    color: #666;
    padding-right: 15px;
}

/* Специфические стили для вашей таблицы */
.characteristics-table td[colspan] {
    background-color: #e3f2fd;
    font-weight: bold;
    text-align: center;
    color: #1976d2;
}

.characteristics-table tr:first-child td {
    font-weight: 600;
    background-color: #fffde7;
}

/* Для узких экранов */
@media (max-width: 1024px) {
    .table-container {
        margin: 15px 0px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .characteristics-table {
        font-size: 13px;
        min-width: 650px;
    }

    .characteristics-table thead th,
    .characteristics-table tbody td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .characteristics-table {
        font-size: 12px;
        min-width: 600px;
    }

    .characteristics-table thead th,
    .characteristics-table tbody td {
        padding: 6px;
    }

    .characteristics-table tbody .position__right {
        padding-right: 10px;
    }

    /* Подсказка о прокрутке для мобильных */
    .table-container::after {
        content: "← прокрутите в сторону →";
        display: block;
        text-align: center;
        padding: 8px;
        font-size: 12px;
        color: #666;
        background-color: #f0f0f0;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 480px) {
    .characteristics-table {
        font-size: 11px;
        min-width: 550px;
    }

    .characteristics-table thead th,
    .characteristics-table tbody td {
        padding: 5px 4px;
    }

    .characteristics-table tbody .position__right {
        padding-right: 8px;
        font-size: 10px;
    }
}

/* Карточки оставляем как есть, но скрываем по умолчанию */
.characteristics-cards {
    display: none;
}

@media (max-width: 768px) {
    .characteristics-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .card {
        border: 1px solid #ddd;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    .card h3 {
        font-size: 16px;
        margin: 0 0 10px 0;
    }

    .card p {
        margin: 5px 0;
        font-size: 14px;
    }
}
