

/* Start:/local/css/tarify.css?178362622312906*/
/**
 * SNTClub — Страница тарифов
 * URL:  /tarify/
 * CSS:  Asset::getInstance()->addCss('/local/css/tarify.css')
 *
 * Блоки:
 *   .tarify-header        — заголовок страницы
 *   .tariff-table-wrap    — обёртка с overflow-x: auto
 *   .tariff-table         — таблица сравнения
 *     .tariff-row--section— строка-разделитель категории (colspan)
 *     .col--featured      — выделенная колонка «Профи» / «Классика»
 *     .th-badge           — бейдж «Популярный»
 *     .tc--yes / .tc--no  — иконки ✓ / ✗
 *     .tariff-tip         — tooltip на вопросике
 *   .tarify-cta           — нижний призыв к действию
 */

/* ═══════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════ */
.tarify-header {
    padding: var(--space-10) 0 var(--space-8);
    background: var(--color-white);
}

.tarify-header__title {
    font-size: var(--fs-3xl);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-3);
    line-height: var(--lh-snug);
}

.tarify-header__desc {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* ═══════════════════════════════════════════════
   SECTION INTRO
   ═══════════════════════════════════════════════ */
.tarify-section__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-6);
}

.tarify-section__desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: calc(-1 * var(--space-4)) 0 var(--space-6);
}

/* ═══════════════════════════════════════════════
   TABLE WRAPPER — горизонтальный скролл
   ═══════════════════════════════════════════════ */
.tariff-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    background: var(--color-white);
    /* Scroll hint gradient on the right */
    --hint-opacity: 1;
}

/* Узкая обёртка для таблицы с 3 колонками */
.tariff-table-wrap--narrow {
    max-width: 680px;
}

/* ═══════════════════════════════════════════════
   TABLE BASE
   ═══════════════════════════════════════════════ */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

/* ─── Минимальные ширины колонок ─── */
.tariff-table .th--name,
.tariff-table td:first-child {
    min-width: 210px;
    max-width: 300px;
}

.tariff-table th:not(.th--name),
.tariff-table td:not(:first-child) {
    min-width: 140px;
}

/* ═══════════════════════════════════════════════
   STICKY FIRST COLUMN
   ═══════════════════════════════════════════════ */
.tariff-table thead th:first-child,
.tariff-table tbody td:first-child,
.tariff-table tfoot td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--color-white);
    /* Тонкая тень справа — визуальный разрыв при скролле */
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.06);
}

/* На строках-разделителях фон должен совпасть */
.tariff-table .tariff-row--section td {
    background: #F6F7FA;
    position: static; /* не нужен sticky — td colspan 1 */
}

/* ═══════════════════════════════════════════════
   THEAD
   ═══════════════════════════════════════════════ */
.tariff-table thead th {
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border-bottom: 2px solid var(--color-border-light);
    vertical-align: bottom;
    white-space: nowrap;
    background: var(--color-white);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.tariff-table thead th.th--name {
    text-align: left;
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
}

/* ─── Выделенная колонка ─── */
.tariff-table thead th.col--featured {
    background: var(--color-blue);
    color: var(--color-white);
    z-index: 3; /* выше обычных th */
}

/* Надпись «th-name» внутри th */
.th-name {
    display: block;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.th-price {
    display: block;
    font-size: var(--fs-xs);
    opacity: 0.7;
    margin-top: var(--space-1);
    font-weight: var(--fw-normal);
}

/* «Популярный» бейдж */
.th-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════
   TBODY — строки с данными
   ═══════════════════════════════════════════════ */
.tariff-table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
    vertical-align: middle;
    color: var(--color-text-muted);
    transition: background 0.1s;
}

/* Первая ячейка — название фичи */
.tariff-feature {
    text-align: left !important;
    color: var(--color-text) !important;
    display: table-cell;
}

.tariff-feature a {
    color: var(--color-blue);
    text-decoration: none;
}

@media (hover: hover) {
    .tariff-feature a:hover {
        text-decoration: underline;
    }
}

/* Hover на строках */
@media (hover: hover) {
    .tariff-table tbody .tariff-row:hover td {
        background: var(--color-gray-50);
    }

    .tariff-table tbody .tariff-row:hover td.col--featured {
        background: #EBF3FF;
    }
}

/* Подсветка выделенной колонки в строках данных */
.tariff-table tbody td.col--featured {
    background: #F0F7FF;
}

/* Последняя строка — без нижней рамки */
.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════
   СТРОКА-РАЗДЕЛИТЕЛЬ КАТЕГОРИИ
   ═══════════════════════════════════════════════ */
.tariff-row--section td {
    background: #F6F7FA !important;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
}

/* ═══════════════════════════════════════════════
   TFOOT
   ═══════════════════════════════════════════════ */
.tariff-table tfoot td {
    padding: var(--space-5) var(--space-4);
    border-top: 2px solid var(--color-border-light);
    text-align: center;
    background: var(--color-white);
}

.tariff-table tfoot td:first-child {
    border-top-color: transparent;
}

.tariff-table tfoot td.col--featured {
    background: #F0F7FF;
}

/* ═══════════════════════════════════════════════
   CELL VALUE TYPES
   ═══════════════════════════════════════════════ */
.tc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Зелёная галочка */
.tc--yes {
    color: var(--color-green);
}

/* Серый крест — де-эмфазированно */
.tc--no {
    color: #CBD0D8;
}

/* Текстовое значение */
.tc--text {
    color: var(--color-text);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
}

/* ═══════════════════════════════════════════════
   TOOLTIP — вопросительный знак
   ═══════════════════════════════════════════════ */
.tariff-tip {
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-1);
    color: var(--color-text-muted);
    opacity: 0.5;
    cursor: help;
    vertical-align: middle;
    position: relative;
    transition: opacity 0.15s;
}

@media (hover: hover) {
    .tariff-tip:hover {
        opacity: 1;
    }

    .tariff-tip:hover::after,
    .tariff-tip:focus-visible::after {
        opacity: 1;
        pointer-events: auto;
    }
}

.tariff-tip:focus-visible {
    outline: 2px solid var(--color-blue);
    border-radius: 50%;
}

.tariff-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    line-height: var(--lh-relaxed);
    white-space: normal;
    width: 220px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    box-shadow: var(--shadow-md);
    font-weight: var(--fw-normal);
}

/* ═══════════════════════════════════════════════
   CTA BOTTOM
   ═══════════════════════════════════════════════ */
.tarify-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.tarify-cta__text {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    margin: 0;
    max-width: 540px;
    line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — ≤ 640px
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 640px) {
    /* Sticky первой колонки убираем — мешает мобильному скроллу */
    .tariff-table thead th:first-child,
    .tariff-table tbody td:first-child,
    .tariff-table tfoot td:first-child {
        position: static;
        box-shadow: none;
    }

    .tariff-table .th--name,
    .tariff-table td:first-child {
        min-width: 150px;
    }

    .tariff-table th:not(.th--name),
    .tariff-table td:not(:first-child) {
        min-width: 110px;
    }

    .tarify-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* End */
/* /local/css/tarify.css?178362622312906 */
