/* ===========================================================
   pricing.css — блок тарифов APP-SC (talk)
   Подключается после app-sc.css, использует его токены (:root)
   =========================================================== */

/* Мягкий переход от серой секции «Преимущества» к белым «Отзывам» */
.plans-section {
    background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
}

.plans-section .section__header {
    max-width: 760px;
}

/* ---------- Сетка ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ---------- Карточка тарифа ---------- */

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.plan:hover {
    border-color: rgba(40, 87, 216, .4);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Выделенный тариф */
.plan--featured {
    border-color: rgba(40, 87, 216, .45);
    box-shadow: var(--shadow-md);
    background: linear-gradient(170deg, var(--blue-soft) 0%, var(--surface) 55%);
}

.plan__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(40, 87, 216, .32);
}

/* ---------- Шапка карточки ---------- */

.plan__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -.01em;
    color: var(--ink);
}

.plan__tagline {
    margin-top: 8px;
    min-height: 40px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-2);
}

/* ---------- Цена ---------- */

.plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.plan__amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
}

.plan__period {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
}

.plan--featured .plan__price {
    border-bottom-color: rgba(40, 87, 216, .22);
}

/* ---------- Список возможностей ---------- */

.plan__list {
    flex: 1;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--ink-2);
}

.plan__list i {
    flex: none;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ok);
}

/* Первый пункт «Всё из тарифа …» — визуальный якорь */
.plan__list li.is-inherited {
    font-weight: 600;
    color: var(--ink);
}
.plan__list li.is-inherited i {
    color: var(--blue);
}

/* ---------- Кнопка ---------- */

.plan__btn {
    width: 100%;
}

/* ---------- Примечание под сеткой ---------- */

.plans-note {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-3);
}

.plans-note a {
    color: var(--blue);
    font-weight: 600;
}
.plans-note a:hover {
    color: var(--blue-hov);
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-inline: auto;
        gap: 28px;
    }
    .plan__tagline {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .plan {
        padding: 28px 20px;
    }
    .plan__amount {
        font-size: 30px;
    }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    .plan,
    .plan:hover {
        transform: none;
        transition: none;
    }
}
