/* ===== АДАПТИВНЫЕ СТИЛИ ДЛЯ ТАБЛИЦ И SEO-КОНТЕНТА ===== */

/* Базовые стили для контейнера контента */
.textSeo {
    color: #FFFFFF;
    line-height: 1.8;
}

.textSeo .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.textSeo header h1 {
    font-size: 2.5em;
    color: #FFD600;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.textSeo section {
    margin-bottom: 50px;
}

.textSeo h2 {
    font-size: 1.8em;
    color: #FFD600;
    margin: 40px 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #FFD600;
    padding-bottom: 10px;
}

.textSeo h3 {
    font-size: 1.4em;
    color: #FFF;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.textSeo p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #E0E0E0;
}

.textSeo ul, .textSeo ol {
    margin: 20px 0;
    padding-left: 30px;
}

.textSeo li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #E0E0E0;
}

.textSeo strong {
    color: #FFD600;
    font-weight: 600;
}

/* Стили для таблиц - десктоп */
.textSeo table,
.textSeo .responsive-table {
    border-collapse: collapse;
    width: 100%;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.1);
}

.textSeo table thead,
.textSeo .responsive-table thead {
    background: linear-gradient(135deg, #FFD600 0%, #FFA500 100%);
}

.textSeo table th,
.textSeo .responsive-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.textSeo table th:last-child,
.textSeo .responsive-table th:last-child {
    border-right: none;
}

.textSeo table td,
.textSeo .responsive-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 214, 0, 0.1);
    color: #FFFFFF;
    font-size: 0.95em;
    border-right: 1px solid rgba(255, 214, 0, 0.05);
}

.textSeo table td:last-child,
.textSeo .responsive-table td:last-child {
    border-right: none;
}

.textSeo table tbody tr,
.textSeo .responsive-table tbody tr {
    transition: background-color 0.3s ease;
}

.textSeo table tbody tr:hover,
.textSeo .responsive-table tbody tr:hover {
    background: rgba(255, 214, 0, 0.08);
}

.textSeo table tbody tr:nth-child(even),
.textSeo .responsive-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Стили для FAQ */
.textSeo .faq-item {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.textSeo .faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.15);
}

.textSeo .faq-question {
    font-weight: 700;
    color: #FFD600;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.textSeo .faq-answer {
    color: #E0E0E0;
    line-height: 1.8;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ ===== */
@media screen and (max-width: 1024px) {
    .textSeo .container {
        padding: 30px 15px;
    }

    .textSeo header h1 {
        font-size: 2em;
    }

    .textSeo h2 {
        font-size: 1.5em;
    }

    .textSeo table td,
    .textSeo table th,
    .textSeo .responsive-table td,
    .textSeo .responsive-table th {
        padding: 12px 10px;
        font-size: 0.9em;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media screen and (max-width: 768px) {
    .textSeo .container {
        padding: 20px 10px;
    }

    .textSeo header h1 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .textSeo h2 {
        font-size: 1.3em;
        margin: 30px 0 15px 0;
    }

    .textSeo h3 {
        font-size: 1.15em;
    }

    .textSeo p {
        font-size: 1em;
    }

    /* КРИТИЧНО: Трансформация таблиц для мобильных */
    .textSeo table,
    .textSeo .responsive-table {
        border: 0;
        margin: 20px 0;
    }

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

    /* Каждая строка становится карточкой */
    .textSeo table tbody tr,
    .textSeo .responsive-table tbody tr {
        display: block;
        margin-bottom: 20px;
        background: rgba(0, 0, 0, 0.6);
        border: 2px solid rgba(255, 214, 0, 0.3);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    .textSeo table tbody tr:hover,
    .textSeo .responsive-table tbody tr:hover {
        background: rgba(255, 214, 0, 0.1);
        border-color: #FFD600;
    }

    /* Ячейки таблицы становятся строками */
    .textSeo table td,
    .textSeo .responsive-table td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border: none;
        border-bottom: 1px solid rgba(255, 214, 0, 0.1);
        position: relative;
        padding-left: 50%;
    }

    .textSeo table td:last-child,
    .textSeo .responsive-table td:last-child {
        border-bottom: none;
    }

    /* Добавляем метки перед каждым значением */
    .textSeo table td:before,
    .textSeo .responsive-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: #FFD600;
        text-transform: uppercase;
        font-size: 0.85em;
    }

    /* Улучшаем отступы для списков */
    .textSeo ul,
    .textSeo ol {
        padding-left: 20px;
    }

    .textSeo li {
        margin-bottom: 10px;
        font-size: 0.95em;
    }

    /* FAQ на мобильных */
    .textSeo .faq-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .textSeo .faq-question {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .textSeo .faq-answer {
        font-size: 0.95em;
    }
}

/* ===== МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) ===== */
@media screen and (max-width: 480px) {
    .textSeo header h1 {
        font-size: 1.4em;
    }

    .textSeo h2 {
        font-size: 1.2em;
    }

    .textSeo h3 {
        font-size: 1.05em;
    }

    .textSeo table td,
    .textSeo .responsive-table td {
        padding: 8px 10px;
        font-size: 0.9em;
        padding-left: 45%;
    }

    .textSeo table td:before,
    .textSeo .responsive-table td:before {
        font-size: 0.8em;
        width: 40%;
    }

    .textSeo .faq-item {
        padding: 12px;
    }

    .textSeo .container {
        padding: 15px 8px;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media screen and (max-width: 360px) {
    .textSeo table td,
    .textSeo .responsive-table td {
        padding-left: 100%;
        text-align: left;
    }

    .textSeo table td:before,
    .textSeo .responsive-table td:before {
        position: relative;
        display: block;
        width: 100%;
        padding-bottom: 5px;
        left: 0;
    }
}

/* Анимация появления контента */
.textSeo section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Улучшенная читаемость для длинных таблиц */
.textSeo table tbody,
.textSeo .responsive-table tbody {
    display: table-row-group;
}

/* Стили для em (курсив) в таблицах */
.textSeo table em,
.textSeo .responsive-table em {
    color: #CCC;
    font-style: italic;
    font-size: 0.9em;
}

/* Прокрутка для очень широких таблиц на мобильных (запасной вариант) */
@media screen and (max-width: 768px) {
    .textSeo .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
