/* Блоки SEO-страниц: дополняют pages.css, не переопределяют его */

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 34px;
}

.langswitch {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--edge);
    background: var(--glass);
    white-space: nowrap;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.langswitch:hover {
    border-color: rgba(139, 92, 246, .6);
    background: var(--glass-strong);
}

/* Карточки-возможности */
.seo-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.seo-card {
    padding: 22px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--edge);
    transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.seo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, .45);
}

.seo-card i {
    font-size: 20px;
    color: var(--cyan);
    margin-bottom: 12px;
    display: block;
}

.seo-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.seo-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

/* Таблицы прокручиваются вбок на узких экранах, а не ломают вёрстку */
.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--edge);
    background: var(--glass);
}

.table-wrap .odds-table {
    margin: 0;
    border: 0;
    min-width: 520px;
}

/* Вопросы раскрываются нативным details — без JavaScript */
.faq-item {
    border-radius: 16px;
    border: 1px solid var(--edge);
    background: var(--glass);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--cyan);
    flex-shrink: 0;
    transition: transform .2s var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--edge);
}

.faq-a {
    padding: 16px 22px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--muted);
}

/* Призыв к действию */
.seo-cta {
    margin: 44px 0;
    padding: 32px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, .35);
    background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .1));
}

.seo-cta h2 {
    font-size: 21px;
    margin-bottom: 10px;
}

.seo-cta p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 22px;
}

.seo-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #0b0620;
    background: linear-gradient(120deg, var(--violet), var(--cyan));
    transition: filter .2s var(--ease), transform .2s var(--ease);
}

.seo-cta__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* Перелинковка */
.related__list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.related__list a {
    display: block;
    padding: 15px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    background: var(--glass);
    border: 1px solid var(--edge);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.related__list a:hover {
    border-color: rgba(139, 92, 246, .55);
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .seo-cards { grid-template-columns: 1fr; }
    .langswitch { padding: 7px 12px; font-size: 12px; }
    .seo-cta { padding: 26px 20px; }
    .lead-text { font-size: 16.5px; }

    /* Узкий экран: сравнение из четырёх колонок должно помещаться целиком,
       иначе непонятно, к какому казино относятся значения. Слова не рвём —
       по-армянски перенос внутри слова читается как опечатка. */
    .table-wrap .odds-table { min-width: 0; font-size: 12px; }
    .table-wrap th,
    .table-wrap td { padding: 8px 5px; }
    .table-wrap th:first-child,
    .table-wrap td:first-child { padding-left: 10px; }

    /* Таблицы с пояснениями шире экрана в любом случае — разворачиваем строку
       в карточку: первая ячейка становится заголовком, остальные — парами
       «подпись — значение». */
    .odds-table--stack { font-size: 14px; }
    .odds-table--stack thead { display: none; }
    .odds-table--stack,
    .odds-table--stack tbody,
    .odds-table--stack tr,
    .odds-table--stack td { display: block; width: auto; }

    .odds-table--stack tr {
        padding: 4px 0 10px;
        border-bottom: 1px solid var(--edge);
    }

    .odds-table--stack tr:last-child { border-bottom: 0; }

    .odds-table--stack td {
        border: 0;
        padding: 4px 14px;
        display: flex;
        justify-content: space-between;
        gap: 14px;
    }

    .odds-table--stack td:first-child {
        display: block;
        color: var(--cyan);
        font-weight: 700;
        padding-top: 12px;
    }

    .odds-table--stack td:not(:first-child)::before {
        content: attr(data-label);
        color: rgba(242, 237, 255, 0.55);
        flex: 0 0 auto;
    }

    .odds-table--stack td:not(:first-child) { text-align: right; }
}
