/* Каталог подписок: карточки в цветах кабинета */

/* На публичной странице фон белый, карточки сливаются. Серый фон как у кабинета. */
.plan-public {
    background: #f4f5f8;
    padding: 2.75rem 0 4.5rem;
}

/* Левый край как у текста заголовка в .page-title. */
.page-body .plan-catalog-grid.col-12 {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 5px);
}

.plan-catalog-header {
    margin-bottom: 1.35rem;
    text-align: left;
}

.plan-catalog-header__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.plan-catalog-header__subtitle {
    max-width: 42rem;
    margin: 0.65rem 0 0;
    color: #757575;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.plan-range-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.35rem 2.5rem;
    margin: 0 0 1.75rem;
    padding: 1.25rem 1.5rem 1.15rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.plan-range-bar > div {
    flex: 1 1 22rem;
    min-width: min(100%, 22rem);
}

.plan-range-bar--single > div {
    flex: 0 1 auto;
}

.plan-range-bar__title {
    margin: 0 0 0.65rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.plan-range-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.plan-range-pill {
    border: 0;
    background: #f3f4f6;
    color: #3a3a44;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.plan-range-pill:hover {
    background: #e8e9ee;
    color: #1a1a1a;
}

.plan-range-pill.is-active,
.plan-range-pill.is-active:hover {
    background: var(--theme-default, #7366ff);
    color: #fff;
}

.plan-range-pill:focus-visible {
    outline: 2px solid var(--theme-default, #7366ff);
    outline-offset: 2px;
}

.plan-range-note {
    margin: 0.7rem 0 0;
    color: #8a8a96;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.5rem 1.35rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.04);
}

.plan-card__art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 168px;
    margin-bottom: 0.75rem;
}

.plan-card__art img {
    max-width: 100%;
    max-height: 168px;
    object-fit: contain;
}

.plan-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
}

.plan-card__desc {
    margin: 0 0 1.1rem;
    min-height: 2.7em;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #8d8d8d;
}

.plan-card__price {
    margin-bottom: 1.25rem;
    text-align: center;
}

.plan-card__was {
    margin-bottom: 0.15rem;
    color: #9a9a9a;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-decoration: line-through;
}

.plan-card__amount {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.plan-card__per {
    margin-top: 0.15rem;
    color: #8d8d8d;
    font-size: 0.9375rem;
}

.plan-card__due {
    margin-top: 0.85rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.plan-card__due strong {
    font-weight: 700;
}

.plan-card__save {
    margin-top: 0.15rem;
    color: #00a046;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.plan-card__section-label {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.plan-card__features {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.plan-feature {
    margin-bottom: 0.45rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #1a1a1a;
}

.plan-feature--with-hint {
    margin-bottom: 0.75rem;
}

.plan-feature__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.plan-feature--off {
    color: #b5b5b5;
}

.plan-feature__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    flex-shrink: 0;
    color: #00a046;
}

.plan-feature--off .plan-feature__mark {
    color: #c8c8c8;
}

.plan-feature__mark svg {
    width: 1rem;
    height: 1rem;
}

/* Подсказка модуля: в теме нет такого блока у тарифов — светлый фон и акцент слева. */
.plan-feature-hint {
    border-radius: 13px;
    margin: 0.35rem 0 0;
    padding: 0.4rem 0.55rem;
    background: rgba(115, 102, 255, 0.08);
    border-left: 2px solid var(--theme-default, #7366ff);
}

.plan-feature-hint__title {
    margin: 0;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.plan-feature-hint__note {
    margin: 0.15rem 0 0;
    color: #8a8a96;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
}

.plan-card__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-card__cta.btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--theme-default, #7366ff);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.plan-card__cta.btn:hover,
.plan-card__cta.btn:focus {
    background: var(--theme-default, #7366ff);
    color: #fff;
    filter: brightness(0.94);
}

.plan-card__cta.btn:disabled {
    opacity: 0.55;
    filter: none;
}

.plan-card__once.btn {
    width: 100%;
    border-radius: 999px;
    background: transparent;
    color: var(--theme-default, #7366ff);
    font-weight: 600;
}

.plan-card__empty {
    margin: 0 0 1rem;
    color: #757575;
    font-size: 0.875rem;
}

@media (max-width: 767.98px) {
    .plan-catalog-header {
        margin-bottom: 1.1rem;
    }

    .plan-catalog-header__title {
        font-size: 1.625rem;
    }

    .plan-range-bar,
    .plan-range-bar--single {
        gap: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .plan-range-bar > div,
    .plan-range-bar--single > div {
        flex-basis: 100%;
        min-width: 0;
    }

    .plan-range-bar {
        padding: 1rem 1rem 0.9rem;
        border-radius: 16px;
    }
}

@media (max-width: 991.98px) {

    .plan-card__title {
        font-size: 1.5rem;
    }

    .plan-card__amount {
        font-size: 2rem;
    }

    .plan-card__desc {
        min-height: 0;
    }
}
