.language-pricing-table {
    width: 100%;
    margin: 30px 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #222;
}

/* ===== 💻 Десктоп ===== */
.language-pricing__table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.language-pricing__th {
    background: #dd3333; /* тёмно-красный */
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 14px;
    letter-spacing: 0.5px;
}

.language-pricing__td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: center;
}

.language-pricing__table tbody tr:nth-child(even) {
    background: #fafafa;
}

.language-pricing__table tbody tr:hover {
    background: #fbeaea;
    transition: background 0.25s ease;
}

/* ===== 📱 Мобильная версия ===== */
@media (max-width: 768px) {
    .language-pricing__table,
    .language-pricing__table thead,
    .language-pricing__table tbody,
    .language-pricing__table th,
    .language-pricing__table td,
    .language-pricing__table tr {
        display: block;
        width: 100%;
    }

    /* Скрываем заголовки таблицы */
    .language-pricing__table thead {
        display: none;
    }

    /* Каждая строка — отдельная карточка */
    .language-pricing__table tr {
        background: #fff;
        margin-bottom: 20px;
        border-radius: 14px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        padding: 14px 16px;
        position: relative;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .language-pricing__table tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }

    /* Название курса — по центру, отдельно */
    .language-pricing__table td:first-child {
        display: block;
        text-align: center;
        font-weight: 700;
        font-size: 17px;
        color: #e63946;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f3f3f3;
        margin-bottom: 10px;
    }

    /* Прячем лейбл “Курс” */
    .language-pricing__table td:first-child::before {
        display: none;
    }

    /* Остальные ячейки — обычный вид карточки */
    .language-pricing__table td:not(:first-child) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }

    .language-pricing__table td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 600;
        color: #e63946;
        text-transform: uppercase;
        font-size: 13px;
        flex: 1;
        margin-right: 10px;
    }

    .language-pricing__table td:not(:first-child) span {
        flex: 2;
        text-align: right;
        color: #333;
    }

    .language-pricing__table td:last-child {
        border-bottom: none;
    }

    /* Анимация появления */
    .language-pricing__table tr {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.4s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

