

/* Start:/local/templates/Svetnica/components/bitrix/catalog.section/tariffs/style.css?17847593195183*/
.tfs-wrapper * {
    box-sizing: border-box;
}

/* ---------- Сетка карточек (та же, что была изначально) ---------- */
.tfs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.tfs-card {
    background: #fcf9f5;
    border: 1px solid rgba(180, 200, 225, 0.25);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(43, 3, 72, 0.05);
    padding: 2.2rem 1.8rem;
    width: 330px;               /* исходная фиксированная ширина */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.tfs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(43, 3, 72, 0.1);
}

/* Бейдж скидки с датой */
.tfs-card__discount-badge-top {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f1e9db;
    color: #8B6D2B;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
    border: 1px solid rgba(139, 109, 43, 0.2);
    white-space: nowrap;
}

.tfs-card__title {
    font-family: var(--font-heading, 'Jost', sans-serif);
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--plum, #2b0348);
    margin: 0 0 0.8rem;
    line-height: 1.2;
    transition: color 0.2s;
}

.tfs-card__title-link {
    text-decoration: none;
    color: inherit;
}

.tfs-card__title-link:hover .tfs-card__title {
    color: var(--gold, #B8953A);
}

.tfs-card__divider {
    width: 100px;
    height: 1px;
    background: var(--gold-light, #D4B56A);
    border: none;
    margin: 0 auto 1.8rem;
    opacity: 0.5;
}

.tfs-card__body {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink, #3B2E2A);
    margin-bottom: 1.8rem;
}

.tfs-card__desc p {
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.tfs-card__desc ul,
.tfs-card__desc ol {
    list-style: none !important;
    padding: 0 1.8rem !important;
    margin: 0.8rem 0 0 0 !important;
}

.tfs-card__desc li {
    list-style: none !important;
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(180, 200, 220, 0.25);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.tfs-card__desc li:last-child {
    border-bottom: none;
}

/* Область цены с фиксированной высотой (чтобы выровнять блоки) */
.tfs-card__price-area {
    min-height: 5.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.tfs-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
}

.tfs-card__price-old-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tfs-card__price-old {
    font-size: 1rem;
    color: #8B9A7B;
    text-decoration: line-through;
    margin-right: -3.5rem;
    white-space: nowrap;
}

.tfs-card__price-current {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--gold-deep, #8B6D2B);
    line-height: 1;
}

.tfs-card__price-desc {
    font-size: 0.8rem;
    color: var(--sage, #8B9A7B);
}

.tfs-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tfs-card__actions .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.1s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.tfs-card__actions .btn:active {
    transform: scale(0.96);
}

/* ---------- Адаптив (только мобильный) ---------- */
@media (max-width: 768px) {
    .tfs-card {
        width: 100%;
        padding: 1.8rem 1.2rem;
    }
}

/* ---------- Подсказки внутри карточек ---------- */
.tfs-card__desc li[data-tooltip] {
    border-bottom: 1px dashed var(--gold-light, #D4B56A);
    cursor: help;
    position: relative;
}

/* Tooltip-блок (переопределяем для карточек) */
.tfs-card__desc li[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--plum, #2b0348);
    color: #fff;
    font-family: var(--font-body, 'Geologica', sans-serif);
    font-size: 0.75rem;
    line-height: 1.3;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 300;
    text-align: center;
}

.tfs-card__desc li[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
/* End */
/* /local/templates/Svetnica/components/bitrix/catalog.section/tariffs/style.css?17847593195183 */
